@import url('../vendor/mofang-ui/style.css');

/* Real resource-library Message; only bind its theme tokens to this application. */
.fx-message-root {
  --fx-font-family: var(--sans);
  --fx-text-caption: var(--font-label);
  --fx-text-xs: var(--font-label);
  --fx-text-sm: var(--font-body);
  --fx-font-size-sm: var(--font-label);
  --fx-color-primary: var(--accent);
  --fx-color-success: var(--ok);
  --fx-color-warning: var(--warn);
  --fx-color-error: var(--bad);
  --fx-text: var(--fg);
  --fx-text-strong: var(--fg);
  --fx-text-secondary: var(--fg-muted);
  --fx-text-muted: var(--fg-muted);
  --fx-bg-elevated: var(--bg-elev);
  --fx-border-soft: var(--border);
  --fx-fill-hover: var(--hover-bg);
  --fx-fill-active: var(--bg-sunken);
}

/* Interaction states use application tokens and never change business outcome. */
.is-busy { cursor: progress; }
.action-progress { width: 12px; height: 12px; flex: none; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: action-spin 700ms linear infinite; }
@keyframes action-spin { to { transform: rotate(360deg); } }
.object-removing { pointer-events: none; background: var(--bg-sunken); }
.table tbody tr.object-removing td { background: var(--bg-sunken); }
.object-updated { background: var(--accent-soft-2); }
.action-dialog { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 24px; overflow-y: auto; border: 1px solid var(--border-strong); border-radius: 2px; background: var(--bg-elev); color: var(--fg); box-shadow: var(--shadow-pop); }
.action-dialog::backdrop { background: rgb(16 18 22 / 35%); }
.action-dialog-form { display: flex; flex-direction: column; gap: 16px; }
.action-dialog-title { font-size: 17px; font-weight: 600; margin: 0; }
.action-dialog-description { color: var(--fg-muted); white-space: pre-line; overflow-wrap: anywhere; margin: 0; font-size: var(--font-body); }
.action-dialog-input { width: 100%; resize: vertical; min-height: 88px; }
.action-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.filter-advanced > summary { cursor: pointer; color: var(--fg-muted); font-size: var(--font-body); }
.filter-advanced > .filter-main { padding-top: 12px; }
.query-pending { color: var(--fg-muted); font-size: var(--font-body); min-height: 18px; }
[aria-busy="true"].result-region { cursor: progress; }
@media (max-width: 650px) { .action-dialog { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .action-progress { animation: none; border-right-color: currentColor; opacity: .65; } }
@media print { .fx-message-root, .action-dialog { display: none !important; } }
