/* Templates, template use, Reports and Admin (UX-02 split of app.css and manage.css;
 * docs/47 §Design system, findings T-, AD-, RP-). Loaded after manage.css by app.html. */

.os-panel__head { display: flex; align-items: center; gap: var(--os-s2); margin-bottom: var(--os-s2); }
.os-actions--row { justify-content: flex-end; margin: 0; flex-wrap: nowrap; }
.os-row-title { display: inline-flex; align-items: center; gap: var(--os-s2); }
.os-row-title > svg { color: var(--os-muted); }
.os-bars td { width: 100%; }
.os-bars th[scope="row"] { background: none; font-size: var(--os-fs-14); color: var(--os-text); font-weight: 500; width: 1%; }
.os-bar__row { display: flex; align-items: center; gap: var(--os-s3); }
.os-bar { display: block; height: 0.625rem; border-radius: 62.4375rem; width: var(--os-bar, 0%); min-width: 0.125rem; background: var(--os-border-strong); }
.os-bar--completed { background: var(--os-success); }
.os-bar--sent, .os-bar--delivered { background: var(--os-info); }
.os-bar--declined, .os-bar--voided { background: var(--os-danger); }
.os-bar--expired { background: var(--os-warning); }
.os-bar__n { font-variant-numeric: tabular-nums; font-weight: 600; }
.os-use { display: grid; gap: 0; max-width: 55rem; }
.os-use__roles { list-style: none; margin: var(--os-s3) 0 0; padding: 0; display: grid; gap: var(--os-s3); }
.os-use__role { border: 1px solid var(--os-border); border-left: 0.25rem solid var(--os-rc, var(--os-r1)); border-radius: var(--os-radius); padding: var(--os-s4); background: var(--os-raised); }
.os-use__role.os-r1 { --os-rc: var(--os-r1); }
.os-use__role.os-r2 { --os-rc: var(--os-r2); }
.os-use__role.os-r3 { --os-rc: var(--os-r3); }
.os-use__role.os-r4 { --os-rc: var(--os-r4); }
.os-use__role.os-r5 { --os-rc: var(--os-r5); }
.os-use__role.os-r6 { --os-rc: var(--os-r6); }
.os-use__role-head { display: flex; align-items: center; gap: var(--os-s2); }
.os-use__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--os-s3); }
.os-use > .os-actions { margin-top: var(--os-s6); }
.os-panel__head--page { margin: var(--os-s4) 0 var(--os-s3); justify-content: space-between; }
.os-panel__head--page .os-card__title { margin: 0; }
.os-fieldset { border: 0; padding: 0; margin: var(--os-s3) 0 0; display: grid; gap: var(--os-s1); }
.os-copyrow { display: flex; gap: var(--os-s2); align-items: center; }
.os-input--mono { font-family: var(--os-font-mono); }
@media (max-width: 47.5em) {
  .os-use__inputs { grid-template-columns: minmax(0, 1fr); }
}

/* ---- T-01 Templates list; T-03 use: document left, a sticky panel right ------------ */
.os-filters__search { flex: 0 1 20rem; }
.os-usegrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem); gap: var(--os-s6); align-items: start; }
.os-usedoc { min-width: 0; }
.os-usedoc > .os-preview { margin-top: 0; }
.os-usedoc .os-preview__body { height: calc(100dvh - var(--os-topbar-h) - 13rem); min-height: 22rem; }
.os-usedoc > .os-card { margin-top: 0; }
.os-usepanel {
  position: sticky; top: calc(var(--os-topbar-h) + var(--os-s4)); max-height: max(24rem, calc(100dvh - var(--os-topbar-h) - 10rem));
  display: flex; flex-direction: column; border: 1px solid var(--os-border); border-radius: var(--os-radius-lg); background: var(--os-raised); box-shadow: var(--os-shadow-md); max-width: none;
}
.os-usepanel__title { font-size: var(--os-fs-16); font-weight: 600; margin: 0; padding: var(--os-s4) var(--os-s6); border-bottom: 1px solid var(--os-border); }
.os-usepanel__body { flex: 1; min-height: 0; overflow: auto; padding: var(--os-s4) var(--os-s6); }
.os-usepanel__sec + .os-usepanel__sec { margin-top: var(--os-s6); }
.os-usepanel .os-use__inputs { grid-template-columns: minmax(0, 1fr); gap: 0; }
.os-usepanel .os-use__inputs .os-label { margin-top: var(--os-s2); }
.os-use > .os-actions.os-usepanel__foot { margin: 0; padding: var(--os-s3) var(--os-s6); border-top: 1px solid var(--os-border); justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 60em) {
  .os-usegrid { grid-template-columns: minmax(0, 1fr); }
  .os-usegrid > .os-usepanel { order: -1; position: static; max-height: none; }
  .os-usedoc .os-preview__body { height: min(70vh, 40rem); }
}
@media (max-width: 37.5em) {
  .os-usepanel__title, .os-usepanel__body, .os-use > .os-actions.os-usepanel__foot { padding-left: var(--os-s4); padding-right: var(--os-s4); }
  .os-usepanel__foot .os-btn { flex: 1 1 auto; }
}

/* ---- AD-01 Admin: user status, account cards, side-panel switches ------------------ */
.os-badge--user-active { background: color-mix(in srgb, var(--os-success) 12%, var(--os-bg)); color: var(--os-success); }
.os-badge--user-pending { background: color-mix(in srgb, var(--os-info) 12%, var(--os-bg)); color: var(--os-info); }
.os-badge--user-disabled { background: var(--os-surface-2); color: var(--os-muted); }
.os-col-email { overflow-wrap: anywhere; }
.os-panel__head--page { flex-wrap: wrap; gap: var(--os-s2); }
.os-admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--os-s4); margin-top: var(--os-s2); }
.os-admin-cards > .os-card { margin-top: 0; }
.os-swatchrow { display: flex; align-items: center; gap: var(--os-s2); }
.os-swatch { width: 1rem; height: 1rem; border-radius: 0.25rem; border: 1px solid var(--os-border-strong); flex: none; }
.os-switchrow { margin-top: var(--os-s4); }
@media (max-width: 37.5em) { .os-table--cards td.os-col-email { font-size: var(--os-fs-12); } }

/* ---- RP-01 Reports: a period, one colour per status, the table's last row ---------- */
.os-reports__tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--os-s3); margin: 0 0 var(--os-s4); }
.os-reports__tools .os-label { margin: 0 0 var(--os-s1); font-size: var(--os-fs-12); color: var(--os-muted); }
.os-bars tbody tr:last-child th { border-bottom: 0; }
.os-bars th[scope="row"] { border-bottom: 1px solid var(--os-border); }
.os-bar--draft { background: var(--os-border-strong); }
.os-bar--sent { background: var(--os-info); }
.os-bar--delivered { background: var(--os-r5); }
.os-bar--completed { background: var(--os-success); }
.os-bar--declined { background: var(--os-danger); }
.os-bar--voided { background: var(--os-r3); }
.os-bar--expired { background: var(--os-warning); }
.os-bar__key { display: inline-block; width: 0.625rem; height: 0.625rem; border-radius: 0.1875rem; margin-right: var(--os-s2); vertical-align: baseline; }


/* ---- UX-08 Admin: the section rail (a select below 37.5em), sections, webhooks ------ */
.os-admin__content > .os-panel__head--page:first-child { margin-top: 0; }
.os-admin__lede { margin: calc(-1 * var(--os-s1)) 0 var(--os-s4); max-width: 46rem; }
.os-admin__tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--os-s3); margin: 0 0 var(--os-s2); }
.os-admin__tools .os-fieldrow { margin: 0; }
.os-admin__tools .os-label { margin: 0 0 var(--os-s1); font-size: var(--os-fs-12); color: var(--os-muted); }
.os-admin__tools--end { justify-content: flex-end; margin-top: var(--os-s4); }
.os-admin__tools[hidden] { display: none; }
.os-admin__none { padding: var(--os-s4) var(--os-s6); margin: 0; }
.os-admin__url { overflow-wrap: anywhere; word-break: break-word; }
.os-admin__deliveries { margin-top: var(--os-s6); }
.os-admin__deliveries > .os-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--os-s2); }
.os-admin__deliveries .os-card__head p { margin: 0; }
.os-admin__events, .os-admin__scopes { display: grid; gap: var(--os-s2); margin-top: var(--os-s2); }
.os-check--desc { align-items: flex-start; }
.os-admin__dev { margin-top: 0; }
.os-admin__devgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--os-s4); }
.os-admin__devgrid .os-copyrow .os-input { min-width: 0; flex: 1; }
.os-admin__expiry { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--os-s2); }
.os-card__lede { margin: 0 0 var(--os-s4); }
.os-callout--warning { background: color-mix(in srgb, var(--os-warning) 10%, var(--os-raised)); border: 1px solid color-mix(in srgb, var(--os-warning) 45%, var(--os-raised)); }
.os-callout--warning > svg { color: var(--os-warning); flex: none; margin-top: 0.125rem; }
.os-callout--warning p { margin: 0; }
.os-help--warn { color: var(--os-warning); font-weight: 600; }
/* Branding: the picker beside its hex, and a preview of the email header and signing bar. */
.os-colorpick { inline-size: 2.75rem; block-size: 2.75rem; padding: 0.125rem; border: 1px solid var(--os-border-strong); border-radius: var(--os-radius); background: var(--os-raised); flex: none; cursor: pointer; }
.os-brandprev { margin-top: var(--os-s4); display: grid; gap: var(--os-s1); }
.os-brandprev p { margin: var(--os-s2) 0 0; }
.os-brandprev__mail, .os-brandprev__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--os-s2); min-height: 2.75rem; padding: 0 var(--os-s4); border-radius: var(--os-radius); }
.os-brandprev__mail { background: var(--os-brand, var(--os-accent)); color: #fff; font-weight: 600; }
.os-brandprev__bar { background: var(--os-raised); border: 1px solid var(--os-border); border-top: 0.25rem solid var(--os-brand, var(--os-accent)); font-weight: 600; }
.os-brandprev__btn { background: var(--os-brand, var(--os-accent)); color: #fff; border-radius: var(--os-radius); padding: var(--os-s1) var(--os-s3); font-size: var(--os-fs-14); }
/* Phones keep the text of a row's one main action (UX-08); the rest go in the row menu. */
@media (max-width: 47.5em) {
  .os-col-actions .os-btn.os-btn--keep-label { width: auto; padding: 0 var(--os-s3); }
  .os-col-actions .os-btn.os-btn--keep-label > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .os-col-actions .os-btn.os-admin__wide-only { display: none; }
}
@media (max-width: 37.5em) {
  .os-admin-cards .os-meta { grid-template-columns: minmax(0, 1fr); row-gap: 0.125rem; }
  .os-admin-cards .os-meta dd { overflow-wrap: normal; }
  .os-admin-cards .os-meta dd + dt { margin-top: var(--os-s2); }
}

/* ---- UX-08 Reports: the period, dates, sender and note on one row; sample sizes ---- */
.os-reports__tools .os-fieldrow { margin: 0; }
.os-reports__dates { display: flex; flex-wrap: wrap; gap: var(--os-s3); }
.os-reports__dates[hidden] { display: none; }
.os-reports__note { margin: 0 0 0.375rem; flex: 1 1 14rem; }
.os-counter:has(.os-counter__sample) { grid-template-areas: "icon label" "n n" "sample sample"; }
.os-counter__sample { grid-area: sample; margin-top: calc(-1 * var(--os-s2)); font-size: var(--os-fs-12); color: var(--os-muted); }
.os-bars__link { display: inline-flex; align-items: center; color: var(--os-text); text-decoration: underline; text-decoration-color: var(--os-border-strong); text-underline-offset: 0.2em; min-height: 1.5rem; }
.os-bars__link:hover { text-decoration-color: currentColor; }
@media (max-width: 25em) {
  .os-counter:has(.os-counter__sample) { grid-template-areas: "icon label n" "sample sample sample"; }
  .os-counter__sample { margin-top: 0; }
}

/* ---- UX-08 Template use: the field count and role key above the pages, outlines ---- */
.os-usedoc__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--os-s2) var(--os-s4); margin: 0 0 var(--os-s2); }
.os-usedoc__bar p { margin: 0; }
.os-usedoc__key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--os-s1) var(--os-s3); font-size: var(--os-fs-12); }
.os-usedoc__key li { display: inline-flex; align-items: center; gap: var(--os-s1); }
.os-use__field { position: absolute; z-index: 1; border: 0.125rem solid var(--os-rc, var(--os-r1)); border-radius: 0.1875rem; background: color-mix(in srgb, var(--os-rc, var(--os-r1)) 12%, transparent); pointer-events: none; }
.os-use__field.os-r1, .os-usedoc__key .os-r1 { --os-rc: var(--os-r1); }
.os-use__field.os-r2, .os-usedoc__key .os-r2 { --os-rc: var(--os-r2); }
.os-use__field.os-r3, .os-usedoc__key .os-r3 { --os-rc: var(--os-r3); }
.os-use__field.os-r4, .os-usedoc__key .os-r4 { --os-rc: var(--os-r4); }
.os-use__field.os-r5, .os-usedoc__key .os-r5 { --os-rc: var(--os-r5); }
.os-use__field.os-r6, .os-usedoc__key .os-r6 { --os-rc: var(--os-r6); }
.os-usedoc__key .os-rcpt__dot { background: var(--os-rc); }
.os-use__extra:empty { display: none; }
.os-use__role--extra { border-left-color: var(--os-border-strong); }
.os-use__role--extra .os-fieldrow { margin-top: var(--os-s2); }
.os-use__add { margin-top: var(--os-s3); }

/* ---- WEB-17 Admin on the canvas (Intelligence artboard): a secondary nav inside the
 * content card, then the page: title, lede, actions; section cards with hairlines. ---- */
.os-adm { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); margin: calc(-1 * var(--os-s6)) calc(-1 * var(--os-s8)) calc(-1 * var(--os-s12)); min-height: calc(100dvh - 2 * var(--os-card-inset)); background: var(--os-surface); }
.os-adm__nav {
  position: sticky; top: calc(-1 * var(--os-s6)); align-self: start; max-height: 100dvh; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 0.125rem; padding: 0.75rem 0.625rem; color: var(--os-text-2);
}
.os-adm__link {
  display: flex; align-items: center; gap: 0.5rem; min-height: 1.875rem; padding: 0.4375rem 0.5rem; border-radius: var(--os-radius);
  color: var(--os-text-2); text-decoration: none; white-space: nowrap; min-width: 0;
  transition: background var(--os-dur-fast) var(--os-ease-state), box-shadow var(--os-dur-fast) var(--os-ease-state);
}
.os-adm__link:hover { background: color-mix(in srgb, var(--os-text) 5%, transparent); color: var(--os-text-2); }
.os-adm__link[aria-current="page"] { background: var(--os-bg); color: var(--os-text); font-weight: 500; box-shadow: 0 0 0 1px var(--os-hairline), 0 1px 0.125rem rgba(24, 24, 27, .05); }
.os-adm__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.os-adm__spark { margin-left: auto; flex: none; width: 0.75rem; height: 0.75rem; color: var(--os-ml); }
.os-adm__soon { margin-left: auto; flex: none; font-size: var(--os-fs-11); color: var(--os-muted); }
.os-adm__org { margin: 1rem 0.5rem 0.375rem; font-size: var(--os-fs-12); font-weight: 500; color: var(--os-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-adm__main { min-width: 0; background: var(--os-bg); box-shadow: -1px 0 0 var(--os-hairline); }
.os-adm__picker { display: none; }
.os-adm__page { max-width: 72rem; margin: 0 auto; padding: 2rem 2.5rem 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.os-adm__head { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.os-adm__titles { display: flex; flex-direction: column; gap: 0.375rem; flex: 1 1 24rem; min-width: 0; }
.os-adm__title { margin: 0; font-size: var(--os-fs-24); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.os-adm__lede { margin: 0; color: var(--os-muted); max-width: 48rem; }
.os-adm__lede:empty { display: none; }
.os-adm__chip-slot:empty, .os-adm__actions:empty { display: none; }
.os-adm__chip-slot { margin-left: auto; }
.os-adm__actions { display: flex; flex-wrap: nowrap; gap: var(--os-s2); margin-left: auto; }
.os-adm__body { min-width: 0; }
.os-adm__body > .os-tabset { margin-top: 0; }
.os-adm__body .os-tabs--pill { margin-bottom: var(--os-s4); }
.os-adm__later { margin: var(--os-s4) 0 0; font-size: var(--os-fs-13); color: var(--os-muted); }
/* Section cards: white, a hairline ring, 12 px radius (canvas). */
.os-adm__card, .os-adm .os-card { border: 0; border-radius: var(--os-radius-lg); background: var(--os-bg); box-shadow: inset 0 0 0 1px var(--os-border), 0 1px 0.125rem rgba(24, 24, 27, .04); }
.os-adm__card { padding: 1rem 1.125rem; }
.os-adm__card-title { margin: 0 0 0.25rem; font-size: var(--os-fs-14); font-weight: 600; }
.os-adm__card-text { margin: 0; color: var(--os-text-2); font-size: var(--os-fs-13); line-height: 1.5; }
.os-adm__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 0.75rem; }
.os-adm__waiting { display: flex; flex-direction: column; gap: 1.25rem; }
.os-adm__waiting > .os-empty { padding-top: var(--os-s6); padding-bottom: var(--os-s4); }
.os-adm__meta dt, .os-adm__meta dd { padding: 0.375rem 0; }
.os-adm .os-surface-card { border-radius: var(--os-radius-lg); }
@media (max-width: 60em) {
  .os-adm { margin: calc(-1 * var(--os-s4)); min-height: 0; grid-template-columns: 13rem minmax(0, 1fr); }
  .os-adm__nav { top: calc(-1 * var(--os-s4)); }
  .os-adm__page { padding: 1.5rem 1.25rem 2.5rem; }
}
@media (max-width: 47.999em) {
  .os-adm { display: block; margin: 0; background: none; min-height: 0; }
  .os-adm__nav { display: none; }
  .os-adm__main { box-shadow: none; }
  .os-adm__picker { display: block; margin-bottom: var(--os-s4); }
  .os-adm__page { padding: 0; gap: 1.25rem; }
  .os-adm__actions { margin-left: 0; }
}

/* ---- WEB-18 Admin › Document intelligence (canvas Intelligence) ------------------- */
.os-intel { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.os-intel__count {
  display: inline-flex; align-items: center; height: 1.75rem; padding: 0 0.75rem; border-radius: 0.875rem; white-space: nowrap;
  font-size: var(--os-fs-13); font-weight: 500; background: var(--os-st-draft-soft); color: var(--os-st-draft);
  transition: background var(--os-dur) var(--os-ease-state), color var(--os-dur) var(--os-ease-state);
}
.os-intel__count.is-on { background: var(--os-ml-soft); color: var(--os-ml); }
.os-intel__promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.os-intel__promise {
  padding: 1rem; border-radius: var(--os-radius-lg); display: flex; gap: 0.75rem;
  background: color-mix(in srgb, var(--os-ml-soft) 50%, var(--os-bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--os-ml) 12%, transparent);
}
.os-intel__promise-icon { width: 1.25rem; height: 1.25rem; flex: none; color: var(--os-ml); }
.os-intel__promise-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.os-intel__promise-text > b { font-weight: 600; }
.os-intel__promise-text > span { color: var(--os-text-2); font-size: var(--os-fs-13); line-height: 1.45; }
.os-intel__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.os-intel__grid--one { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
.os-intel__features { display: flex; flex-direction: column; gap: 0.625rem; min-width: 0; }
.os-intel__card {
  display: flex; align-items: flex-start; gap: 0.875rem; padding: 1rem; border-radius: var(--os-radius-lg);
  background: var(--os-surface); box-shadow: inset 0 0 0 1px var(--os-hairline);
  animation: os-rise var(--os-dur-enter) var(--os-ease-out) both;
  transition: background var(--os-dur-slow) var(--os-ease-state), box-shadow var(--os-dur-slow) var(--os-ease-state);
}
.os-intel__card:nth-child(2) { animation-delay: 60ms; }
.os-intel__card:nth-child(3) { animation-delay: 120ms; }
.os-intel__card:nth-child(4) { animation-delay: 180ms; }
.os-intel__card:nth-child(5) { animation-delay: 240ms; }
.os-intel__card.is-on { background: var(--os-bg); box-shadow: inset 0 0 0 1px var(--os-border), 0 1px 0.125rem rgba(24, 24, 27, .04); }
.os-intel__glyph {
  width: 2.25rem; height: 2.25rem; flex: none; border-radius: 0.625rem; display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--os-fs-13); font-weight: 600; background: var(--os-st-draft-soft); color: var(--os-faint);
  transition: background var(--os-dur-slow) var(--os-ease-state), color var(--os-dur-slow) var(--os-ease-state);
}
.os-intel__card.is-on .os-intel__glyph { background: var(--os-ml-soft); color: var(--os-ml); }
.os-intel__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.os-intel__row { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex-wrap: wrap; }
.os-intel__name { margin: 0; font-size: var(--os-fs-14); font-weight: 600; white-space: nowrap; }
.os-intel__model { font-family: var(--os-font-mono); font-size: var(--os-fs-11); color: var(--os-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.os-intel__desc { margin: 0; color: var(--os-text-2); font-size: var(--os-fs-13); line-height: 1.5; }
.os-intel__why { margin: 0.125rem 0 0; font-size: var(--os-fs-12); color: var(--os-muted); line-height: 1.45; }
.os-intel__pii { margin: 0.25rem 0 0; font-size: var(--os-fs-12); color: var(--os-pii); line-height: 1.45; }
.os-intel__pii[hidden], .os-intel__chips[hidden] { display: none; }
.os-intel__card .os-switchbtn { margin-top: 0.125rem; }
.os-intel__chips { list-style: none; margin: 0.375rem 0 0; padding: 0; display: flex; gap: 0.375rem; flex-wrap: wrap; }
.os-intel__chip {
  display: inline-flex; align-items: center; gap: 0.375rem; height: 1.5rem; padding: 0 0.5rem; border-radius: 0.75rem;
  font-size: var(--os-fs-12); font-weight: 500; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.os-intel__chip--installed { background: var(--os-st-done-soft); color: var(--os-st-done); }
.os-intel__chip--installing { background: var(--os-ml-soft); color: var(--os-ml); }
.os-intel__chip--missing { background: var(--os-st-draft-soft); color: var(--os-st-draft); }
.os-intel__stripes { flex: none; width: 2.5rem; height: 0.3125rem; border-radius: 0.25rem; overflow: hidden; background: var(--os-ml-mark); }
.os-intel__stripes-fill {
  display: block; width: 60%; height: 100%;
  background-image: repeating-linear-gradient(-45deg, #8b5cf6 0 0.375rem, #a78bfa 0.375rem 0.75rem); background-size: 1.0625rem 100%;
  animation: os-intel-stripes .8s linear infinite;
}
@keyframes os-intel-stripes { to { background-position: 1rem 0; } }
.os-intel__footer { margin: 0; padding: 0.25rem 0.25rem 0; color: var(--os-muted); font-size: var(--os-fs-13); }
.os-intel__plan {
  display: flex; flex-direction: column; gap: 0.25rem; padding: 0.875rem 1rem; border-radius: var(--os-radius-lg);
  background: var(--os-st-draft-soft); color: var(--os-text-2); font-size: var(--os-fs-13);
}
.os-intel__plan > b { color: var(--os-text); font-size: var(--os-fs-14); }
.os-intel__models { border-radius: var(--os-radius-lg); box-shadow: inset 0 0 0 1px var(--os-border); overflow: hidden; min-width: 0; animation-delay: 180ms; }
.os-intel__models-head { padding: 0.875rem 1rem; display: flex; align-items: center; gap: 0.5rem; background: var(--os-surface); box-shadow: inset 0 -1px 0 var(--os-hairline); }
.os-intel__models-title { margin: 0; font-size: var(--os-fs-14); font-weight: 600; white-space: nowrap; }
.os-intel__models-by { margin-left: auto; min-width: 0; font-size: var(--os-fs-12); color: var(--os-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-intel__model-list { list-style: none; margin: 0; padding: 0; }
.os-intel__model-row { padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; box-shadow: inset 0 -1px 0 var(--os-hairline); }
.os-intel__model-row:last-child { box-shadow: none; }
.os-intel__model-top { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.os-intel__model-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.os-intel__model-top > .os-badge { margin-left: auto; flex: none; height: 1.25rem; padding: 0 0.4375rem; border-radius: 0.375rem; font-size: var(--os-fs-11); }
.os-intel__model-meta { font-size: var(--os-fs-12); color: var(--os-muted); }
.os-intel__model-hash { font-family: var(--os-font-mono); font-size: var(--os-fs-11); color: var(--os-text-2); background: none; padding: 0; }
.os-intel__none > .os-empty { padding-top: var(--os-s8); }
.os-intel__none-who { margin: 0; font-weight: 500; color: var(--os-text-2); }
.os-intel__skeleton { display: flex; flex-direction: column; gap: 1.5rem; }
.os-intel__skeleton .os-skel--block { display: block; width: 100%; border-radius: var(--os-radius-lg); }
@media (max-width: 75em) {
  .os-intel__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 47.999em) {
  .os-intel__promises { grid-template-columns: minmax(0, 1fr); }
}
/* ---- WEB-17 Templates, Reports and Profile in the canvas's list language ---------- */
/* Template rows: the canvas's page thumbnail, name over subject, a 3.5rem row. */
.os-docthumb {
  width: 1.75rem; height: 2.125rem; flex: none; border-radius: 0.25rem; background: #fff; box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(24, 24, 27, .1), 0 1px 0.125rem rgba(24, 24, 27, .06);
  display: flex; flex-direction: column; gap: 0.1875rem; padding: 0.375rem 0.3125rem;
}
.os-docthumb__line { height: 0.125rem; background: #d4d4d8; border-radius: 1px; }
.os-docthumb__line--short { width: 60%; }
.os-tplrow { display: flex; flex-direction: row; align-items: center; gap: 0.75rem; min-width: 0; }
.os-tplrow__text { display: flex; flex-direction: column; min-width: 0; }
.os-tplrow__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-tplrow__sub { font-size: var(--os-fs-12); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Reports: stat tiles with a hairline ring; the skeleton has the same shape. */
.os-repskel { display: flex; flex-direction: column; gap: var(--os-s6); }
.os-repskel__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--os-s4); }
.os-repskel .os-skel--block { display: block; width: 100%; border-radius: var(--os-radius-lg); }
.os-reports .os-counter { box-shadow: inset 0 0 0 1px var(--os-border), 0 1px 0.125rem rgba(24, 24, 27, .04); padding: 1rem 1.25rem 1.25rem; }
.os-reports .os-counter__label { font-weight: 500; font-size: var(--os-fs-13); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.os-reports .os-counter__n { font-size: var(--os-fs-32); }
.os-reports > .os-card { border: 0; border-radius: var(--os-radius-lg); box-shadow: inset 0 0 0 1px var(--os-border), 0 1px 0.125rem rgba(24, 24, 27, .04); }
.os-reports .os-bar { height: 0.5rem; }
@media (max-width: 60em) { .os-repskel__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Profile: who this is on top; notification switches; signature rows as cards. */
.os-prof__who { display: flex; align-items: center; gap: 0.75rem; padding: 0 0 var(--os-s4); margin-bottom: var(--os-s4); border-bottom: 1px solid var(--os-hairline); min-width: 0; }
.os-prof__avatar { width: 2.5rem; height: 2.5rem; font-size: var(--os-fs-14); flex: none; }
.os-prof__who-text { display: flex; flex-direction: column; min-width: 0; }
.os-prof__who-text > b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-prof__who-text > span { font-size: var(--os-fs-13); color: var(--os-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-prof .os-profile__section { border-top-color: var(--os-hairline); }
.os-prof .os-profile__h { font-size: var(--os-fs-14); font-weight: 600; }
.os-prof .os-profile__mark { padding: 0.75rem 0.875rem; border-radius: var(--os-radius-lg); box-shadow: inset 0 0 0 1px var(--os-border); }
@media (prefers-reduced-motion: reduce) {
  .os-intel__card, .os-intel__stripes-fill { animation: none; }
  .os-intel__card, .os-intel__glyph, .os-intel__count { transition: none; }
}

/* VS-09: the websites that may embed the workspace's views. */
.os-adm__list { margin: 0; padding-left: 1.25rem; font-family: var(--os-font-mono); overflow-wrap: anywhere; }
/* FG-141: Insights. */
.os-insights { display: flex; flex-direction: column; gap: var(--os-s4); }
.os-insights__tiles { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.os-insights__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--os-s4); }
.os-chart__wrap { width: 100%; }
.os-chart { display: block; width: 100%; height: 12.5rem; }
.os-chart__grid { stroke: var(--os-border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.os-chart__tick { fill: var(--os-text-2); font-size: 0.6875rem; }
.os-chart__bar--sent, .os-chart__key--sent { fill: var(--os-info); background: var(--os-info); }
.os-chart__bar--completed, .os-chart__key--completed { fill: var(--os-success); background: var(--os-success); }
.os-chart__legend { display: flex; flex-wrap: wrap; gap: var(--os-s4); list-style: none; margin: var(--os-s2) 0 0; padding: 0; font-size: var(--os-fs-13); }
.os-chart__legend li { display: inline-flex; align-items: center; gap: var(--os-s2); }
.os-chart__key { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 0.125rem; }
.os-insights__data { margin-top: var(--os-s3); }
.os-insights__data summary { cursor: pointer; font-weight: 500; }
.os-insights__table { margin-top: var(--os-s2); }
