/* Shared by index, music, video and image. Tokens, accessibility basics, status colours.
   --brand (#f36f21, vietnamobile.ai) is the fill/border orange; small orange text uses --brand-ink (>= 4.5:1 on white). */
:root {
  --brand: #f36f21; --brand-ink: #c2410c; --bg: #f0f1f2; --ink: #232326; --muted: #6b6b70; --border: #e3e4e6;
  --err: #b7392c; --ok: #15803d;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: var(--brand-ink); }
[hidden] { display: none !important; }

/* Keyboard focus: visible on everything interactive, never on mouse click. */
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.btn-primary:focus-visible, .go-chat:focus-visible { outline-color: var(--ink); }

/* Touch targets >= 44px on phones. */
button, select, input:not([type=checkbox]):not([type=radio]):not([type=range]) { min-height: 44px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand-ink); flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #dc5f12; }

.msg.error, .pkg-msg.error, .job-err { color: var(--err); }
.msg.ok, .pkg-msg.ok { color: var(--ok); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Small print stays readable: nothing under 12px, secondary text 13px. */
.hint, .count, .job-meta, .note, .gate-note, .status-updated, .history-row, .pkg-info span, .pkg-msg { font-size: 13px; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
