/* The demo account's band (includes/sample-workspace-bar.php): one strip under the top bar, across the content, on every
   screen while the demo is open. The kit's notice (.ui-notice) on its own surface, full width: its icon on the page's left
   edge (the top bar's first control and the page title share it), its actions accent text on the right, the last one's
   words ending on the page's right edge. */
.demo-band { position: relative; z-index: 2; box-sizing: border-box; margin: 0; padding: 0 var(--demo-band-gutter, 24px); background: var(--ui-notice-surface); }
.demo-band > .ui-notice { --ui-notice-surface: transparent; max-width: none; min-height: 44px; padding: 4px 0 4px 32px; border-radius: 0; background: transparent; }
.demo-band > .ui-notice > .ui-notice-icon { left: 0; top: 12px; }
/* The words keep at least 240 px beside the actions, so a tablet wraps the words, never the row (the kit's own basis is 320). */
.demo-band > .ui-notice:has(> .ui-notice-actions) > .ui-notice-copy { flex: 1 1 240px; }
/* Actions on the words' 20 px line, so the band is the kit's 44 px and both read on one line. */
.demo-band .ui-notice-actions { margin-right: -12px; }
.demo-band .ui-notice-actions a { line-height: 20px; }
.demo-band.is-refused .ui-notice-copy > span { color: var(--ui-ink); }
/* The pages' own left edge: 24 px from the sidebar on a desktop and a tablet, 16 px on a phone (Journal keeps 24). */
@media (max-width: 767px) {
  .demo-band { --demo-band-gutter: 16px; }
  body.journal-workspace-native .demo-band { --demo-band-gutter: 24px; }
  .demo-band > .ui-notice { padding-bottom: 8px; }
  /* Under the words on a phone, the first action's words start on the words' edge. */
  .demo-band .ui-notice-actions { margin: 0 0 0 -12px; }
}
/* A visitor's "Make it your journal" (includes/sample-workspace-bar.php): Journal's modal shape, header over a hairline,
   a borderless close, closes on a click outside, as wide as its words. */
.sample-signup { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--app-border-soft, #e7e8e3); border-radius: 16px;
  background: var(--bg-primary, #fff); color: var(--text-primary, #20231f); box-shadow: 0 24px 60px -24px rgba(17, 17, 20, .45);
  font: 400 14px/22px 'TSB Inter', Inter, -apple-system, BlinkMacSystemFont, sans-serif; }
.sample-signup::backdrop { background: rgba(17, 17, 20, .32); }
.sample-signup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--app-border-soft, #e7e8e3); }
.sample-signup-head h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 24px; outline: none; }
.sample-signup-close { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--text-secondary, #696d69); cursor: pointer; }
.sample-signup-close:hover { background: var(--app-surface-control, #f2f2ef); color: var(--text-primary, #20231f); }
.sample-signup-close svg { width: 18px; height: 18px; }
.sample-signup > p { margin: 16px 20px 0; color: var(--text-secondary, #696d69); }
.sample-signup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 20px 0; }
.sample-signup small { display: block; margin: 10px 20px 20px; color: var(--text-secondary, #696d69); font-size: 12px; }
.sample-signup :focus-visible { outline: 2px solid var(--app-accent, #443ab8); outline-offset: 2px; }
/* the title takes focus only so a screen reader starts there (autofocus, tabindex -1): no ring around it */
.sample-signup h2:focus-visible { outline: none; }
/* The notices take the page's own colours (their markup carries a light theme's inline colours). */
/* The sample's notices (texts verbatim, includes/risk-disclosures.php) as quiet small print at the content's edge, in the
   app's own face: the landing footer's page width, its 13 px "Inter" (a heavier local font in the app) and its band
   read as a foreign block here (Igor 5 Nov). */
/* No line of their own: a page's last section already ends on one, and two lines around a footer read as a frame (Igor 18 Nov
   walk: «тут подчеркивание нижнее ошибка?»). */
.sample-disclosures { margin: 24px 0 0; padding: 0 0 32px; border-top: 0; }
.sample-disclosures :is(.tsb-app-simulation-notice, .tsb-risk-disclosure, .tsb-risk-disclosure p, .tsb-risk-disclosure span, .tsb-risk-disclosure a) { font-family: inherit !important; font-size: 12px !important; line-height: 20px !important; font-weight: 400 !important; }
.sample-disclosures .tsb-app-simulation-notice { width: auto; margin: 0 0 8px !important; color: var(--text-secondary, #696d69) !important; }
.sample-disclosures .tsb-sitewide-risk-footer { background: transparent !important; border-top: 0 !important; color: var(--text-secondary, #696d69) !important; }
.sample-disclosures .tsb-risk-disclosure { width: auto !important; max-width: none; margin: 0 !important; padding: 0 !important; }
.sample-disclosures .tsb-risk-disclosure p { margin: 0 0 12px !important; text-wrap: pretty; }
.sample-disclosures .tsb-sitewide-risk-footer span { color: var(--text-primary, #20231f) !important; font-weight: 500 !important; }
.sample-disclosures .tsb-sitewide-risk-footer a { color: var(--app-accent, #443ab8) !important; }
