/* ClinicOS Shell 2 — module workspaces. Scoped to `html body.cos-shell-on #page-module-*`. Light is the reference; tokens: css/ds/tokens.css. */
html body.cos-shell-on [id^="page-module-"] { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html body.cos-shell-on .ws2 { max-width: 1080px; margin: 0 auto; padding: var(--cos-space-6) 0 var(--cos-space-16); font-family: var(--cos-font); color: var(--cos-color-text-primary); }
html body.cos-shell-on .ws2 * { box-sizing: border-box; }
html body.cos-shell-on .ws2-head { padding-bottom: var(--cos-space-8); }
html body.cos-shell-on .ws2-eyebrow { margin: 0 0 var(--cos-space-2); font: var(--cos-weight-semibold) 11px/1.3 var(--cos-font); letter-spacing: .08em; text-transform: uppercase; color: var(--cos-color-brand-primary); }
html body.cos-shell-on .ws2-head h1 { margin: 0; font: var(--cos-weight-bold) 2.5rem/1.1 var(--cos-font); letter-spacing: -.035em; color: var(--cos-color-text-primary); }
html body.cos-shell-on .ws2-intro { margin: var(--cos-space-3) 0 0; max-width: 60ch; font: 1.0625rem/1.5 var(--cos-font); color: var(--cos-color-text-secondary); }
html body.cos-shell-on .ws2-chip { display: inline-flex; align-items: center; gap: var(--cos-space-2); height: 28px; margin-top: var(--cos-space-5); padding: 0 var(--cos-space-3); border: 1px solid var(--cos-color-border-subtle); border-radius: var(--cos-radius-pill); background: var(--cos-color-bg-surface); font: var(--cos-weight-medium) 0.75rem/1 var(--cos-font); color: var(--cos-color-text-secondary); }
html body.cos-shell-on .ws2-chip svg { width: 14px; height: 14px; stroke: var(--cos-color-brand-primary); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
html body.cos-shell-on .ws2-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cos-space-10) var(--cos-space-12); border-top: 1px solid var(--cos-color-border); padding-top: var(--cos-space-8); }
html body.cos-shell-on .ws2-group h2 { cursor: default; user-select: none; margin: 0 0 var(--cos-space-2); font: var(--cos-weight-semibold) 11px/1.3 var(--cos-font); letter-spacing: .08em; text-transform: uppercase; color: var(--cos-color-text-muted); }
html body.cos-shell-on .ws2-group ul { list-style: none; margin: 0; padding: 0; }
html body.cos-shell-on .ws2-group li { border-top: 1px solid var(--cos-color-border-subtle); }
html body.cos-shell-on .ws2-group li:first-child { border-top: 0; }
html body.cos-shell-on .ws2-group button {
  display: flex; align-items: center; justify-content: space-between; gap: var(--cos-space-4); width: calc(100% + 2 * var(--cos-space-3)); margin: 0 calc(-1 * var(--cos-space-3)); min-height: 68px;
  padding: var(--cos-space-4) var(--cos-space-3); border: 0; border-radius: var(--cos-radius-md); background: transparent; text-align: left; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--cos-duration-fast) var(--cos-ease);
}
html body.cos-shell-on .ws2-group button:hover { background: color-mix(in srgb, var(--cos-color-brand-accent) 7%, var(--cos-color-bg-surface)); }
html body.cos-shell-on .ws2-group button:active { background: color-mix(in srgb, var(--cos-color-brand-accent) 12%, var(--cos-color-bg-surface)); }
html body.cos-shell-on .ws2-group button:focus-visible { outline: 2px solid var(--cos-color-focus); outline-offset: -2px; background: color-mix(in srgb, var(--cos-color-brand-accent) 7%, var(--cos-color-bg-surface)); }
html body.cos-shell-on .ws2-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html body.cos-shell-on .ws2-t { font: var(--cos-weight-semibold) 1rem/1.3 var(--cos-font); letter-spacing: -.01em; color: var(--cos-color-text-primary); transition: color var(--cos-duration-fast) var(--cos-ease); }
html body.cos-shell-on .ws2-d { font: 0.8125rem/1.45 var(--cos-font); color: var(--cos-color-text-muted); }
/* the arrow is always present (muted) so every row reads as a link; it turns teal and nudges right on hover/focus */
html body.cos-shell-on .ws2-group svg { flex: none; width: 18px; height: 18px; stroke: var(--cos-color-text-muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; transition: transform var(--cos-duration-fast) var(--cos-ease), stroke var(--cos-duration-fast) var(--cos-ease), opacity var(--cos-duration-fast) var(--cos-ease); }
html body.cos-shell-on .ws2-group button:hover .ws2-t, html body.cos-shell-on .ws2-group button:focus-visible .ws2-t { color: var(--cos-color-brand-primary); }
html body.cos-shell-on .ws2-group button:hover svg, html body.cos-shell-on .ws2-group button:focus-visible svg { opacity: 1; transform: translateX(3px); stroke: var(--cos-color-brand-primary); }
html body.cos-shell-on .ws2-group button:active svg { transform: translateX(1px); }
@media (hover: none) { html body.cos-shell-on .ws2-group button { min-height: 72px; } }
@media (prefers-reduced-motion: reduce) { html body.cos-shell-on .ws2-group button, html body.cos-shell-on .ws2-group svg, html body.cos-shell-on .ws2-t { transition: none; } html body.cos-shell-on .ws2-group button:hover svg { transform: none; } }
html body.cos-shell-on .ws2-empty { color: var(--cos-color-text-secondary); font-size: 0.9375rem; }
html body.cos-shell-on .cos-crumb-link { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
html body.cos-shell-on .cos-crumb-link:hover { color: var(--cos-color-brand-primary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) { html body.cos-shell-on .ws2-groups { grid-template-columns: minmax(0, 1fr); gap: var(--cos-space-8); } html body.cos-shell-on .ws2-head h1 { font-size: 2rem; } }
html body.cos-shell-on [id^="page-module-"] > .clinic-breadcrumb { display: none !important; }   /* legacy hotfix injects "Home › page" into every page; the shell breadcrumb replaces it */
/* css/typography.css forces `#app .page h1/h2 { … !important }` on every page heading; the workspace headings need their own scale */
html body.cos-shell-on #app .ws2-head h1 { font-family: var(--cos-font) !important; font-size: 2.5rem !important; font-weight: var(--cos-weight-bold) !important; line-height: 1.1 !important; letter-spacing: -.035em !important; color: var(--cos-color-text-primary) !important; }
html body.cos-shell-on #app .ws2-group h2 { font-family: var(--cos-font) !important; font-size: 0.6875rem !important; font-weight: var(--cos-weight-semibold) !important; line-height: 1.3 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--cos-color-text-muted) !important; }
@media (max-width: 899px) { html body.cos-shell-on #app .ws2-head h1 { font-size: 2rem !important; } }
/* keep the hover/focus tint inside the page: rows extend into a 12px gutter provided by the workspace */
html body.cos-shell-on .ws2 { padding-left: var(--cos-space-3); padding-right: var(--cos-space-3); }

/* ── Operations landing (Stage 6 CP1): status lines, Needs attention, Coming up, Across your offices. Editorial rows, no cards. ── */
html body.cos-shell-on .ops2-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cos-space-3); margin-top: var(--cos-space-5); }
html body.cos-shell-on .ops2-chips .ws2-chip { margin-top: 0; }
html body.cos-shell-on .ops2-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--cos-space-3); border-radius: var(--cos-radius-pill); background: var(--cos-color-neutral-bg); color: var(--cos-color-neutral); font: var(--cos-weight-medium) 0.6875rem/1 var(--cos-font); letter-spacing: .04em; text-transform: uppercase; cursor: help; }
html body.cos-shell-on .ops2-upd { font: 0.8125rem/1 var(--cos-font); color: var(--cos-color-text-muted); }
html body.cos-shell-on .ops2-link { display: inline; padding: 0; border: 0; background: none; font: inherit; color: var(--cos-color-brand-primary); cursor: pointer; text-decoration: none; }
html body.cos-shell-on .ops2-link:hover { text-decoration: underline; }
html body.cos-shell-on .ops2-link:focus-visible { outline: 2px solid var(--cos-color-focus); outline-offset: 2px; border-radius: 2px; }
html body.cos-shell-on .ops2-slot { display: block; margin-top: 6px; }
html body.cos-shell-on .ops2-slot:empty { display: none; }
html body.cos-shell-on .ops2-status { display: inline-flex; align-items: center; gap: 8px; font: var(--cos-weight-medium) 0.8125rem/1.4 var(--cos-font); color: var(--cos-color-text-secondary); }
html body.cos-shell-on .ops2-status i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cos-tone-teal); }
html body.cos-shell-on .ops2-status[data-tone="warn"] { color: var(--cos-color-warning); } html body.cos-shell-on .ops2-status[data-tone="warn"] i { background: var(--cos-tone-amber); }
html body.cos-shell-on .ops2-status[data-tone="danger"] { color: var(--cos-color-danger); } html body.cos-shell-on .ops2-status[data-tone="danger"] i { background: var(--cos-color-danger); }
html body.cos-shell-on .ops2-status[data-tone="quiet"] { color: var(--cos-color-text-muted); } html body.cos-shell-on .ops2-status[data-tone="quiet"] i { background: var(--cos-color-border); }
html body.cos-shell-on .ops2-sections { margin-top: var(--cos-space-10); padding-top: var(--cos-space-8); border-top: 1px solid var(--cos-color-border); }
html body.cos-shell-on .ops2-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--cos-space-10) var(--cos-space-12); align-items: start; }
html body.cos-shell-on .ops2-cols[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
html body.cos-shell-on .ops2-sec { min-width: 0; }
html body.cos-shell-on .ops2-offices { margin-top: var(--cos-space-10); }
html body.cos-shell-on #app .ops2-sec h2 { cursor: default; user-select: none; margin: 0 0 var(--cos-space-2) !important; font-family: var(--cos-font) !important; font-size: 0.6875rem !important; font-weight: var(--cos-weight-semibold) !important; line-height: 1.3 !important; letter-spacing: .08em !important; text-transform: uppercase; color: var(--cos-color-text-muted) !important; }
html body.cos-shell-on .ops2-rows { list-style: none; margin: 0; padding: 0; }
html body.cos-shell-on .ops2-rows li { border-top: 1px solid var(--cos-color-border-subtle); } html body.cos-shell-on .ops2-rows li:first-child { border-top: 0; }
html body.cos-shell-on .ops2-row { display: flex; align-items: center; gap: var(--cos-space-3); width: calc(100% + 2 * var(--cos-space-3)); margin: 0 calc(-1 * var(--cos-space-3)); min-height: 60px; padding: var(--cos-space-3); border: 0; border-radius: var(--cos-radius-md); background: transparent; text-align: left; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; transition: background-color var(--cos-duration-fast) var(--cos-ease); }
html body.cos-shell-on .ops2-row:hover { background: color-mix(in srgb, var(--cos-color-brand-accent) 7%, var(--cos-color-bg-surface)); }
html body.cos-shell-on .ops2-row:focus-visible { outline: 2px solid var(--cos-color-focus); outline-offset: -2px; }
html body.cos-shell-on .ops2-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cos-color-border); }
html body.cos-shell-on .ops2-row[data-tone="danger"] .ops2-dot { background: var(--cos-color-danger); } html body.cos-shell-on .ops2-row[data-tone="warn"] .ops2-dot { background: var(--cos-tone-amber); } html body.cos-shell-on .ops2-row[data-tone="neutral"] .ops2-dot { background: var(--cos-tone-teal); }
html body.cos-shell-on .ops2-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
html body.cos-shell-on .ops2-t { font: var(--cos-weight-semibold) 0.9375rem/1.35 var(--cos-font); letter-spacing: -.005em; color: var(--cos-color-text-primary); overflow-wrap: anywhere; }
html body.cos-shell-on .ops2-row:hover .ops2-t, html body.cos-shell-on .ops2-row:focus-visible .ops2-t { color: var(--cos-color-brand-primary); }
html body.cos-shell-on .ops2-d { font: 0.8125rem/1.4 var(--cos-font); color: var(--cos-color-text-muted); overflow-wrap: anywhere; }
html body.cos-shell-on .ops2-r { flex: none; font: 0.8125rem/1.3 var(--cos-font); font-variant-numeric: tabular-nums; color: var(--cos-color-text-secondary); white-space: nowrap; text-align: right; }
html body.cos-shell-on .ops2-row svg { flex: none; width: 16px; height: 16px; stroke: var(--cos-color-text-muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
html body.cos-shell-on .ops2-row:hover svg { opacity: 1; stroke: var(--cos-color-brand-primary); }
html body.cos-shell-on .ops2-msg { margin: 0; padding: var(--cos-space-3) 0; font: 0.9375rem/1.5 var(--cos-font); color: var(--cos-color-text-secondary); }
html body.cos-shell-on .ops2-clear { color: var(--cos-tone-teal-ink); }
html body.cos-shell-on .ops2-foot { margin: var(--cos-space-3) 0 0; padding-top: var(--cos-space-3); border-top: 1px solid var(--cos-color-border-subtle); font: 0.8125rem/1.5 var(--cos-font); color: var(--cos-color-text-muted); }
html body.cos-shell-on .ops2-table { width: 100%; border-collapse: separate; border-spacing: 0; font: 0.875rem/1.4 var(--cos-font); }
html body.cos-shell-on .ops2-table thead th { padding: 0 var(--cos-space-3) var(--cos-space-2) 0; text-align: left; font: var(--cos-weight-semibold) 11px/1.3 var(--cos-font); letter-spacing: .06em; text-transform: uppercase; color: var(--cos-color-text-muted); border-bottom: 1px solid var(--cos-color-border-subtle); }
html body.cos-shell-on .ops2-table tbody th { padding: var(--cos-space-3) var(--cos-space-3) var(--cos-space-3) 0; text-align: left; font: var(--cos-weight-semibold) 0.875rem/1.3 var(--cos-font); color: var(--cos-color-text-primary); border-bottom: 1px solid var(--cos-color-border-subtle); }
html body.cos-shell-on .ops2-table td { padding: var(--cos-space-3) var(--cos-space-3) var(--cos-space-3) 0; border-bottom: 1px solid var(--cos-color-border-subtle); color: var(--cos-color-text-secondary); }
html body.cos-shell-on .ops2-table tbody tr:last-child th, html body.cos-shell-on .ops2-table tbody tr:last-child td { border-bottom: 0; }
html body.cos-shell-on .ops2-table [data-tone="danger"] { color: var(--cos-color-danger); font-weight: var(--cos-weight-semibold); } html body.cos-shell-on .ops2-table [data-tone="warn"] { color: var(--cos-color-warning); font-weight: var(--cos-weight-semibold); }
html body.cos-shell-on .ops2-table [data-tone="ok"] { color: var(--cos-tone-teal-ink); } html body.cos-shell-on .ops2-table [data-tone="quiet"] { color: var(--cos-color-text-muted); }
@media (max-width: 899px) { html body.cos-shell-on .ops2-cols { grid-template-columns: minmax(0, 1fr); gap: var(--cos-space-8); } }
@media (max-width: 599px) {
  html body.cos-shell-on .ops2-r--route { display: none; }
  html body.cos-shell-on .ops2-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html body.cos-shell-on .ops2-table, html body.cos-shell-on .ops2-table tbody, html body.cos-shell-on .ops2-table tr, html body.cos-shell-on .ops2-table th, html body.cos-shell-on .ops2-table td { display: block; }
  html body.cos-shell-on .ops2-table tbody tr { padding: var(--cos-space-3) 0; border-bottom: 1px solid var(--cos-color-border-subtle); } html body.cos-shell-on .ops2-table tbody tr:last-child { border-bottom: 0; }
  html body.cos-shell-on .ops2-table tbody th, html body.cos-shell-on .ops2-table td { padding: 2px 0; border: 0; }
  html body.cos-shell-on .ops2-table td::before { content: attr(data-label); display: inline-block; min-width: 84px; margin-right: var(--cos-space-2); font: var(--cos-weight-semibold) 11px/1.3 var(--cos-font); letter-spacing: .06em; text-transform: uppercase; color: var(--cos-color-text-muted); }
}
@media (prefers-reduced-motion: reduce) { html body.cos-shell-on .ops2-row { transition: none; } }
