/* In-app dialogs and the notice bar (lane I, 2026-11-13). JS: web/js/modal.js. Tokens only (tokens.css); same look as
   the library / export overlays (app.css .palette-overlay, .library). */

.lotus-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000; /* above every panel, overlay and toast: a question must be answered first */
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 18vh var(--space-4) 0;
  background: var(--color-scrim);
}

.lotus-modal {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg-overlay);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-overlay);
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-size: var(--text-base);
}

.lotus-modal-title {
  margin: 0;
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.lotus-modal-message {
  margin: 0;
  white-space: pre-wrap;
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

.lotus-modal-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font: inherit;
  font-size: var(--text-md);
  padding: var(--space-2) var(--space-3);
}
.lotus-modal-input:focus { outline: none; border-color: var(--color-accent); box-shadow: var(--shadow-ring); }

.lotus-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}
.lotus-modal-actions button { min-width: 80px; }
.lotus-modal button:focus-visible { outline: none; box-shadow: var(--shadow-ring); }

button.primary.lotus-modal-danger {
  background: color-mix(in srgb, var(--color-danger) 28%, transparent);
  color: var(--color-text-primary);
}
button.primary.lotus-modal-danger:hover {
  background: var(--color-danger);
  color: var(--color-accent-fg);
}

/* Non-modal bar at the top of the viewport (the session restore offer): the app stays usable while it shows. */
.lotus-notice-bar {
  position: absolute;
  top: 52px; /* below the shading bar at the top of the viewport, which it used to cover */
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  max-width: calc(100% - 2 * var(--space-4));
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-overlay);
  border: 1px solid var(--color-border-strong);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-overlay);
  color: var(--color-text-primary);
  font-size: var(--text-base);
}
.lotus-notice-text { flex: 1 1 auto; min-width: 0; }
