:root {
  /* Thema "Studio": echt zwart, helder wit, één felle accentkleur */
  --bg: #000000; --panel: #111113; --panel-2: #18181b; --panel-3: #202024; --line: rgba(255,255,255,.08);
  --text: #ffffff; --muted: #8b8b93; --accent: #2f6bff; --accent-deep: #1f4fd6; --accent-2: #34d399;
  --on-accent: #ffffff; --warn: #fbbf24; --bad: #ff5c5c; --good: #34d399; --radius: 22px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font: 15.5px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
body { background: var(--bg); }
body { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); margin: 0 0 .6em; }
h1 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variation-settings: "wdth" 85; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
h3 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.sidebar { background: rgba(28,24,36,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: conic-gradient(from 210deg, var(--accent-deep), var(--accent), var(--accent-2), var(--accent-deep)); color: #15121b; font-weight: 700; box-shadow: 0 6px 24px rgba(143,116,240,.35); }
.brand-title { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-sub { color: var(--muted); font-size: 12px; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav button { all: unset; cursor: pointer; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 500; transition: background .15s, color .15s; display: flex; justify-content: space-between; align-items: center; }
nav button:hover { background: var(--panel-2); color: var(--text); }
nav button.on { background: linear-gradient(90deg, rgba(196,176,255,.16), rgba(196,176,255,.04)); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
nav button:focus-visible, .btn:focus-visible, .tpl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.badge-n { background: var(--warn); color: #000; border-radius: 99px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.sidebar-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 0 6px; }

main { padding: 28px 36px 64px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.pulse { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.live { background: var(--good); box-shadow: 0 0 0 4px rgba(124,240,200,.15); }
.dot.busy { background: var(--accent); animation: blink 1s infinite; }
.dot.bad { background: var(--bad); }
@keyframes blink { 50% { opacity: .3; } }

.card { background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 40%), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 16px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Invoervelden: zachte "schrijfkaarten" in plaats van een terminalvak */
textarea, input, select { width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 15px; font: 15.5px/1.55 var(--body); transition: border-color .15s, box-shadow .2s, background .2s; }
textarea { min-height: 128px; resize: vertical; padding: 16px 18px; font-size: 16.5px; line-height: 1.6; background: linear-gradient(180deg, var(--panel-3), var(--panel-2)); }
textarea::placeholder, input::placeholder { color: #8a8299; }
textarea:focus, input:focus, select:focus { outline: none; border-color: rgba(196,176,255,.7); background: var(--panel-3);
  box-shadow: 0 0 0 4px rgba(196,176,255,.14), 0 10px 40px -12px rgba(143,116,240,.45); }
input[type=checkbox], input[type=range], input[type=color] { width: auto; box-shadow: none; }
input[type=file] { max-width: 100%; font-size: 14px; color: var(--muted); padding: 10px; }
input[type=file]::file-selector-button { font: 600 14px var(--body); color: var(--text); background: var(--panel-3); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; margin-right: 10px; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: rgba(196,176,255,.6); }
input[type=checkbox] { accent-color: var(--accent-deep); }
input[type=range] { accent-color: var(--accent); width: 100%; padding: 0; background: none; border: 0; }
.btn { all: unset; cursor: pointer; padding: 11px 20px; border-radius: 999px; background: linear-gradient(180deg, #d4c4ff, var(--accent)); color: #1a1426; font-weight: 600; box-shadow: 0 6px 20px -8px rgba(143,116,240,.7), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .12s, filter .15s; }
.btn:hover { filter: brightness(1.06); } .btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: rgba(196,176,255,.5); }
.btn.bad { background: transparent; color: var(--bad); border: 1px solid var(--bad); box-shadow: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: 12px; color: var(--muted); margin: 2px 4px 2px 0; }
.chip.good { border-color: var(--good); color: var(--good); }
.chip.warn { border-color: var(--warn); color: var(--warn); }
.chip.bad { border-color: var(--bad); color: var(--bad); }
.chip.accent { border-color: var(--accent); color: var(--accent); }

.plist button { all: unset; cursor: pointer; display: block; padding: 10px; border-radius: 10px; border: 1px solid transparent; margin-bottom: 4px; width: 100%; box-sizing: border-box; }
.plist button:hover, .plist button.on { background: var(--panel-2); border-color: var(--line); }
.plist .p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.metric { background: var(--panel-2); border-radius: 10px; padding: 10px; }
.metric b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -.02em; }
.metric span { font-size: 12px; color: var(--muted); }

details.task { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; background: var(--panel-2); }
details.task summary { cursor: pointer; padding: 10px 12px; display: flex; gap: 10px; align-items: center; list-style: none; }
details.task summary::-webkit-details-marker { display: none; }
details.task .body { padding: 0 12px 12px; }
/* Resultaten van agents: leesbare tekst, geen terminal */
pre, .md { white-space: pre-wrap; word-break: break-word; font: 15px/1.65 var(--body); color: #e9e4f1; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; max-height: 460px; overflow: auto; }
ul.clean { margin: 6px 0; padding-left: 18px; }

.agent { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; background: var(--panel-2); }
.agent .n { font-weight: 600; } .agent .f { font-size: 12.5px; color: var(--muted); }
.feed .ev { display: grid; grid-template-columns: 70px 110px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.feed .ev code { font-family: var(--body); color: var(--muted); }
.banner { border: 1px solid var(--warn); color: var(--warn); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.tpl { all: unset; cursor: pointer; display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; color: var(--muted); background: rgba(255,255,255,.015); line-height: 1.5; transition: border-color .15s, color .15s, background .15s; }
.tpl:hover { border-color: rgba(196,176,255,.55); color: var(--text); background: rgba(196,176,255,.06); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }

@media (max-width: 860px) {
  html, body { overflow-x: hidden; }
  body { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; height: auto; z-index: 20; padding: 10px 16px; flex-direction: row; align-items: center; }
  .sidebar nav, .brand-sub, .sidebar-foot { display: none; }
  main { padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); }
  .topbar { margin-bottom: 12px; }
  .topbar h1 { font-size: 26px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .grid-cards { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 14px; }
  table { table-layout: fixed; word-break: break-word; }
  th { width: 38%; }
  code, a { overflow-wrap: anywhere; }
  .feed .ev { grid-template-columns: 60px 1fr; }
  .feed .ev .t { display: none; }
}


.agent.clickable { cursor: pointer; border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.agent.clickable:hover, .agent.clickable:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { width: min(640px, 100%); max-height: 90vh; overflow: auto; margin: 0; }

.quick-list { display: flex; flex-direction: column; gap: 6px; }
.quick { display: flex; gap: 6px; }
.quick-go { all: unset; cursor: pointer; flex: 1; box-sizing: border-box; padding: 13px 15px; border-radius: 14px; line-height: 1.5; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.4; display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.quick-go:hover, .quick-go:focus-visible { border-color: var(--accent); }
.quick-go .go { color: var(--accent); font-weight: 600; white-space: nowrap; font-size: 13px; }
.quick-edit { all: unset; cursor: pointer; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); color: var(--muted); display: grid; place-items: center; }
.quick-edit:hover { border-color: var(--accent); color: var(--text); }
.quick-go[disabled], .quick-edit[disabled] { opacity: .5; pointer-events: none; }
.profile-note { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; color: var(--muted); }

@supports (padding: env(safe-area-inset-top)) {
  .sidebar { padding-top: max(10px, env(safe-area-inset-top)); }
  main { padding-bottom: max(60px, env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) {
  textarea, input, select { font-size: 16px; } /* voorkomt inzoomen op iPhone */
  .modal { max-height: 85vh; }
}

.menu-btn { all: unset; display: none; cursor: pointer; margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; -webkit-tap-highlight-color: transparent; }
.menu-btn span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-bg { position: fixed; inset: 0; z-index: 15; background: rgba(0,0,0,.5); }
@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .sidebar { flex-wrap: wrap; }
  .menu-open .sidebar nav { display: flex; flex-direction: column; gap: 2px; flex-basis: 100%; padding: 8px 0 4px;
    max-height: calc(100vh - 80px); overflow-y: auto; }
  .menu-open .sidebar nav button { padding: 13px 12px; font-size: 16px; }
  .menu-open .sidebar .sidebar-foot { display: block; flex-basis: 100%; padding: 8px 12px 6px; border-top: 1px solid var(--line); }
  .menu-open .brand-sub { display: block; }
}

/* ---------- Edit Studio ---------- */
.edit-root { max-width: 900px; }
.ed-top { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.ed-top input { flex: 1; min-width: 0; }
.ed-top select { width: auto; }
.ed-stage { position: relative; background: #000; border-radius: 14px; overflow: hidden; margin: 0 auto; display: grid; place-items: center;
  max-height: 58vh; aspect-ratio: 9 / 16; }
.ed-stage.ratio-16-9 { aspect-ratio: 16 / 9; width: 100%; } .ed-stage.ratio-1-1 { aspect-ratio: 1; } .ed-stage.ratio-4-5 { aspect-ratio: 4 / 5; }
.ed-stage video, .ed-stage img { width: 100%; height: 100%; object-fit: cover; }
.ed-empty { color: var(--muted); text-align: center; font-size: 32px; }
.ed-txt { position: absolute; left: 6%; right: 6%; text-align: center; font-weight: 800; text-shadow: 0 2px 6px #000; pointer-events: none; }
.ed-txt.pos-onder { bottom: 12%; } .ed-txt.pos-midden { top: 45%; } .ed-txt.pos-boven { top: 8%; }
.ed-time { text-align: center; margin: 8px 0; }
.ed-timeline { display: flex; gap: 4px; align-items: center; overflow-x: auto; padding: 8px 2px; scroll-snap-type: x proximity;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.ed-chip { all: unset; display: block; box-sizing: border-box; cursor: pointer; flex: none; height: 64px; border-radius: 8px; background: var(--panel-2) center/cover; border: 2px solid transparent;
  position: relative; scroll-snap-align: center; }
.ed-chip.on { border-color: var(--accent); }
.ed-chip span { position: absolute; left: 4px; bottom: 3px; font-size: 11px; background: rgba(0,0,0,.65); padding: 1px 5px; border-radius: 4px; }
.ed-tr { color: var(--accent); font-size: 14px; flex: none; }
.ed-add { all: unset; box-sizing: border-box; cursor: pointer; flex: none; height: 64px; min-width: 64px; padding: 0 12px; border: 1px dashed var(--line); border-radius: 8px;
  display: grid; place-items: center; color: var(--muted); }
.ed-clipbar { display: flex; gap: 6px; margin: 8px 0; overflow-x: auto; }
.ed-clipbar button { all: unset; cursor: pointer; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.ed-tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 10px 0 8px; border-bottom: 1px solid var(--line); }
.ed-tabs button { all: unset; cursor: pointer; padding: 9px 10px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.ed-tabs button.on { color: var(--text); border-color: var(--accent); }
.ed-panel { padding: 4px 0 20px; }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ed-grid label, .ed-panel > label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.ed-check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.ed-check input { width: auto; }
.ed-row { display: flex; gap: 6px; align-items: end; }
.ed-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-chips button { all: unset; cursor: pointer; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); font-size: 14px; }
.ed-chips button.on { border-color: var(--accent); color: var(--accent); }
.ed-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ed-upload input { display: none; }
.ed-progress { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin: 6px 0; }
.ed-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.ed-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0; }
.ed-m { position: relative; }
.ed-mthumb { all: unset; cursor: pointer; display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; background: var(--panel-2) center/cover; position: relative; }
.ed-mthumb b { position: absolute; left: 6px; top: 4px; } .ed-mthumb span { position: absolute; right: 5px; bottom: 4px; font-size: 11px; background: rgba(0,0,0,.6); padding: 1px 4px; border-radius: 4px; }
.ed-mname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; color: var(--muted); }
.ed-x { all: unset; cursor: pointer; position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); border-radius: 99px; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; }
.ed-card { background: var(--panel-2); margin: 10px 0; }
.ed-card > input { margin-bottom: 8px; }
@media (max-width: 860px) {
  .ed-stage { max-height: 46vh; }
  .ed-grid { grid-template-columns: 1fr 1fr; }
}
.ed-chips button.plug::after { content: "•"; color: var(--accent-2); margin-left: 4px; }
.ed-shots { display: flex; gap: 2px; height: 26px; margin: 8px 0; }
.ed-shots i { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 4px; min-width: 3px; font-style: normal;
  font-size: 11px; color: #0b0d12; display: grid; place-items: center; overflow: hidden; }

.vps-cmd { white-space: pre-wrap; word-break: break-all; background: #05070a; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; margin: 0 0 8px; user-select: all; -webkit-user-select: all; }


/* ===== Studio-thema: strak, modern, zonder randen ===== */
html, body { font: 15px/1.55 var(--body); letter-spacing: -.003em; }
h1 { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variation-settings: normal; }
h2 { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
h3 { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--muted); }
.sidebar { background: #000; border-right: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand-mark { background: var(--text); color: #000; box-shadow: none; border-radius: 12px; }
.brand-title { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; font-size: 20px; }
nav button { color: #a1a1aa; font-weight: 500; border-radius: 999px; padding: 10px 16px; }
nav button:hover { background: var(--panel-2); color: var(--text); }
nav button.on { background: var(--text); color: #000; box-shadow: none; font-weight: 600; }
.card { background: var(--panel); border: 0; border-radius: var(--radius); padding: 26px; }
.banner { border: 0; background: rgba(251,191,36,.1); color: #fcd34d; border-radius: 16px; padding: 14px 16px; }
.banner a { color: #fde68a; }
textarea, input, select { background: var(--panel-2); border: 1px solid transparent; border-radius: 16px; }
textarea { background: var(--panel-2); font-size: 17px; padding: 18px 20px; min-height: 140px; }
textarea::placeholder, input::placeholder { color: #6b6b73; }
textarea:focus, input:focus, select:focus { background: var(--panel-3); border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.btn { background: var(--text); color: #000; box-shadow: none; padding: 12px 22px; font-weight: 600; letter-spacing: -.01em; }
.btn:hover { filter: none; background: #e7e7ea; }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 0; }
.btn.ghost:hover { background: var(--panel-3); }
.btn.accent, .btn.primary { background: var(--accent); color: var(--on-accent); }
.tpl, .quick-go { background: var(--panel-2); border: 0; border-radius: 16px; }
.tpl:hover, .quick-go:hover { background: var(--panel-3); color: var(--text); border: 0; }
.quick-go .go { color: var(--accent); }
.quick-edit { background: var(--panel-2); border: 0; border-radius: 16px; }
.chip { border: 0; background: var(--panel-2); color: #c4c4cc; padding: 4px 11px; }
.chip.accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.chip.good { background: rgba(52,211,153,.14); color: var(--good); }
.chip.warn { background: rgba(251,191,36,.14); color: var(--warn); }
.chip.bad { background: rgba(255,92,92,.14); color: var(--bad); }
.metric, .agent, details.task { background: var(--panel-2); border: 0; border-radius: 16px; }
pre, .md { background: var(--panel-2); border: 0; border-radius: 16px; color: #e4e4e7; }
a { color: var(--accent); }
.dot.live { background: var(--good); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.dot.busy { background: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); }
input[type=range] { accent-color: var(--accent); }
input[type=file]::file-selector-button { background: var(--panel-3); border: 0; }
@media (max-width: 860px) {
  .sidebar { background: rgba(0,0,0,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .topbar h1 { font-size: 32px; }
  .menu-open .sidebar nav button { border-radius: 14px; }
}
.banner.tip { background: var(--panel); color: #d4d4d8; }
.banner.tip a { color: var(--accent); }

/* ===== Metallic neonblauw ===== */
:root { --accent: #3a9bff; --accent-deep: #0a5cff; --on-accent: #ffffff;
  --metal: linear-gradient(135deg, #cfe9ff 0%, #6fb8ff 18%, #1f7bff 42%, #0a4fe0 62%, #5fb0ff 84%, #d6eeff 100%);
  --neon: 0 0 0 1px rgba(120,190,255,.35), 0 8px 28px -6px rgba(31,123,255,.65), 0 0 22px -4px rgba(58,155,255,.55); }
.btn { background: var(--metal); background-size: 160% 160%; background-position: 0% 50%; color: #fff; text-shadow: 0 1px 1px rgba(0,30,90,.45);
  box-shadow: var(--neon), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,20,80,.35); transition: background-position .5s ease, transform .12s, box-shadow .2s; }
.btn:hover { background: var(--metal); background-size: 160% 160%; background-position: 100% 50%; }
.btn.ghost { background: var(--panel-2); color: var(--text); text-shadow: none; box-shadow: none; }
.btn.ghost:hover { background: var(--panel-3); }
.btn.bad { background: transparent; text-shadow: none; box-shadow: none; }
nav button.on { background: var(--metal); color: #fff; text-shadow: 0 1px 1px rgba(0,30,90,.45); box-shadow: var(--neon); }
.brand-mark { background: var(--metal); color: #fff; box-shadow: var(--neon); }
textarea:focus, input:focus, select:focus { border-color: #4aa8ff; box-shadow: 0 0 0 4px rgba(58,155,255,.18), 0 0 30px -6px rgba(58,155,255,.55); }
h1 { background: linear-gradient(180deg, #ffffff 30%, #b9dcff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ===== Indeling: menugroepen, submenu-tegels, snelknoppen, gereedschapsbalk ===== */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.nav-group { font-size: 12px; font-weight: 600; color: #6b6b73; padding: 16px 16px 6px; letter-spacing: .01em; }
nav button { display: flex; align-items: center; gap: 10px; }
.nav-ic { width: 20px; text-align: center; font-size: 15px; opacity: .85; flex: none; }
.lead-text { margin: -4px 0 18px; max-width: 70ch; }

.subnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.subnav button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px;
  align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--panel); color: var(--text); transition: background .15s, box-shadow .2s; }
.subnav button:hover { background: var(--panel-2); }
.subnav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.subnav .sn-ic { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; background: var(--panel-3); }
.subnav .sn-l { font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
.subnav .sn-h { font-size: 12px; color: var(--muted); }
.subnav button.on { background: var(--panel-2); box-shadow: inset 0 0 0 1.5px #4aa8ff, 0 0 24px -10px rgba(58,155,255,.8); }
.subnav button.on .sn-ic { background: var(--metal); color: #fff; }

.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 10px; }
.preset { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--panel-2);
  color: var(--text); transition: background .15s, box-shadow .2s; min-height: 64px; width: 100%; }
.preset:hover { background: var(--panel-3); }
.preset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.preset[disabled] { opacity: .6; pointer-events: none; }
.pr-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--panel); }
.pr-l { flex: 1; font-weight: 600; font-size: 14.5px; line-height: 1.3; letter-spacing: -.01em; }
.pr-go { flex: none; font-size: 12.5px; font-weight: 600; color: #fff; padding: 6px 11px; border-radius: 999px; background: var(--metal); box-shadow: var(--neon); }
.preset-wrap { display: flex; gap: 6px; align-items: stretch; }
.preset-wrap .preset { flex: 1; }
.preset-edit { all: unset; cursor: pointer; flex: none; width: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.preset-edit:hover { background: var(--panel-3); color: var(--text); }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.field .chip { align-self: flex-start; }
.filepick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 0 14px; }
.keygroup { border: 0; padding: 0; margin: 0 0 18px; }
.keygroup legend { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 10px; padding: 0; }
.status-ok { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(52,211,153,.12); color: var(--good); font-weight: 600; }
.steps { padding-left: 20px; line-height: 1.7; margin: 10px 0; }

.ed-tools { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin: 14px 0 12px; }
.ed-tools button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px;
  background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 500; text-align: center; transition: background .15s, color .15s; }
.ed-tools button:hover { background: var(--panel-2); color: var(--text); }
.ed-tools .t-ic { font-size: 17px; line-height: 1; height: 20px; display: grid; place-items: center; }
.ed-tools .t-l { line-height: 1.15; }
.ed-tools button.on { background: var(--panel-2); color: #fff; box-shadow: inset 0 0 0 1.5px #4aa8ff; }
.ed-tools button.on .t-ic { color: #7cc4ff; }
.ed-mclone { all: unset; cursor: pointer; display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: #7cc4ff; }
.ed-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ed-upload input { display: none; }
@media (max-width: 860px) {
  .subnav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .subnav button { padding: 10px 12px; }
  .subnav .sn-ic { width: 32px; height: 32px; font-size: 15px; }
  .presets { grid-template-columns: 1fr; }
  .ed-tools { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ed-tools button { padding: 9px 2px; font-size: 11px; }
}
.rem-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); margin-bottom: 8px; }
.rem-row .preset-edit { height: 36px; }

/* ===================== Startpagina (Home) ===================== */
a.brand { text-decoration: none; color: inherit; cursor: pointer; }
body.is-home .topbar h1 { display: none; }
body.is-home .topbar { justify-content: flex-end; margin-bottom: 0; }
.hero { position: relative; padding: 18px 0 8px; margin-bottom: 26px; isolation: isolate; }
.hero-aura { position: absolute; inset: -60px -40px auto -40px; height: 360px; z-index: -1; filter: blur(50px); opacity: .55; pointer-events: none;
  background: radial-gradient(40% 55% at 22% 40%, #1f6bff 0%, transparent 70%), radial-gradient(35% 50% at 70% 30%, #7a3cff 0%, transparent 70%),
  radial-gradient(30% 45% at 55% 75%, #00c2ff 0%, transparent 70%); animation: aura 18s ease-in-out infinite alternate; }
@keyframes aura { to { transform: translate3d(0, 20px, 0) scale(1.08) rotate(4deg); } }
.hero-kicker { color: #9fb6d9; font-weight: 500; margin: 0 0 6px; }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 7vw, 64px); line-height: .98; letter-spacing: -.05em; margin: 0 0 22px;
  background: linear-gradient(180deg, #fff 35%, #a9cfff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 14ch; }
.composer { background: rgba(20,20,24,.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 26px; padding: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -30px rgba(31,107,255,.55); }
.composer textarea { background: transparent; border: 0; min-height: 76px; font-size: 18px; padding: 16px 16px 6px; box-shadow: none; resize: none; }
.composer textarea:focus { background: transparent; box-shadow: none; border: 0; }
.composer-bar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; }
.composer-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.cchip { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.06);
  color: #d4d4dc; font-size: 13px; font-weight: 500; transition: background .15s; }
.cchip:hover { background: rgba(255,255,255,.12); color: #fff; }
.composer-go { flex: none; padding: 12px 22px; }
.notice { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 16px;
  border-radius: 16px; background: rgba(251,191,36,.08); color: #fde68a; font-weight: 500; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(251,191,36,.18); flex: none; }
.notice-go { margin-left: auto; font-weight: 600; color: #fff; }
.home-sec { margin: 0 0 30px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 22px; }

.studio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.studio { all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; aspect-ratio: 4 / 3.2; border-radius: 22px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff; isolation: isolate; transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
.studio::before { content: ""; position: absolute; inset: 0; z-index: -2; transition: transform .6s ease; }
.studio::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.72));
  -webkit-mask: none; }
.studio:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 20px 50px -20px rgba(31,107,255,.6); }
.studio:hover::before { transform: scale(1.06); }
.studio:focus-visible { outline: 2px solid #4aa8ff; outline-offset: 3px; }
.studio-tag { align-self: flex-start; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.studio-txt { display: flex; flex-direction: column; gap: 2px; }
.studio-txt b { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.studio-txt span { font-size: 12.5px; color: rgba(255,255,255,.75); }
.art-video::before { background: radial-gradient(60% 70% at 80% 10%, #3b82ff 0%, transparent 60%), radial-gradient(50% 60% at 10% 90%, #00e0ff 0%, transparent 60%),
  conic-gradient(from 200deg at 60% 60%, #0a1a4a, #1b3fa8, #04122e, #0a1a4a); }
.art-photo::before { background: radial-gradient(55% 60% at 25% 25%, #ffb36b 0%, transparent 60%), radial-gradient(60% 70% at 85% 80%, #ff4d8d 0%, transparent 60%),
  linear-gradient(135deg, #2a0f2e, #120814); }
.art-edit::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 26px),
  radial-gradient(70% 60% at 50% 110%, #7a3cff 0%, transparent 60%), linear-gradient(160deg, #141421, #0b0b12); }
.art-clone::before { background: radial-gradient(40% 50% at 30% 40%, rgba(80,170,255,.95) 0%, transparent 60%), radial-gradient(40% 50% at 62% 55%, rgba(170,90,255,.9) 0%, transparent 60%),
  linear-gradient(135deg, #0b1020, #0a0a14); }
.art-voice::before { background: repeating-radial-gradient(circle at 50% 120%, rgba(255,255,255,.10) 0 2px, transparent 2px 18px),
  radial-gradient(70% 70% at 50% 100%, #10b981 0%, transparent 65%), linear-gradient(180deg, #071a14, #050a08); }
.art-remind::before { background: radial-gradient(45% 55% at 75% 25%, #fbbf24 0%, transparent 60%), radial-gradient(60% 60% at 20% 85%, #f97316 0%, transparent 60%),
  linear-gradient(135deg, #24130a, #0d0805); }

.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.model { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px;
  border-radius: 18px; background: var(--panel); transition: background .15s; }
.model:hover { background: var(--panel-2); }
.model:focus-visible { outline: 2px solid #4aa8ff; outline-offset: 2px; }
.model-orb { width: 42px; height: 42px; border-radius: 13px; background: var(--metal); box-shadow: var(--neon); }
.m1 .model-orb { background: conic-gradient(from 90deg, #ff4d8d, #7a3cff, #1f6bff, #ff4d8d); }
.m2 .model-orb { background: conic-gradient(from 0deg, #10b981, #0ea5e9, #10b981); }
.m3 .model-orb { background: radial-gradient(circle at 30% 30%, #ffd29b, #ff7a45 60%, #7a2b12); }
.m4 .model-orb { background: radial-gradient(circle at 30% 30%, #e5e7eb, #6b7280 60%, #111827); }
.m5 .model-orb { background: conic-gradient(from 180deg, #fbbf24, #f97316, #fbbf24); }
.model-txt { display: flex; flex-direction: column; min-width: 0; }
.model-txt b { font-family: var(--display); font-size: 16px; letter-spacing: -.02em; }
.model-txt span { font-size: 12.5px; color: var(--muted); }
.model-tag { font-size: 11.5px; font-weight: 600; color: #9cc8ff; background: rgba(58,155,255,.12); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.team { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: var(--panel); }
.team:hover { background: var(--panel-2); }
.team-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-3); margin-bottom: 6px; font-size: 16px; }
.team b { font-family: var(--display); font-size: 16px; letter-spacing: -.02em; }
.team span:last-child { font-size: 12.5px; color: var(--muted); }

.recent { display: flex; flex-direction: column; gap: 8px; }
.recent-row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: 16px; background: var(--panel); }
.recent-row:hover { background: var(--panel-2); }
.recent-t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.recent-m { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.home-tip { color: var(--muted); font-size: 13.5px; }
.project-modal { max-width: 860px; }
.dets summary { cursor: pointer; color: #9cc8ff; font-weight: 600; font-size: 14px; margin: 6px 0; }
.dets dl { margin: 8px 0 0; display: grid; gap: 4px 0; }
.dets dt { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.dets dd { margin: 0; font-size: 14px; }
.next-step { margin-top: 12px; padding: 14px; border-radius: 16px; background: rgba(58,155,255,.08); box-shadow: inset 0 0 0 1px rgba(74,168,255,.35); }
.next-step p { margin: 6px 0 12px; }
.an-result { box-shadow: inset 0 0 0 1.5px rgba(74,168,255,.5); }

@media (max-width: 860px) {
  .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .studio { aspect-ratio: 1 / 1.05; padding: 14px; border-radius: 20px; }
  .studio-txt b { font-size: 17px; }
  .model-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composer-bar { flex-wrap: wrap; }
  .composer-go { width: 100%; text-align: center; box-sizing: border-box; }
  .hero-aura { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .hero-aura { animation: none; } .studio, .studio::before { transition: none; } }
nav button { justify-content: flex-start; text-align: left; }
nav button .badge-n { margin-left: auto; }

/* ---------- account, credits, partners, beheer ---------- */
.price-tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(47,107,255,.12); border: 1px solid rgba(120,180,255,.25); font-size: 14px; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.credit-box { display: grid; text-align: right; padding: 14px 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(120,190,255,.16), rgba(30,80,255,.08)); border: 1px solid rgba(140,200,255,.25); min-width: 150px; }
.credit-box b { font-family: var(--display); font-size: 34px; line-height: 1.1; letter-spacing: -.02em; }
.pack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (max-width: 900px) { .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pack { padding: 14px 12px; } .pack-price { font-size: 24px !important; } }
.pack { position: relative; display: grid; min-width: 0; gap: 4px; padding: 18px 16px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line); }
.pack-top { background: linear-gradient(165deg, rgba(120,190,255,.22), rgba(30,80,255,.10) 60%, var(--panel-2)); border-color: rgba(140,200,255,.45); box-shadow: 0 10px 40px rgba(46,140,255,.18); }
.pack-badge { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #fff; color: #000; }
.pack-name { font-family: var(--display); font-size: 15px; color: var(--muted); font-weight: 600; }
.pack-price { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.pack-credits { font-size: 14px; color: #cfe3ff; margin-bottom: 8px; }
.pack .btn { width: auto; margin: 0; justify-self: stretch; display: flex; justify-content: center; text-align: center; min-width: 0; }
.partner-hero { text-align: center; background: radial-gradient(80% 120% at 50% 0%, rgba(46,140,255,.22), transparent 70%), var(--panel); }
.partner-hero .row { justify-content: center; }
.code-big { font-family: var(--display); font-size: clamp(34px, 9vw, 54px); font-weight: 800; letter-spacing: .04em; margin: 6px 0 4px;
  background: linear-gradient(180deg, #fff, #9fd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; word-break: break-all; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat b { font-family: var(--display); font-size: 22px; letter-spacing: -.01em; }
table td .btn.ghost { padding: 6px 10px; font-size: 13px; }
.run-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.run-grid .btn { width: auto; display: flex; justify-content: center; text-align: center; }
.project-modal .next-step { margin: 12px 0 16px; }
.site-preview { margin: 12px 0 16px; padding: 14px; border-radius: 16px; background: rgba(58,155,255,.08); box-shadow: inset 0 0 0 1px rgba(74,168,255,.35); }
.site-frame { display: block; width: 100%; height: 70vh; min-height: 420px; border: 0; border-radius: 12px; background: #fff; transition: width .2s; margin: 0 auto; }
.site-frame.mobiel { width: 390px; max-width: 100%; }
.site-preview .btn { width: auto; }
