@font-face { font-family: 'Visby Round CF'; src: url(fonts/VisbyRoundCF-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Visby Round CF'; src: url(fonts/VisbyRoundCF-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Visby Round CF'; src: url(fonts/VisbyRoundCF-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

/* OneXillium-huisstijl, zoals de POD-app */
:root {
  --navy: #0C2340; --paars: #6558B1; --mint: #B5E3D8; --lila: #D8D7DF;
  --page: #F8F8FA; --surface: #FFFFFF; --surface-2: #F1F0F5;
  --ink: #0C2340; --muted: #5E6276; --line: #E4E3EA;
  --accent: #6558B1; --accent-ink: #FFFFFF; --accent-wash: #F1EFFA;
  --ok-bg: #DDF2EC; --ok-ink: #0C4A3C; --err-bg: #FBE9EC; --err-ink: #8A1C2B;
  --focus: 0 0 0 3px rgba(101, 88, 177, .35);
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--page); color: var(--ink);
  font: 400 16px/1.45 'Visby Round CF', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.logo { height: 26px; width: auto; }
.who { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; min-width: 0; }
.who span { background: var(--surface-2); border-radius: 999px; padding: 6px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; overflow-wrap: anywhere; }
h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 0 0 12px; }
.muted { color: var(--muted); margin: 0 0 16px; }
.center { text-align: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.narrow { max-width: 440px; margin: 8vh auto 0; }
.ox { height: 72px; width: auto; margin-bottom: 8px; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
#gwAccount { overflow-wrap: anywhere; }
.head { margin-bottom: 16px; }
.head .muted { margin-bottom: 0; }
.grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 860px) { .grid { grid-template-columns: 380px 1fr; } }

form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.opt, .hint { color: var(--muted); font-weight: 400; }
.hint { font-size: 13px; overflow-wrap: anywhere; min-height: 1.2em; }
input {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--lila); border-radius: 10px; padding: 11px 14px; width: 100%; min-width: 0;
}
input:focus, button:focus-visible, a:focus-visible { outline: none; box-shadow: var(--focus); border-color: var(--accent); }
.alias-input { display: flex; align-items: stretch; }
.alias-input input { border-radius: 0; }
.alias-input .prefix[hidden] + input { border-radius: 10px 0 0 10px; }
.suffix, .prefix {
  display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--lila);
  color: var(--muted); font-weight: 500; white-space: nowrap;
}
.suffix { border-left: 0; border-radius: 0 10px 10px 0; }
.prefix { border-right: 0; border-radius: 10px 0 0 10px; padding-right: 4px; }

.primary, .secondary, .danger {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  font: inherit; font-size: 16px; font-weight: 700; border-radius: 12px; padding: 12px 18px; cursor: pointer; min-height: 48px; width: 100%;
}
.primary { background: var(--accent); color: var(--accent-ink); border: 0; }
.primary:active { filter: brightness(.92); }
.primary[disabled] { opacity: .6; cursor: progress; }
.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--lila); }
.danger { background: var(--err-ink); color: #FFFFFF; border: 0; }
.link { font: inherit; font-size: 14px; font-weight: 500; background: none; border: 0; padding: 4px 0; color: var(--accent); cursor: pointer; text-decoration: none; }

.melding { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; text-align: left; }
.melding.fout { background: var(--err-bg); color: var(--err-ink); }
.melding.test { background: var(--accent-wash); color: var(--paars); margin-top: 10px; display: inline-block; }
#vLogin .melding { margin-bottom: 16px; }

.lijst-head { display: flex; justify-content: space-between; align-items: baseline; }
.count { color: var(--muted); font-weight: 500; margin-left: 4px; }
#zoek { margin-bottom: 8px; }
ul.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows .main { flex: 1; min-width: 0; }
.rows .adres { font-weight: 700; overflow-wrap: anywhere; }
.rows .sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.rows li.nieuw { animation: nieuw 2.4s ease-out; }
@keyframes nieuw { from { background: var(--ok-bg); } to { background: transparent; } }
.tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--surface-2); color: var(--muted); margin-left: 6px; white-space: nowrap; }
.tag.primair { background: var(--navy); color: #FFFFFF; }
.acties { display: flex; gap: 4px; flex-shrink: 0; }
@media (max-width: 560px) { .rows li { flex-wrap: wrap; gap: 6px 12px; } .rows .main { flex-basis: 100%; } }
.icon-btn {
  font: inherit; font-size: 13px; font-weight: 500; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 34px;
  background: var(--accent-wash); color: var(--accent);
}
.icon-btn.weg { background: var(--err-bg); color: var(--err-ink); }
.icon-btn[disabled] { opacity: .5; cursor: progress; }
.actie-aangemaakt { color: var(--ok-ink); font-weight: 700; }
.actie-verwijderd { color: var(--err-ink); font-weight: 700; }

details.log { margin-top: 16px; }
details.log summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: baseline; }
details.log summary::-webkit-details-marker { display: none; }
details.log summary h2 { margin: 0; }
details.log summary .muted { margin: 0; font-size: 14px; flex: 1; }
details.log summary::after { content: '▾'; color: var(--accent); }
details.log[open] summary::after { content: '▴'; }
details.log[open] summary { margin-bottom: 8px; }

dialog { border: 0; border-radius: var(--radius); padding: 22px; max-width: min(420px, calc(100vw - 32px)); color: var(--ink); }
dialog::backdrop { background: rgba(12, 35, 64, .45); }
dialog p { overflow-wrap: anywhere; }
.knoppen { display: flex; gap: 10px; }

#toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  background: var(--navy); color: #FFFFFF; padding: 12px 18px; border-radius: 12px; font-size: 15px; max-width: calc(100vw - 32px);
  box-shadow: 0 6px 20px rgba(12, 35, 64, .25);
}
[hidden] { display: none !important; }
