:root {
  /* NPO FunX: paars #7b38b4, donkerpaars #291436, licht paars #b79fcf,
     grijs #e6e6e6, rood #d20f1d, geel #ffd176. Dark UI for video work. */
  --funx: #7b38b4;
  --funx-hi: #8f4ccb;
  --funx-light: #b79fcf;
  --funx-dark: #291436;
  --funx-red: #d20f1d;
  --funx-yellow: #ffd176;
  --bg: #0f0c13;
  --bg-2: #17121d;
  --bg-3: #221a2b;
  --line: #2e2538;
  --line-2: #3f3350;
  --fg: #f3eff7;
  --fg-dim: #a99db8;
  --fg-mute: #706583;
  --accent: var(--funx-light);
  --accent-dim: var(--funx);
  --good: #3fb950;
  --warn: #d29922;
  --bad: #f85149;
  --in: #3fb950;
  --out: #f0883e;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "NPO Nova", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

/*
 * The hidden attribute must beat any display rule set later. Author styles
 * like `.gapmsg { display: flex }` otherwise override the browser's
 * `[hidden] { display: none }` and the element stays on screen forever.
 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }

header.top {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px;
}
header.top h1 { font-size: 19px; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
header.top .sub { color: var(--fg-mute); font-size: 13px; }
header.top .spacer { flex: 1; }

h2 { font-size: 15px; font-weight: 600; margin: 28px 0 12px; }
h2:first-child { margin-top: 0; }

.card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px; margin-bottom: 14px;
}

.muted { color: var(--fg-dim); }
.mono  { font-family: var(--mono); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }

/* ---- buttons ---- */
button, .btn {
  font: inherit; font-size: 13px; font-weight: 500;
  background: var(--bg-3); color: var(--fg);
  border: 1px solid var(--line-2); border-radius: 7px;
  padding: 7px 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .12s, border-color .12s;
}
button:hover:not(:disabled), .btn:hover { background: #2c2238; text-decoration: none; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary, .btn.primary { background: var(--funx); border-color: var(--funx-hi); color: #fff; }
button.primary:hover:not(:disabled), .btn.primary:hover { background: var(--funx-hi); }
button.big, .btn.big { padding: 11px 20px; font-size: 15px; font-weight: 700; justify-content: center; }
button.danger { border-color: #6b2b28; color: #ffb4ae; }
button.danger:hover:not(:disabled) { background: #3a1f1e; }
button.sm { padding: 4px 9px; font-size: 12px; }

select, textarea, input[type=text], input[type=number], input[type=password], input[type=email] {
  font: inherit; font-size: 13px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 10px;
}
input:focus, select:focus { outline: 2px solid var(--funx); outline-offset: -1px; }

/* ---- tables ---- */
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th {
  text-align: left; font-weight: 600; color: var(--fg-dim);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 10px; border-bottom: 1px solid var(--line);
}
table.grid td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr.dim td { color: var(--fg-mute); }

/* ---- folder list ---- */
.folder {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg-2); margin-bottom: 9px;
}
.folder.sel { border-color: var(--accent); background: #221836; }
.folder .name { font-weight: 600; }
.folder .meta { color: var(--fg-dim); font-size: 12.5px; }
.folder .grow { flex: 1; min-width: 0; }
.folder .acts { display: flex; gap: 8px; }

/* ---- progress ---- */
.bar { height: 6px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.bar.good > i { background: var(--good); }
.bar.bad  > i { background: var(--bad); }

.pill {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 20px; background: var(--bg-3); color: var(--fg-dim);
  text-transform: uppercase; letter-spacing: .03em;
}
.pill.ok      { background: #10301a; color: #6cd67f; }
.pill.run     { background: #2a1c3a; color: #d3bdf0; }
.pill.err     { background: #3a1a18; color: #ff9d95; }
.pill.wait    { background: #33280c; color: #e3b341; }

.notice {
  border-left: 3px solid var(--warn); background: #241d0c;
  padding: 10px 14px; border-radius: 0 8px 8px 0; margin-bottom: 12px; font-size: 13px;
}
.notice.bad  { border-color: var(--bad); background: #2a1512; }
.notice.good { border-color: var(--good); background: #0f2416; }
.notice pre {
  margin: 8px 0 0; padding: 9px 11px; background: #0a0d11;
  border-radius: 6px; font-family: var(--mono); font-size: 12px;
  overflow-x: auto; white-space: pre; color: #cbd5e1;
}

/* ---- admin: label/value lists and the settings form ---- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 9px 22px; align-items: baseline; font-size: 13px; }
.kv > span { color: var(--fg-dim); }
.kv > b { font-weight: 500; }

.set-grid { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 14px 22px; align-items: start; }
.set-grid > label { font-weight: 600; font-size: 13px; padding-top: 6px; }
.set-grid input, .set-grid select, .set-grid textarea { width: 100%; max-width: 420px; margin-bottom: 3px; }
.set-grid input.short { width: 7em; }
.set-grid input[type=checkbox] { width: auto; margin: 0; }
.set-grid .check { display: flex; gap: 8px; align-items: center; }
.set-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; }

@media (max-width: 640px) {
  .set-grid, .kv { grid-template-columns: 1fr; gap: 4px; }
  .set-grid > label { padding-top: 10px; }
}

/* ---- brand, top bar, user menu ---- */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; color: var(--fg); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-x {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 7px; background: var(--funx); color: #fff; font-weight: 900; font-size: 18px; line-height: 1;
}
.topbar {
  display: flex; align-items: center; gap: 22px; padding: 10px 20px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { color: var(--fg-dim); padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: 13.5px; }
.topbar nav a:hover { color: var(--fg); background: var(--bg-3); text-decoration: none; }
.topbar nav a.on { color: #fff; background: var(--funx); }
.grow { flex: 1; }

.usermenu { position: relative; }
.usermenu summary {
  list-style: none; cursor: pointer; padding: 6px 12px; border-radius: 7px;
  color: var(--fg-dim); font-size: 13px; white-space: nowrap;
}
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary b { color: var(--fg); }
.usermenu summary:hover, .usermenu[open] summary { background: var(--bg-3); }
.usermenu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px;
  display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.usermenu-pop .muted { padding: 2px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }
.usermenu-pop a { color: var(--fg); padding: 7px 8px; border-radius: 6px; font-size: 13px; }
.usermenu-pop a:hover { background: var(--bg-3); text-decoration: none; }

.wrap.narrow { max-width: 480px; }
.pagehead { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.pagehead h2 { margin: 0; }
form.stack { display: flex; flex-direction: column; gap: 14px; }
form.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
h4 { margin: 20px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-dim); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #33253d; color: #d9c4f0; vertical-align: 1px; }

/* ---- login ---- */
body.login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(1200px 600px at 20% 0%, #3a1c55 0%, var(--funx-dark) 45%, #120a18 100%);
}
.login-card {
  width: min(380px, 100%); background: rgba(23, 18, 29, .92); border: 1px solid var(--line-2);
  border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.login-card .brand { font-size: 20px; margin-bottom: 6px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg-dim); }
.login-card input { padding: 11px 12px; font-size: 15px; }
.login-err { color: #ffb4ae; background: #3a1418; border-radius: 8px; padding: 9px 12px; font-size: 13px; }

/* ---- studio choice ---- */
body.choose { min-height: 100vh; background: linear-gradient(180deg, var(--bg) 0%, #1a1022 100%); }
.studios { max-width: 1500px; margin: 0 auto; padding: 34px 24px 60px; }
.studios h1 { font-size: clamp(20px, 2.4vw, 30px); margin: 0 0 26px; font-weight: 800; letter-spacing: -.01em; }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 26px; }
.studio {
  display: block; border-radius: 16px; overflow: hidden; background: var(--bg-2);
  border: 2px solid var(--line); transition: transform .12s, border-color .12s, box-shadow .12s; color: var(--fg);
}
.studio:hover { text-decoration: none; border-color: var(--funx); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(123,56,180,.25); }
.studio-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.studio-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.studio-pic img.ok { opacity: 1; }
.studio-state {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: 5px; font-weight: 800; font-size: 13px; letter-spacing: .06em;
}
.studio-state.on { background: var(--funx-red); color: #fff; }
.studio-state.off { background: rgba(0,0,0,.7); color: var(--warn); letter-spacing: 0; }
.studio-state .livedot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.studio-name { display: block; padding: 18px 22px; font-size: clamp(24px, 3vw, 38px); font-weight: 900; letter-spacing: -.02em; }
.studio:hover .studio-name { color: #fff; background: var(--funx); }
.studio-keep { display: block; padding: 0 22px 16px; margin-top: -8px; color: var(--fg-dim); }
.studio-keep b { color: var(--fg); }

/* ---- exports ---- */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.exp-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; text-align: left;
  border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line);
}
.exp-card:hover:not(:disabled) { border-color: var(--funx); background: var(--bg-2); }
.exp-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.exp-pic { overflow: hidden; }
.exp-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.exp-len { position: absolute; right: 7px; bottom: 7px; background: rgba(0,0,0,.75); color: #fff; padding: 1px 6px; border-radius: 4px; font-size: 11.5px; }
.exp-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.exp-meta .who { color: var(--funx-light); font-weight: 600; }

.xdlg { border: 0; padding: 0; background: var(--bg-2); color: var(--fg); border-radius: 14px; width: min(1200px, 96vw); max-height: 92vh; }
.xdlg::backdrop { background: rgba(8, 5, 12, .78); }
.xdlg-in { display: flex; max-height: 92vh; }
.xdlg-media { flex: 1; min-width: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.xdlg-media video { max-width: 100%; max-height: 92vh; display: block; }
.xdlg-side { width: 380px; flex: none; padding: 18px 20px; overflow-y: auto; }
.xdlg-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.xdlg-head b { flex: 1; word-break: break-all; font-size: 13px; }
.xdl { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.xdl .btn { justify-content: center; }
.xdlg .kv { grid-template-columns: max-content 1fr; }
@media (max-width: 860px) { .xdlg-in { flex-direction: column; } .xdlg-side { width: auto; } }

/* ---- dialogs (admin) ---- */
.dlg { border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); color: var(--fg); padding: 0; width: min(480px, 92vw); }
.dlg::backdrop { background: rgba(8, 5, 12, .7); }
.dlg form { padding: 20px 22px 16px; }
.dlg h3 { margin: 0 0 4px; font-size: 16px; }
.dlg menu { display: flex; justify-content: flex-end; gap: 9px; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.settings h4:first-child { margin-top: 0; }
.settings h4 { margin-top: 26px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }

/* ---- badges, tabs, tags, sending ---- */
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
         border-radius: 9px; background: var(--funx-red); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; vertical-align: 1px; }
.seg { display: flex; gap: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 13px; font-weight: 600; }
.seg button.on { background: var(--funx); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 12px; font-size: 12px;
        background: #2b1f3a; color: #e3d4f5; border: 1px solid #45345c; }
.chip button { border: 0; background: none; padding: 0 0 0 2px; color: inherit; opacity: .7; font-size: 12px; }
.chip button:hover { opacity: 1; background: none; }
.tagin { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 6px; border: 1px solid var(--line-2);
         border-radius: 8px; background: var(--bg); }
.tagin input { border: 0; background: none; flex: 1; min-width: 120px; padding: 3px 4px; outline: none; }
.exp-card .chips { margin-top: 4px; }
.exp-new { position: absolute; left: 8px; top: 8px; background: var(--funx-red); color: #fff; font-size: 11px; font-weight: 800;
           padding: 2px 8px; border-radius: 4px; letter-spacing: .03em; }
.exp-from { color: var(--funx-yellow); font-weight: 600; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; max-height: 190px; overflow-y: auto;
          padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); }
.people label { display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 3px 0; cursor: pointer; }
.people input { accent-color: var(--funx); }
.sendbox textarea { width: 100%; margin-top: 8px; min-height: 60px; resize: vertical; font: inherit; font-size: 13px;
                    background: var(--bg); color: var(--fg); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; }
.msg-in { background: #2a2010; border-left: 3px solid var(--funx-yellow); border-radius: 0 8px 8px 0; padding: 9px 12px; margin-bottom: 14px; font-size: 13px; }

/* ---- external servers ---- */
.tg-grid { display: grid; grid-template-columns: 1fr 110px; gap: 12px; }
.tg-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
.dlg form.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
.dlg form.stack label.dlg-check { flex-direction: row; align-items: center; gap: 8px; }
.dlg form.stack input[type=text], .dlg form.stack input[type=number], .dlg form.stack input[type=password], .dlg form.stack select { width: 100%; }
.copies { display: flex; flex-direction: column; gap: 6px; }
.copy-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.copy-row .grow { flex: 1; min-width: 0; }
.publink-box:empty { display: none; }
.publink-box { display: flex; flex-direction: column; gap: 10px; }
.publink-box .publink-go { width: 100%; justify-content: center; align-items: center; gap: 10px; font-weight: 700;
  padding: 11px 20px; font-size: 15px; background: var(--funx); border-color: var(--funx-hi); color: #fff; }
.publink-box .publink-go:hover { background: var(--funx-hi); }
.publink-box .publink-go svg { flex: none; }
.vmix-box:empty { display: none; }
.vmix-box { display: flex; flex-direction: column; gap: 8px; }
.vmix-row { display: flex; gap: 8px; align-items: stretch; }
.vmix-row .vmix-go { flex: 1; justify-content: center; font-weight: 800; letter-spacing: .03em; padding: 11px 20px; font-size: 15px;
  background: #2f6fe0; border-color: #5a8ff0; color: #fff; }
.vmix-row .vmix-go:hover { background: #3f7ff0; }
.vmix-row .vmix-go.dump { background: #ff8c1a; border-color: #ffab5c; color: #2a1400; }
.vmix-row .vmix-go.dump:hover { background: #ff9d3d; }
.vmix-row .vmix-studio { flex: none; width: auto; }
.vmix-row .vmix-name { flex: 1; min-width: 0; }
.vmix-ok { font-weight: 700; color: #7fd6a0; font-size: 14px; }
.vmix-dump { font-size: 12px; font-weight: 800; color: #ff8c1a; letter-spacing: .04em; }
.vmix-bar i { background: #2f6fe0 !important; }
.publink-prog { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.publink-head { font-weight: 600; font-size: 13px; }
.publink-wait { font-size: 13px; padding: 6px 0; }
/* public link: QR (always dark on white, so phones read it) + URL with copy button */
.publink { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.publink-qr { background: #fff; border-radius: 8px; padding: 6px; width: 132px; height: 132px; flex: none; }
.publink-qr svg { display: block; width: 100%; height: 100%; }
.publink-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.publink-row { display: flex; gap: 8px; }
.publink-url { flex: 1; min-width: 0; font-size: 12px; background: var(--bg); color: var(--fg); border: 1px solid var(--line-2);
               border-radius: 7px; padding: 6px 8px; }

/* ---- beheer: statistics (video card, disk, exports) ---- */
  .ranges { display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
  .ranges button { border: 0; background: transparent; padding: 5px 12px; }
  .ranges button.on { background: var(--funx); color: #fff; }
  .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
  .tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
  .tile span { display: block; color: var(--fg-dim); font-size: 12px; }
  .tile b { font-size: 24px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
  .tile small { color: var(--fg-mute); font-size: 12px; margin-left: 3px; }
  .charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 12px; }
  .chart { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 8px; position: relative; }
  .chart h3 { margin: 0; font-size: 13.5px; font-weight: 700; }
  .chart .sub { color: var(--fg-mute); font-size: 11.5px; margin-bottom: 6px; }
  .chart canvas { display: block; width: 100%; height: 150px; cursor: crosshair; }
  .tip { position: fixed; z-index: 30; pointer-events: none; background: #0b0910; border: 1px solid var(--line-2);
         border-radius: 7px; padding: 6px 9px; font-size: 12px; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
  .tip b { font-variant-numeric: tabular-nums; }
  /* disk: the recording disk as one bar, FunX hues (validated for this dark surface) */
  :root { --c-rt: #8f4ccb; --c-ams: #d9655e; --c-exp: #2f9e8a; --c-other: #6f6583; --c-free: #2e2538; }
  .diskbar { display: flex; height: 34px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--bg-2); margin: 6px 0 10px; }
  .diskbar > i { display: flex; align-items: center; padding: 0 8px; min-width: 0; font-style: normal; font-size: 12px;
               font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }
  .diskbar > i.free { color: var(--fg-dim); font-weight: 600; }
  .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--fg-dim); }
  .legend span { display: inline-flex; align-items: center; gap: 7px; }
  .legend b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
  .legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
  .disk-row { display: grid; grid-template-columns: 160px 1fr 190px; gap: 10px; align-items: center; font-size: 12.5px; padding: 5px 0; }
  .disk-row .bar { height: 8px; }
  .disk-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 12px; font-size: 13px; }

.adm-tabs { margin: 0 0 22px; display: inline-flex; }
section[data-tab] > h2:first-child, section[data-tab] > .pagehead:first-child { margin-top: 0; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 14px; }
.ov-grid h3 { margin: 0 0 10px; font-size: 14px; }
.ov-grid .tiles { margin-bottom: 6px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.ov-grid .tile b { font-size: 21px; }

/* ---- start page: last exports under the studios ---- */
.recent { margin-top: 38px; }
.recent .exp-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
a.exp-card { color: var(--fg); }
a.exp-card:hover { text-decoration: none; border-color: var(--funx); }

/* Viewing as a regular user: impossible to miss, one click back. */
.viewas-back, .viewas-back:hover { background: var(--funx-yellow) !important; border-color: var(--funx-yellow) !important; color: #291436 !important; font-weight: 800; }

.people-q { width: 100%; margin-bottom: 8px; }
.people-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.people-top:empty { display: none; }
.people-top .muted { margin: 0 2px 0 6px; }
.people-top .muted:first-child { margin-left: 0; }
.chip.pick { cursor: pointer; padding: 3px 11px; font-size: 12.5px; }
.chip.pick.on { background: var(--funx); border-color: var(--funx-hi); color: #fff; }
.people label[hidden] { display: none; }
input[type=search] { font: inherit; font-size: 13px; background: var(--bg); color: var(--fg); border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 10px; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.proj-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); border-left: 3px solid var(--funx); }
.proj-card:hover { text-decoration: none; border-color: var(--funx); }
.proj-card b { font-size: 14px; padding-right: 22px; }
.proj-del { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; padding: 0; justify-content: center;
  border-color: transparent; background: transparent; color: var(--fg-mute); }
.proj-del:hover { color: var(--fg); background: var(--bg-3) !important; }

/* ---- top bars: left / middle (Welkom …) / right ---- */
.topbar, .ed-top { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.top-l, .top-r { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top-r { justify-content: flex-end; }
.top-m { display: flex; justify-content: center; }
.top-r nav, .top-l nav { display: flex; gap: 4px; }

/* Start page: exports a colleague sent you stand out in a warm tint. */
.exp-card.shared { background: #211b14; border-color: rgba(255, 209, 118, .45); }
a.exp-card.shared:hover { border-color: var(--funx-yellow); }
.all-exp { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-dim); margin-right: 12px; cursor: pointer; }
