/* STIJL — kleuren, lettertypes, knoppen, velden en vensters van de lootjessite (donker en licht).
   Eigen kopie voor lootjes.justinbaatenburgdejong.nl: hier aanpassen verandert niets aan je andere websites. */


:root {
  color-scheme: dark;
  --bg: #06121a;
  --bg2: #0a1b24;
  --bg3: #0f2530;
  --line: rgba(140, 185, 196, 0.14);
  --line2: rgba(140, 185, 196, 0.28);
  --text: #e6eff1;
  --muted: #8ca4ac;
  --gold: #e7b54a;
  --gold2: #f3d38a;
  --teal: #5cc6bf;
  --red: #f08a6c;
  --green: #7bd08a;
  --ongold: #1b1405; /* tekst op een gouden knop */
  --topbg: rgba(6, 18, 26, 0.97); /* de balk bovenaan */
  --scrim: rgba(2, 8, 12, 0.72); /* het donkere vlak achter een venster */
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
.mono {
  font: 400 11.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}
input,
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 12px;
  color: var(--text);
  font: 400 16px var(--body);
  padding: 12px 14px;
  min-height: 46px;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
}
textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.45;
  display: block;
}
select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238CA4AC' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
input[type='color'] {
  padding: 4px;
  min-height: 46px;
  height: 46px;
  cursor: pointer;
}
input[type='date'] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
}
.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 16px;
}

.fld {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.fld > label,
.fld > .lbl {
  font: 500 11.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.err {
  color: var(--red);
  font-size: 14.5px;
  min-height: 1.4em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: none;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  min-height: 46px;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.15s;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--text);
}
.btn:active {
  transform: scale(0.97);
}
.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ongold);
}
.btn.gold:hover {
  background: var(--gold2);
}
.btn.sm {
  padding: 8px 14px;
  min-height: 38px;
  font-size: 14px;
}
.btn.danger {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
/* top */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--topbg);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-block: 8px;
}
.brand {
  font: 600 20px var(--display);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.seg {
  display: flex;
  border: 1px solid var(--line2);
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  border: 0;
  background: none;
  border-radius: 99px;
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  min-height: 34px;
}
.seg button[aria-pressed='true'] {
  background: var(--text);
  color: var(--bg);
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: none;
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--line2);
}
.block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.block > h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
}
.block > .hint {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: -6px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 620px) {
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  border: 1px solid var(--line2);
  background: none;
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  min-height: 40px;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
}
.chip:hover {
  border-color: var(--text);
}
.chip:active {
  transform: scale(0.96);
}
.chip[aria-pressed='true'] {
  background: var(--gold);
  color: var(--ongold);
  border-color: var(--gold);
}
.count {
  font: 500 12px var(--mono);
  color: var(--gold2);
  letter-spacing: 0.06em;
}
.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  border: 1px dashed var(--line2);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.banner button {
  border: 0;
  background: none;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 4px;
  white-space: nowrap;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.check input {
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  accent-color: var(--gold);
  flex: none;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg2);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.panel-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.total {
  display: grid;
  gap: 2px;
}
.total b {
  font: 600 34px/1 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.total span {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.tl {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line2);
  margin-left: 6px;
}
.tl div {
  position: relative;
  padding: 0 0 16px 20px;
  display: grid;
  gap: 2px;
}
.tl div::before {
  content: '';
  position: absolute;
  left: -5.5px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
}
.tl div:last-child::before {
  background: var(--gold);
}
.tl b {
  font: 600 15.5px var(--display);
}
.tl span {
  color: var(--muted);
  font-size: 14px;
}
.row-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.missing {
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
}
.missing ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
/* sheets */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--scrim);
  display: grid;
  align-items: end;
  justify-items: center;
  animation: fin 0.25s;
}
@keyframes fin {
  from {
    opacity: 0;
  }
}
.sheet {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  padding: 22px 20px calc(26px + env(safe-area-inset-bottom, 0px));
  max-width: 680px;
  width: 100%;
  display: grid;
  gap: 16px;
  animation: sup 0.45s var(--ease);
  max-height: 88vh;
  overflow: auto;
}
@keyframes sup {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
.sheet h2 {
  font-size: 24px;
}
.sheet-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sect {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hint {
  color: var(--muted);
  font-size: 14.5px;
}
.confirm {
  display: grid;
  gap: 10px;
  border: 1px dashed var(--line2);
  border-radius: 14px;
  padding: 12px;
  font-size: 14.5px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  z-index: 60;
  background: var(--text);
  color: var(--bg);
  border-radius: 99px;
  padding: 11px 18px;
  font-weight: 500;
  font-size: 14.5px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
  max-width: calc(100% - 32px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.act {
  pointer-events: auto;
  padding: 7px 8px 7px 18px;
}
.toast button {
  border: 0;
  background: var(--bg);
  color: var(--gold2);
  border-radius: 99px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}
.adm {
  padding-block: 26px 80px;
}
.adm-h {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.adm-h h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 6px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-block: 18px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg2);
  padding: 16px;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.tile b {
  font: 600 clamp(22px, 3vw, 30px)/1.1 var(--display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.tile small {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .tiles {
    grid-template-columns: 1fr;
  }
}
.doclist {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.doc {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg2);
  padding: 14px 16px;
  transition:
    border-color 0.2s,
    transform 0.25s var(--ease);
}
.doc:hover {
  border-color: var(--line2);
  transform: translateY(-1px);
}
.doc .nr {
  display: grid;
  gap: 3px;
}
.doc .nr b {
  font: 500 13px var(--mono);
  letter-spacing: 0.02em;
}
.doc .who {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.doc .who b {
  font: 600 16px var(--display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc .who span {
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc .amt {
  text-align: right;
  display: grid;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}
.doc .amt b {
  font: 600 16px var(--display);
}
.doc .amt span {
  color: var(--muted);
  font-size: 12.5px;
}
@media (max-width: 700px) {
  .doc {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 8px;
  }
  .doc .nr {
    grid-row: 1;
    grid-column: 1;
  }
  .doc .who {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .doc .amt {
    grid-row: 3;
    grid-column: 1;
    text-align: left;
  }
  .doc .stp {
    grid-row: 1;
    grid-column: 2;
  }
}
.stp {
  font: 500 10.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 4px 10px;
  border: 1px solid var(--line2);
  color: var(--muted);
  white-space: nowrap;
  justify-self: end;
}
.stp.open {
  color: var(--gold2);
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
}
.stp.good {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 50%, transparent);
}
.stp.bad {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 50%, transparent);
}
.kind {
  font: 500 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.kind.f {
  color: var(--gold2);
}
.vt {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.vt th {
  font: 400 10.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line2);
  white-space: nowrap;
}
.vt th:first-child,
.vt td:first-child {
  text-align: left;
  padding-left: 0;
}
.vt td {
  text-align: right;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.vt tr.tot td {
  font-weight: 600;
  border-top: 1px solid var(--line2);
  border-bottom: 0;
}
.x {
  width: 40px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: none;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.x:hover {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 50%, transparent);
}
.sum {
  border: 1px solid var(--line2);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 8px;
  background: var(--bg2);
  font-variant-numeric: tabular-nums;
}
.sum div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.sum .sm2 {
  color: var(--muted);
  font-size: 14.5px;
}
.sum .big {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.sum .big span {
  font: 600 15px var(--display);
}
.sum .big b {
  font: 600 26px/1 var(--display);
  letter-spacing: -0.02em;
}
.sum .big.incl b {
  color: var(--gold2);
}
.overflow-x {
  overflow-x: auto;
}
.wl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.wl li {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--bg);
}
.wl li span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.wl li.done span {
  color: var(--muted);
  text-decoration: line-through;
}
.wl input {
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  accent-color: var(--gold);
  flex: none;
}
.bar2 {
  height: 10px;
  border-radius: 99px;
  background: var(--bg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.bar2 i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 99px;
  transition: width 0.6s var(--ease);
}
.res {
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 6px;
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
.res div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14.5px;
}
.res div span:first-child {
  color: var(--muted);
}
.res .big2 {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-weight: 600;
}
.dl {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.dli {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg2);
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}
button.dli:hover {
  border-color: var(--line2);
}
.dli b {
  font: 600 16.5px var(--display);
  display: block;
}
.dli small {
  color: var(--muted);
  font-size: 14px;
}
.dli .amt2 {
  text-align: right;
  font: 600 16px var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .dli {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .dli .amt2 {
    grid-column: 1;
    text-align: left;
  }
}
.two2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}
@media (max-width: 980px) {
  .two2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.note2 {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--muted);
  background: var(--bg2);
}
.note2 b {
  color: var(--text);
}
.note2 ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}
details.src {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 14px;
}
details.src summary {
  cursor: pointer;
  font-weight: 600;
  list-style-position: inside;
}
details.src table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
details.src td {
  padding: 6px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
details.src td:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
  padding-left: 12px;
}
.disc2 {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
button.brand {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}
.doc .nr {
  min-width: 0;
}
.doc .kind {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ho-h {
  font-size: 20px;
  margin-top: 32px;
}
.ho-h + .hint {
  margin-top: 6px;
}
button.tile {
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color 0.2s;
}
button.tile:hover {
  border-color: var(--line2);
}
.tile.gold {
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
}
.tile.gold b {
  color: var(--gold2);
}
.hcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.hcard {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 14px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg2);
  padding: 16px;
  color: inherit;
  font: inherit;
  transition:
    border-color 0.2s,
    transform 0.25s var(--ease);
}
.hcard:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.hcard .mic {
  width: 44px;
  height: 44px;
  grid-row: 1/3;
}
.hcard b {
  font: 600 18px var(--display);
}
.hcard small {
  grid-column: 2;
  color: var(--muted);
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .hcards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .hcards {
    grid-template-columns: minmax(0, 1fr);
  }
}
.res div span:last-child {
  white-space: nowrap;
  text-align: right;
}
.sect-name {
  font: 500 11px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold2);
  border: 1px solid rgba(231, 181, 74, 0.4);
  border-radius: 99px;
  padding: 5px 10px;
  white-space: nowrap;
}
a.btn {
  text-decoration: none;
  color: inherit;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- berichten, wijzigingsverzoeken en bestanden (admin en klant) ---------- */
.rqlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.rq-h {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.rq-h b {
  font: 600 17px var(--display);
  overflow-wrap: anywhere;
}
.rq-t,
.rq-a p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rq-a {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 4px;
}

.thread {
  display: grid;
  gap: 10px;
  max-width: 760px;
}
.msg {
  justify-self: start;
  max-width: 85%;
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg2);
}
.msg.ik {
  justify-self: end;
  background: color-mix(in srgb, var(--gold) 14%, var(--bg2));
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
}
.msg p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 760px;
}
.composer textarea {
  min-height: 54px;
}
@media (max-width: 560px) {
  .composer {
    grid-template-columns: minmax(0, 1fr);
  }
}

.doc.bestand {
  grid-template-columns: 120px minmax(0, 1fr) auto;
}
div.doc:hover {
  transform: none;
}
@media (max-width: 700px) {
  .doc.bestand {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc.bestand .nr {
    grid-row: 1;
    grid-column: 1;
  }
  .doc.bestand .row-btns {
    grid-row: 3;
    grid-column: 1;
  }
}

/* ================= licht thema ================= */

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg: #f3f6f6;
    --bg2: #ffffff;
    --bg3: #e9eff0;
    --line: rgba(11, 43, 56, 0.12);
    --line2: rgba(11, 43, 56, 0.26);
    --text: #0b1e27;
    --muted: #4f6670;
    --gold: #c68f1c;
    --gold2: #8a5f06;
    --teal: #0f7872;
    --red: #b93f25;
    --green: #1c7436;
    --ongold: #1b1405;
    --topbg: rgba(243, 246, 246, 0.96);
    --scrim: rgba(11, 30, 39, 0.5);
  }
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f3f6f6;
  --bg2: #ffffff;
  --bg3: #e9eff0;
  --line: rgba(11, 43, 56, 0.12);
  --line2: rgba(11, 43, 56, 0.26);
  --text: #0b1e27;
  --muted: #4f6670;
  --gold: #c68f1c;
  --gold2: #8a5f06;
  --teal: #0f7872;
  --red: #b93f25;
  --green: #1c7436;
  --ongold: #1b1405;
  --topbg: rgba(243, 246, 246, 0.96);
  --scrim: rgba(11, 30, 39, 0.5);
}
/* Als iemand op een licht apparaat bewust donker kiest, gelden gewoon de kleuren uit basis.css. */
:root[data-theme='dark'] {
  color-scheme: dark;
}

/* ================= inlogscherm ================= */
.login {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: radial-gradient(70% 50% at 50% 0%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 70%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  display: grid;
  gap: 22px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo h1 {
  font-size: 34px;
}
.sub {
  color: var(--muted);
}
.remember {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}
.login.shake .login-card {
  animation: shake 0.45s;
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-7px);
  }
  40%,
  80% {
    transform: translateX(7px);
  }
}
.note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.remember input {
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  accent-color: var(--gold);
}

/* taal en thema, rechtsboven */
.login {
  position: relative;
}
.login-tools {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dobber {
  flex: none;
  color: var(--text);
}
.logo h1 {
  font-size: clamp(24px, 6vw, 30px);
}
.welcome {
  display: grid;
  gap: 8px;
}
.welcome h2 {
  font-size: 24px;
}
.linkbtn {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  justify-self: start;
}
.linkbtn:hover {
  color: var(--text);
}
