:root {
  --navy: #132e40;
  --ink: #203744;
  --muted: #667982;
  --line: #dce5e8;
  --paper: #f3f6f7;
  --blue: #d9ecee;
  --accent: #d99e71;
  --green: #28755f;
  --shadow: 0 12px 42px #1230400b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  min-height: 44px;
}
button:hover,
.button:hover {
  background: #eaf1f2;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8cc5d3;
  outline-offset: 3px;
}
.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.primary:hover {
  background: #254c63;
}
.danger {
  color: #a43c36;
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.small {
  padding: 6px 11px;
  font-size: 13px;
}
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: var(--navy);
  color: #dce9ed;
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  letter-spacing: -0.5px;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 45px;
  height: 45px;
  border: 1px solid #ffffff28;
  border-radius: 12px;
}
.brand small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.7px;
  font-weight: 600;
  opacity: 0.65;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #b9cbd3;
  justify-content: flex-start;
  padding: 13px 15px;
  font-weight: 500;
  gap: 13px;
}
.nav-item.active {
  color: white;
  background: #ffffff16;
}
.nav-item:hover {
  background: #ffffff0d;
}
.nav-item svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  color: #a9c3cd;
  font-size: 12px;
}
.sidebar-footer strong {
  display: block;
  color: #e9f2f4;
  margin-bottom: 4px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 42px;
  background: #ffffffc9;
  border-bottom: 1px solid var(--line);
  min-height: 88px;
}
.topbar .edition {
  display: flex;
  gap: 10px;
  align-items: center;
}
.topbar select {
  max-width: 240px;
  border: 0;
  background: none;
  padding: 8px;
  font-weight: 650;
  color: var(--ink);
}
.private {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 9px;
  background: #e9f0f1;
  border-radius: 5px;
  white-space: nowrap;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  background: var(--blue);
  color: var(--navy);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
  flex-shrink: 0;
}
.profile button {
  min-height: 36px;
  font-size: 12px;
  padding: 6px 10px;
}
.content {
  max-width: 1380px;
  margin: auto;
  padding: 36px 42px 64px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 8px;
}
h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 0 0 12px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 0;
}
h3 {
  font-size: 16px;
  margin: 0 0 5px;
}
.muted {
  color: var(--muted);
}
p {
  margin: 0 0 16px;
}
.page-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}
.page-head p {
  margin: 0;
  max-width: 600px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.hero {
  padding: 31px 34px;
  background: var(--navy);
  color: white;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.hero:after {
  content: '✳';
  font-size: 210px;
  line-height: 1;
  position: absolute;
  right: 23px;
  top: 3px;
  color: #ffffff09;
  pointer-events: none;
}
.hero .eyebrow {
  color: #a6c4cf;
}
.hero h1 {
  font-size: 30px;
}
.hero p {
  color: #bdd2da;
  max-width: 540px;
  margin-bottom: 18px;
}
.hero button {
  background: var(--blue);
  border-color: transparent;
  color: var(--navy);
  position: relative;
  z-index: 1;
}
.hero-date {
  font-size: 13px;
  text-align: right;
  padding-right: 8px;
  z-index: 1;
  min-width: 110px;
  color: #bdd2da;
}
.hero-date strong {
  display: block;
  font-size: 38px;
  line-height: 1.2;
  color: white;
  letter-spacing: -1px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 19px 22px;
  border-radius: 13px;
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -1px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.stat .stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.stat svg {
  width: 17px;
  color: #6d8c97;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.panel-head {
  padding: 20px 23px;
  border-bottom: 1px solid #edf1f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-head small {
  color: var(--muted);
}
.panel-body {
  padding: 23px;
}
.row {
  padding: 19px 23px;
  border-bottom: 1px solid #edf1f2;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}
.row:last-child {
  border-bottom: 0;
}
.row-main {
  min-width: 0;
  flex: 1;
}
.row-main p {
  margin: 5px 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.row-title {
  font-weight: 650;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.row-tools {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.badge {
  padding: 3px 8px;
  border-radius: 5px;
  background: #eef3f4;
  font-size: 11px;
  color: #546d76;
  display: inline-block;
  white-space: nowrap;
}
.badge.done {
  color: var(--green);
  background: #e5f2ec;
}
.badge.overdue {
  color: #9a4b2a;
  background: #fbede1;
}
.date-block {
  background: #edf5f5;
  width: 48px;
  min-width: 48px;
  border-radius: 9px;
  text-align: center;
  padding: 8px 4px;
  font-size: 10px;
  text-transform: uppercase;
  line-height: 1.3;
  color: #56717b;
}
.date-block strong {
  display: block;
  font-size: 21px;
  color: var(--navy);
}
.empty {
  padding: 34px 24px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  width: 28px;
  height: 28px;
  opacity: 0.45;
  margin-bottom: 8px;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 5px;
}
.empty p {
  font-size: 13px;
  margin: 0;
}
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.filters input {
  flex: 1;
}
.filters select {
  width: auto;
}
.notice {
  border: 1px solid #e4ccae;
  background: #fff8ed;
  color: #775c39;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.team-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.team-icon {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.team-icon svg {
  width: 23px;
}
.team-card .actions {
  margin-top: 18px;
}
.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 25px;
  background: linear-gradient(145deg, #e5eff0, #f8f9f7);
}
.auth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 38px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 70px #16364910;
}
.auth-card .brand {
  color: var(--navy);
  margin-bottom: 36px;
}
.auth-card h1 {
  font-size: 27px;
}
.auth-card > p {
  font-size: 14px;
  color: var(--muted);
}
.auth-card .primary {
  width: 100%;
  margin-top: 8px;
}
.auth-foot {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  min-width: 0;
}
.field label {
  font-size: 12px;
  font-weight: 650;
}
.field input,
.field select,
.field textarea,
.filters input,
.filters select {
  width: 100%;
  background: white;
  border: 1px solid #cddbe0;
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--ink);
  min-height: 45px;
  max-width: 100%;
}
.field textarea {
  min-height: 105px;
  resize: vertical;
}
.field small {
  color: var(--muted);
  font-size: 11px;
}
.form-grid .field {
  margin: 0;
}
.form-grid {
  margin-bottom: 16px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  margin: 9px 0;
}
.check input {
  width: 18px;
  height: 18px;
}
.error {
  background: #fff0ef;
  border: 1px solid #f1cfcd;
  color: #9b3d36;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 50vh;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 28px;
  width: min(650px, calc(100% - 28px));
  max-height: 88dvh;
  overflow: auto;
  box-shadow: 0 30px 100px #122c4040;
}
dialog::backdrop {
  background: #10293777;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 22px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
.runbook-text {
  white-space: pre-wrap;
  font: inherit;
  overflow-wrap: anywhere;
}
.matrix {
  overflow: auto;
  margin: 16px 0;
}
.matrix table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  min-width: 500px;
}
.matrix th,
.matrix td {
  text-align: center;
  padding: 9px 5px;
  border-bottom: 1px solid var(--line);
}
.matrix th:first-child,
.matrix td:first-child {
  text-align: left;
}
.matrix select {
  max-width: 85px;
  font-size: 11px;
}
.matrix input {
  width: 18px;
  height: 18px;
}
.cmd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.management-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 24px;
}
.management-intro p {
  color: var(--muted);
}
.management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.management-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.management-card h2 {
  font-size: 20px;
  margin: 14px 0 8px;
}
.management-card p {
  margin: 0 0 20px;
}
.management-icon {
  color: var(--navy);
}
.management-icon svg {
  width: 28px;
  height: 28px;
}
.management-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.management-actions button {
  min-height: 48px;
  justify-content: space-between;
  text-align: left;
}
@media (max-width: 1100px) {
  .management-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .management-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .management-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .management-card {
    padding: 20px;
  }
}
.separator {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  border-radius: 10px;
  color: white;
  background: var(--navy);
  box-shadow: 0 8px 35px #0003;
  z-index: 100;
  display: none;
  max-width: 90%;
  text-align: center;
  font-size: 13px;
}
#toast.visible {
  display: block;
}
.install {
  margin-top: 15px;
}
.wide {
  grid-column: 1/-1;
}
.stack {
  display: grid;
  gap: 8px;
}
.link-output {
  overflow-wrap: anywhere;
  background: #eff4f5;
  padding: 14px;
  border-radius: 8px;
  font-size: 13px;
}
.offline-bar {
  background: #fff3dc;
  padding: 8px 20px;
  text-align: center;
  font-size: 12px;
}
.version {
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
}
svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1500px) {
  .content {
    padding-top: 45px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 210px;
    padding: 25px 14px;
  }
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .topbar {
    padding: 18px 25px;
  }
  .content {
    padding: 28px 25px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .hero-date {
    display: none;
  }
  .cmd-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    inset: 0 0 auto;
    width: 100%;
    padding: 13px 16px 0;
    gap: 13px;
    z-index: 5;
  }
  .sidebar .brand {
    font-size: 16px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .sidebar .brand small {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 1px;
    padding-bottom: 7px;
    scrollbar-width: none;
  }
  .nav-item {
    font-size: 11px;
    white-space: nowrap;
    padding: 8px 10px;
    min-height: 40px;
    gap: 6px;
    border-radius: 7px;
  }
  .nav-item svg {
    width: 16px;
    height: 16px;
  }
  .sidebar-footer {
    display: none;
  }
  .topbar {
    padding: 11px 17px;
    min-height: 62px;
    gap: 6px;
  }
  .topbar .edition {
    gap: 4px;
  }
  .topbar select {
    max-width: 165px;
    font-size: 12px;
    padding: 5px 2px;
  }
  .private {
    font-size: 8px;
    padding: 4px 6px;
    letter-spacing: 0.4px;
  }
  .profile {
    gap: 6px;
  }
  .profile .profile-name {
    display: none;
  }
  .profile button {
    font-size: 10px;
    padding: 5px 7px;
  }
  .avatar {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .content {
    padding: 24px 17px 45px;
  }
  h1 {
    font-size: 28px;
  }
  .page-head {
    gap: 12px;
    margin-bottom: 22px;
  }
  .page-head p {
    font-size: 13px;
  }
  .page-head .button,
  .page-head button {
    padding: 9px 11px;
    font-size: 12px;
    white-space: nowrap;
  }
  .hero {
    padding: 24px 22px;
    border-radius: 13px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero p {
    font-size: 13px;
  }
  .hero:after {
    right: -20px;
    font-size: 180px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 21px;
  }
  .stat {
    padding: 16px 18px;
  }
  .stat strong {
    font-size: 27px;
  }
  .grid,
  .cmd-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .panel-head {
    padding: 17px 18px;
  }
  .panel-body {
    padding: 18px;
  }
  .row {
    padding: 17px 18px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .row-tools {
    margin-left: auto;
  }
  .row-title {
    font-size: 14px;
  }
  .row-tools button {
    font-size: 11px;
    padding: 5px 8px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .team-card {
    padding: 21px;
  }
  .filters {
    flex-direction: column;
    gap: 8px;
  }
  .filters select {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-grid .field {
    margin-bottom: 16px;
  }
  .auth-card {
    padding: 30px 25px;
  }
  .auth-card .brand {
    margin-bottom: 28px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  dialog {
    padding: 22px 19px;
  }
  #toast {
    bottom: max(18px, env(safe-area-inset-bottom));
  }
  .page-head .actions {
    justify-content: flex-end;
  }
  .date-block {
    min-width: 42px;
    width: 42px;
  }
  .notice {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .content {
    animation: appear 0.22s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
.mobile-nav {
  display: none;
}
@media (max-width: 760px) {
  .sidebar {
    padding: 13px 17px;
    min-height: 63px;
  }
  .sidebar nav {
    display: none;
  }
  .mobile-nav {
    position: fixed;
    z-index: 8;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 7px 9px max(7px, env(safe-area-inset-bottom));
  }
  .mobile-nav button {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    border: 0;
    background: none;
    border-radius: 8px;
    color: var(--muted);
    font-size: 10px;
    min-height: 50px;
    padding: 5px 3px;
  }
  .mobile-nav button.active {
    background: #edf5f5;
    color: var(--navy);
  }
  .mobile-nav svg {
    width: 21px;
    height: 21px;
  }
  .content {
    padding-bottom: 108px;
  }
}
@media (max-width: 760px) {
  .matrix table {
    min-width: 0;
  }
  .matrix thead {
    display: none;
  }
  .matrix tbody,
  .matrix tr {
    display: block;
  }
  .matrix tr {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 9px;
  }
  .matrix td {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 1px;
    border: 0;
  }
  .matrix td:first-child {
    grid-column: 1/-1;
    display: block;
    font-weight: 650;
    padding: 3px 2px 10px;
  }
  .matrix td[data-label]:before {
    content: attr(data-label);
    font-size: 8px;
    letter-spacing: -0.15px;
    color: var(--muted);
    margin-bottom: 7px;
  }
  .matrix td:last-child {
    grid-column: 1/-1;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 5px;
    border-top: 1px solid var(--line);
    padding: 10px 2px 2px;
  }
  .matrix td:last-child:before {
    content: 'Zichtbaarheid';
    font-size: 11px;
    color: var(--muted);
  }
  .matrix select {
    max-width: 110px;
    padding: 6px;
    min-height: 36px;
  }
}
/* Officieel Wintertijd-logo, ongewijzigde artwork; omgeving in originele blauwtinten. */
:root {
  --navy: #163f5d;
  --blue: #def1f7;
  --accent: #005d79;
  --paper: #f2f7f9;
}
.brand img {
  width: 128px;
  height: 128px;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
.sidebar .brand {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.brand strong {
  font-size: 15px;
  letter-spacing: 3px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 1.2px;
}
.auth-card .brand {
  color: var(--navy);
  gap: 19px;
}
.auth-card .brand img {
  width: 100px;
  height: 100px;
  background: var(--navy);
  border-radius: 15px;
  padding: 7px;
}
.hero:after {
  content: '';
  width: 220px;
  height: 220px;
  background: url('/assets/wintertijd-logo.svg') center/contain no-repeat;
  opacity: 0.05;
}
.location-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 21px;
}
.location-card {
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  text-align: left;
  min-height: 116px;
  position: relative;
  box-shadow: var(--shadow);
}
.location-card strong {
  font-size: 13px;
  line-height: 1.3;
}
.location-card small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: auto;
}
.location-dot {
  width: 7px;
  height: 7px;
  background: #93d3e5;
  border-radius: 50%;
  margin-bottom: 3px;
}
.location-card.selected {
  border-color: var(--navy);
  background: #def1f7;
}
.filters select {
  max-width: 250px;
}
.permission-groups {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.permission-group {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.permission-group summary {
  padding: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f5f8f9;
  list-style: none;
}
.permission-group summary::-webkit-details-marker {
  display: none;
}
.permission-group summary strong:after {
  content: ' +';
  color: var(--muted);
  font-weight: 400;
}
.permission-group[open] summary strong:after {
  content: ' −';
}
.permission-body {
  padding: 0 15px 15px;
}
.permission-body .field {
  margin-top: 18px;
  margin-bottom: 0;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f2;
  min-height: 64px;
  cursor: pointer;
}
.switch-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.switch-info strong {
  font-size: 13px;
  font-weight: 600;
}
.switch-info small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}
.switch-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 81px;
  min-height: 36px;
}
.switch-control input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
  z-index: 1;
}
.switch-track {
  position: relative;
  display: block;
  width: 43px;
  min-width: 43px;
  height: 25px;
  border-radius: 20px;
  background: #b6c4cb;
  transition: background 0.15s;
}
.switch-track:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.15s;
}
.switch-control input:checked + .switch-track {
  background: #28755f;
}
.switch-control input:checked + .switch-track:after {
  transform: translateX(18px);
}
.switch-state {
  font-size: 11px;
  font-weight: 650;
  min-width: 22px;
  color: var(--muted);
}
.switch-state:after {
  content: 'Uit';
}
.switch-control input:checked ~ .switch-state:after {
  content: 'Aan';
  color: #28755f;
}
.switch-control input:disabled {
  cursor: default;
}
.switch-control input:disabled + .switch-track {
  opacity: 0.4;
}
.switch-control input:focus-visible + .switch-track {
  outline: 3px solid #93d3e5;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .sidebar .brand img {
    width: 100px;
    height: 100px;
  }
  .location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .sidebar .brand {
    flex-direction: row;
    text-align: left;
    gap: 12px;
  }
  .sidebar .brand img {
    width: 55px;
    height: 55px;
  }
  .sidebar {
    min-height: 80px;
    padding: 10px 17px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand small {
    font-size: 8px;
  }
  .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .location-card {
    min-height: 96px;
    padding: 13px;
  }
  .location-card:last-child {
    grid-column: 1/-1;
    min-height: 74px;
  }
  .location-card strong {
    font-size: 12px;
  }
  .filters select {
    max-width: none;
  }
  .switch-info small {
    font-size: 10px;
  }
  .permission-body {
    padding: 0 12px 12px;
  }
  .permission-group summary {
    padding: 13px;
  }
  .hero:after {
    right: -10px;
    width: 190px;
    height: 190px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .switch-track,
  .switch-track:after {
    transition: none;
  }
}

.welcome-guide {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px;
}
.welcome-guide > .brand {
  background: var(--navy);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 36px;
  width: fit-content;
}
.welcome-guide > h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
}
.welcome-intro {
  font-size: 18px;
  color: var(--muted);
  margin: 16px 0 28px;
}
.guide-step {
  display: flex;
  gap: 18px;
  padding: 24px;
  margin-bottom: 16px;
}
.guide-step > div {
  min-width: 0;
}
.guide-step h2,
.guide-help h2 {
  font-size: 22px;
  margin: 0 0 12px;
}
.guide-step h3 {
  margin: 18px 0 6px;
}
.guide-step p,
.guide-help p {
  margin: 0 0 14px;
}
.guide-step ol,
.guide-step ul {
  padding-left: 22px;
  margin: 0 0 16px;
}
.guide-step li {
  margin-bottom: 10px;
}
.guide-number {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
  font-weight: 700;
}
.guide-help {
  padding: 24px;
}
.welcome-footer {
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 480px) {
  .welcome-guide {
    padding: 24px 16px;
  }
  .guide-step {
    padding: 20px 16px;
    gap: 12px;
  }
  .guide-number {
    flex-basis: 28px;
    height: 28px;
  }
}
.welcome-guide > .brand {
  color: white;
  max-width: 100%;
}
.welcome-guide > .brand small {
  color: #d9ecee;
}
.welcome-guide > .brand img {
  width: 80px;
  height: 80px;
}

.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 16px;
}
.day-tabs button {
  white-space: nowrap;
  min-height: 44px;
}
.agenda-row {
  display: flex;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.agenda-row h2 {
  font-size: 20px;
  margin-bottom: 6px;
}
.agenda-time {
  min-width: 70px;
  font-size: 20px;
  font-weight: 700;
}
.agenda-time small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.import-preview {
  max-height: 48vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.import-preview-row {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.import-preview-row h3 {
  margin: 8px 0;
}
.import-sample {
  padding: 12px;
  background: var(--paper);
  overflow-wrap: anywhere;
  margin-bottom: 18px;
}
.poster-preview {
  max-width: 100%;
  max-height: 45vh;
  object-fit: contain;
  display: block;
  margin: 16px auto;
}
@media (max-width: 600px) {
  .agenda-row {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .agenda-row .row-main {
    flex-basis: 65%;
  }
  .agenda-row > button {
    margin-left: 82px;
  }
  .day-tabs {
    max-width: 100%;
  }
  .form-grid {
    min-width: 0;
  }
}
