/* Shared screen palette and feedback for the three local application entries. */
:root {
  --ink-deep: #152e45;
  --ink-soft: #506679;
  --action: #165fa5;
  --mist: #f1f5f8;
  --rule: #cddbe4;
  --tint: #e8f2fa;
  --surface-shadow: 0 3px 12px rgb(24 52 75 / 4%);
  --ui-font: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --bg: var(--mist);
  --text: var(--ink-deep);
  --blue: var(--action);
  --muted: var(--ink-soft);
  --line: var(--rule);
  accent-color: var(--action);
}
body { font-family: var(--ui-font); -webkit-font-smoothing: antialiased; }
.site-header { background: #fbfdff; border-bottom-color: var(--rule); backdrop-filter: none; }
.header-inner { gap: clamp(10px, 2vw, 28px); }
.header-inner .wordmark { font-weight: 730; color: var(--ink-deep); margin-right: auto; }
.header-inner .help-button { color: var(--ink-soft); white-space: nowrap; }
.header-inner nav a.active { color: var(--action); border-color: var(--action); font-weight: 650; }
.header-inner nav { margin-right: auto; }
.primary { background: var(--action); }
.primary:hover { background: #104c88; }
:is(button, a, summary, input, select, textarea):focus-visible { outline: 3px solid #3481bc; outline-offset: 3px; }
:is(button, .primary, .secondary, .text-link, .start-detection) {
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}
:is(button:not(:disabled), .primary, .secondary):active { translate: 0 1px; }
dialog { border-color: var(--rule); box-shadow: 0 20px 64px rgb(12 36 58 / 22%); }
dialog::backdrop { background: rgb(12 31 50 / 40%); backdrop-filter: none; }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: qia-dialog-in 150ms ease-out; }
  details[open] > :is(.prep-row, .form-stack, .sheet-content) { animation: qia-detail-in 135ms ease-out; }
  @keyframes qia-dialog-in { from { opacity: .35; translate: 0 5px; } }
  @keyframes qia-detail-in { from { opacity: .45; } }
}
@media (max-width: 680px) {
  .header-inner { padding-inline: 12px; gap: 9px; }
  .header-inner .help-button { font-size: 12px; }
  .header-inner .wordmark { gap: 5px; }
  .bottom-nav { background: #fbfdff; border-color: var(--rule); }
  .bottom-nav a.active { color: var(--action); background: var(--tint); border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  :is(button, a):active { translate: none; }
}
