/* The shared app shell (Volume 3, D.1.5): the parts the three lead
   applications share, drawn the same in each. The applications' own
   windows keep their own sheets; this adds the status at the right of the
   top bar, the live region, the shortcuts list and the inline unlock
   panel's buttons.
   Tokens: --space-*, --color-*, --radius-*, --text-small, --dur-spinner. */
.shell-status { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; font-size: var(--text-small, 0.875rem); }
.shell-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: var(--radius-pill, 999px); font-size: 0.75rem; color: var(--color-text-muted); white-space: nowrap; }
.shell-pill[hidden] { display: none; }
.shell-plan { color: var(--color-text); }
.shell-vault { color: var(--color-text-muted); white-space: nowrap; }
.shell-help { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 4px; color: var(--color-text); text-decoration: none; }
.shell-help:hover { text-decoration: underline; }
.shell-help:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
/* The live region is read, not seen. */
.shell-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Focus is never hidden under a sticky bar (WCAG 2.4.11). */
[data-pro-app] [data-shell="canvas"], [data-pro-app] [data-shell="side"] { scroll-padding-top: 64px; }
.shell-keys { max-width: 30rem; }
.shell-keys__table th { text-align: left; padding-right: 16px; white-space: nowrap; }
.shell-keys__table kbd { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.8125rem; }
/* The inline panel's buttons: Try 7 days free in the accent, 48 px, See
   plans beside it with a 1.5 px edge, Not now a plain text button. */
.os-unlock .os-unlock-acts .btn { min-height: 48px; padding: 0 20px; font-weight: 600; }
.os-unlock .os-unlock-acts .btn--secondary { border-width: 1.5px; }
.os-unlock-trial[aria-disabled="true"] { cursor: progress; }
.os-unlock-foot { margin: var(--space-2, 8px) 0 0 !important; }
.os-unlock-not { min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-text); font: inherit; text-decoration: underline; cursor: pointer; }
.os-unlock-not:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.os-unlock-said:empty { display: none; }
.os-unlock-said { margin-top: var(--space-2, 8px) !important; color: var(--color-text); }
.os-unlock-done { margin: 0; font-weight: 600; }
.shell-spin { display: inline-block; width: 16px; height: 16px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -3px; animation: shell-spin var(--dur-spinner, 800ms) linear infinite; }
@keyframes shell-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .shell-spin { animation-duration: 1600ms; } }
/* Below 1024 px the right panel's unlock is a sheet at the foot of the
   window, over the free version's own bar (theme.css .os-demo-bar, whose
   layer it has to clear), with a handle. */
@media (max-width: 1023px) {
  .os-unlock.is-floating { top: auto; bottom: 0; right: 0; left: 0; width: auto; max-height: 80vh; overflow-y: auto; z-index: 2147483001; border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0; padding-top: 24px; }
  .os-unlock.is-floating::before { content: ""; position: absolute; top: 8px; left: 50%; width: 48px; height: 4px; margin-left: -24px; border-radius: 2px; background: var(--color-border-strong); }
}
/* On a phone the bar has no room: the plan and the folder's state are in
   the application's own menus and Settings. */
@media (max-width: 599px) {
  .shell-status { display: none; }
}
