@layer components {
  .hs-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; margin-bottom: 24px; border: 1px solid var(--amber); border-radius: 8px; background: var(--surface-raised); color: var(--text-primary); font-size: .85rem; }
  .hs-banner a { font-weight: 600; }
  .hs-banner-close { margin-left: auto; min-height: 44px; padding: 8px 12px; background: transparent; border: 1px solid var(--border-subtle); border-radius: 6px; color: inherit; }
  .hs-modal { margin: auto; width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--surface-raised); color: var(--text-primary); box-shadow: var(--shadow); }
  .hs-modal::backdrop { background: rgb(10 25 18 / .65); }
  .hs-modal h2 { font-size: 1.5rem; }
  .hs-modal p { color: var(--text-secondary); overflow-wrap: anywhere; }
  .hs-modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
  .toast-container { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); right: 20px; z-index: 100; display: grid; gap: 8px; width: min(400px, calc(100% - 96px)); pointer-events: none; }
  .toast { padding: 16px 20px; border: 1px solid var(--border-subtle); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--surface-raised); color: var(--text-primary); box-shadow: var(--shadow); font-size: .9rem; overflow-wrap: anywhere; pointer-events: auto; transition: opacity .3s; }
  .toast.success { border-left-color: var(--status-success); }
  .toast.error { border-left-color: var(--status-error); }
  .toast.warning { border-left-color: var(--status-warning); }
  .toast.leaving { opacity: 0; }
  .session-timeout-toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); right: 20px; z-index: 110; width: min(420px, calc(100% - 96px)); padding: 18px; border: 1px solid var(--amber); border-radius: 12px; background: var(--surface-raised); color: var(--text-primary); box-shadow: var(--shadow); font-size: .85rem; opacity: 0; transition: opacity .3s; }
  .session-timeout-toast.visible { opacity: 1; }
  @media print { .hs-banner, .toast-container, .session-timeout-toast { display: none; } }
}
