/* Env-kluis: zelfde stijl als het schermontwerp. Geen externe fonts (strenge CSP). */
:root {
  --bg: #F7F7F5; --surface: #FFFFFF; --line: #E4E4E0; --line-soft: #EFEFEB; --field: #D6D6D1;
  --ink: #16181D; --ink-2: #3F444D; --muted: #5B606B;
  --accent: #0E6E5C; --accent-dark: #0A5446; --accent-soft: #E3F1EC;
  --warn-bg: #FEF3E2; --warn: #8A4B0A; --bad-bg: #FDECEA; --bad: #B42318;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); } a:hover { color: var(--accent-dark); }
h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
h2 { margin: 0 0 12px; font-size: 15px; }
p { margin: 0 0 10px; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .strong { font-weight: 600; }
.center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.break { word-break: break-all; white-space: pre-wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 240px; max-width: 100%; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px 44px; display: flex; flex-direction: column; gap: 20px; max-width: 1200px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.brand .ico { width: 26px; height: 26px; color: var(--accent); }
.brand-center { justify-content: center; margin-bottom: 24px; font-size: 20px; }
.proj { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; }
.label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.nav a:hover { background: var(--bg); }
.nav a.on { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.me { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 8px 0; display: flex; align-items: center; gap: 10px; }
.me-text { display: flex; flex-direction: column; min-width: 0; } .me-text small { color: var(--muted); font-size: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: none; }
.logout { padding: 0 8px; }

.bare { max-width: 920px; margin: 0 auto; padding: 56px 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.card.flush { padding: 0; }
.card.narrow { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.narrow-left { max-width: 560px; }
.ok-card { background: var(--accent-soft); border-color: #B5DACB; display: flex; flex-direction: column; gap: 10px; }
.step { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.row-wrap.tight { gap: 8px; align-items: center; }
.grow { flex: 1 1 200px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.sep { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.or { text-align: center; color: var(--muted); font-size: 12.5px; margin: 0; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: 8px; padding: 0 12px; min-height: 40px; }
textarea { padding: 10px 12px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input.code { font-family: var(--mono); font-size: 18px; letter-spacing: .25em; text-align: center; }
input[type=checkbox], input[type=radio] { min-height: 0; width: 16px; height: 16px; accent-color: var(--accent); padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
legend { font-size: 13px; font-weight: 500; padding: 0 0 8px; width: 100%; }
fieldset label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
fieldset label.disabled { color: var(--muted); }
.seg { gap: 0; border: 1px solid var(--field); border-radius: 8px; overflow: hidden; padding: 0; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.seg label { padding: 9px 14px; cursor: pointer; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; font-weight: 600; }
.seg input { position: absolute; opacity: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--field); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { color: var(--ink); background: var(--bg); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.green { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.danger { color: var(--bad); border-color: #E8C4C0; }
.btn.small { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.btn.wide { width: 100%; min-height: 48px; }
.btn:disabled { opacity: .6; cursor: wait; }
button.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0; text-decoration: underline; }

.flash { margin: 0; padding: 12px 14px; border-radius: 8px; font-weight: 500; }
.flash-ok { background: var(--accent-soft); color: var(--accent-dark); }
.flash-fout { background: var(--bad-bg); color: var(--bad); }
.flash-let-op { background: var(--warn-bg); color: var(--warn); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.pcard:hover { border-color: var(--accent); color: var(--ink); }
.pill { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #F0F0EC; color: var(--ink-2); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; background: #F0F0EC; padding: 3px; border-radius: 8px; flex-wrap: wrap; }
.tabs a { padding: 7px 12px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: 13px; }
.tabs a.on { background: #fff; font-weight: 600; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.search input { min-height: 36px; width: 200px; }
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding: 10px 12px; }
.tbl td { padding: 12px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl tr.dim td { color: var(--muted); }
.tbl .val { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .ellipsis { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl input { min-height: 32px; }
.mask { letter-spacing: .15em; color: var(--ink-2); }
a.mono.strong { color: var(--ink); text-decoration: none; } a.mono.strong:hover { color: var(--accent); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #F0F0EC; color: var(--ink-2); margin-left: 6px; }
td > .badge:first-child { margin-left: 0; }
.badge .ico { width: 12px; height: 12px; stroke-width: 2.2; }
.badge.secret { background: var(--ink); color: #fff; }
.badge.config { background: #fff; border: 1px solid #C9C9C3; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }

.reveal { display: flex; gap: 8px; align-items: center; background: var(--ink); color: #fff; border-radius: 8px; padding: 12px 14px; }
.reveal code { flex: 1; min-width: 0; }
.ok-card .reveal { background: #fff; color: var(--ink); border: 1px solid #B5DACB; }
.codes { columns: 2; font-size: 15px; line-height: 2; padding-left: 22px; }
.qr { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
pre.code { margin: 0; background: var(--ink); color: #E8E8E3; border-radius: 8px; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; overflow-x: auto; }
details summary { cursor: pointer; color: var(--accent); font-size: 13px; }

@media (max-width: 700px) {
  .main { padding: 20px 16px; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .me { margin-top: 0; }
}
h1.mono { font-size: 22px; }
