/* Verged Application Substrate: the frame rules every system takes over
   unchanged. Built on Verged Design System - Apps (ds/verged-apps).

   Every shared component and frame part (status widget, access card,
   refusal, unnamed failure, secret shown once, empty state, table cards,
   loading, link as button, page header, account menu, sidebar brand) is in
   the design system's app.css since 2026-11-07 (SDL-0164). This file holds
   only the content pane of a route, the standalone sidebar rule, and the
   design-side notes. */

/* The sidebar shown on its own (its frame-part board, 280 px wide) is not
   inside an .app-shell. At that width the design system's phone rule would
   move it off screen as a closed drawer; outside a shell it stays in place. */
.app-sidebar:not(.app-shell .app-sidebar) { position: static; transform: none; width: 100%; height: auto; min-height: 100vh; box-shadow: none; z-index: auto; }

/* ------------------------------------------------------------
   Content pane of a route
   ------------------------------------------------------------ */
.sub-content { display: flex; flex-direction: column; gap: 24px; padding: 8px 32px 48px; }
.sub-panel { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--r-lg); }
.sub-panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 20px 24px 16px; border-bottom: 1px solid var(--app-border); }
.sub-panel-head h2 { font-size: var(--app-fs-lg); }
.sub-panel-sub { font-size: var(--app-fs-sm); line-height: 1.55; color: var(--app-text-muted); margin-top: 4px; max-width: 78ch; }
.sub-pad { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.sub-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.sub-form .field { flex: 1 1 220px; min-width: 0; }
.sub-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.sub-mono { font-family: var(--font-code); font-size: 13px; overflow-wrap: anywhere; }
.sub-kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 24px; margin: 0; font-size: var(--app-fs-body); }
.sub-kv dt { color: var(--app-text-muted); }
.sub-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Design-side only: a note where a page would need an operation that does
   not exist, and the labels the 'markers' Tweak shows. */
.sub-needs { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px dashed var(--app-border-strong); border-radius: var(--r-sm); font-size: var(--app-fs-sm); line-height: 1.5; color: var(--app-text-2); }
.sub-needs b { color: var(--app-text); font-weight: 600; }
.sub-candidate { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); border: 1px dashed var(--app-border-strong); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--app-text-muted); white-space: nowrap; }

@media (max-width: 767px) {
  .sub-content { padding: 8px 16px 32px; gap: 16px; }
  .sub-panel-head { padding: 16px; }
  .sub-pad { padding: 16px; }
  .sub-kv { grid-template-columns: 1fr; gap: 2px 0; }
  .sub-kv dd { margin-bottom: 10px; }
  .sub-acts { justify-content: flex-start; }
}
