/* Jouw AI portal — huisstijl 24x7 ICT */
:root {
  --green: #A5C35C; --green-dark: #86A43F; --green-soft: #EEF4E0; --ink: #20211C; --ink-2: #3A3B34;
  --bg: #F7F7F5; --card: #FFFFFF; --line: #E3E5DC; --muted: #6B6C66; --code: #F0F1EC;
  --ok: #4E7A1E; --warn: #9A6400; --warn-soft: #FFF4DE; --bad: #B3261E; --bad-soft: #FCEBE9;
  --radius: 16px; --shadow: 0 1px 2px rgba(32,33,28,.04), 0 4px 16px rgba(32,33,28,.05);
  font-family: "Asap", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15.5px; line-height: 1.55; }
a { color: var(--ink); text-decoration-color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--green-dark); }
code { background: var(--code); padding: .05em .35em; border-radius: 6px; font-size: .88em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; margin-top: 1.25rem; }
p { margin: 0 0 .75rem; }
[hidden] { display: none !important; }

/* header */
.top { background: var(--ink); color: #fff; }
.top-inner { max-width: 1400px; margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center;
             justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand .word { font-weight: 700; font-size: 1.1rem; padding-left: .75rem; border-left: 1px solid #4a4b44; }
.brand .word span { color: var(--green); }
nav.main { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
nav.main a, nav.main button { color: #E8E9E3; text-decoration: none; padding: .45rem .8rem; border-radius: 999px;
  background: none; border: 0; font: inherit; cursor: pointer; }
nav.main a:hover, nav.main button:hover { background: #33342e; color: #fff; }
nav.main a.on { background: #33342e; color: #fff; }
nav.main form { margin: 0; }
.count { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem;
  margin-left: .3rem; border-radius: 999px; background: var(--green); color: var(--ink); font-size: .75rem; font-weight: 700; }

.trial { background: var(--green-soft); border-bottom: 1px solid #D8E6B8; }
.trial-inner { max-width: 1400px; margin: 0 auto; padding: .55rem 1.25rem; font-size: .92rem; display: flex;
  gap: .5rem 1rem; flex-wrap: wrap; align-items: center; }
.trial.over { background: var(--warn-soft); border-color: #F1D9A8; }

main { max-width: 1180px; margin: 2rem auto 4rem; padding: 0 1.25rem; }
main.wide { max-width: 1400px; }

/* kaarten, knoppen, formulieren */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
        margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h2 { margin-bottom: .75rem; }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit;
  font-weight: 600; cursor: pointer; border-radius: 999px; padding: .6rem 1.2rem; border: 1.5px solid transparent;
  text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn.primary { background: var(--green); color: var(--ink); }
.btn.primary:hover { background: #B4CF71; color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-2); color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.danger { background: #fff; border-color: #E9B4AF; color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn.small { padding: .35rem .8rem; font-size: .88rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.linkbtn.small { font-size: .88rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .93rem; }
label .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
label.check { flex-direction: row; align-items: flex-start; gap: .55rem; font-weight: 400; }
label.check input { width: auto; margin-top: .25rem; accent-color: var(--green-dark); }
input, select, textarea { font: inherit; font-weight: 400; padding: .65rem .85rem; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid #D3E3AA; outline-offset: 1px; border-color: var(--green-dark); }
textarea { resize: vertical; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.alert, .notice, .warn { padding: .7rem 1rem; border-radius: 12px; margin: .5rem 0 1rem; white-space: pre-line; }
.alert { background: var(--bad-soft); color: var(--bad); }
.notice { background: var(--green-soft); color: #3E5F17; }
.warn { background: var(--warn-soft); color: #7A5000; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px;
  background: var(--code); color: var(--muted); vertical-align: middle; white-space: nowrap; }
.s-klaar, .s-actief, .s-goedgekeurd { background: var(--green-soft); color: var(--ok); }
.s-bezig, .s-wachtrij, .s-verwijderen, .s-controleren, .s-activeren, .s-open { background: var(--warn-soft); color: var(--warn); }
.s-fout, .s-afgewezen { background: var(--bad-soft); color: var(--bad); }
.s-verlopen { background: #ECEDE8; color: var(--muted); }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pagehead p { margin: .25rem 0 0; }

/* inlogpagina's */
.auth { min-height: calc(100vh - 58px); display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-brand { background: var(--ink); color: #fff; padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column;
  justify-content: center; position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; bottom: -160px;
  background: var(--green); opacity: .9; border-radius: 54% 46% 63% 37% / 44% 58% 42% 56%; }
.auth-brand h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 16ch; position: relative; z-index: 1; }
.auth-brand h1 span { color: var(--green); }
.auth-brand ul { list-style: none; padding: 0; margin: 1.5rem 0 0; position: relative; z-index: 1; display: grid; gap: .7rem; }
.auth-brand li { padding-left: 1.8rem; position: relative; color: #DADBD4; }
.auth-brand li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1rem; height: .55rem;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-form .card { width: 100%; max-width: 440px; padding: 2rem; margin: 0; }
.auth-form .foot { margin-top: 1.25rem; text-align: center; font-size: .92rem; color: var(--muted); }
.code-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 2rem 1.25rem; }
  .auth-brand::after { width: 220px; height: 220px; right: -90px; bottom: -110px; }
  .auth-brand ul { display: none; }
}

/* portaloverzicht */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.portal-card { display: flex; flex-direction: column; gap: .5rem; color: inherit; text-decoration: none; margin: 0;
  transition: border-color .15s, transform .15s; }
.portal-card:hover { border-color: var(--green); transform: translateY(-2px); color: inherit; }
.portal-card .title { font-weight: 700; font-size: 1.1rem; }
.portal-card .meta { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.new-card { border: 2px dashed #CFD0C8; background: transparent; box-shadow: none; display: flex; align-items: center;
  justify-content: center; min-height: 150px; cursor: pointer; font-weight: 600; color: var(--ink); font: inherit; }
.new-card:hover { border-color: var(--green-dark); background: #fff; }
.empty { text-align: center; padding: 3rem 1.5rem; }
.empty .blob { width: 90px; height: 90px; margin: 0 auto 1rem; background: var(--green);
  border-radius: 54% 46% 63% 37% / 44% 58% 42% 56%; display: grid; place-items: center; font-size: 2rem; font-weight: 700; }
.addr { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.addr input { border: 0; border-radius: 0; min-width: 0; }
.addr span { padding: .65rem .85rem; background: var(--code); color: var(--muted); white-space: nowrap; }
.addr:focus-within { outline: 3px solid #D3E3AA; border-color: var(--green-dark); }

/* portalpagina */
.portal-head h1 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.links { display: flex; gap: .4rem 1.25rem; flex-wrap: wrap; align-items: center; margin-top: .35rem; font-size: .95rem; }
.links a { font-weight: 600; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.chat-head h2 { margin: 0; }
.messages { height: min(62vh, 680px); min-height: 320px; overflow-y: auto; display: flex; flex-direction: column;
  gap: .75rem; padding: 1.25rem; background: #FBFBF9; }
.msg { padding: .7rem 1rem; border-radius: 14px; max-width: 88%; overflow-wrap: anywhere; }
.msg p { margin: .3rem 0; }
.msg p:first-child { margin-top: 0; } .msg p:last-child { margin-bottom: 0; }
.msg pre { background: var(--code); padding: .6rem; border-radius: 8px; overflow-x: auto; font-size: .84rem; }
.msg.user { align-self: flex-end; background: var(--ink); color: #fff; white-space: pre-wrap; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; font-size: .86rem; color: var(--muted); background: none; text-align: center; max-width: 80%; }
.msg.err { align-self: flex-start; background: var(--bad-soft); color: var(--bad); }
.msg.warnmsg { align-self: center; background: var(--warn-soft); color: #7A5000; font-size: .88rem; }
.steps-mini { align-self: flex-start; font-size: .8rem; color: var(--muted); max-width: 88%; }
.steps-mini summary { cursor: pointer; }
.steps-mini div { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; padding: .1rem 0; }
.steps-mini .bad { color: var(--bad); }
.working { align-self: flex-start; display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .9rem; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-dark); animation: bounce 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
.composer { border-top: 1px solid var(--line); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; background: #fff; }
.composer textarea { border-radius: 14px; }
.suggestions { display: flex; gap: .5rem; flex-wrap: wrap; }
.suggestions button { font: inherit; font-size: .86rem; border: 1.5px solid var(--line); background: #fff;
  border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
.suggestions button:hover { border-color: var(--green-dark); }
.side .card { padding: 1.25rem; }
.side h2 { font-size: 1.05rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; font-size: .9rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.secret { filter: blur(5px); cursor: pointer; transition: filter .2s; }
.secret.show { filter: none; }

/* voortgang */
.progress-card { max-width: 720px; margin: 1rem auto; text-align: center; padding: 2.5rem 2rem; }
.bar { height: 12px; background: var(--code); border-radius: 999px; overflow: hidden; margin: 1.5rem 0 .75rem; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--green-dark));
  border-radius: 999px; transition: width .8s ease; }
.steps { list-style: none; padding: 0; margin: 1.5rem auto 0; text-align: left; display: inline-grid; gap: .55rem; }
.steps li { display: flex; align-items: center; gap: .65rem; color: var(--muted); }
.steps li::before { content: ""; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid #CFD0C8; flex: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px #fff; }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.now::before { border-color: var(--green-dark); border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.meter { height: 8px; background: var(--code); border-radius: 999px; overflow: hidden; margin: .5rem 0; }
.meter span { display: block; height: 100%; background: var(--green); width: 0; }
.domain { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem 0;
  border-bottom: 1px solid var(--line); }
.domain:last-of-type { border-bottom: 0; }
.domain strong { overflow-wrap: anywhere; }
.dnsbox { background: var(--code); border-radius: 12px; padding: .75rem .9rem; font-size: .86rem; margin: .5rem 0; }
.dnsbox code { background: #fff; }
.log { background: var(--ink); color: #D7D8D0; padding: .85rem; border-radius: 12px; font-size: .78rem; max-height: 320px;
  overflow: auto; white-space: pre-wrap; text-align: left; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
details summary { cursor: pointer; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }

/* tabellen en beheer */
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tabs a { padding: .5rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
th, td { padding: .6rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.detail { max-width: 460px; overflow-wrap: anywhere; color: var(--muted); font-size: .85rem; }
td form { margin: 0; display: inline; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.qr { display: flex; justify-content: center; margin: 1rem 0; }
.qr svg { width: 200px; height: 200px; }
.report { white-space: pre-wrap; background: var(--code); border-radius: 12px; padding: 1rem; font-size: .9rem; }
dialog { width: min(1000px, 94vw); border: 0; border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.small { width: min(480px, 94vw); }
dialog::backdrop { background: rgba(32,33,28,.5); }
.diff { max-height: 68vh; overflow: auto; font-size: .8rem; background: #FBFBF9; border: 1px solid var(--line); padding: .85rem;
  border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.diff .add { color: #3E6B12; background: #F0F7E3; display: inline-block; width: 100%; }
.diff .del { color: var(--bad); background: #FDF0EE; display: inline-block; width: 100%; }
.diff .hunk { color: #4C6FBF; } .diff .file { font-weight: 700; color: var(--ink); }
footer.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 0 1rem 2rem; }
.narrow-card { max-width: 520px; margin: 0 auto; }
.mt { margin-top: .9rem; }
.row.centered { justify-content: center; }
