/* Leiderdorp Dataportaal - klikmodel
   Eén gedeeld stylesheet voor alle losse HTML-pagina's.
   Design afgeleid van de wireframes in ../wireframes/. */

:root {
  --blue: #2f6fed;
  --blue-dark: #1f50b5;
  --blue-soft: #eaf1ff;
  --blue-softborder: #c9dbff;
  --orange: #f59331;
  --ink: #1f2733;
  --muted: #6b7785;
  --faint: #9aa5b3;
  --line: #e3e8ef;
  --bg: #ffffff;              /* paginavlak wit, zoals in de wireframes */
  --hover: #f1f3f6;           /* subtiele hover/zebra op witte achtergrond */
  --topbar: #dbdbdb;          /* wireframe-topbar is een lichtgrijze balk */
  --canvas: #eef1f5;
  --white: #fff;
  /* statuskleuren (pastel achtergrond + donkere tekst), conform wireframes */
  --green-bg: #dcf4eb;  --green-tx: #1f7a4d;
  --amber-bg: #fbedcb;  --amber-tx: #9a6b12;
  --red-bg:   #f8d1de;  --red-tx:   #c43d49;
  --grey-bg:  #eceaf0;  --grey-tx:  #6b7280;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(20,30,50,.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { margin: 0; }

/* ---------------- top navigation ---------------- */
.topbar {
  background: var(--topbar);
  color: var(--ink);
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 220px;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 18px 14px; gap: 4px;
  overflow-y: auto; z-index: 40;
}
.topbar .brand { font-weight: 700; margin: 0 0 14px; padding: 0 10px; color: var(--muted); }
.topbar nav { display: flex; flex-direction: column; gap: 2px; }
.topbar nav a {
  color: var(--ink); padding: 9px 12px; border-radius: 7px; font-weight: 500;
}
.topbar nav a:hover { background: rgba(0,0,0,.06); text-decoration: none; }
.topbar nav a.active { background: #fff; color: var(--ink); }
.topbar .spacer { flex: 1; }
.topbar .user { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 12px 10px 4px; border-top: 1px solid rgba(0,0,0,.10); margin-top: 8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.topbar .role-chip { font-size: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 3px 11px; border-radius: 999px; }
.topbar .switch-role { font-size: 13px; color: var(--muted); margin-left: 2px; }

/* ---------------- page layout ---------------- */
.page { max-width: 1160px; margin: 0 0 0 220px; padding: 26px 30px 90px; }
.page.page-wide { max-width: none; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-header h1 { font-size: 27px; }
.count-badge { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 15px; font-weight: 600; color: var(--muted); background: var(--hover); border: 1px solid var(--line); border-radius: 999px; padding: 2px 11px; }
.page-header .sub { color: var(--muted); margin-top: 4px; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* search */
.search { display: flex; }
.search input {
  width: 320px; max-width: 60vw; padding: 9px 13px;
  border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px;
  font: inherit; background: var(--white);
}
.search input:focus { outline: none; }
.search button {
  border: 0; background: var(--blue); color: #fff;
  padding: 0 14px; border-radius: 0 8px 8px 0; cursor: pointer; font-size: 16px;
}

/* filter dropdown look (chevron link) */
.filter { color: var(--blue); font-weight: 600; cursor: pointer; user-select: none; background: none; border: 0; font: inherit; padding: 8px 4px; }
.filter::after { content: " \25BE"; }
.filter.has-active { text-decoration: underline; }

/* multi-select filter dropdown */
.filter-wrap { position: relative; display: inline-block; }
.filter-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; }
.filter-menu[hidden] { display: none; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink); }
.filter-opt:hover { background: var(--hover); }
.filter-opt input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; margin: 0; }
.filter-menu-foot { border-top: 1px solid var(--line); margin-top: 6px; padding: 8px 10px 4px; }
.linkbtn { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
/* normaliseer tekst binnen het menu (erft anders th-stijl als de filter in een kolomkop zit) */
.filter-menu { text-transform: none; letter-spacing: normal; font-weight: 400; }

/* kolomkop-filter (bv. Klant) en -sortering (bv. Serienummer) */
.th-filter { position: relative; display: inline-flex; }
.th-filter-btn, .th-sort { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; display: inline-flex; align-items: center; }
.th-filter-btn.has-active { color: var(--blue); }
.th-caret { margin-left: 6px; font-size: 10px; }
.sort-caret.inactive { opacity: .35; }
.th-sort:hover { color: var(--ink); }
.th-filter .filter-menu { left: 0; right: auto; top: calc(100% + 6px); }

/* segmented toggle (Niet toegewezen / Toegewezen) */
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.segmented button { border: 0; background: var(--white); color: var(--muted); padding: 8px 14px; cursor: pointer; font: inherit; font-weight: 500; }
.segmented button.active { background: var(--blue); color: #fff; }
.segmented-label { color: var(--muted); margin-right: 8px; }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 8px; padding: 9px 15px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--hover); }
.btn-sm { padding: 6px 11px; font-size: 13px; }

/* ---------------- tables ---------------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); background: #fafbfc; font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafbff; }
table.data tr.clickable { cursor: pointer; }
.cellmuted { color: var(--muted); }
.cellsub { font-size: 12px; color: var(--muted); }

/* neutrale pills (bv. sensoren-kolom) */
.cellpills { display: flex; flex-wrap: wrap; gap: 5px; }
.cellpill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--hover); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }

/* status badges */
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-goed, .badge-actief { background: var(--green-bg); color: var(--green-tx); }
.badge-waarschuwing { background: var(--amber-bg); color: var(--amber-tx); }
.badge-fout, .badge-gedeactiveerd { background: var(--red-bg); color: var(--red-tx); }
.badge-onbekend, .badge-uitgenodigd, .badge-gearchiveerd { background: var(--grey-bg); color: var(--grey-tx); }
/* alleen-kleur badge (status zonder tekst, bv. klantdetail loggers-tab) */
.dot-badge { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.dot-goed, .dot-actief { background: #36b37e; } .dot-waarschuwing { background: #f0b429; }
.dot-fout { background: #e05a6b; } .dot-onbekend { background: #b7bcc6; }

/* ---------------- pagination ---------------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 22px; }
.pagination a, .pagination span { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); font-size: 14px; }
.pagination a:hover { background: var(--white); text-decoration: none; }
.pagination .current { background: #e7e9ee; color: var(--ink); font-weight: 600; }
.pagination a.disabled { opacity: .35; pointer-events: none; }

/* gebruikersmenu (klikbare initialen in de topbar) */
.usermenu { position: fixed; z-index: 80; min-width: 190px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.usermenu[hidden] { display: none; }
.usermenu-role { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.usermenu-lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--faint); }
.usermenu-val { font-weight: 600; color: var(--ink); }
.usermenu-item { display: block; padding: 11px 14px; color: var(--blue); font-weight: 600; text-decoration: none; }
.usermenu-item:hover { background: var(--hover); text-decoration: none; }
/* klantcontext-indicator in de zijbalk (boven de gebruiker) */
.klantcontext { background: var(--blue-soft); border: 1px solid var(--blue-softborder); border-radius: 8px; padding: 10px 12px; margin: 0 0 8px; }
.kc-label { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.kc-naam { font-weight: 600; color: var(--ink); font-size: 14px; margin: 2px 0 6px; }
.kc-terug { display: inline-block; font-size: 13px; color: var(--blue); font-weight: 600; }
.kc-terug:hover { text-decoration: underline; }

.user-name { cursor: pointer; }
.user-name:hover { text-decoration: underline; }

/* klant onder MAC op apparaatdetail; select verschijnt op hover/focus */
.detail-klant { margin-top: 8px; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.detail-klant .dk-naam { color: var(--ink); font-weight: 600; cursor: pointer; border-bottom: 1px dashed var(--line); }
.detail-klant .dk-select { display: none; font: inherit; }
.detail-klant:hover .dk-naam, .detail-klant:focus-within .dk-naam { display: none; }
.detail-klant:hover .dk-select, .detail-klant:focus-within .dk-select { display: inline-block; }
/* niet-toegewezen: geen inline wijzigen (toewijzen gaat via de knop) */
.detail-klant.locked .dk-naam { cursor: default; border-bottom: 0; font-weight: 400; color: var(--muted); }
.detail-klant.locked:hover .dk-naam, .detail-klant.locked:focus-within .dk-naam { display: inline; }
.detail-klant.locked .dk-select { display: none !important; }

/* edit-icoon in tabelrijen (bv. klantenoverzicht) */
.row-edit { background: none; border: 0; cursor: pointer; color: var(--blue); padding: 4px; border-radius: 6px; display: inline-flex; align-items: center; }
.row-edit:hover { background: var(--hover); color: var(--blue-dark); }
.row-edit svg { width: 16px; height: 16px; }
table.data td.row-actions { text-align: right; white-space: nowrap; }
.row-actions .row-edit + .row-edit { margin-left: 14px; }
.row-arrow { font-size: 18px; line-height: 1; }
.tab-count { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--hover); border-radius: 999px; padding: 1px 8px; }

/* ---------------- user list (rij-stijl) ---------------- */
.userlist { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.user-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.user-row:last-child { border-bottom: 0; }
.user-row:hover { background: #fafbff; }
.user-row .avatar { width: 38px; height: 38px; font-size: 13px; }
.user-row .who { min-width: 220px; }
.user-row .who .name { font-weight: 600; }
.user-row .who .email { font-size: 13px; color: var(--muted); }
.user-row .col { flex: none; width: 160px; color: var(--muted); font-size: 13px; }
.user-row .col .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--faint); display: block; }
.user-row .col .val { color: var(--ink); }
.user-row .grow { flex: 1; }
.kebab { flex: none; background: #e7e9ee; border: 0; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.kebab:hover { background: #d7dae1; color: var(--ink); }

/* ---------------- detail page ---------------- */
.detail-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.back-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; font-size: 17px; text-decoration: none; flex: none; }
.back-btn:hover { filter: brightness(.95); text-decoration: none; }
.detail-id { flex: 1; }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-id h1 { font-size: 24px; }
.detail-id .meta { color: var(--muted); font-size: 14px; margin-top: 4px; display: flex; gap: 18px; flex-wrap: wrap; }
.detail-actions { display: flex; gap: 10px; align-items: center; }

.config-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.config-item .lbl { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.config-item .val { font-weight: 600; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 165px); margin: 22px 0 4px; }
.kpi .lbl { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.kpi .val { font-size: 15px; font-weight: 500; }

/* klantdetail header: linkergoot + ingesprongen contentkolom */
.detail-main { flex: 1; }
.detail-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.detail-main h1 { font-size: 28px; }
.contact-grid { display: flex; gap: 60px; margin-top: 12px; flex-wrap: wrap; }
.contact-col { display: flex; flex-direction: column; gap: 9px; }
.contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink); }
.contact-item .cicon { width: 16px; height: 16px; color: var(--muted); flex: none; margin-top: 2px; }
.contact-item a { word-break: break-all; }
.kvk-label { color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: .3px; align-self: center; }
.copy-btn { background: none; border: 0; padding: 0 2px; cursor: pointer; display: inline-flex; align-items: center; }
.copy-btn .cicon { width: 15px; height: 15px; color: var(--blue); margin-top: 0; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; cursor: pointer; font: inherit; font-weight: 600; color: var(--muted); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.tabpanel { display: none; }
.tabpanel.active { display: block; }

/* two-column detail (sensordata + sidebar) */
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h3 { font-size: 16px; margin-bottom: 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* simple chart frame */
.chart { width: 100%; height: 440px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.chart-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pillgroup { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
/* agenda-icoon + aangepaste periode-popover */
.cal-wrap { position: relative; display: inline-flex; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn.active { border-color: var(--blue); color: var(--blue); }
.icon-btn svg { width: 18px; height: 18px; }
.cal-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 220px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 14px; }
.cal-pop[hidden] { display: none; }
.cal-pop .form-field { margin-bottom: 10px; }
.cal-pop .btn { width: 100%; justify-content: center; }
.pillgroup button { border: 0; background: #fff; padding: 6px 11px; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); border-right: 1px solid var(--line); }
.pillgroup button:last-child { border-right: 0; }
.pillgroup button.active { background: var(--blue); color: #fff; }

.sensor-item { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sensor-item:last-child { border-bottom: 0; }
.sensor-item .nm { font-weight: 400; }
.sensor-item .lv { color: var(--muted); font-size: 13px; }

/* ---------------- forms ---------------- */
.form-field { margin-bottom: 15px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-field input, .form-field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fbfcfe;
}
.form-field input:focus, .form-field select:focus { outline: 2px solid var(--blue-softborder); border-color: var(--blue); }
.form-section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 18px 0 10px; }
.form-help { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* ---------------- modal ---------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,28,40,.45); display: none; align-items: flex-start; justify-content: center; padding: 60px 16px; z-index: 60; overflow: auto; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); width: 540px; max-width: 96vw; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; }
.modal-header h2 { font-size: 19px; color: var(--blue); }
.modal-close { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 0 22px 8px; }
.modal-footer { padding: 16px 22px 22px; display: flex; justify-content: flex-end; gap: 10px; }

/* ---------------- slide-in ---------------- */
.slidein-overlay { position: fixed; inset: 0; background: rgba(20,28,40,.35); display: none; z-index: 60; }
.slidein-overlay.open { display: block; }
.slidein { position: fixed; top: 0; right: 0; height: 100vh; width: 440px; max-width: 94vw; background: var(--bg); box-shadow: var(--shadow); z-index: 61; transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; }
.slidein.open { transform: translateX(0); }
.slidein-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.slidein-header h2 { font-size: 18px; color: var(--blue); }
.slidein-body { padding: 4px 20px 20px; overflow: auto; flex: 1; }
.slidein-footer { padding: 16px 20px; display: flex; justify-content: flex-end; }
.slidein .panel { margin-bottom: 14px; }
.checkline { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.checkline input { width: 17px; height: 17px; accent-color: var(--blue); }

/* ---------------- toast ---------------- */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #161c26; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; display: flex; align-items: center; gap: 10px; animation: tin .18s ease-out; }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: #36b37e; flex: none; }
.toast.leaving { animation: tout .25s ease-in forwards; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes tout { to { transform: translateY(10px); opacity: 0; } }

/* ---------------- login + contextkeuze ---------------- */
.center-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.login-box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 34px; width: 370px; max-width: 92vw; }
.login-logo { width: 48px; height: 48px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.login-box h1 { font-size: 22px; margin-bottom: 4px; }
.login-box .sub { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.login-box .btn { width: 100%; justify-content: center; margin-top: 6px; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
.choice { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; cursor: pointer; }
.choice:hover { border-color: var(--blue); text-decoration: none; }
.choice h3 { font-size: 19px; margin-bottom: 6px; color: var(--ink); }
.choice p { color: var(--muted); margin: 0; }
.pill { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.pill-beheer { background: var(--blue-soft); color: var(--blue-dark); }
.pill-klant { background: #f1e9ff; color: #6b3fb5; }

/* ---------------- placeholder ---------------- */
.placeholder { background: var(--white); border: 1px dashed #c4cdd9; border-radius: var(--radius); padding: 46px; text-align: center; }
.placeholder .tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); background: var(--hover); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; margin-bottom: 16px; }
.placeholder h2 { font-size: 22px; margin-bottom: 10px; }
.placeholder p { color: var(--muted); max-width: 620px; margin: 0 auto 8px; }
.placeholder .source { font-size: 12px; color: var(--faint); margin-top: 14px; }
.placeholder .actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 820px) {
  .config-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
