:root {
  --bg: #f4f5f7; --surface: #ffffff; --text: #16181d; --muted: #6b7280; --line: #e2e5ea;
  --accent: #4A5D80; --accent-ink: #ffffff; --accent-soft: #E7EBF3; --ok: #1a7f4b; --ok-soft: #e6f4ec; --warn: #b45309; --warn-soft: #fef3c7; --bad: #b91c1c;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 15px; color: var(--text); background: var(--bg); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1 1 auto; }
button, .btn { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 9px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .btn:hover { border-color: #c9ced6; }
button:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #3E4F6D; border-color: #3E4F6D; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { color: var(--bad); }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(74,93,128,.28); border-color: var(--accent); }
label.field { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
label.field > input, label.field > select, label.field > textarea { margin-top: 4px; font-weight: 400; color: var(--text); }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; }
.check input { width: auto; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef0f3; color: var(--muted); }
.pill.live { background: var(--ok-soft); color: var(--ok); }
.pill.draft { background: var(--warn-soft); color: var(--warn); }
.pill.closed { background: #eef0f3; color: var(--muted); }
.error { color: var(--bad); font-weight: 600; }
.notice { padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.bad { background: #fee2e2; color: var(--bad); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: #eef0f3; padding: 1px 5px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* Interim Datatainment branding */
.dt-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.dt-icon { display: block; color: currentColor; }
.dt-word { font-size: 21px; font-weight: 300; letter-spacing: -.01em; line-height: 1; }
.dt-word b { font-weight: 800; }
.dt-suffix { margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.dt-anim .dot1 { animation: dt-dot1 2.4s linear infinite; }
.dt-anim .dot2 { animation: dt-dot2 2.4s linear infinite; }
.dt-anim .dot3 { animation: dt-dot3 2.4s linear infinite; }
@keyframes dt-dot1 { 0%, 24.99% { opacity: 0; } 25%, 100% { opacity: 1; } }
@keyframes dt-dot2 { 0%, 49.99% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes dt-dot3 { 0%, 74.99% { opacity: 0; } 75%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dt-anim .dot1, .dt-anim .dot2, .dt-anim .dot3 { animation: none; } }
