/* ============================================================
   Release Manager — style.css v2
   Thema: helder/licht — clean professioneel, industrieel
   Typografie: Syne (titels) + DM Mono (code/versies/datums)
   ============================================================ */

:root {
  --bg:          #f4f6fa;
  --surface:     #ffffff;
  --surface-2:   #f0f2f7;
  --border:      #dde1ed;
  --border-2:    #c8cde0;
  --text:        #1a1e2e;
  --muted:       #6b7394;
  --accent:      #2563eb;
  --accent-light:#eff4ff;
  --accent-dim:  #dbeafe;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --red:         #dc2626;
  --red-light:   #fee2e2;
  --yellow:      #d97706;
  --yellow-light:#fef3c7;
  --purple:      #7c3aed;
  --sidebar-w:   220px;
  --radius:      10px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 12px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.mono { font-family: 'DM Mono', monospace; }
.muted { color: var(--muted); }
.ml-1 { margin-left: 6px; }
.ml-auto { margin-left: auto; }
.mt-1 { margin-top: 8px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ============================================================
   LAYOUT
   ============================================================ */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.sidebar-nav {
  padding: 10px 6px;
  flex: 1;
}

.nav-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  padding: 12px 10px 4px;
  font-weight: 700;
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-dim); color: var(--accent); }

.sidebar-bottom {
  padding: 10px 8px 14px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.btn-ghost-sm {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 5px;
  width: 100%;
  text-align: left;
  transition: background .12s, color .12s;
}
.btn-ghost-sm:hover { background: var(--surface-2); color: var(--text); }

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
}

/* ============================================================
   LOGIN
   ============================================================ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.login-card {
  width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 28px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-header h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.page-header .muted { font-size: 13px; margin-top: 2px; }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb { margin-bottom: 14px; }
.btn-back {
  background: none; border: none;
  color: var(--accent); font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer; padding: 4px 0;
}
.btn-back:hover { text-decoration: underline; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}
.card-header h2, .card-header h3 { font-size: 14px; font-weight: 700; }

/* ============================================================
   GRIDS
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.release-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
  align-items: start;
}
.release-main { display: flex; flex-direction: column; }
.release-sidebar { position: sticky; top: 0; }

/* ============================================================
   BACKLOG
   ============================================================ */
.backlog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
}
.backlog-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color .12s;
}
.backlog-item:hover { border-color: var(--accent); }
.item-badges { display: flex; gap: 5px; margin-bottom: 5px; flex-wrap: wrap; }
.item-title { font-size: 13px; font-weight: 700; }
.item-desc { font-size: 12px; color: var(--muted); margin-top: 3px; }
.item-assign { font-size: 11px; color: var(--muted); margin-top: 4px; }
.item-notes { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 3px; }

/* ============================================================
   RELEASES LIST
   ============================================================ */
.releases-list { display: flex; flex-direction: column; gap: 6px; }
.release-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-2);
  border-radius: 8px;
  cursor: pointer;
  transition: all .12s;
  gap: 12px;
}
.release-row:hover { border-color: var(--accent); background: var(--accent-light); }
.status-l-draft    { border-left-color: var(--muted) !important; }
.status-l-testing  { border-left-color: var(--yellow) !important; }
.status-l-approved { border-left-color: var(--green) !important; }
.status-l-deployed { border-left-color: var(--accent) !important; }
.status-l-cancelled{ border-left-color: var(--red) !important; }
.release-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   RELEASE DETAIL
   ============================================================ */
.workflow-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.wf-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; min-width: 70px; }
.wf-step span { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.wf-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); border: 2px solid var(--border-2); }
.wf-step.wf-done .wf-dot { background: var(--green); border-color: var(--green); }
.wf-step.wf-done span { color: var(--green); }
.wf-step.wf-active .wf-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.wf-step.wf-active span { color: var(--accent); }
.wf-line { flex: 1; height: 1px; background: var(--border); max-width: 40px; margin-bottom: 17px; }

.release-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.release-item:last-child { border-bottom: none; }
.release-item.carried-over { background: var(--yellow-light); border-radius: 6px; padding: 10px 10px; border-bottom: none; margin-bottom: 4px; }
.item-row-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.item-testers-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}
.tester-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}
.tester-chip button {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-size: 13px; line-height: 1; padding: 0;
}
.tester-chip button:hover { color: var(--red); }
.select-inline {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: 'Syne', sans-serif;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  height: 24px;
  width: auto;
}

.finding-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.finding-approval { border-left: 3px solid var(--green); background: var(--green-light); }
.finding-finding  { border-left: 3px solid var(--red); }
.finding-s-resolved, .finding-s-carry_over { opacity: .65; }
.finding-header { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; flex-wrap: wrap; }
.finding-desc { font-size: 13px; }
.finding-resolved-by { font-size: 11px; color: var(--muted); margin-top: 4px; }
.btn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.instr-pre { font-family: 'DM Mono', monospace; font-size: 12px; white-space: pre-wrap; line-height: 1.7; }

/* ============================================================
   TEAM / MEMBERS
   ============================================================ */
.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: none; }
.member-list { display: flex; flex-direction: column; }
.tester-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.tester-row:last-child { border-bottom: none; }
.info-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.info-grid .muted { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }

/* ============================================================
   ADMIN
   ============================================================ */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 7px 10px; border-bottom: 2px solid var(--border); font-weight: 700; }
.data-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }
.user-inline { display: flex; align-items: center; gap: 8px; }
.actions-cell { white-space: nowrap; }
.tool-admin-card { margin-bottom: 12px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot-green { background: var(--green); }
.dot-red   { background: var(--red); }

/* Audit log */
.audit-filters {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.audit-filters .form-group { margin-bottom: 0; min-width: 140px; }
.audit-count { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.audit-table { font-size: 12px; }
.audit-action {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
}
.action-blue   { background: var(--accent-dim);  color: var(--accent); }
.action-green  { background: var(--green-light);  color: var(--green); }
.action-red    { background: var(--red-light);    color: var(--red); }
.action-yellow { background: var(--yellow-light); color: var(--yellow); }
.action-gray   { background: var(--surface-2);    color: var(--muted); }
.audit-detail { max-width: 300px; font-size: 11px; }

.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.diff-pre { font-family: 'DM Mono', monospace; font-size: 11px; padding: 10px; border-radius: 6px; white-space: pre-wrap; }
.diff-old { background: var(--red-light); }
.diff-new { background: var(--green-light); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 7px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary  { background: var(--accent); color: white; }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-ok  { background: var(--green-light); color: var(--green); border-color: #bbf7d0; }
.btn-ok:hover { background: #bbf7d0; }
.btn-nok { background: var(--red-light); color: var(--red); border-color: #fecaca; }
.btn-nok:hover { background: #fecaca; }
.btn-deploy { background: linear-gradient(135deg, var(--accent), var(--green)); color: white; font-size: 13px; padding: 10px 18px; border: none; }
.btn-deploy:hover { filter: brightness(1.08); }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 5px; }
.btn-link { background: none; border: none; color: var(--accent); font-size: 11px; cursor: pointer; padding: 0; font-family: 'Syne', sans-serif; }
.btn-link:hover { text-decoration: underline; }
.btn-icon {
  background: none; border: none;
  color: var(--muted); font-size: 16px;
  cursor: pointer; padding: 2px 6px;
  border-radius: 4px; line-height: 1;
  transition: all .12s;
}
.btn-icon.danger:hover { color: var(--red); background: var(--red-light); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .07em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input, textarea, select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  padding: 8px 11px;
  transition: border-color .12s, box-shadow .12s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
input[type="color"] { padding: 3px 5px; height: 34px; cursor: pointer; }
input[type="date"] { font-family: 'DM Mono', monospace; }
textarea { resize: vertical; line-height: 1.6; }
select option { background: var(--surface); }
hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.badge-feature     { background: #dbeafe; color: #1d4ed8; }
.badge-bugfix      { background: var(--red-light); color: var(--red); }
.badge-improvement { background: var(--yellow-light); color: var(--yellow); }
.badge-other       { background: var(--surface-2); color: var(--muted); }
.badge-critical    { background: #fce7f3; color: #be185d; }
.badge-high        { background: #ffedd5; color: #c2410c; }
.badge-medium      { background: var(--yellow-light); color: var(--yellow); }
.badge-low         { background: var(--surface-2); color: var(--muted); }
.badge-ok          { background: var(--green-light); color: var(--green); }
.badge-nok         { background: var(--red-light); color: var(--red); }
.badge-resolved    { background: var(--green-light); color: var(--green); }
.badge-carry       { background: var(--yellow-light); color: var(--yellow); }
.badge-item        { background: var(--surface-2); color: var(--muted); font-weight: 600; }

.count-pill {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  padding: 0 7px;
  margin-left: 5px;
}
.pill-green { display:inline-block; background:var(--green-light); color:var(--green); border-radius:20px; font-size:11px; font-weight:700; padding:1px 8px; }
.pill-red   { display:inline-block; background:var(--red-light);   color:var(--red);   border-radius:20px; font-size:11px; font-weight:700; padding:1px 8px; }

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.status-draft    { background: var(--surface-2); color: var(--muted); }
.status-testing  { background: var(--yellow-light); color: var(--yellow); }
.status-approved { background: var(--green-light); color: var(--green); }
.status-deployed { background: var(--accent-dim); color: var(--accent); }
.status-cancelled{ background: var(--red-light); color: var(--red); }
.status-lg { font-size: 13px; padding: 4px 14px; }

.role-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 1px 7px;
  border-radius: 4px;
}

/* ============================================================
   USER AVATAR
   ============================================================ */
.user-avatar {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.user-avatar.sm { width: 26px; height: 26px; font-size: 11px; }

/* Tool dots */
.tool-dot-sm { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tool-dot-lg { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,25,50,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(3px);
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
  width: 540px;
  max-width: 96vw;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.modal-box h3 { font-size: 17px; font-weight: 800; margin-bottom: 18px; }
.modal-box h4 { font-size: 13px; font-weight: 700; margin: 14px 0 8px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   ITEM PICKER (nieuwe release modal)
   ============================================================ */
.item-picker {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.item-check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  border: 1px solid transparent;
  transition: all .1s;
}
.item-check-row:hover { background: var(--surface); border-color: var(--border); }
.item-check-row input[type="checkbox"] { width: auto; accent-color: var(--accent); flex-shrink: 0; }

/* ============================================================
   MESSAGES
   ============================================================ */
.msg { border-radius: 7px; padding: 9px 13px; font-size: 12px; margin-bottom: 12px; }
.msg-error  { background: var(--red-light);    border: 1px solid #fecaca; color: var(--red); }
.msg-warn   { background: var(--yellow-light);  border: 1px solid #fde68a; color: var(--yellow); font-size: 12px; }
.msg-ok     { background: var(--green-light);   border: 1px solid #bbf7d0; color: var(--green); }
.empty-msg  { color: var(--muted); font-size: 13px; padding: 8px 0; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state h2 { font-size: 20px; margin-bottom: 8px; color: var(--text); }

/* Link-box voor testlinks */
.link-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  word-break: break-all;
  color: var(--accent);
  margin: 8px 0;
}

/* ============================================================
   TESTER PAGE (licht)
   ============================================================ */
.tester-page { background: var(--bg); min-height: 100vh; }
.tester-wrap { max-width: 720px; margin: 0 auto; padding: 32px 16px 60px; }
.tester-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.tester-header h1 { font-size: 22px; font-weight: 800; }
.tool-badge { display:inline-block; padding:2px 10px; border-radius:6px; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin-bottom:6px; color:white; }
.section { margin-bottom: 18px; }
.section h2 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.item-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:15px; margin-bottom:9px; box-shadow:var(--shadow); }
.item-header { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:7px; }
.item-actions { display:flex; gap:8px; margin-top:10px; }
.instruction-box { background:var(--surface-2); border:1px solid var(--border); border-radius:8px; padding:13px; font-size:13px; line-height:1.7; }
.finding-row { padding:11px; border-radius:8px; margin-bottom:7px; border:1px solid var(--border); background:var(--surface); display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.finding-approval { border-left:3px solid var(--green); background:var(--green-light); }
.finding-finding  { border-left:3px solid var(--red); }

/* ============================================================
   BESTANDSVERKENNER
   ============================================================ */
.explorer-wrap { display: flex; flex-direction: column; height: calc(100vh - 56px); }
.explorer-wrap .page-header { flex-shrink: 0; margin-bottom: 12px; }

.explorer-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Verkenner paneel */
.explorer-panel {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.explorer-toolbar {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.explorer-actions { display: flex; gap: 4px; flex-wrap: wrap; }

.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow: hidden;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
}
.crumb-btn {
  background: none; border: none;
  color: var(--accent); font-family: 'DM Mono', monospace;
  font-size: 12px; cursor: pointer; padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}
.crumb-btn:hover { background: var(--accent-dim); }
.crumb-sep { color: var(--muted); padding: 0 1px; font-size: 11px; }

.file-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.file-row {
  display: grid;
  grid-template-columns: 20px 1fr auto auto auto;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  cursor: pointer;
  user-select: none;
  border-left: 2px solid transparent;
  transition: background .1s;
  font-size: 13px;
}
.file-row:hover { background: var(--surface-2); }
.file-row.selected { background: var(--accent-light); border-left-color: var(--accent); }
.file-row.dir-row { font-weight: 700; color: var(--text); }
.file-icon { font-size: 14px; line-height: 1; text-align: center; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-family: 'DM Mono', monospace; font-size: 10px; white-space: nowrap; }
.file-date { font-family: 'DM Mono', monospace; font-size: 10px; white-space: nowrap; }

.file-row-actions {
  display: none;
  align-items: center;
  gap: 2px;
}
.file-row:hover .file-row-actions { display: flex; }

.btn-icon-sm {
  background: none; border: none;
  color: var(--muted); font-size: 12px;
  cursor: pointer; padding: 2px 4px;
  border-radius: 3px; line-height: 1;
  text-decoration: none;
  transition: all .1s;
}
.btn-icon-sm:hover { background: var(--surface-2); color: var(--text); }
.btn-icon-sm.danger:hover { background: var(--red-light); color: var(--red); }

.file-loading { padding: 20px; text-align: center; color: var(--muted); font-size: 13px; }
.file-empty   { padding: 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* Editor paneel */
.editor-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.editor-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 8px;
}
.editor-empty-icon { font-size: 40px; opacity: .4; }

.editor-loading { padding: 20px; color: var(--muted); font-size: 13px; }
.editor-error   { padding: 16px; color: var(--red); font-size: 13px; }

.editor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.editor-filename { font-weight: 700; font-size: 13px; }
.editor-header-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.file-info-tag {
  font-size: 10px; font-family: 'DM Mono', monospace;
  background: var(--surface); border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 4px; color: var(--muted);
}

.editor-changed-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--yellow-light);
  border-bottom: 1px solid #fde68a;
  font-size: 12px;
  color: var(--yellow);
  flex-shrink: 0;
}

.code-editor {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: 0;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  line-height: 1.65;
  padding: 14px 16px;
  background: #fafbfd;
  color: var(--text);
  resize: none;
  outline: none;
  tab-size: 2;
  min-height: 0;
  box-shadow: none;
}
.code-editor:focus { box-shadow: none; border-color: transparent; }
.code-editor[readonly] { background: var(--surface-2); color: var(--muted); }

.editor-statusbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
}

/* Toast notificatie */
.fs-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: all .25s;
  z-index: 999;
  pointer-events: none;
}
.fs-toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }