/* ============================================================
   b0nk13.nl — design system v2
   ============================================================ */

:root {
  --bg:        #0a0b0d;
  --bg-2:      #101216;
  --panel:     #14171c;
  --sunken:    #0a0d11;
  --line:      #232830;
  --line-2:    #2f3540;
  --text:      #d8dee9;
  --muted:     #6c7784;
  --dim:       #4a5260;

  --accent:    #00e5ff;
  --accent-2:  #00b8d4;
  --accent-ink:#001014;

  --warn:      #ffb454;
  --ok:        #7ef29d;
  --danger:    #ff5470;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 960px;
  --pad-x: 40px;

  --shadow-card: 0 30px 80px -20px rgba(0,0,0,.7);
  --glow-accent: 0 0 18px rgba(0,229,255,.55);

  --snow-color: rgba(255, 255, 255, .85);
}

/* ---- Licht thema (handmatig) ---- */
:root[data-theme="light"] {
  --bg:        #f7f9fb;
  --bg-2:      #eef1f5;
  --panel:     #ffffff;
  --sunken:    #f0f3f7;
  --line:      #dde3ea;
  --line-2:    #c9d1db;
  --text:      #1a1d21;
  --muted:     #6a7482;
  --dim:       #9aa4b2;
  --accent:    #0093b0;
  --accent-2:  #007d96;
  --accent-ink:#ffffff;
  --warn:      #c47b00;
  --ok:        #1f9c5a;
  --danger:    #d63a56;
  --shadow-card: 0 20px 60px -25px rgba(20,30,50,.25);
  --glow-accent: 0 0 14px rgba(0,147,176,.35);
  --snow-color: rgba(110, 130, 150, .75);   /* arctic grey */
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--mono);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(0,229,255,.08) 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(0,184,212,.06) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.015) 0px,
    rgba(255,255,255,.015) 1px,
    transparent 1px, transparent 3px
  );
  mix-blend-mode: overlay;
  z-index: 1;
}

/* ------------------------------------------------------------
   Header + nav
   ------------------------------------------------------------ */
header {
  position: relative; z-index: 20;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px;
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
}

.brand {
  display: flex; align-items: baseline; gap: 14px;
  font-weight: 700; letter-spacing: .5px;
  text-decoration: none;
  color: inherit;
}
.brand .logo { color: var(--accent); font-size: 22px; text-shadow: var(--glow-accent); }
.brand .logo::before { content: "> "; color: var(--muted); }
.brand .logo .tld { color: var(--muted); }
.brand .tag {
  font-size: 12px; color: var(--muted);
  letter-spacing: 1.5px; text-transform: uppercase;
}

.nav {
  margin-left: auto;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { position: relative; }
.nav a {
  display: block;
  padding: 8px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
  border-radius: 8px;
  transition: all .15s;
}
.nav a:hover,
.nav li:hover > a,
.nav li.open > a {
  color: var(--accent);
  background: var(--bg-2);
}
.nav .has-sub > a::after {
  content: " ▾";
  color: var(--dim);
  font-size: 10px;
}

.nav .sub {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  flex-direction: column; gap: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: all .15s;
  z-index: 30;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
  display: flex;
}
.nav .sub a {
  padding: 9px 12px;
  white-space: nowrap;   /* tekst breekt niet meer af */
}

.nav .has-sub:hover .sub,
.nav .has-sub:focus-within .sub,
.nav .has-sub.open .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  margin-left: auto;
  order: 5;
}

.status {
  font-size: 12px; color: var(--ok);
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
  margin-left: 6px;
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 2s ease-in-out infinite;
}
.status.warn   { color: var(--warn); }
.status.danger { color: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------------- thema-schakelaar ---------------- */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
  padding: 0;
  transition: all .15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(0,229,255,.15);
}
.theme-toggle .icon-sun  { display: inline; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: inline; }

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
main {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
}

main.wide {
  display: flex;
  flex-direction: column;
  padding: 56px var(--pad-x) 80px;
}
main.wide > .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

footer {
  position: relative; z-index: 2;
  padding: 20px var(--pad-x);
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
footer .accent { color: var(--accent); }

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */
.card {
  width: 100%; max-width: 660px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card.wide { max-width: none; }

.card-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted);
  background: rgba(0,0,0,.25);
}
:root[data-theme="light"] .card-bar { background: rgba(0,0,0,.03); }

.card-bar .lights { display: flex; gap: 6px; }
.card-bar .lights span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.card-bar .lights span:nth-child(1) { background: #ff5f56; }
.card-bar .lights span:nth-child(2) { background: #ffbd2e; }
.card-bar .lights span:nth-child(3) { background: #27c93f; }
.card-bar .path { margin-left: auto; letter-spacing: 1px; }

.card-inner { padding: 36px 32px 32px; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  font-family: var(--mono);
  font-size: 14px; font-weight: 500; letter-spacing: .4px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 80%, white);
  box-shadow: 0 0 24px rgba(0,229,255,.45);
}
.btn.ghost { border-color: var(--line-2); color: var(--muted); }
.btn.ghost:hover:not(:disabled) { color: var(--text); border-color: var(--accent); }
.btn .spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.actions {
  margin-top: 20px;
  display: flex; gap: 12px; align-items: center; justify-content: flex-end;
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.input,
input[type=email],
input[type=text],
input[type=search],
input[type=password],
textarea,
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus,
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,.12);
}
input::placeholder, textarea::placeholder { color: var(--dim); }

.field { margin-bottom: 16px; }
.field .label {
  display: block;
  font-size: 11px; color: var(--muted);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 8px;
}

.form-row { display: flex; gap: 8px; }
.form-row .input { flex: 1; min-width: 0; }

.msg { margin-top: 10px; font-size: 12px; }
.msg.ok  { color: var(--ok); }
.msg.err { color: var(--danger); }

.notify {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
}
.notify .title {
  font-size: 12px; color: var(--muted); letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ------------------------------------------------------------
   Progress
   ------------------------------------------------------------ */
.progress {
  margin: 0 0 8px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--sunken);
  border: 1px solid var(--line);
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 14px rgba(0,229,255,.55);
  transition: width .6s ease;
}
.progress-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); letter-spacing: 1px;
  margin-bottom: 24px;
}
.progress-meta .cd { color: var(--accent); }

/* ------------------------------------------------------------
   Rows
   ------------------------------------------------------------ */
.rows { border-top: 1px solid var(--line); padding-top: 20px; }
.row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-size: 13px; padding: 8px 0;
}
.row .k { color: var(--muted); }
.row .v { color: var(--text); }
.row .v a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}
.row .v a:hover { border-bottom-color: var(--accent); }

/* ------------------------------------------------------------
   Terminal log
   ------------------------------------------------------------ */
.term {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  font-size: 12px; color: var(--muted); line-height: 1.9;
  max-height: 170px; overflow: hidden;
}
.term .ln::before { content: "$ "; color: var(--accent); }
.term .ln.info::before { content: "  "; }
.term .ln.info { color: var(--dim); }
.term .ln.ok::after   { content: " ✓"; color: var(--ok); }
.term .ln.warn::after { content: " …"; color: var(--warn); }
.term .ln.err::after  { content: " ✗"; color: var(--danger); }
.term .ln.dim { opacity: .55; }

/* ------------------------------------------------------------
   Drop zone (laserslate)
   ------------------------------------------------------------ */
.drop {
  position: relative;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  overflow: hidden;
}
.drop:hover { border-color: var(--accent-2); }
.drop.dragover { border-color: var(--accent); transform: translateY(-1px); }
.drop.has-file {
  border-style: solid;
  border-color: var(--accent-2);
  cursor: default;
  padding: 24px;
}
.drop .icon {
  font-size: 34px; color: var(--accent);
  text-shadow: var(--glow-accent);
  margin-bottom: 14px; line-height: 1;
}
.drop .primary { font-size: 15px; margin-bottom: 6px; }
.drop .secondary { font-size: 12px; color: var(--muted); }
.drop .hint { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.drop.has-file .empty { display: none; }

.preview { display: none; align-items: center; gap: 20px; text-align: left; }
.drop.has-file .preview { display: flex; }
.preview img {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #000;
  flex-shrink: 0;
  filter: grayscale(1) invert(1);
}
.preview .meta { flex: 1; min-width: 0; }
.preview .name {
  font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.preview .size { font-size: 12px; color: var(--muted); }
.preview .clear {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--muted);
  width: 34px; height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--mono); font-size: 16px; line-height: 1;
  transition: all .15s; flex-shrink: 0;
}
.preview .clear:hover { color: var(--danger); border-color: var(--danger); }

.result {
  margin-top: 36px;
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.result.show { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.result .head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 13px;
}
.result .head .label { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.result.error .head .label { color: var(--danger); }
.result .body {
  padding: 24px;
  display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
}
.result .body img {
  max-width: 320px; width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #000;
}
.result .info {
  flex: 1; min-width: 200px;
  font-size: 13px; color: var(--muted); line-height: 1.9;
}
.result .info b { color: var(--text); font-weight: 500; }
.result .info a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}
.result .info a:hover { border-bottom-color: var(--accent); }

/* ------------------------------------------------------------
   b0nk13main (was: .hero)
   ------------------------------------------------------------ */
.b0nk13main h1 {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -.3px;
}
.b0nk13main h1 .accent { color: var(--accent); }
.b0nk13main p {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
}
.b0nk13main p b { color: var(--text); font-weight: 500; }

.pipeline {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
  color: var(--muted); font-size: 12px; margin-top: 4px;
}
.pipeline span {
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--bg-2);
}
.pipeline .arrow { color: var(--accent); border: 0; background: 0; padding: 3px 2px; }

.caret {
  display: inline-block;
  width: .55ch; height: 1em;
  background: var(--accent);
  vertical-align: -.12em;
  margin-left: 4px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.glyph {
  font-size: 46px; line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(0,229,255,.5);
  margin-bottom: 18px;
  display: inline-block;
  animation: float 4s ease-in-out infinite;
}
.glyph.danger { color: var(--danger); text-shadow: 0 0 30px rgba(255,84,112,.5); }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}

/* ------------------------------------------------------------
   Links / tags / code
   ------------------------------------------------------------ */
.links { border-top: 1px solid var(--line); padding-top: 20px; }
.links .title {
  font-size: 12px; color: var(--muted); letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.links .grid { display: flex; flex-wrap: wrap; gap: 8px; }
.links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  transition: all .15s;
}
.links a::before { content: "→"; color: var(--muted); transition: color .15s; }
.links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(0,229,255,.15);
}
.links a:hover::before { color: var(--accent); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
}
.tag.ok     { color: var(--ok);     border-color: color-mix(in srgb, var(--ok) 40%, var(--line-2)); }
.tag.warn   { color: var(--warn);   border-color: color-mix(in srgb, var(--warn) 40%, var(--line-2)); }
.tag.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line-2)); }

code, .code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--warn);
  background: var(--sunken);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 5px;
  word-break: break-all;
}

/* ------------------------------------------------------------
   Counter grid (index)
   ------------------------------------------------------------ */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.counter-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.counter-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--glow-accent);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.counter-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
/* teller die altijd net boven de footer plakt */
.counter-bottom {
  margin-top: auto;
  padding-top: 36px;
}

/* ------------------------------------------------------------
   Utilities
   ------------------------------------------------------------ */
.hidden { display: none !important; }
.muted  { color: var(--muted); }
.accent { color: var(--accent); }
.spacer-20 { height: 20px; }
.spacer-36 { height: 36px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ------------------------------------------------------------
   Responsive (basis)
   ------------------------------------------------------------ */
@media (max-width: 800px) {
  :root { --pad-x: 20px; }

  header { padding: 16px var(--pad-x); flex-wrap: wrap; gap: 12px; }
  .brand .logo { font-size: 20px; }
  .brand .tag { display: none; }

  .theme-toggle { margin-left: auto; order: 4; }
  .nav-toggle   { display: inline-flex; margin-left: 0; order: 5; }

  .nav {
    order: 10;
    width: 100%;
    margin-left: 0;
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { width: 100%; }
  .nav a { padding: 12px 14px; }
  .nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 0 0 0 12px;
    min-width: 0;
    display: none;
  }
  .nav .has-sub.open .sub { display: flex; }
  .nav .has-sub:hover .sub { display: none; }
  .nav .has-sub.open:hover .sub { display: flex; }
}

@media (max-width: 640px) {
  main { padding: 40px 16px; }
  main.wide { padding: 36px var(--pad-x) 60px; }
  .card-inner { padding: 28px 20px 24px; }
  .drop { padding: 36px 18px; }
  .preview { flex-direction: column; text-align: center; }
  .preview img { width: 120px; height: 120px; }
  .actions { justify-content: stretch; }
  .actions .btn { flex: 1; }
  .form-row { flex-direction: column; }
  footer { padding: 18px var(--pad-x); flex-direction: column; }
}

/* ---------------- countdown ---------------- */
.cd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.cd-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cd-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.cd-head .name {
  color: var(--text);
  font-weight: 500;
}
.cd-head .date {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .5px;
}

.cd-body {
  padding: 28px 20px;
  display: flex; justify-content: center;
}

.cd-digits {
  display: flex; gap: 10px;
  flex-wrap: wrap; justify-content: center;
}

.cd-unit {
  min-width: 74px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  text-align: center;
}
.cd-num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  text-shadow: var(--glow-accent);
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* de dag zelf: plaatje in plaats van cijfers */
.cd-image {
  padding: 0;
  display: block;
  line-height: 0;
}
.cd-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
}

/* subtiele pulse op seconden */
.cd-unit.secs .cd-num { color: var(--accent-2); }

/* ---------------- sneeuw ---------------- */
#snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
#snow .flake {
  position: absolute;
  top: -30px;
  color: var(--snow-color);
  line-height: 1;
  will-change: transform;
  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* binnenkant: het wiegen */
#snow .flake .inner {
  display: inline-block;
  animation-name: snow-sway;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes snow-fall {
  0% {
    transform: translate3d(0, -30px, 0);
  }
  100% {
    transform: translate3d(var(--drift, 0px), 110vh, 0);
  }
}

@keyframes snow-sway {
  0%   { transform: translateX(calc(var(--sway, 20px) * -1)) rotate(-15deg); }
  100% { transform: translateX(var(--sway, 20px))              rotate( 15deg); }
}

@media (prefers-reduced-motion: reduce) {
  #snow { display: none; }
}

/* ---------------- omrekenen ---------------- */
.conv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.conv-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.conv-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.conv-head .name {
  color: var(--text);
  font-weight: 500;
  letter-spacing: .3px;
}
.conv-head .hint {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
}

.conv-body {
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.conv-body.two-col {
  grid-template-columns: 1fr;
  gap: 14px;
}

.conv-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.conv-field .unit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
  letter-spacing: .5px;
}

.conv-field input,
.conv-field select {
  font-size: 16px;
  padding: 14px 52px 14px 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.conv-field select {
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
}

.conv-eq {
  color: var(--accent);
  font-size: 18px;
  text-align: center;
  user-select: none;
  padding: 0 4px;
}

.conv-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
}

.conv-meta {
  padding: 0 20px 18px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .3px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.conv-error {
  padding: 14px 20px;
  color: var(--danger);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .conv-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .conv-eq {
    padding: 4px 0;
    font-size: 14px;
  }
  .conv-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------------- aida calculator ---------------- */
.aida-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.aida-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  cursor: pointer;
  transition: border-color .15s;
  line-height: 1.6;
}
.aida-check:hover { border-color: var(--line-2); }
.aida-check input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.aida-check .label {
  flex: 1;
}
.aida-check .note {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: .3px;
}

.aida-result {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  text-align: center;
}
.aida-result .label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.aida-result .value {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--glow-accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.aida-result .value .unit {
  font-size: 16px;
  color: var(--muted);
  margin-left: 4px;
  text-shadow: none;
}
.aida-result .sub {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .3px;
}

@media (max-width: 640px) {
  .aida-grid {
    grid-template-columns: 1fr;
  }
  .aida-result .value {
    font-size: 24px;
  }
}
/* Aida-invoer links uitlijnen in plaats van rechts */
.aida-grid .conv-field input {
  text-align: left;
}

/* ---------------- weer-kaarten (oinfo / weather) ---------------- */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.weather-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.weather-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.weather-head .name {
  color: var(--text);
  font-weight: 500;
  letter-spacing: .3px;
}
.weather-head .hint {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
}

.weather-body {
  padding: 16px 20px 20px;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.weather-body img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #06080a;
  display: block;
}

@media (max-width: 640px) {
  .weather-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- slate gallery ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
  box-shadow: var(--shadow-card);
}
.gallery-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0,229,255,.15), var(--shadow-card);
  transform: translateY(-2px);
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  background: #06080a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  image-rendering: auto;
}

.gallery-meta {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.gallery-name {
  font-size: 11.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.gallery-sub {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.gallery-page-info {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .gallery-meta {
    padding: 8px 10px 10px;
  }
}

/* ---------------- scroll naar boven ---------------- */
#to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;

  width: 44px;
  height: 44px;
  padding: 0;

  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;

  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 50%;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, visibility .2s, transform .2s,
              border-color .15s, box-shadow .15s, color .15s;

  box-shadow: 0 8px 24px -8px rgba(0,0,0,.6);
}

#to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0,229,255,.35), 0 8px 24px -8px rgba(0,0,0,.6);
}

#to-top:active {
  transform: translateY(1px);
}

@media (max-width: 640px) {
  #to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #to-top {
    transition: opacity .15s, visibility .15s;
  }
}

/* ---------------- verversen ---------------- */
#refresh-page {
  position: fixed;
  right: 24px;
  bottom: 80px;           /* 24px + 44px knop + 12px tussenruimte */
  z-index: 50;

  width: 44px;
  height: 44px;
  padding: 0;

  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;

  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 50%;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Standaard verborgen — verschijnt pas na 30s via JS */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease,
              color .15s, border-color .15s, box-shadow .15s;

  box-shadow: 0 8px 24px -8px rgba(0,0,0,.6);
}

#refresh-page.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#refresh-page:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,229,255,.35), 0 8px 24px -8px rgba(0,0,0,.6);
}

#refresh-page:active {
  transform: translateY(1px);
}

#refresh-page.spinning {
  animation: refresh-spin .6s linear;
}

@keyframes refresh-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  #refresh-page {
    right: 16px;
    bottom: 68px;         /* 16px + 40px knop + 12px tussenruimte */
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #refresh-page.spinning {
    animation: none;
  }
}

/* ---------------- kalender ---------------- */
.cal-today {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.cal-today .left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-today .weekday {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.cal-today .date {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
}
.cal-today .right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cal-today .clock {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--glow-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.cal-today .week-badge {
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cal-nav h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--text);
}
.cal-nav h2 .year {
  color: var(--muted);
  font-weight: 400;
}
.cal-nav .nav-buttons {
  display: flex;
  gap: 8px;
}
.cal-nav .btn {
  padding: 8px 16px;
  font-size: 13px;
}

.cal-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.cal-head,
.cal-row {
  display: grid;
  grid-template-columns: 54px repeat(7, 1fr);
}

.cal-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.cal-head > div {
  padding: 12px 4px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.cal-head > div:first-child {
  border-left: 0;
}

.cal-row {
  border-bottom: 1px solid var(--line);
}
.cal-row:last-child {
  border-bottom: 0;
}

.cal-weeknum {
  padding: 8px 4px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.cal-day {
  min-width: 0;
  min-height: 78px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  position: relative;
  cursor: default;
  transition: background .15s;
}
.cal-day:first-child { border-left: 0; }

.cal-day.other-month .num {
  color: var(--dim);
}
.cal-day .num {
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cal-day.weekend .num {
  color: var(--muted);
}
.cal-day.today {
  background: rgba(0,229,255,.06);
  box-shadow: inset 0 0 0 1px var(--accent),
              0 0 20px rgba(0,229,255,.12);
  z-index: 2;
}
.cal-day.today .num {
  color: var(--accent);
  text-shadow: var(--glow-accent);
  font-weight: 700;
}

.cal-day.editable {
  cursor: pointer;
}
.cal-day.editable:hover {
  background: rgba(0,229,255,.04);
}

.cal-day .note-preview {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  min-width: 0;
  display: block;
}

.cal-day.has-note .note-preview {
  color: var(--text);
}

.cal-day .note-dot {
  position: absolute;
  bottom: 6px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ---------------- feestdagen ---------------- */
.cal-day.feestdag {
  background: rgba(255, 180, 84, .07);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent);
}
.cal-day.feestdag .num {
  color: var(--warn);
  text-shadow: 0 0 12px rgba(255,180,84,.5);
}

/* Als een feestdag ook vandaag is, wint de cyaan rand */
.cal-day.feestdag.today {
  background: rgba(0,229,255,.06);
  box-shadow: inset 0 0 0 1px var(--accent),
              0 0 20px rgba(0,229,255,.12);
}
.cal-day.feestdag.today .num {
  color: var(--accent);
  text-shadow: var(--glow-accent);
}

.cal-day .feestdag-label {
  font-size: 9.5px;
  color: var(--warn);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  opacity: .9;
}
.cal-day.other-month .feestdag-label {
  opacity: .45;
}

@media (max-width: 800px) {
  .cal-day .feestdag-label {
    font-size: 8.5px;
  }
}

/* ---- dialog ---- */
dialog.note-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  padding: 0;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  font-family: var(--mono);
}
dialog.note-dialog::backdrop {
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.note-dialog .head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.note-dialog .head .title { color: var(--text); font-weight: 500; }
.note-dialog .head .date  { color: var(--muted); font-size: 12px; }
.note-dialog .body {
  padding: 20px;
}
.note-dialog textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
}
.note-dialog .foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.note-dialog .foot .left  { display: flex; gap: 8px; }
.note-dialog .foot .right { display: flex; gap: 8px; }

.cal-hint {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: .3px;
}

@media (max-width: 800px) {
  .cal-today .clock { font-size: 24px; }
  .cal-today .date  { font-size: 18px; }
  .cal-grid { font-size: 11px; }
  .cal-head, .cal-row { grid-template-columns: 36px repeat(7, 1fr); }
  .cal-day  { min-height: 60px; padding: 6px; }
  .cal-day .num { font-size: 12px; }
  .cal-day .note-preview { display: none; }
  .cal-weeknum { font-size: 10px; }
}

/* ---------------- password generator ---------------- */
.pw-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.pw-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.pw-range-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 4px;
}

.pw-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 6px;
  transition: border-color .15s;
}
.pw-check:hover { border-color: var(--line-2); }
.pw-check input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.pw-check .muted {
  color: var(--muted);
  font-size: 11.5px;
}

.pw-strength {
  height: 6px;
  border-radius: 999px;
  background: var(--sunken);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 16px;
}
.pw-strength-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .3s ease, background .3s ease;
  box-shadow: 0 0 12px rgba(0,229,255,.3);
}

.pw-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 380px;
  overflow-y: auto;
}

.pw-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  transition: border-color .15s;
}
.pw-item:hover { border-color: var(--accent); }

.pw-text {
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
  background: transparent;
  border: 0;
  padding: 0;
  letter-spacing: .3px;
}

.pw-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.pw-actions .btn {
  flex: 1;
  justify-content: center;
}

@media (max-width: 800px) {
  .pw-layout { grid-template-columns: 1fr; }
}

.dm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 640px) {
  .dm-grid { grid-template-columns: 1fr; }
}

/* ---------------- password: lengte-invoer ---------------- */
.pw-length-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pw-length-row .pw-range {
  flex: 1;
  min-width: 0;
}
.pw-length-input {
  width: 80px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  padding: 8px 6px;
  flex-shrink: 0;
  -moz-appearance: textfield;
}
.pw-length-input::-webkit-outer-spin-button,
.pw-length-input::-webkit-inner-spin-button {
  opacity: 1;
  height: 22px;
}
.pw-length-unit {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  letter-spacing: .5px;
}

@media (max-width: 480px) {
  .pw-length-input { width: 68px; }
  .pw-length-unit  { display: none; }
}

/* ---------------- ontwerptools tabs ---------------- */
.ot-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  margin-bottom: 0;
}
.ot-tab {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: 2px;
  transition: all .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ot-tab i { font-size: 13px; }
.ot-tab:hover { color: var(--text); }
.ot-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.ot-tab.active i {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent));
}

.ot-panels {
  padding: 24px 0 0;
}
.ot-panel { display: none; }
.ot-panel.active { display: block; animation: fadeIn .25s ease; }

.ot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 800px) {
  .ot-grid { grid-template-columns: 1fr; }
  .ot-tab { padding: 12px 14px; font-size: 12px; }
}

/* ---------------- kleurenpicker ---------------- */
.color-big {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.color-big-input {
  width: 100px;
  height: 100px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  padding: 4px;
  background: var(--bg);
}
.color-big-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-big-input::-webkit-color-swatch { border: 0; border-radius: 8px; }
.color-big-input::-moz-color-swatch { border: 0; border-radius: 8px; }

.color-big-preview {
  flex: 1;
  height: 100px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  transition: background .15s;
}

.copy-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.copy-row .input { flex: 1; min-width: 0; }

.color-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.swatch {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: transform .1s, border-color .15s;
  padding: 0;
}
.swatch:hover {
  transform: scale(1.06);
  border-color: var(--accent);
}

/* ---------------- gradient ---------------- */
.gr-preview {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: background .15s;
}

/* ---------------- favicon generator ---------------- */
.fv-output {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fv-section-title {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.fv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}
.fv-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  position: relative;
  transition: border-color .15s;
}
.fv-item:hover { border-color: var(--accent); }
.fv-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  background: #000;
  border-radius: 4px;
}
.fv-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .5px;
}
.fv-dl {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  text-decoration: none;
  transition: all .15s;
}
.fv-dl:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------------- particles ---------------- */
.pt-canvas-wrap {
  background: #06080a;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 480px;
}
.pt-canvas-wrap canvas {
  display: block;
}

.pt-outputs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pt-outputs .btn {
  flex: 1;
  justify-content: center;
  min-width: 140px;
}

/* ---------------- header particles ---------------- */
.header-particles-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.header-particles-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

header > *:not(.header-particles-wrap) {
  position: relative;
  z-index: 2;
}

/* ---------------- notitie-popup ---------------- */
.note-popup {
  position: fixed;
  right: 24px;
  bottom: 136px;                /* boven #refresh-page (80+44) + 12px gap */
  z-index: 100;
  width: 340px;
  max-width: calc(100vw - 48px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px 14px;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,.7);
  display: none;
}
.note-popup.show {
  display: block;
  animation: notePopIn .35s ease;
}

@keyframes notePopIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.note-popup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}
.note-popup-head i {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent));
}

.note-popup-min {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  padding: 0 4px;
  line-height: 1;
  transition: color .15s;
  font-family: var(--mono);
}
.note-popup-min:hover {
  color: var(--danger);
}

.note-popup-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.note-popup-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ---- Mobiel: naar boven, boven de header uit ---- */
@media (max-width: 640px) {
  .note-popup {
    top: 90px;
    bottom: auto;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
  @keyframes notePopIn {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }
}

/* ---------------- belangrijke notities ---------------- */
.cal-day.important {
  background: rgba(255, 84, 112, .08);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 55%, transparent);
}
.cal-day.important .num {
  color: var(--danger);
  text-shadow: 0 0 12px rgba(255, 84, 112, .5);
}
.cal-day.important.has-note .note-preview {
  color: var(--danger);
}
.cal-day.important .note-dot {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}
.cal-day.important::after {
  content: "★";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  line-height: 1;
  color: var(--danger);
  text-shadow: 0 0 8px rgba(255, 84, 112, .6);
  pointer-events: none;
}

/* important + feestdag: important wint */
.cal-day.feestdag.important {
  background: rgba(255, 84, 112, .08);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 55%, transparent);
}
.cal-day.feestdag.important .num {
  color: var(--danger);
  text-shadow: 0 0 12px rgba(255, 84, 112, .5);
}

/* important + vandaag: cyaan rand wint, ster blijft */
.cal-day.important.today {
  background: rgba(0, 229, 255, .06);
  box-shadow: inset 0 0 0 1px var(--accent),
              0 0 20px rgba(0, 229, 255, .12);
}
.cal-day.important.today .num {
  color: var(--accent);
  text-shadow: var(--glow-accent);
}

/* checkbox in de notitie-dialog + belangrijk */
.note-dialog .note-important-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.5;
  transition: border-color .15s, background .15s;
}
.note-dialog .note-important-check:hover {
  border-color: var(--line-2);
}
.note-dialog .note-important-check input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--danger);
  cursor: pointer;
  margin: 1px 0 0;
  flex-shrink: 0;
}
.note-dialog .note-important-check.checked {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, var(--sunken));
}
.note-dialog .note-important-check .muted {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

/* popup (footer.php) — rode rand als important */
.note-popup.important {
  border-left-color: var(--danger);
}
.note-popup.important .note-popup-head {
  color: var(--danger);
}

/* ---------------- footer: taal-selector ---------------- */
.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  width: auto;
  padding: 5px 10px;
  font-size: 11px;
  font-family: var(--mono);
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.lang-select:hover,
.lang-select:focus {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

/* ---------------- Google Translate opruimen ---------------- */

/* Banner-iframe bovenaan */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.skiptranslate > iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
}

/* Alle skip-translate containers */
.skiptranslate {
  display: none !important;
  height: 0 !important;
}

/* De vertaal-balloon en tooltip */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
}

/* Loading spinner */
.goog-te-spinner-pos {
  display: none !important;
}

/* Highlight bij hover over vertaalde tekst */
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Body mag niet naar beneden geduwd worden */
body {
  top: 0 !important;
  position: static !important;
  margin-top: 0 !important;
}

/* html-element soms ook */
html {
  margin-top: 0 !important;
}

/* ---------------- p2000 auto-refresh status ---------------- */
.p2000-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .3px;
  flex-wrap: wrap;
}
.p2000-status .btn {
  margin-left: auto;
  padding: 6px 12px;
  font-size: 12px;
}
.p2000-status .btn.spinning i {
  animation: p2000spin .8s linear infinite;
}
@keyframes p2000spin {
  to { transform: rotate(360deg); }
}

.p2000-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}
.p2000-dot.ok   { background: var(--ok);     color: var(--ok); }
.p2000-dot.warn { background: var(--warn);   color: var(--warn); }
.p2000-dot.err  { background: var(--danger); color: var(--danger); }

#p2000Countdown {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* ---------------- p2000 kleuren per dienst ---------------- */
:root {
  --p2000-ambulance: #ffd400;   /* geel */
  --p2000-politie:   #3b82f6;   /* blauw */
  --p2000-brandweer: #ff3b3b;   /* rood */
  --p2000-mmt:       #7ef29d;   /* appelgroen */
  --p2000-algemeen:  var(--line-2);
}
:root[data-theme="light"] {
  --p2000-ambulance: #d4a800;
  --p2000-politie:   #1d6fe0;
  --p2000-brandweer: #d92b2b;
  --p2000-mmt:       #16a34a;
  --p2000-algemeen:  var(--line-2);
}

.cd-card.p2000-ambulance { border-left: 3px solid var(--p2000-ambulance); }
.cd-card.p2000-politie   { border-left: 3px solid var(--p2000-politie); }
.cd-card.p2000-brandweer { border-left: 3px solid var(--p2000-brandweer); }
.cd-card.p2000-mmt       { border-left: 3px solid var(--p2000-mmt); }
.cd-card.p2000-algemeen  { border-left: 3px solid var(--p2000-algemeen); }

/* Gekleurde titel per dienst */
.cd-card.p2000-ambulance .cd-head .name { color: var(--p2000-ambulance); }
.cd-card.p2000-politie   .cd-head .name { color: var(--p2000-politie); }
.cd-card.p2000-brandweer .cd-head .name { color: var(--p2000-brandweer); }
.cd-card.p2000-mmt       .cd-head .name { color: var(--p2000-mmt); }

/* Legenda */
.p2000-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .3px;
}
.p2000-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.p2000-dot-mini {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.p2000-dot-mini.ambulance { background: var(--p2000-ambulance); box-shadow: 0 0 6px var(--p2000-ambulance); }
.p2000-dot-mini.politie   { background: var(--p2000-politie);   box-shadow: 0 0 6px var(--p2000-politie); }
.p2000-dot-mini.brandweer { background: var(--p2000-brandweer); box-shadow: 0 0 6px var(--p2000-brandweer); }
.p2000-dot-mini.mmt       { background: var(--p2000-mmt);       box-shadow: 0 0 6px var(--p2000-mmt); }

/* ---------------- p2000 cursieve markers ---------------- */
.p2000-marker {
  font-style: italic;
  color: var(--warn);
  opacity: .9;
}

/* Hele melding ingetrokken → gedimd + doorgestreepte titel */
.cd-card.p2000-ingetrokken {
  opacity: .6;
}
.cd-card.p2000-ingetrokken .cd-head .name {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--muted);
}
.cd-card.p2000-ingetrokken .p2000-marker {
  color: var(--danger);
  font-weight: 500;
  opacity: .6;
}
/* Vet + cursief — opschalen, afschalen, GRIP, grootschalig, middelbrand */
.p2000-alert {
  font-style: italic;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: .2px;
}

/* ---------------- laser prep ---------------- */
.lp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .lp-layout { grid-template-columns: 1fr; }
}

.lp-row-3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-row-3 .input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.lp-times {
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}

/* Split view */
.lp-split {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #06080a;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
.lp-split .lp-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}
.lp-split .lp-layer-top {
  clip-path: inset(0 50% 0 0);
}
.lp-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  background: transparent;
  cursor: ew-resize;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 229, 255, .5);
  pointer-events: none;
}

.lp-divider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: var(--accent-ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}

.lp-split:hover .lp-divider::before {
  width: 5px;
  margin-left: -2.5px;
}

.lp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.lp-actions .btn {
  justify-content: center;
  padding: 12px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* Op smalle schermen alsnog onder elkaar als het te krap wordt */
@media (max-width: 380px) {
  .lp-actions {
    grid-template-columns: 1fr;
  }
}

/* ---------------- laser prep: presets ---------------- */
.lp-preset-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.lp-preset-row .input {
  flex: 1;
  min-width: 0;
}
.lp-preset-row .btn.icon-only {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------------- laser prep: rotatie ---------------- */
.lp-rotate-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.lp-rotate-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
}
.lp-rotate-status {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  padding: 0 8px;
}

/* ---------------- laser prep: histogram ---------------- */
.lp-hist-wrap {
  background: #06080a;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.lp-hist {
  display: block;
  width: 100%;
  height: 60px;
}

.lp-levels-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.lp-levels-item {
  display: grid;
  grid-template-columns: 44px 1fr 30px;
  gap: 6px;
  align-items: center;
}
.lp-levels-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.lp-levels-val {
  font-size: 11px;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lp-levels-actions {
  display: flex;
  gap: 8px;
}

/* ---------------- laser prep: file bar ---------------- */
.lp-filebar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
}
.lp-file-select {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  padding: 6px 8px;
}
.lp-file-counter {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  min-width: 40px;
  text-align: right;
}

/* ---------------- eenheid selector ---------------- */
.lp-unit-select {
  flex: 0 0 72px !important;
  padding: 11px 6px;
  font-size: 12px;
  text-align: center;
}

/* ---------------- rotatie: actieve knop ---------------- */
.lp-rotate-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,229,255,.2);
}

/* ---------------- crop overlay ---------------- */
.lp-crop-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: crosshair;
  touch-action: none;
}
.lp-crop-rect {
  position: absolute;
  border: 2px dashed var(--accent);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.45);
  cursor: move;
  pointer-events: auto;
}

/* Alle 8 handgrepen */
.lp-crop-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  z-index: 5;
  pointer-events: auto;
}
.lp-crop-handle::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent-ink);
  border-radius: 1px;
}

/* Posities + cursors — binnen de crop-rect, altijd zichtbaar */
.lp-h-nw { top: 0;      left: 0;      cursor: nwse-resize; }
.lp-h-n  { top: 0;      left: 50%;    margin-left: -8px; cursor: ns-resize; }
.lp-h-ne { top: 0;      right: 0;     cursor: nesw-resize; }
.lp-h-w  { top: 50%;    left: 0;      margin-top: -8px;  cursor: ew-resize; }
.lp-h-e  { top: 50%;    right: 0;     margin-top: -8px;  cursor: ew-resize; }
.lp-h-sw { bottom: 0;   left: 0;      cursor: nesw-resize; }
.lp-h-s  { bottom: 0;   left: 50%;    margin-left: -8px; cursor: ns-resize; }
.lp-h-se { bottom: 0;   right: 0;     cursor: nwse-resize; }

/* Tijdens crop: cursor op hele split = crosshair */
.lp-split.cropping {
  cursor: crosshair;
}
.lp-split.cropping .lp-layer-top {
  clip-path: inset(0 0 0 0) !important;
}

/* ---------------- laser tools ---------------- */
.lt-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
}
.lt-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
  background: #fff;
}
.lt-color-hex {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 1px;
}

.lt-preview-checker {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background-image:
    linear-gradient(45deg, #1a1d21 25%, transparent 25%),
    linear-gradient(-45deg, #1a1d21 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1a1d21 75%),
    linear-gradient(-45deg, transparent 75%, #1a1d21 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #0e1116;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 12px;
}
.lt-preview-checker img,
.lt-preview-checker canvas {
  max-width: 100%;
  display: block;
  image-rendering: auto;
}

.lt-row-3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lt-row-3 .input {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.lt-times {
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}

/* Hatch / Kerf / SVG Opt kleine aanpassingen */
#hxCanvas,
#kfCanvas {
  max-height: 500px;
}

/* ---------------- laser generators: SVG preview ---------------- */
.lt-svg-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: auto;
}
.lt-svg-preview > div {
  display: inline-block;
}
.lt-svg-preview svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.lt-svg-preview svg path {
  fill: none;
  stroke: #000;
  stroke-width: 0.4;
  stroke-linejoin: miter;
  stroke-linecap: butt;
  vector-effect: non-scaling-stroke;
}
.lt-svg-preview svg text {
  fill: rgba(0, 100, 120, 0.9);
  font-family: var(--mono);
  font-size: 3px;
  text-anchor: middle;
  dominant-baseline: middle;
}

/* ---------------- QR generator ---------------- */
.qr-fields { display: none; }
.qr-fields.active { display: block; }

/* ---------------- optimizer: analyse ---------------- */
.op-analysis {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  padding: 10px 14px;
}
.op-analysis-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 4px 0;
}
.op-analysis-row + .op-analysis-row {
  border-top: 1px solid var(--line);
}
.op-analysis-row span:first-child {
  color: var(--muted);
}
.op-val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 500;
}
.op-val.warn {
  color: var(--warn);
}
.op-val.ok {
  color: var(--ok);
}

/* ---------------- mandala ringen ---------------- */
.md-ring {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
}
.md-ring-head {
  display: grid;
  grid-template-columns: 24px 1fr 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.md-ring-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line-2);
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.md-ring-select {
  padding: 6px 10px;
  font-size: 12.5px;
}
.md-ring-size {
  font-size: 11px;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.md-ring .pw-range {
  margin-top: 4px;
}

/* ---------------- Actie-rijen (undo/redo/reset/random + downloads) ---------------- */

/* 1 kolom */
.lt-actions.lt-actions-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}

/* 2 kolommen */
.lt-actions.lt-actions-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

/* 3 kolommen: undo · redo · reset */
.lt-actions.lt-actions-3 {
  display: grid;
  grid-template-columns: 42px 42px 1fr;
  gap: 8px;
  margin-top: 16px;
}

/* 3 gelijke kolommen (QR: png · svg · dxf) */
.lt-actions.lt-actions-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

/* 4 kolommen: undo · redo · reset · random */
.lt-actions.lt-actions-4 {
  display: grid;
  grid-template-columns: 42px 42px 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

/* Alle knoppen in deze rijen netjes centreren */
.lt-actions .btn {
  justify-content: center;
  white-space: nowrap;
}

/* In 3- en 4-koloms rijen: undo/redo vierkant houden */
.lt-actions.lt-actions-3 .btn.ghost:first-child,
.lt-actions.lt-actions-3 .btn.ghost:nth-child(2),
.lt-actions.lt-actions-4 .btn.ghost:first-child,
.lt-actions.lt-actions-4 .btn.ghost:nth-child(2) {
  width: 42px;
  padding: 0;
  justify-content: center;
}

/* Op smalle schermen: 4-koloms rijen alsnog 2×2 */
@media (max-width: 480px) {
  .lt-actions.lt-actions-4 {
    grid-template-columns: 42px 42px;
  }
  .lt-actions.lt-actions-4 .btn.ghost:nth-child(3),
  .lt-actions.lt-actions-4 .btn.ghost:nth-child(4) {
    grid-column: span 1;
  }
}

/* ---------------- nesten ---------------- */
.ns-shape-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.ns-shape-empty {
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .3px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  background: var(--sunken);
}

.ns-shape-item {
  display: grid;
  grid-template-columns: 26px 1fr 80px 32px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
}

.ns-shape-dot {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
}

.ns-shape-info {
  min-width: 0;
}

.ns-shape-name {
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ns-shape-size {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .3px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.ns-shape-qty {
  width: 100%;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  padding: 6px 6px;
}

.ns-shape-del {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.ns-shape-del:hover { color: var(--danger); border-color: var(--danger); }

.ns-rot-checks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.ns-rot-checks .pw-check {
  margin-bottom: 0;
  padding: 8px 10px;
  justify-content: center;
}

.ns-sheets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.ns-sheet {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  overflow: hidden;
}

.ns-sheet-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
  background: var(--panel);
}

.ns-sheet-head .pct {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.ns-sheet-canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

/* ---------------- splitsen ---------------- */
.sp-group-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.sp-group-item {
  display: grid;
  grid-template-columns: 26px 1fr 26px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  cursor: pointer;
  transition: border-color .15s, opacity .15s;
}
.sp-group-item:hover { border-color: var(--line-2); }
.sp-group-item.off { opacity: .45; }
.sp-group-item .ns-shape-dot {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
}
.sp-group-item .ns-shape-info { min-width: 0; }
.sp-group-item .ns-shape-name {
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.sp-group-item .ns-shape-size {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .3px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.sp-group-item input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}


/* EoF */