/* ============================================================
   ZAZU XP - stylesheet
   Mobiel eerst. De chrome is periodegetrouw (Luna), de inhoud
   is leesbaar op een telefoon uit 2026.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Luna blauw */
  --luna-deep: #0f3fa8;
  --luna: #245edb;
  --luna-lite: #4d90f5;
  --luna-pale: #a5c8ff;
  --luna-edge: #0831a3;

  /* Dialoog-beige */
  --face: #ece9d8;
  --face-hi: #ffffff;
  --face-lo: #aca899;
  --face-deep: #d6d2c2;
  --field: #ffffff;

  /* Zazu-merk */
  --zazu-orange: #e5641f;
  --zazu-orange-deep: #c24e13;
  --zazu-glow: #ff9854;
  --ink: #14100c;
  --ink-soft: #5a4a3d;
  --ink-mute: #7d7266;

  /* Bureaublad */
  --sky-1: #1b4fa8;
  --sky-2: #62a8ea;
  --sky-3: #cfe3f7;
  --hill-1: #7fb63d;
  --hill-2: #4b8722;
  --hill-3: #5f9c2c;
  --hill-4: #33641a;

  /* Maatvoering */
  --taskbar-h: 54px;
  --chrome-font: Tahoma, Verdana, Geneva, "DejaVu Sans", sans-serif;
  --radius-win: 8px 8px 0 0;
  --shadow-win: 0 18px 44px rgba(6, 20, 48, .38), 0 3px 10px rgba(6, 20, 48, .28);
  --ease-xp: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: var(--chrome-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: #0a1b3d;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--luna-deep); }

::selection { background: var(--luna); color: #fff; }

/* ---------- 2. Boot ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 42%, #123a86 0%, #07142e 62%, #030913 100%);
  color: #fff;
  transition: opacity .5s var(--ease-xp), visibility .5s;
}
.boot[data-done] { opacity: 0; visibility: hidden; pointer-events: none; }
.boot[data-done] .boot-bar i { animation: none; }
.boot[data-gone] { display: none; }
.boot-inner { text-align: center; padding: 0 24px; }
.boot-bird {
  width: clamp(96px, 26vw, 150px);
  height: auto;
  margin: 0 auto 10px;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
  animation: bootBird 2.4s var(--ease-xp) both;
}
@keyframes bootBird {
  0%   { opacity: 0; transform: translateY(18px) scale(.9); }
  38%  { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}
.boot-mark {
  font-size: clamp(2.6rem, 14vw, 4.2rem);
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .45);
}
.boot-mark span {
  color: var(--zazu-glow);
  letter-spacing: .04em;
}
.boot-sub {
  margin: 18px 0 0;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a9c4f0;
}
.boot-bar {
  width: min(230px, 60vw);
  height: 16px;
  margin: 30px auto 0;
  border: 2px solid #c9d9f2;
  border-radius: 9px;
  padding: 2px;
  display: flex;
  gap: 3px;
  overflow: hidden;
}
.boot-bar i {
  width: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, #9fd6ff, #2f7fe0 55%, #17509f);
  animation: bootSlide 1.9s linear infinite;
}
.boot-bar i:nth-child(2) { animation-delay: .16s; }
.boot-bar i:nth-child(3) { animation-delay: .32s; }
@keyframes bootSlide {
  0%   { transform: translateX(-34px); opacity: 0; }
  12%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateX(min(230px, 60vw)); opacity: 0; }
}
.boot-skip {
  position: absolute;
  bottom: 8vh;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7f9dcd;
}

/* ---------- 3. Bureaublad ---------- */
.desktop {
  position: fixed;
  inset: 0 0 var(--taskbar-h) 0;
  overflow: hidden;
}
.wallpaper { position: absolute; inset: 0; }
.wallpaper svg { width: 100%; height: 100%; display: block; }
.wallpaper::after {
  /* warme Zazu-gloed op de horizon, zodat het bureaublad niet generiek Bliss is */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 34% at 74% 46%, rgba(255, 152, 84, .5), transparent 66%),
    radial-gradient(40% 22% at 74% 46%, rgba(255, 196, 140, .42), transparent 70%),
    radial-gradient(100% 55% at 50% 100%, rgba(4, 20, 44, .3), transparent 72%);
  pointer-events: none;
}
.clouds { animation: drift 90s linear infinite; }
@keyframes drift {
  from { transform: translateX(-3%); }
  to   { transform: translateX(3%); }
}

/* Pictogrammen: mobiel een raster, desktop een kolom */
.icons {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px 2px;
  padding: 14px 10px;
  max-height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.icon {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 4px 10px;
  border-radius: 6px;
  border: 1px dotted transparent;
  text-align: center;
  min-height: 92px;
  transition: background .12s;
}
.icon:active,
.icon.is-sel {
  background: rgba(30, 100, 220, .42);
  border-color: rgba(255, 255, 255, .55);
}
.icon-glyph {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
}
.icon-glyph svg { width: 100%; height: 100%; }
.icon-label {
  font-size: 12px;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 6px rgba(0, 0, 0, .5);
  max-width: 88px;
  overflow-wrap: anywhere;
}
.icon.is-sel .icon-label { background: rgba(11, 62, 160, .9); }

/* Active-Desktop-paneel: het enige stuk vaste tekst op het bureaublad */
.deskpanel {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 14px;
  padding: 16px 17px 17px;
  border-radius: 12px;
  color: #fff;
  /* geen backdrop-filter: dat promoveert het paneel naar een eigen laag
     en dan tekent het over de vensters heen (gezien op 768px) */
  background:
    linear-gradient(160deg, rgba(12, 34, 78, .93), rgba(5, 17, 42, .96)),
    radial-gradient(120% 100% at 88% 0%, rgba(255, 152, 84, .22), transparent 62%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 14px 38px rgba(3, 12, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.dp-eyebrow {
  margin: 0 0 7px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--zazu-glow);
}
.dp-h1 {
  margin: 0;
  font-size: clamp(1.7rem, 7.4vw, 2.5rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.015em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.dp-sub {
  margin: 9px 0 0;
  font-size: .9rem;
  line-height: 1.45;
  color: #c9d9f2;
  max-width: 42ch;
}
.dp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .1);
}
.dp-btn:active { background: rgba(255, 255, 255, .22); }
.dp-primary {
  border-color: #a5480e;
  background: linear-gradient(180deg, #ff9d5e 0%, var(--zazu-orange) 46%, var(--zazu-orange-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 8px rgba(180, 70, 12, .4);
}

/* ---------- 4. Taakbalk ---------- */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--taskbar-h);
  z-index: 400;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding-right: 2px;
  padding-bottom: env(safe-area-inset-bottom);
  background:
    linear-gradient(180deg,
      #2f6fdf 0%, #4e8ef0 5%, #2b66d8 12%,
      #235bd0 48%, #1f52c4 88%, #16409e 100%);
  border-top: 1px solid #4f95f7;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .35);
}
.taskbar::before {
  content: "";
  position: absolute;
  inset: 1px 0 auto 0;
  height: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent);
  pointer-events: none;
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px 0 12px;
  color: #fff;
  font-size: 17px;
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 40, 0, .8);
  border-radius: 0 12px 12px 0;
  background:
    linear-gradient(180deg,
      #62b544 0%, #7fce55 8%, #4ea52f 42%,
      #3d8f24 62%, #2f7a1b 88%, #245f14 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 2px 0 6px rgba(0, 0, 0, .3);
  transition: filter .12s;
  flex: 0 0 auto;
}
.start-btn:active,
.start-btn[aria-expanded="true"] { filter: brightness(.86) saturate(1.15); }
.start-orb {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background: url("assets/bird/mark.svg") center/contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 30, 0, .55));
}
.start-word { letter-spacing: .01em; }

.tasks {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tasks::-webkit-scrollbar { display: none; }
.task {
  flex: 0 0 auto;
  max-width: 150px;
  min-width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, #4a8bec, #2b64d4 52%, #1f4fb8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .25);
}
.task[data-active] {
  background: linear-gradient(180deg, #1b47a8, #2359c8 55%, #2f6ddb);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .45);
}
.task-ico { width: 16px; height: 16px; flex: 0 0 auto; }
.task-name { overflow: hidden; text-overflow: ellipsis; }

.tray {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  background: linear-gradient(180deg, #17a2e0 0%, #1489d4 12%, #0f6fc4 55%, #0c5cae 100%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .3);
  color: #fff;
}
.tray-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  padding: 1px;
}
.tray-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tray-icon:active { background: rgba(255, 255, 255, .2); }
.tray-icon[data-terug] { animation: trayPulse 2.6s ease-in-out infinite; }
@keyframes trayPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 152, 84, .75); }
  60%      { box-shadow: 0 0 0 8px rgba(255, 152, 84, 0); }
}
.clock {
  font-size: 12px;
  letter-spacing: .02em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
  font-variant-numeric: tabular-nums;
}

/* ---------- 5. Startmenu ---------- */
.start-menu {
  position: fixed;
  left: 4px;
  right: 4px;
  bottom: calc(var(--taskbar-h) + env(safe-area-inset-bottom) - 2px);
  z-index: 420;
  border-radius: 8px 8px 6px 6px;
  overflow: hidden;
  background: var(--face);
  border: 1px solid var(--luna-edge);
  box-shadow: var(--shadow-win);
  transform: translateY(14px) scale(.98);
  transform-origin: 20% 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s var(--ease-xp), transform .2s var(--ease-xp), visibility .2s;
  max-height: min(74dvh, 620px);
  display: flex;
  flex-direction: column;
}
.start-menu[data-open] { opacity: 1; visibility: visible; transform: none; }

.sm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(180deg, #1e63d6 0%, #3d84ec 42%, #1c58c4 100%);
  border-bottom: 2px solid #0b3fa0;
}
.sm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  border: 2px solid #d8e6ff;
  background: radial-gradient(circle at 34% 28%, #fff 5%, var(--zazu-glow) 38%, var(--zazu-orange) 100%);
  flex: 0 0 auto;
}
.sm-user { font-size: 15px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }

.sm-body {
  display: grid;
  grid-template-columns: 1fr;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.sm-col { padding: 6px; }
.sm-col-right { background: #d3e5fb; border-top: 1px solid #b4cdea; }

.sm-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 4px;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  min-height: 48px;
}
.sm-item:active { background: var(--luna); color: #fff; }
.sm-item:active .sm-sub { color: #d9e8ff; }
.sm-ico { width: 26px; height: 26px; flex: 0 0 auto; }
.sm-ico svg { width: 100%; height: 100%; }
.sm-txt { display: grid; gap: 1px; min-width: 0; }
.sm-label { font-size: 14px; font-weight: 700; }
.sm-sub { font-size: 12px; color: var(--ink-mute); }
.sm-col-right .sm-label { font-weight: 400; }

.sm-foot {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 7px 10px;
  background: linear-gradient(180deg, #2f74e0, #1c58c4);
  border-top: 1px solid #0b3fa0;
}
.sm-foot-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  min-height: 40px;
}
.sm-foot-btn:active { background: rgba(255, 255, 255, .2); }
.sm-foot-ico {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, var(--zazu-glow), var(--zazu-orange-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.ico-power { background: linear-gradient(180deg, #ff8a8a, #c22020); }

/* ---------- 6. Vensters ---------- */
.windows { position: absolute; inset: 0; pointer-events: none; z-index: 3; }

.win {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  background: var(--face);
  overflow: hidden;
  --w-accent: var(--luna);
}
.win[data-min] { display: none; }

/* mobiel: vensters zijn schermvullende sheets die omhoog komen */
@media (max-width: 719px) {
  .win {
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-win);
    /* geen fill-mode: als de animatie nooit afloopt, staat het venster
       gewoon op zijn eindpositie in plaats van half buiten beeld */
    animation: sheetUp .26s var(--ease-xp);
  }
  .win[data-closing] { animation: sheetDown .2s ease-in forwards; }
  @keyframes sheetUp   { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes sheetDown { from { transform: none; } to { transform: translateY(100%); } }
}

.win-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 6px 0 9px;
  color: #fff;
  cursor: default;
  touch-action: none;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--w-accent) 78%, #ffffff) 0%,
      color-mix(in srgb, var(--w-accent) 96%, #ffffff) 8%,
      var(--w-accent) 30%,
      color-mix(in srgb, var(--w-accent) 88%, #000000) 78%,
      color-mix(in srgb, var(--w-accent) 72%, #000000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .35);
  border-radius: 10px 10px 0 0;
}
/* een venster op de achtergrond krijgt in XP een flauwe titelbalk */
.win:not([data-active]) .win-bar {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--w-accent) 34%, #ffffff) 0%,
      color-mix(in srgb, var(--w-accent) 46%, #ffffff) 10%,
      color-mix(in srgb, var(--w-accent) 52%, #ffffff) 40%,
      color-mix(in srgb, var(--w-accent) 44%, #ffffff) 100%);
}
.win:not([data-active]) .win-title { text-shadow: none; color: #f4f7ff; }
.win:not([data-active]) .win-btn { opacity: .78; }

.win-grip {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 42px;
  height: 4px;
  border-radius: 3px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .5);
}
@media (min-width: 720px) { .win-grip { display: none; } }

.win-ico { width: 20px; height: 20px; flex: 0 0 auto; }
.win-ico svg { width: 100%; height: 100%; }
.win-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
.win-btns { display: flex; gap: 3px; flex: 0 0 auto; }
.win-btn {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .65);
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .06) 45%, rgba(0, 0, 0, .16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}
.win-btn:active { filter: brightness(.82); }
.win-btn svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 2.2; fill: none; }
.win-btn.close {
  background: linear-gradient(180deg, #f08a72 0%, #e2563a 42%, #bf2f16 100%);
  border-color: #ffd0c2;
}
.win-btn.max { display: none; }
@media (min-width: 720px) { .win-btn.max { display: grid; } }

/* menubalk + werkbalk */
.win-menu {
  flex: 0 0 auto;
  display: flex;
  gap: 2px;
  padding: 3px 6px;
  font-size: 12px;
  color: var(--ink);
  background: linear-gradient(180deg, #fdfdfb, #ece9d8 60%, #e3dfcd);
  border-bottom: 1px solid var(--face-lo);
}
.win-menu span { padding: 3px 8px; border-radius: 3px; }
.win-menu span:first-child { text-decoration: underline; text-underline-offset: 2px; }

.win-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: linear-gradient(180deg, #fbfaf5, #ece9d8 55%, #ded9c6);
  border-bottom: 1px solid var(--face-lo);
}
.tb-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 11px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink);
  border: 1px solid transparent;
}
.tb-btn:active { background: #cfe0f7; border-color: #7ba7e0; }
.tb-btn[disabled] { opacity: .38; pointer-events: none; }
.tb-btn svg { width: 15px; height: 15px; }
.tb-sep { width: 1px; align-self: stretch; background: var(--face-lo); margin: 2px 2px; }

.win-address {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 7px;
  background: linear-gradient(180deg, #ece9d8, #e0dccb);
  border-bottom: 1px solid var(--face-lo);
  font-size: 12px;
}
.win-address label { color: var(--ink-soft); flex: 0 0 auto; }
.addr-field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 8px;
  background: var(--field);
  border: 1px solid #7f9db9;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr-field b { font-weight: 700; }

.win-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
}
.win-body.pad { padding: 16px 15px 26px; }

/* statusbalk */
.win-status {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 10px;
  font-size: 11.5px;
  color: var(--ink-soft);
  background: var(--face);
  border-top: 1px solid var(--face-hi);
  box-shadow: inset 0 1px 0 var(--face-lo);
}
.win-status span {
  padding: 1px 6px;
  border: 1px solid var(--face-lo);
  border-right-color: var(--face-hi);
  border-bottom-color: var(--face-hi);
  border-radius: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 7. Explorer-inhoud ---------- */
.explorer { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .explorer { grid-template-columns: 208px 1fr; }
}

.task-pane {
  padding: 12px;
  background: linear-gradient(160deg, #7ba7e8 0%, #6a97e0 30%, #5e8cd8 100%);
  color: #fff;
  order: 2;
}
@media (min-width: 720px) { .task-pane { order: 0; } }
.pane-card {
  background: #d6e5fb;
  border-radius: 5px;
  overflow: hidden;
  color: var(--ink);
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 20, 60, .28);
}
.pane-head {
  padding: 7px 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0b3fa0;
  background: linear-gradient(180deg, #fdfeff, #cfe0fa);
  border-bottom: 1px solid #b0cbee;
}
.pane-list { padding: 8px 11px 11px; display: grid; gap: 8px; }
.pane-list a, .pane-list button {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  font-size: 13px;
  color: #123a7d;
  text-decoration: none;
  min-height: 32px;
  padding: 3px 0;
}
.pane-list a::before, .pane-list button::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 3px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--zazu-glow), var(--zazu-orange-deep));
}
.pane-note { font-size: 12px; color: #0e2c63; padding: 0 11px 11px; }

.folder-view { padding: 14px 12px 24px; }
.view-head { margin: 0 0 4px; font-size: 1.28rem; line-height: 1.2; font-weight: 700; }
.view-lead { margin: 0 0 16px; font-size: .95rem; color: var(--ink-soft); max-width: 62ch; }

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.folder {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-align: left;
  min-height: 78px;
  transition: background .12s, border-color .12s;
}
.folder:active, .folder:focus-visible {
  background: #cfe0f7;
  border-color: #7ba7e0;
  outline: none;
}
.folder-ico { width: 44px; height: 44px; }
.folder-ico svg { width: 100%; height: 100%; }
.folder-name { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.22; }
.folder-meta { display: block; font-size: 11.5px; line-height: 1.35; color: var(--ink-mute); margin-top: 3px; }
.folder-count {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 7px;
  border-radius: 9px;
  font-size: 11px;
  color: #fff;
  background: var(--f-color, var(--luna));
}

/* dienstenlijst */
.svc-list { display: grid; gap: 3px; }
.svc {
  display: grid;
  grid-template-columns: 30px 1fr 16px;
  align-items: center;
  gap: 11px;
  padding: 12px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: inherit;
  min-height: 56px;
  border-bottom: 1px solid #f0eee6;
}
.svc:active { background: #cfe0f7; }
.svc-ico { width: 30px; height: 30px; }
.svc-ico svg { width: 100%; height: 100%; }
.svc-name { display: block; font-size: 14px; font-weight: 700; line-height: 1.28; }
.svc-desc { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); margin-top: 3px; }
.svc-arrow { color: var(--ink-mute); font-size: 15px; }

/* ---------- 8. Inhoudsblokken ---------- */
.h { margin: 0 0 6px; font-size: 1.3rem; line-height: 1.2; font-weight: 700; }
.h2 { margin: 24px 0 8px; font-size: 1.02rem; font-weight: 700; }
.p { margin: 0 0 14px; font-size: .95rem; color: var(--ink-soft); max-width: 62ch; }

.callout {
  display: flex;
  gap: 12px;
  padding: 12px 13px;
  margin: 0 0 16px;
  background: #fdf3e9;
  border: 1px solid #f0cba6;
  border-radius: 6px;
}
.callout-ico { width: 30px; height: 30px; flex: 0 0 auto; }
.callout p { margin: 0; font-size: .9rem; color: #6a3a12; }

/* resultaten */
.res { margin: 0 0 14px; border: 1px solid #dcd7c8; border-radius: 7px; overflow: hidden; }
.res-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fbfaf5, #eeebdd);
  border-bottom: 1px solid #dcd7c8;
}
.res-sector { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.res-cijfer {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--zazu-orange-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.res-body { padding: 11px 12px 13px; }
.res-detail { margin: 0 0 10px; font-size: .9rem; color: var(--ink-soft); }
.meter {
  height: 17px;
  padding: 2px;
  border: 1px solid #9a958a;
  border-radius: 3px;
  background: #f4f2ea;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .12);
  display: flex;
  gap: 2px;
  overflow: hidden;
}
.meter i {
  flex: 0 0 11px;
  border-radius: 1px;
  background: linear-gradient(180deg, #ffb279, var(--zazu-orange) 52%, #b8460d);
  transform: scaleY(0);
  transform-origin: bottom;
  animation: blockIn .32s var(--ease-xp) both;
}
@keyframes blockIn { to { transform: none; } }

/* prullenbak */
.trash-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid #eeece4;
}
.trash-ico { width: 34px; height: 34px; opacity: .95; }
.trash-thema {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.trash-titel {
  margin: 2px 0 5px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-color: var(--zazu-orange);
  text-decoration-thickness: 2px;
}
.trash-tekst { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* team */
.person {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 13px;
  align-items: start;
  padding: 13px 2px;
  border-bottom: 1px solid #eeece4;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(155deg, #4d90f5, #1c58c4 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 3px rgba(0, 0, 0, .2);
}
.person:nth-child(odd) .avatar { background: linear-gradient(155deg, var(--zazu-glow), var(--zazu-orange-deep) 72%); }
/* de echte foto's, in het XP-accountplaatje-lijstje */
.avatar-foto {
  object-fit: cover;
  border: 2px solid #fff;
  outline: 1px solid #b8b2a2;
  background: #dfe7f2;
}
.person-naam { font-size: 14.5px; font-weight: 700; }
.person-rol { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute); margin: 1px 0 4px; }
.person-regel { margin: 0; font-size: .89rem; color: var(--ink-soft); }

/* lijstkaarten (industrieën, proeftuin) - XP "web view" rij, geen zijtab */
.card-link {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  padding: 13px 12px;
  margin-bottom: 8px;
  border: 1px solid #e2ded1;
  border-radius: 5px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #fdfcf9, #f6f4ec);
}
.card-link:active { background: #cfe0f7; }
.card-ico { width: 28px; height: 28px; }
.card-ico svg { width: 100%; height: 100%; }
.card-title { display: block; font-size: 14px; font-weight: 700; line-height: 1.28; }
.card-text { display: block; font-size: .88rem; line-height: 1.42; color: var(--ink-soft); margin-top: 3px; }

/* contact */
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 11px;
  margin-bottom: 8px;
  border: 1px solid #dcd7c8;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #fdfdfb, #f3f1e8);
  min-height: 60px;
}
.contact-row:active { background: #cfe0f7; }
.contact-ico { width: 32px; height: 32px; flex: 0 0 auto; }
.contact-lab { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.contact-val { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; margin-top: 2px; }

/* knoppen */
.btn-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #fdfdfb 0%, #f0eee4 46%, #ddd8c6 100%);
  border: 1px solid #8d8778;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .16);
}
.btn:active { background: linear-gradient(180deg, #ddd8c6, #f0eee4); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2); }
.btn-primary {
  color: #fff;
  border-color: #8f3a08;
  background: linear-gradient(180deg, #ff9d5e 0%, var(--zazu-orange) 44%, var(--zazu-orange-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 3px rgba(0, 0, 0, .25);
}
.btn:disabled { opacity: .45; }

/* ---------- 9. Wizard ---------- */
.wiz { display: flex; flex-direction: column; min-height: 100%; }
.wiz-banner {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px 15px;
  background: linear-gradient(120deg, #1c58c4, #4d90f5 58%, #7fb2f8);
  color: #fff;
}
.wiz-banner-ico { width: 40px; height: 40px; flex: 0 0 auto; }
.wiz-banner h3 { margin: 0; font-size: 1.05rem; }
.wiz-banner p { margin: 3px 0 0; font-size: .82rem; color: #d8e7ff; }
.wiz-main {
  flex: 1 1 auto;
  padding: 17px 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wiz-step { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.wiz-q { margin: 5px 0 15px; font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.wiz-opts { display: grid; gap: 8px; }
.wiz-opt {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 11px;
  align-items: center;
  text-align: left;
  padding: 13px 12px;
  min-height: 58px;
  border: 1px solid #d6d1c2;
  border-radius: 6px;
  background: #fdfcf9;
}
.wiz-opt:active, .wiz-opt[aria-pressed="true"] { background: #cfe0f7; border-color: #6f9ad8; }
.wiz-num {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #6ea6f6, #1c58c4);
}
.wiz-opt-label { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.wiz-opt-sub { display: block; font-size: 12px; line-height: 1.4; color: var(--ink-mute); margin-top: 2px; }
.wiz-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 13px;
  background: var(--face);
  border-top: 1px solid var(--face-lo);
  box-shadow: inset 0 1px 0 var(--face-hi);
}
.wiz-progress {
  height: 5px;
  border-radius: 3px;
  background: #e9e5d8;
  overflow: hidden;
  margin: 0 15px 12px;
}
.wiz-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--zazu-glow), var(--zazu-orange));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform .3s var(--ease-xp);
}
.wiz-advies { text-align: left; }
.wiz-advies-kop { font-size: 1.24rem; font-weight: 700; margin: 0 0 7px; }

/* ---------- 9b. Boek een gesprek (Messenger) ---------- */
.msn {
  display: flex;
  flex-direction: column;
  overflow: hidden; /* de log scrolt, niet het hele venster */
}
.msn-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(120deg, #226b2e, #3f9440 55%, #7cc258);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2);
}
.msn-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: bottom;
  background: linear-gradient(180deg, #fdfdfb, #e6f2d8);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.msn-wie { display: grid; gap: 1px; min-width: 0; }
.msn-naam {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.msn-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b6f77e;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 0 6px #b6f77e;
}
.msn-online { font-size: 11.5px; font-weight: 400; color: #e8fbd4; }
.msn-sub { font-size: 12px; color: #ddf3c8; }

.msn-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 14px 8px;
  background: var(--field);
}
.msn-rij { margin: 0 0 12px; }
.msn-zegt { display: block; font-size: 11.5px; color: var(--ink-mute); }
.msn-msg {
  margin: 3px 0 0;
  padding: 9px 12px;
  max-width: 46ch;
  width: fit-content;
  font-size: .95rem;
  line-height: 1.45;
  background: #eef4fd;
  border: 1px solid #d3e0f4;
  border-radius: 2px 10px 10px 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msn-rij.van-jou { display: flex; flex-direction: column; align-items: flex-end; }
.msn-rij.van-jou .msn-zegt { color: var(--zazu-orange-deep); }
.msn-rij.van-jou .msn-msg {
  background: #fdf3e9;
  border-color: #f0cba6;
  border-radius: 10px 2px 10px 10px;
}

.msn-typt {
  display: inline-flex;
  gap: 4px;
  padding: 12px 13px;
  margin: 0 0 12px;
  background: #eef4fd;
  border: 1px solid #d3e0f4;
  border-radius: 2px 10px 10px 10px;
}
.msn-typt i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7f9db9;
  animation: msnTyp 1s ease-in-out infinite;
}
.msn-typt i:nth-child(2) { animation-delay: .15s; }
.msn-typt i:nth-child(3) { animation-delay: .3s; }
@keyframes msnTyp {
  0%, 60%, 100% { transform: none; opacity: .5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.msn-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 14px; }
.msn-chip {
  padding: 9px 13px;
  min-height: 42px;
  text-align: left;
  border: 1px solid #6f9ad8;
  border-radius: 8px;
  background: linear-gradient(180deg, #fdfdfb, #eef4fd);
  color: var(--luna-deep);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .12);
}
.msn-chip b { display: block; font-size: 13.5px; line-height: 1.25; }
.msn-chip.is-primair {
  color: #fff;
  border-color: #8f3a08;
  background: linear-gradient(180deg, #ff9d5e 0%, var(--zazu-orange) 44%, var(--zazu-orange-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 3px rgba(0, 0, 0, .25);
}

.msn-invoer {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 9px 10px;
  background: var(--face);
  border-top: 1px solid var(--face-lo);
  box-shadow: inset 0 1px 0 var(--face-hi);
}
.msn-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msn-veld {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  max-height: 120px;
  padding: 12px 11px;
  resize: none;
  font-size: 16px; /* voorkomt iOS-zoom bij focus */
  line-height: 1.35;
  background: var(--field);
  border: 1px solid #7f9db9;
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .1);
}
.msn-veld:disabled { background: #f1efe6; }
.msn-veld:focus { outline: 2px solid var(--luna-lite); outline-offset: -1px; }
.msn-verstuur {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border: 1px solid #8f3a08;
  background: linear-gradient(180deg, #ff9d5e 0%, var(--zazu-orange) 44%, var(--zazu-orange-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 3px rgba(0, 0, 0, .25);
}
.msn-verstuur:active { filter: brightness(.9); }
.msn-invoer:not([data-aan]) .msn-verstuur { opacity: .45; pointer-events: none; }

/* het schudje */
.msn-schud {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .6);
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .08) 45%, rgba(0, 0, 0, .14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.msn-schud:active { filter: brightness(.85); }
.msn-melding { margin: 0 0 12px; font-size: 11.5px; font-style: italic; color: var(--ink-mute); }
.win[data-schud] { animation: schudje .55s linear; }
@keyframes schudje {
  10% { transform: translate(-7px, 2px); }
  20% { transform: translate(6px, -3px); }
  30% { transform: translate(-5px, -2px); }
  40% { transform: translate(7px, 3px); }
  50% { transform: translate(-6px, 1px); }
  60% { transform: translate(5px, -2px); }
  70% { transform: translate(-4px, 2px); }
  80% { transform: translate(3px, -1px); }
  90% { transform: translate(-2px, 1px); }
}

/* ---------- 9c. Mijnenveger ---------- */
.mv { padding: 14px 13px 18px; background: var(--face); }
.mv-paneel {
  width: min(100%, 400px);
  margin: 0 auto;
  padding: 8px;
  background: var(--face);
  border: 3px solid;
  border-color: #fff #9a958a #9a958a #fff;
}
.mv-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 8px;
  border: 2px solid;
  border-color: #9a958a #fff #fff #9a958a;
}
.mv-teller {
  min-width: 56px;
  padding: 3px 6px;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: #ff3b1f;
  background: #1a0402;
  border: 1px solid #000;
  box-shadow: inset 0 0 5px rgba(255, 60, 30, .4);
}
.mv-reset {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fdfdfb, #e8e5d8);
  border: 2px solid;
  border-color: #fff #9a958a #9a958a #fff;
}
.mv-reset:active { border-color: #9a958a #fff #fff #9a958a; }
.mv-reset img { width: 30px; height: 30px; transition: transform .25s var(--ease-xp); }
.mv-dood .mv-reset img { transform: rotate(180deg); filter: grayscale(.65); }
.mv-blij .mv-reset { background: linear-gradient(180deg, #ffd9b8, #ff9d5e); }
.mv-veld {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  border: 3px solid;
  border-color: #9a958a #fff #fff #9a958a;
}
.mv-cel {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  border-radius: 0;
  background: var(--face);
  border: 2px solid;
  border-color: #fff #9a958a #9a958a #fff;
}
.mv-cel:active:not([data-open]) { border-color: #9a958a #fff #fff #9a958a; }
.mv-cel[data-open] {
  background: #e6e3d5;
  border: 1px solid #b9b4a4;
}
.mv-cel.is-mijn { font-size: 15px; color: var(--ink); }
.mv-cel.is-boem { background: #e2563a; color: #fff; }
.mv-cel.is-vlag { font-size: 15px; color: #c22020; }
.mv-cel[data-n="1"] { color: #245edb; }
.mv-cel[data-n="2"] { color: #1f7a1f; }
.mv-cel[data-n="3"] { color: #c22020; }
.mv-cel[data-n="4"] { color: #10327a; }
.mv-cel[data-n="5"] { color: #7a2010; }
.mv-cel[data-n="6"] { color: #0b7ea3; }
.mv-cel[data-n="7"] { color: #14100c; }
.mv-cel[data-n="8"] { color: #5c6672; }
.mv-uitleg {
  max-width: 400px;
  margin: 12px auto 0;
  font-size: .82rem;
  color: var(--ink-mute);
}

/* ---------- 10. Ballon + contextmenu ---------- */
/* ---------- De vogel (zoekmaatje, waar XP een hond had) ---------- */
.vogel {
  position: fixed;
  z-index: 350;
  right: 10px;
  bottom: calc(var(--taskbar-h) + env(safe-area-inset-bottom) + var(--panel-h, 0px) + 2px);
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  transition: opacity .3s var(--ease-xp), transform .3s var(--ease-xp);
  pointer-events: none;
}
.vogel > * { pointer-events: auto; }
.vogel[data-weg] {
  opacity: 0;
  transform: translate(30px, 30px) scale(.7);
  pointer-events: none;
}
.vogel-body {
  width: 96px;
  height: 108px;
  display: block;
  padding: 0;
  filter: drop-shadow(0 6px 10px rgba(10, 26, 56, .4));
}
.vogel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}
.vogel.hup .vogel-body { animation: vogelHup .42s var(--ease-xp); }
@keyframes vogelHup {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-9px) scale(1.05, .96); }
  70%  { transform: translateY(1px) scale(.98, 1.02); }
  100% { transform: none; }
}

.vogel-bubble {
  position: relative;
  width: min(268px, calc(100vw - 28px));
  padding: 12px 14px 13px;
  background: #ffffe1;
  border: 1px solid #8b8567;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(6, 20, 48, .34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.96);
  transform-origin: 84% 100%;
  transition: opacity .2s var(--ease-xp), transform .22s var(--ease-xp), visibility .22s;
}
.vogel-bubble[data-open] { opacity: 1; visibility: visible; transform: none; }
.vogel-bubble::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: #ffffe1;
  border-right: 1px solid #8b8567;
  border-bottom: 1px solid #8b8567;
  transform: rotate(45deg);
}
.vogel-tekst {
  margin: 0;
  padding-right: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #3f3a26;
}
.vogel-actie {
  margin-top: 9px;
  padding: 8px 13px;
  min-height: 38px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff9d5e 0%, var(--zazu-orange) 46%, var(--zazu-orange-deep) 100%);
  border: 1px solid #8f3a08;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.vogel-actie[hidden] { display: none; }
.vogel-sluit {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 26px;
  height: 26px;
  font-size: 16px;
  line-height: 1;
  color: #6a6448;
  border-radius: 4px;
}

/* op de telefoon zit hij op de rand van het bureaubladpaneel en gaat hij
   weg zodra er een venster schermvullend openstaat */
body[data-win] .vogel { opacity: 0; visibility: hidden; pointer-events: none; }
@media (min-width: 720px) {
  .vogel {
    right: auto;
    left: 22px;
    bottom: calc(var(--taskbar-h) + 12px);
    width: 124px;
    align-items: flex-start;
  }
  .vogel-body { width: 124px; height: 140px; }
  .vogel-bubble { transform-origin: 16% 100%; }
  .vogel-bubble::after { right: auto; left: 30px; }
  body[data-win] .vogel { opacity: 1; visibility: visible; pointer-events: none; }
  body[data-win] .vogel > * { pointer-events: auto; }
}

.ctx-menu {
  position: fixed;
  z-index: 440;
  min-width: 186px;
  padding: 3px;
  background: var(--face);
  border: 1px solid #96927f;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: scale(.96);
  transform-origin: top left;
  transition: opacity .1s, transform .1s, visibility .1s;
}
.ctx-menu[data-open] { opacity: 1; visibility: visible; transform: none; }
.ctx-menu button {
  display: block;
  width: 100%;
  padding: 9px 13px;
  text-align: left;
  font-size: 13px;
  border-radius: 2px;
}
.ctx-menu button:active { background: var(--luna); color: #fff; }
.ctx-menu hr { margin: 3px 6px; border: 0; border-top: 1px solid var(--face-lo); border-bottom: 1px solid var(--face-hi); }

.overlay { position: fixed; inset: 0; z-index: 410; background: transparent; }

/* ---------- 10b. Afbeeldingsviewer ---------- */
.viewer { display: flex; flex-direction: column; background: #2a2f38; padding: 0; }
.viewer-stage {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.viewer-img {
  /* het beeld bepaalt de hoogte, anders staat er een zwart gat omheen
     bij een panorama op een telefoon */
  width: 100%;
  height: auto;
  max-height: 44dvh;
  object-fit: contain;
  background:
    linear-gradient(135deg, #343a45 25%, transparent 25%) -8px 0/16px 16px,
    linear-gradient(225deg, #343a45 25%, transparent 25%) -8px 0/16px 16px,
    #2a2f38;
  touch-action: pan-y;
}
.viewer-stage.in .viewer-img { animation: fadeImg .28s var(--ease-xp); }
@keyframes fadeImg { from { opacity: .25; } to { opacity: 1; } }
.viewer-caption {
  /* vangt de resterende ruimte op, anders valt er een zwart gat onder de strip */
  flex: 1 1 auto;
  padding: 13px 15px 15px;
  background: linear-gradient(180deg, #fdfdfb, #f1efe6);
  border-top: 1px solid var(--face-lo);
}
.viewer-titel { margin: 0 0 5px; font-size: 1.02rem; font-weight: 700; }
.viewer-tekst { margin: 0 0 11px; font-size: .89rem; line-height: 1.5; color: var(--ink-soft); max-width: 64ch; }
.viewer-actie { min-height: 42px; padding: 9px 16px; font-size: 13px; }

.viewer-strip {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  background: #21262e;
  border-top: 1px solid #131820;
  scrollbar-width: thin;
}
.thumb {
  flex: 0 0 auto;
  width: 62px;
  height: 46px;
  padding: 2px;
  border-radius: 3px;
  border: 1px solid #4a5260;
  background: #11151b;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }
.thumb[aria-selected="true"] { border-color: var(--zazu-orange); box-shadow: 0 0 0 1px var(--zazu-orange); }

.viewer-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: linear-gradient(180deg, #fbfaf5, #e6e2d2);
  border-top: 1px solid var(--face-lo);
  font-size: 11.5px;
  color: var(--ink-soft);
}
.vb-btn {
  width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  border: 1px solid #a9a395;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #ebe8dd 55%, #dcd7c6);
  box-shadow: inset 0 1px 0 #fff;
}
.vb-btn:active { background: linear-gradient(180deg, #dcd7c6, #f0eee4); }
.vb-btn svg { width: 14px; height: 14px; }
.vb-sep { width: 1px; height: 20px; background: var(--face-lo); }
.vb-spacer { flex: 1 1 auto; }
.vb-tel { font-variant-numeric: tabular-nums; }
.vb-naam { color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }

/* ---------- 10c. Kladblok ---------- */
.kladblok { background: #fff; }
.kb-sheet { padding: 18px 17px 26px; max-width: 68ch; }
.kb-kop { margin: 0 0 12px; font-size: 1.16rem; font-weight: 700; }
.kb-p { margin: 0 0 11px; font-size: .93rem; line-height: 1.62; color: var(--ink-soft); }
.kb-regel { margin: 18px 0; color: #cbc6b6; font-size: .8rem; overflow: hidden; white-space: nowrap; }
.kb-mijl { margin-bottom: 16px; }
.kb-jaar {
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--zazu-orange-deep);
  font-variant-numeric: tabular-nums;
}
.kb-jaar span { font-size: .93rem; color: var(--ink); }
.kb-slot { font-weight: 700; color: var(--ink); }

/* ---------- 11. Desktop-modus ---------- */
@media (min-width: 720px) {
  :root { --taskbar-h: 40px; }

  .icons {
    grid-template-columns: repeat(1, 92px);
    grid-auto-flow: column;
    /* vijf rijen, zodat de onderste kolom niet in de zone van de vogel loopt */
    grid-template-rows: repeat(5, auto);
    width: max-content;
    gap: 2px;
    padding: 12px 8px;
  }
  .icon { min-height: 84px; }
  .icon:hover { background: rgba(30, 100, 220, .3); }

  .deskpanel {
    left: auto;
    right: 26px;
    bottom: 26px;
    width: 400px;
    padding: 22px 24px 24px;
  }
  .dp-h1 { font-size: 2.45rem; }
  .dp-btn:hover { background: rgba(255, 255, 255, .2); }
  .dp-primary:hover { filter: brightness(1.06); background: linear-gradient(180deg, #ffab74, var(--zazu-orange) 46%, var(--zazu-orange-deep)); }

  .win {
    inset: auto;
    left: var(--x, 60px);
    top: var(--y, 40px);
    width: var(--w, 720px);
    height: var(--h, 540px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - var(--taskbar-h) - 24px);
    border: 1px solid var(--luna-edge);
    border-top: 0;
    border-radius: var(--radius-win);
    box-shadow: var(--shadow-win);
    animation: winOpen .18s var(--ease-xp) both;
  }
  /* alleen transform: als de animatie ooit blijft hangen, is het venster
     nog steeds volledig zichtbaar in plaats van halftransparant */
  @keyframes winOpen {
    from { transform: scale(.965) translateY(8px); }
    to   { transform: none; }
  }
  .win[data-max] {
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: calc(100dvh - var(--taskbar-h)) !important;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }
  .win-bar { cursor: grab; height: 32px; }
  .win[data-dragging] .win-bar { cursor: grabbing; }
  .win[data-dragging] { transition: none; }

  .win-resize {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    cursor: nwse-resize;
    background:
      linear-gradient(135deg, transparent 42%, var(--face-lo) 42% 50%, transparent 50% 62%, var(--face-lo) 62% 70%, transparent 70%);
  }

  .start-menu { left: 4px; right: auto; width: 420px; }
  .sm-body { grid-template-columns: 1fr 1fr; }
  .sm-col-right { border-top: 0; border-left: 1px solid #b4cdea; }
  .sm-item:hover { background: var(--luna); color: #fff; }
  .sm-item:hover .sm-sub { color: #d9e8ff; }
  .folder:hover { background: #e8f0fd; border-color: #b6cdec; }
  .svc:hover { background: #f2f6fd; }
  .btn:hover { filter: brightness(1.04); }
  .task:hover { filter: brightness(1.1); }
  .card-link:hover { border-color: #c8c1ae; background: #fff; }
  .viewer-stage { flex: 1 1 auto; }
  .viewer-img { flex: 1 1 auto; min-height: 150px; max-height: none; }
  .thumb:hover { border-color: #9fb0c6; }
  .vb-btn:hover { filter: brightness(1.05); }
  .contact-row:hover { border-color: var(--zazu-orange); }
  .msn-chip:hover { border-color: var(--luna); background: #eef4fd; }
  .msn-schud:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .16) 45%, rgba(0, 0, 0, .1)); }
  .mv-cel:not([data-open]):hover { background: #f6f4ec; }
  .msn-chip.is-primair:hover { filter: brightness(1.05); background: linear-gradient(180deg, #ff9d5e 0%, var(--zazu-orange) 44%, var(--zazu-orange-deep) 100%); }
  .msn-verstuur:hover { filter: brightness(1.05); }
}

@media (min-width: 720px) and (hover: hover) {
  .icon:hover .icon-glyph { filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .5)) brightness(1.08); }
}

/* ---------- 12. Toegankelijkheid ---------- */
:focus-visible {
  outline: 2px dotted #14100c;
  outline-offset: 2px;
}
.win-bar :focus-visible, .taskbar :focus-visible, .sm-head :focus-visible {
  outline-color: #fff;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .clouds { animation: none; }
}
