/* Nest system pieces: generated from packages/nest/css/pieces.css by npm run tokens (packages/nest/scripts/components-css.ts). Do not edit here.
   Link a brand stylesheet first (raven.css), then this file, and write the markup the React pieces render. */
:focus-visible { outline: var(--ring-w) solid var(--focus); outline-offset: var(--s-0-5); border-radius: var(--radius-xs); }
.skip-link { position: fixed; left: var(--s-3); top: var(--s-3); z-index: var(--z-toast); padding: var(--s-2) var(--s-4); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: var(--fw-semibold); transform: translateY(-200%); transition: transform var(--dur-fast) var(--ease); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: calc(var(--s-0-5) * -1); overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3 { margin: 0; letter-spacing: var(--tracking-tight); font-weight: var(--fw-semibold); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--muted); }
::selection { background: var(--accent-outline); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: 0 0 var(--s-8); }
.stat { position: relative; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-radius: var(--radius-lg); border: var(--border-w) solid var(--border); background: var(--surface); box-shadow: var(--shadow-card); transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease); overflow: hidden; isolation: isolate; }
.stat:hover { border-color: var(--border-strong); background: var(--surface); }
.stat.on { border-color: var(--border-hover); }
.stat.on::after { display: none; }
.stat-label, .stat-value, .stat-note { position: relative; z-index: var(--z-raised); }
.stat-label { display: flex; align-items: center; gap: var(--s-1-5); }
.stat-label svg { color: var(--muted); }
.stat-value { font-size: var(--fs-2xl); font-weight: var(--fw-semibold); line-height: var(--lh-none); letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }
.stat.alert .stat-value { color: var(--danger); }
.stat-note { font-size: var(--fs-sm); color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: var(--control-h); padding: 0 var(--s-4); border-radius: var(--radius); border: var(--border-w) solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer; white-space: nowrap; font-size: var(--fs-sm); font-weight: var(--fw-medium); transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-instant); }
.btn:hover { background: var(--surface-3); border-color: var(--border-hover); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: transparent; color: var(--on-primary); font-weight: var(--fw-semibold); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.sm { height: var(--control-h-sm); padding: 0 var(--s-3); font-size: var(--fs-sm); }
.btn.icon { width: var(--control-h); padding: 0; }
.btn.sm.icon { width: var(--control-h-sm); }
.btn.lg { height: var(--control-h-lg); padding: 0 var(--s-5); font-size: var(--fs-md); }
.btn.lg.icon { width: var(--control-h-lg); padding: 0; }
.btn:disabled { opacity: var(--opacity-dim); cursor: progress; }
.btn.danger { color: var(--danger); border-color: var(--danger-edge); background: transparent; }
.btn.danger:hover { background: var(--danger-wash); border-color: var(--danger-outline); }
.btn.danger.solid { background: var(--danger); border-color: transparent; color: var(--on-primary); }
.btn.danger.solid:hover { opacity: var(--opacity-muted); }
.btn.danger.ghost { border-color: transparent; background: transparent; color: var(--danger); }
.btn.danger.ghost:hover { border-color: transparent; background: var(--danger-wash); color: var(--danger); }
.btn.danger.solid:disabled { opacity: var(--opacity-dim); cursor: not-allowed; }
.segmented { display: inline-flex; padding: var(--s-1); gap: var(--s-0-5); border-radius: var(--radius); background: var(--surface); border: var(--border-w) solid var(--border); }
.segmented button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1-5); height: var(--control-h-xs); padding: 0 var(--s-3); border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--muted); cursor: pointer; font-size: var(--fs-sm); font-weight: var(--fw-medium); white-space: nowrap; transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.segmented button:hover { color: var(--text); }
.segmented button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 0 0 var(--border-w) var(--border-strong) inset; }
.segmented button.on .ui-count { background: var(--surface); }
.ui-actions-panel { padding: var(--s-1); background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-float); }
.ui-actions-item { display: flex; align-items: center; gap: var(--s-2); min-height: var(--control-h-sm); padding: 0 var(--s-3); border-radius: var(--radius-xs); background: none; color: var(--text-2); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-regular); white-space: nowrap; cursor: pointer; }
.ui-actions-item:hover, .ui-actions-item:focus-visible { background: var(--surface-3); color: var(--text); }
.ui-actions-item:focus-visible { outline: var(--ring-w) solid var(--focus); outline-offset: calc(var(--s-0-5) * -1); }
.ui-actions { position: relative; width: fit-content; }
.ui-actions-panel { position: absolute; right: 0; top: calc(100% + var(--s-1)); z-index: var(--z-menu); width: max-content; min-width: 220px; display: flex; flex-direction: column; translate: var(--x, 0) 0; }
.ui-actions-panel.wide { width: var(--notification-panel-w); }
.ui-actions-item { --dot: var(--s-2); width: 100%; border: 0; text-align: left; text-decoration: none; }
.ui-actions-item svg { flex: none; color: var(--muted); }
.ui-actions-text { display: flex; align-items: center; gap: var(--s-2); flex: 1; min-width: 0; }
.ui-actions-text .ui-count { margin-left: auto; }
.ui-actions-item .ui-actions-check { color: var(--accent-text); }
.ui-actions-item[aria-current="page"], .ui-actions-item[aria-pressed="true"] { color: var(--text); }
.ui-actions-item:disabled { opacity: var(--opacity-dim); cursor: progress; }
.ui-actions-item:disabled:hover { background: transparent; color: var(--text-2); }
.ui-actions-item.danger, .ui-actions-item.danger svg { color: var(--danger); }
.ui-actions-item.danger:hover, .ui-actions-item.danger:focus-visible { background: var(--danger-wash); color: var(--danger); }
.ui-actions-panel.wide .ui-actions-item { gap: var(--s-3); padding-block: var(--s-2); white-space: normal; }
.ui-actions-sep { height: var(--border-w); margin: var(--s-1) var(--s-1-5); background: var(--border); }
.ui-actions > .btn.icon { color: var(--muted); }
.ui-actions > .btn.icon:hover, .ui-actions > .btn.icon[aria-expanded="true"] { color: var(--text); background: var(--surface-3); }
.ui-link { color: var(--accent-text); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: var(--s-1); transition: color var(--dur-fast) var(--ease); }
.ui-link svg { flex: none; }
.ui-link-quiet { color: var(--muted); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.ui-link-quiet:hover { color: var(--text); }
.ui-link-plain { color: inherit; text-decoration: none; }
.ui-link-lead { display: inline-flex; align-items: center; gap: var(--s-1-5); }
.ui-link-trail { display: inline-flex; align-items: center; gap: var(--s-1); }
.icon-sm { width: var(--icon-sm); height: var(--icon-sm); }
.icon-md { width: var(--icon-md); height: var(--icon-md); }
.icon-lg { width: var(--icon-lg); height: var(--icon-lg); }
.icon-xl { width: var(--icon-xl); height: var(--icon-xl); }
.panel { padding: var(--s-5); margin-bottom: var(--s-4); border-radius: var(--radius-lg); border: var(--border-w) solid var(--border); background: var(--surface); box-shadow: var(--shadow-card); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2-5); margin-bottom: var(--s-4); }
.panel-head h2 { font-size: var(--fs-md); font-weight: var(--fw-semibold); display: flex; align-items: center; gap: var(--s-2); letter-spacing: var(--tracking-tight); }
.panel-head h2 svg { color: var(--muted); }
.modal-backdrop { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--s-4); background: var(--scrim); backdrop-filter: blur(4px); }
.modal { width: min(480px, 100%); padding: var(--s-6); border-radius: var(--radius-lg); background: var(--surface); border: var(--border-w) solid var(--border-strong); box-shadow: var(--shadow-float), 0 0 0 var(--border-w) var(--border-strong); display: flex; flex-direction: column; gap: var(--s-3); }
.modal { max-height: var(--dialog-h-wide); overflow-y: auto; }
.modal.wide { width: min(var(--dialog-w-wide), 100%); height: var(--dialog-h-wide); }
.modal h3 { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-lg); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.modal-head .btn.icon { flex: none; margin: calc(var(--s-1) * -1) calc(var(--s-1) * -1) 0 0; }
.modal h3 svg { color: var(--danger); }
.modal p { margin: 0; color: var(--text-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-1); }
@media (max-width: 640px) {
  .segmented { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .segmented button { flex: 1; }
  .stats { gap: var(--s-2); margin-bottom: var(--s-10); }
  .stat-label { font-size: var(--fs-2xs); }
  .stat-label svg { display: none; }
  .stat-value { font-size: var(--fs-xl); }
  .stat { padding: var(--s-4) var(--s-4) var(--s-4); gap: var(--s-2); }
  .stat.on::after { top: var(--s-4); right: var(--s-4); }
  .stat-note { display: none; }
}
.tag { display: inline-flex; align-items: center; gap: var(--s-1); height: 22px; padding: 0 var(--s-2); border-radius: var(--radius-xs); white-space: nowrap; border: var(--border-w) solid var(--border-strong); color: var(--text-2); font-size: var(--fs-2xs); font-weight: var(--fw-medium); }
.tag svg { color: var(--muted); }
.tag-status { color: var(--c); background: var(--c-wash, transparent); border-color: var(--c-edge, var(--border-strong)); }
.tag-status svg { color: var(--c); }
.ui-count { display: inline-grid; place-items: center; min-width: var(--icon-lg); padding: var(--s-0-5) var(--s-1-5); border-radius: var(--radius-xs); vertical-align: calc(var(--s-0-5) * 0.75); background: var(--surface-3); color: inherit; font-size: var(--fs-2xs); font-weight: var(--fw-semibold); line-height: var(--lh-none); font-variant-numeric: tabular-nums; white-space: nowrap; }
.panel-head h2 .muted { font-weight: var(--fw-medium); }
.panel-text { margin: 0 0 var(--s-3); font-size: var(--fs-sm); color: var(--text-2); line-height: var(--lh-relaxed); }
.panel-text b { color: var(--text); font-weight: var(--fw-semibold); }
.pill { display: inline-flex; align-items: center; gap: var(--s-1-5); height: 24px; padding: 0 var(--s-2); border-radius: var(--radius-pill); white-space: nowrap; border: var(--border-w) solid var(--border-strong); background: var(--surface-3); color: var(--text-2); font-size: var(--fs-sm); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.pill svg { color: var(--muted); }
.code { padding: var(--border-w) var(--s-1-5); border-radius: var(--radius-xs); background: var(--surface-2); color: var(--text); font-family: var(--font-mono); font-size: var(--fs-md); letter-spacing: normal; }
.code.code-sm { color: var(--text-2); font-size: var(--fs-2xs); }
.btn[data-nav-pending] { background: var(--surface-3); color: var(--text); }
.btn.primary[data-nav-pending] { background: var(--primary-hover); color: var(--on-primary); }
.segmented a { display: inline-flex; align-items: center; height: var(--control-h-xs); padding: 0 var(--s-3); border-radius: var(--radius-xs); color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-medium); white-space: nowrap; transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.segmented a:hover { color: var(--text); }
.segmented a.on { background: var(--surface-3); color: var(--text); box-shadow: 0 0 0 var(--border-w) var(--border-strong) inset; }
.stats.kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: var(--s-6); }
