:root {
  color-scheme: light;
  --blue: #192542;
  --red: #e40520;
  --grey: #e3dfe6;
  --white: #ffffff;
  --blue-soft: rgba(25, 37, 66, 0.07);
  --blue-medium: rgba(25, 37, 66, 0.2);
  --shadow: 0 12px 32px rgba(25, 37, 66, 0.1);
  --radius: 18px;
  font-family: Inter, Aptos, "Segoe UI", sans-serif;
  color: var(--blue);
  background: #f7f6f8;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgba(227, 223, 230, 0.9), transparent 30rem),
    #f7f6f8;
}

button,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0.75rem clamp(1rem, 5vw, 4rem);
  color: var(--white);
  background: var(--blue);
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo-frame {
  display: grid;
  padding: 0.34rem 0.5rem;
  place-items: center;
  background: var(--white);
  border-radius: 7px;
}

.brand-logo {
  display: block;
  width: 116px;
  height: auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.brand small {
  margin-top: 0.1rem;
  font-size: 0.74rem;
  opacity: 0.78;
}

.account {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.environment-label {
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account__button {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.account__button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--blue);
  background: var(--grey);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}

main {
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100vh - 152px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0 3rem;
}

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  gap: 2rem;
  align-items: end;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--blue-medium);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0.8rem;
  font-size: clamp(2.25rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.welcome__copy {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.04rem;
  line-height: 1.6;
}

.demo-control {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.demo-control label,
.demo-control small {
  display: block;
}

.demo-control label {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.demo-control select {
  width: 100%;
  padding: 0.7rem;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--blue-medium);
  border-radius: 8px;
}

.demo-control small {
  margin-top: 0.5rem;
  line-height: 1.35;
  opacity: 0.72;
}

.quick-actions,
.workspace {
  padding-top: 2rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.section-heading span {
  font-size: 0.82rem;
  opacity: 0.72;
}

.role-summary {
  font-weight: 650;
}

.action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}

.button--primary {
  color: var(--white);
  background: var(--red);
}

.button--primary:hover {
  background: var(--blue);
}

.button--secondary,
.button--quiet {
  color: var(--blue);
  background: var(--white);
  border-color: var(--blue-medium);
}

.button--secondary:hover,
.button--quiet:hover {
  border-color: var(--blue);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tile {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  min-height: 178px;
  padding: 1.35rem;
  color: var(--blue);
  text-align: left;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(25, 37, 66, 0.04);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.tile:hover {
  border-color: var(--blue-medium);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.tile__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 13px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.tile__content,
.tile__title,
.tile__description {
  display: block;
}

.tile__title {
  margin: 0.2rem 0 0.55rem;
  font-size: 1.04rem;
}

.tile__description {
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.78;
}

.tile__arrow {
  color: var(--red);
  font-size: 1.3rem;
  font-weight: 700;
}

.status-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--blue-medium);
  border-left: 4px solid var(--red);
  border-radius: 12px;
}

.status-panel[hidden] {
  display: none;
}

.status-panel__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-weight: 900;
}

.status-panel h2 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.status-panel p {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  color: var(--white);
  background: var(--blue);
  font-size: 0.84rem;
}

.text-button {
  padding: 0.4rem;
  color: inherit;
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

dialog {
  width: min(440px, calc(100% - 2rem));
  color: var(--blue);
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(25, 37, 66, 0.3);
}

dialog::backdrop {
  background: rgba(25, 37, 66, 0.72);
}

.dialog__body {
  padding: 1.2rem;
}

.dialog__body h2 {
  margin-bottom: 0.65rem;
  font-size: 1.5rem;
}

.dialog__body p:not(.eyebrow) {
  line-height: 1.55;
}

.dialog__badge {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  place-items: center;
  background: var(--grey);
  border-radius: 12px;
}

.dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

#improvement-dialog {
  width: min(560px, calc(100% - 2rem));
}

#improvement-fields > label {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
  font-size: 0.76rem;
  font-weight: 750;
}

#improvement-fields > label > span {
  font-weight: 500;
}

#improvement-fields select,
#improvement-fields textarea {
  width: 100%;
  padding: 0.7rem;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--blue-medium);
  border-radius: 8px;
  font: inherit;
}

.form-warning {
  padding: 0.8rem;
  color: var(--blue);
  background: var(--grey);
  border-left: 5px solid var(--red);
  border-radius: 7px;
  font-size: 0.8rem;
}

.improvement-confirmation {
  padding: 0.5rem 0;
}

.noscript {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 30;
  padding: 1rem;
  color: var(--white);
  background: var(--red);
  border-radius: 10px;
  text-align: center;
}

@media (max-width: 850px) {
  .welcome {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .demo-control {
    max-width: 420px;
  }

  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .account__name,
  .environment-label {
    display: none;
  }

  .brand-logo {
    width: 96px;
  }

  .brand:not(.brand--landing) > span:last-child {
    display: none;
  }

  main {
    width: min(100% - 1.25rem, 1180px);
    padding-top: 2.25rem;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.2rem);
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 148px;
  }

  .status-panel {
    grid-template-columns: auto 1fr;
  }

  .status-panel .button {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .craft-visual * {
    animation: none !important;
  }
}

/* Portaluitbreiding: alle nieuwe componenten gebruiken uitsluitend de merkbasis. */
.view-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.view-nav__link {
  padding: 0.52rem 0.75rem;
  color: rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.view-nav__link:hover,
.view-nav__link--active {
  color: var(--blue);
  background: var(--white);
}

.welcome--portal {
  padding-bottom: 2.4rem;
}

.today-card {
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.today-card span,
.today-card small {
  font-size: 0.74rem;
  opacity: 0.68;
}

.today-card strong {
  font-size: 1rem;
}

.urgent-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--grey);
  border-left: 5px solid var(--red);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.urgent-card__marker,
.admin-alert__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 13px;
  font-size: 1.15rem;
  font-weight: 900;
}

.urgent-card h2,
.urgent-card p,
.admin-alert h2,
.admin-alert p {
  margin-bottom: 0.3rem;
}

.urgent-card__content > p:last-child,
.admin-alert > div > p:last-child {
  margin-bottom: 0;
  line-height: 1.45;
}

.improvement-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.25rem;
  color: var(--blue);
  background: var(--white);
  border: 2px solid var(--blue-medium);
  border-radius: var(--radius);
}

.improvement-callout__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 800;
}

.improvement-callout h2,
.improvement-callout p {
  margin-bottom: 0;
}

.improvement-callout h2 {
  font-size: 1.2rem;
}

.improvement-callout p:last-child {
  margin-top: 0.3rem;
  line-height: 1.5;
}

.workspace-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.section-heading--stacked {
  display: block;
  margin-bottom: 0;
}

.section-heading--stacked h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.search-box {
  display: flex;
  align-items: center;
  width: min(360px, 100%);
  background: var(--white);
  border: 1px solid var(--blue-medium);
  border-radius: 12px;
}

.search-box:focus-within {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.search-box__icon {
  padding-left: 0.9rem;
  font-size: 1.4rem;
}

.search-box input,
.compact-search input {
  width: 100%;
  padding: 0.82rem;
  color: var(--blue);
  background: transparent;
  border: 0;
  outline: 0;
}

.tile-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  opacity: 0.72;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 238px;
}

.tile__top,
.tile__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.tile__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
}

.tile__illustration {
  position: relative;
  justify-self: center;
  width: 76px;
  height: 48px;
  overflow: hidden;
  background: var(--blue-soft);
  border-radius: 12px;
  transition: transform 180ms ease, background-color 180ms ease;
}

.tile__illustration span {
  position: absolute;
  display: block;
  transition: transform 180ms ease;
}

.tile:hover .tile__illustration,
.tile:focus .tile__illustration {
  background: var(--grey);
  transform: scale(1.06) translateX(2px);
}

.tile:hover .tile__illustration span:last-child,
.tile:focus .tile__illustration span:last-child {
  transform: translateY(-2px) scale(1.08);
}

/* Restverf: verfblik met rode druppel. */
.tile__illustration--restverf span:first-child {
  right: 20px;
  bottom: 8px;
  width: 34px;
  height: 27px;
  border: 3px solid var(--blue);
  border-radius: 4px 4px 8px 8px;
}

.tile__illustration--restverf span:nth-child(2) {
  right: 17px;
  bottom: 29px;
  width: 40px;
  height: 7px;
  background: var(--grey);
  border: 2px solid var(--blue);
  border-radius: 999px;
}

.tile__illustration--restverf span:last-child {
  right: 26px;
  bottom: 14px;
  width: 9px;
  height: 13px;
  background: var(--red);
  border-radius: 70% 30% 65% 35%;
  transform: rotate(45deg);
}

/* E-learning: open boek en voortgangspunt. */
.tile__illustration--elearning span:first-child,
.tile__illustration--elearning span:nth-child(2) {
  bottom: 10px;
  width: 27px;
  height: 28px;
  background: var(--white);
  border: 2px solid var(--blue);
}

.tile__illustration--elearning span:first-child {
  left: 10px;
  border-radius: 6px 1px 1px 6px;
  transform: skewY(7deg);
}

.tile__illustration--elearning span:nth-child(2) {
  right: 10px;
  border-radius: 1px 6px 6px 1px;
  transform: skewY(-7deg);
}

.tile__illustration--elearning span:last-child {
  top: 7px;
  right: 9px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border: 3px solid var(--white);
  border-radius: 50%;
}

/* Objectbeheer: gestapelde objecten met statusmarkering. */
.tile__illustration--objectbeheer span:first-child,
.tile__illustration--objectbeheer span:nth-child(2) {
  bottom: 9px;
  width: 24px;
  background: var(--white);
  border: 3px solid var(--blue);
  border-radius: 4px 4px 1px 1px;
}

.tile__illustration--objectbeheer span:first-child {
  left: 13px;
  height: 27px;
}

.tile__illustration--objectbeheer span:nth-child(2) {
  left: 37px;
  height: 35px;
}

.tile__illustration--objectbeheer span:last-child {
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
}

/* Materiaal: stevige krat met handgreep. */
.tile__illustration--materiaal span:first-child {
  right: 12px;
  bottom: 8px;
  left: 12px;
  height: 27px;
  background: var(--white);
  border: 3px solid var(--blue);
  border-radius: 5px;
}

.tile__illustration--materiaal span:nth-child(2) {
  top: 7px;
  left: 26px;
  width: 24px;
  height: 14px;
  border: 3px solid var(--blue);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.tile__illustration--materiaal span:last-child {
  right: 17px;
  bottom: 16px;
  left: 17px;
  height: 4px;
  background: var(--red);
}

/* CAO: document met herkenbare rode markering. */
.tile__illustration--cao span:first-child {
  top: 6px;
  left: 21px;
  width: 35px;
  height: 37px;
  background: var(--white);
  border: 3px solid var(--blue);
  border-radius: 4px;
}

.tile__illustration--cao span:nth-child(2),
.tile__illustration--cao span:last-child {
  left: 29px;
  width: 20px;
  height: 3px;
  background: var(--blue);
}

.tile__illustration--cao span:nth-child(2) {
  top: 19px;
}

.tile__illustration--cao span:last-child {
  top: 28px;
  width: 14px;
  background: var(--red);
}

/* Webshop: tas met handgreep. */
.tile__illustration--webshop span:first-child {
  right: 17px;
  bottom: 7px;
  left: 17px;
  height: 31px;
  background: var(--white);
  border: 3px solid var(--blue);
  border-radius: 5px 5px 9px 9px;
}

.tile__illustration--webshop span:nth-child(2) {
  top: 5px;
  left: 28px;
  width: 20px;
  height: 16px;
  border: 3px solid var(--blue);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.tile__illustration--webshop span:last-child {
  right: 25px;
  bottom: 17px;
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
}

.tile__content {
  flex: 1;
}

.tile__title {
  font-size: 1.2rem;
}

.access-badge {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.access-badge--allowed {
  background: var(--blue-soft);
}

.access-badge--request,
.access-badge--denied {
  color: var(--red);
  background: rgba(228, 5, 32, 0.08);
}

.tile__meta {
  font-size: 0.75rem;
  font-weight: 650;
  opacity: 0.65;
}

.tile__context,
.tile__destination {
  display: grid;
}

.tile__destination {
  max-width: 190px;
  margin-top: 0.18rem;
  overflow: hidden;
  color: var(--red);
  font-size: 0.67rem;
  font-weight: 750;
  opacity: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.tile:hover .tile__destination,
.tile:focus .tile__destination {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .tile__destination {
    opacity: 1;
    transform: none;
  }
}

.empty-state {
  padding: 2rem;
  background: var(--white);
  border: 1px dashed var(--blue-medium);
  border-radius: 12px;
  text-align: center;
}

.service-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  background: var(--grey);
  border-radius: var(--radius);
}

.service-strip h2 {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Aparte beheerervaring */
.admin-body {
  background: #f7f6f8;
}

.admin-return {
  padding: 0.55rem 0.75rem;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-return:hover {
  color: var(--blue);
  background: var(--white);
}

.topbar--admin {
  position: sticky;
  z-index: 10;
  top: 0;
}

.avatar--admin {
  color: var(--white);
  background: var(--red);
}

.admin-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.admin-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  min-height: calc(100vh - 76px);
  padding: 1.5rem 1rem;
  color: var(--white);
  background: var(--blue);
}

.admin-sidebar__label {
  margin: 0 0 1rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.58;
}

.admin-nav__item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.25rem;
  padding: 0.68rem 0.7rem;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.admin-nav__item span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.58rem;
}

.admin-nav__item:hover,
.admin-nav__item--active {
  color: var(--blue);
  background: var(--white);
}

.admin-nav__item--active span {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.admin-sidebar__security {
  display: grid;
  gap: 0.3rem;
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-size: 0.7rem;
  line-height: 1.35;
}

.admin-sidebar__security span {
  opacity: 0.65;
}

.admin-main {
  width: min(1480px, 100%);
  min-height: auto;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-heading h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.admin-heading p:last-child {
  margin-bottom: 0;
}

.admin-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--grey);
  border-left: 4px solid var(--red);
  border-radius: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.metric-card,
.admin-panel {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(25, 37, 66, 0.04);
}

.metric-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.metric-card > span,
.metric-card small {
  font-size: 0.72rem;
  opacity: 0.68;
}

.metric-card strong {
  font-size: 2rem;
}

.metric-card__attention {
  color: var(--red);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-panel {
  min-width: 0;
  padding: 1.1rem;
}

.admin-panel--wide {
  grid-column: span 2;
}

.admin-panel--full {
  grid-column: 1 / -1;
}

.panel-heading,
.panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.panel-heading {
  margin-bottom: 1rem;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.panel-heading .eyebrow {
  margin-bottom: 0.28rem;
}

.compact-search {
  width: min(220px, 45%);
  border: 1px solid var(--blue-medium);
  border-radius: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

th,
td {
  padding: 0.65rem;
  border-top: 1px solid var(--grey);
  text-align: left;
  white-space: nowrap;
}

th {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.58;
}

td strong,
td small {
  display: block;
}

td small {
  margin-top: 0.16rem;
  opacity: 0.6;
}

.table-status,
.count-badge {
  display: inline-block;
  padding: 0.27rem 0.5rem;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 800;
}

.table-status--ok,
.count-badge {
  background: var(--blue-soft);
}

.table-status--review {
  color: var(--red);
  background: rgba(228, 5, 32, 0.08);
}

.notice-item {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
  padding: 0.8rem;
  background: var(--blue-soft);
  border-radius: 10px;
}

.notice-item--urgent {
  border-left: 3px solid var(--red);
}

.notice-item span,
.notice-item small {
  font-size: 0.67rem;
  opacity: 0.68;
}

.text-action {
  padding: 0.4rem 0;
  color: var(--red);
  background: transparent;
  border: 0;
  font-weight: 750;
  cursor: pointer;
}

.button--small {
  min-height: 36px;
  padding: 0.5rem 0.7rem;
  font-size: 0.72rem;
}

.access-matrix {
  overflow: hidden;
  border: 1px solid var(--grey);
  border-radius: 10px;
}

.access-row {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem;
  border-top: 1px solid var(--grey);
  font-size: 0.72rem;
}

.access-row--header {
  border-top: 0;
  background: var(--blue-soft);
  font-weight: 750;
}

.access-check::before {
  content: "✓ ";
  color: var(--blue);
}

.access-request {
  color: var(--red);
}

.panel-note,
.panel-intro,
.form-help {
  margin: 0.8rem 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
  opacity: 0.7;
}

.panel-note--attention {
  color: var(--red);
  opacity: 1;
}

.governance-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.governance-roles span {
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem;
  background: var(--blue-soft);
  border-radius: 8px;
  font-size: 0.65rem;
  line-height: 1.35;
}

/* Lokale, niet-AI hulpchat. */
.chat-toggle {
  position: fixed;
  z-index: 40;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 48px;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(25, 37, 66, 0.24);
  font-weight: 800;
  cursor: pointer;
}

.chat-toggle span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--red);
  background: var(--white);
  border-radius: 50%;
}

.help-chat {
  position: fixed;
  z-index: 41;
  right: 1.25rem;
  bottom: 5rem;
  width: min(390px, calc(100% - 2rem));
  overflow: hidden;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(25, 37, 66, 0.28);
}

.help-chat[hidden] {
  display: none;
}

.help-chat__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  color: var(--white);
  background: var(--blue);
}

.help-chat__header small,
.help-chat__header h2 {
  display: block;
  margin: 0;
}

.help-chat__header small {
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

.help-chat__header h2 {
  font-size: 1rem;
}

.chat-close {
  align-self: start;
  color: var(--white);
  background: transparent;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
}

.help-chat__notice,
.help-chat__footer {
  padding: 0.65rem 1rem;
  font-size: 0.66rem;
  line-height: 1.4;
}

.help-chat__notice {
  color: var(--red);
  background: rgba(228, 5, 32, 0.07);
  font-weight: 700;
}

.help-chat__messages {
  display: grid;
  gap: 0.6rem;
  max-height: 210px;
  padding: 1rem;
  overflow-y: auto;
}

.chat-message {
  max-width: 88%;
  padding: 0.7rem;
  border-radius: 10px;
  font-size: 0.76rem;
  line-height: 1.45;
}

.chat-message--assistant {
  justify-self: start;
  background: var(--blue-soft);
  border-bottom-left-radius: 2px;
}

.chat-message--user {
  justify-self: end;
  color: var(--white);
  background: var(--blue);
  border-bottom-right-radius: 2px;
}

.help-chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.8rem;
}

.help-chat__suggestions button {
  padding: 0.4rem 0.55rem;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--blue-medium);
  border-radius: 999px;
  font-size: 0.66rem;
  cursor: pointer;
}

.help-chat__form {
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 0 1rem;
  border: 1px solid var(--blue-medium);
  border-radius: 9px;
}

.help-chat__form input {
  min-width: 0;
  padding: 0.7rem;
  color: var(--blue);
  background: transparent;
  border: 0;
  outline: 0;
}

.help-chat__form button {
  width: 42px;
  color: var(--white);
  background: var(--red);
  border: 0;
  cursor: pointer;
}

.help-chat__footer {
  opacity: 0.72;
}

/* Openbare startpagina en centrale-aanmeldflow. */
.landing-body {
  background: var(--white);
}

.landing-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 88px;
  padding: 0.8rem clamp(1rem, 5vw, 4rem);
  color: var(--white);
  background: var(--blue);
}

.brand--landing {
  justify-self: start;
}

.brand-logo-frame--landing {
  padding: 0.42rem 0.62rem;
}

.brand-logo--landing {
  width: 138px;
}

.landing-header__label {
  justify-self: end;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--white);
}

.landing-header__action {
  justify-self: end;
  text-decoration: none;
}

.landing-body main {
  width: 100%;
  max-width: none;
  padding: 0;
}

.landing-hero,
.services-section,
.workplace-explainer,
.landing-cta,
.landing-support {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  min-height: min(720px, calc(100vh - 88px));
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.landing-hero h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 5.3vw, 5.25rem);
}

.landing-hero__lead {
  max-width: 720px;
  margin-bottom: 0.9rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 650;
  line-height: 1.5;
  color: var(--blue);
}

.landing-hero__content > p:not(.eyebrow, .landing-hero__lead) {
  max-width: 680px;
  color: var(--blue);
  font-weight: 550;
  line-height: 1.65;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.6rem;
}

.button--large {
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
}

.text-link {
  color: var(--blue);
  font-weight: 750;
  text-underline-offset: 4px;
}

/* Lokale hero-illustratie: gevelwerk, schilderen en timmerwerk zonder externe assets. */
.craft-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: var(--blue);
  border: 3px solid var(--blue);
  border-radius: 26px;
}

.craft-visual__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 76%);
}

.craft-visual__facade {
  position: absolute;
  top: 13%;
  right: 7%;
  width: 62%;
  height: 70%;
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 18px 18px 8px 8px;
  box-shadow: 16px 16px 0 var(--grey);
  animation: facade-float 9s ease-in-out infinite;
}

.craft-visual__roofline {
  position: absolute;
  top: -16px;
  right: -3px;
  left: -3px;
  height: 18px;
  background: var(--red);
  border-radius: 7px 7px 0 0;
}

.craft-visual__window,
.craft-visual__door {
  position: absolute;
  background: var(--grey);
  border: 3px solid var(--blue);
  border-radius: 6px;
}

.craft-visual__window {
  top: 22%;
  width: 22%;
  height: 26%;
}

.craft-visual__window--one {
  left: 10%;
}

.craft-visual__window--two {
  left: 39%;
}

.craft-visual__window--three {
  right: 10%;
}

.craft-visual__door {
  bottom: 0;
  left: 39%;
  width: 24%;
  height: 36%;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.craft-visual__paint-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 13%;
  height: 100%;
  background: var(--red);
  transform-origin: top;
  animation: paint-breathe 7s ease-in-out infinite;
}

.craft-visual__roller {
  position: absolute;
  top: 18%;
  left: 7%;
  width: 112px;
  height: 54px;
  background: var(--red);
  border: 5px solid var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 0 rgba(255, 255, 255, 0.12);
  animation: roller-sweep 7s ease-in-out infinite;
}

.craft-visual__roller::after {
  position: absolute;
  top: 49px;
  left: 47px;
  width: 12px;
  height: 84px;
  content: "";
  background: var(--white);
  border-radius: 0 0 999px 999px;
}

.craft-visual__roller i {
  position: absolute;
  top: 126px;
  left: 37px;
  width: 32px;
  height: 72px;
  background: var(--grey);
  border: 5px solid var(--white);
  border-radius: 8px 8px 16px 16px;
}

.craft-visual__beam {
  position: absolute;
  left: 5%;
  width: 39%;
  height: 17px;
  background: var(--grey);
  border: 3px solid var(--white);
  border-radius: 999px;
  transform-origin: left center;
  animation: beam-settle 8s ease-in-out infinite;
}

.craft-visual__beam--one {
  bottom: 18%;
  transform: rotate(10deg);
}

.craft-visual__beam--two {
  bottom: 11%;
  transform: rotate(-5deg);
  animation-delay: -2s;
}

.craft-visual__labels {
  position: absolute;
  right: 6%;
  bottom: 5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.craft-visual__labels span {
  padding: 0.45rem 0.65rem;
  color: var(--blue);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
}

@keyframes facade-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes paint-breathe {
  0%, 100% { transform: scaleY(0.86); }
  50% { transform: scaleY(1); }
}

@keyframes roller-sweep {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(8px, 10px, 0) rotate(-2deg); }
}

@keyframes beam-settle {
  0%, 100% { translate: 0 0; }
  50% { translate: 5px -2px; }
}

.services-section {
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--grey);
}

.landing-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 0 3rem;
  align-items: end;
  margin-bottom: 2rem;
}

.landing-section-heading .eyebrow {
  grid-column: 1 / -1;
}

.landing-section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.landing-section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--blue);
  font-weight: 550;
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 2px solid var(--blue-medium);
  border-radius: 18px;
  overflow: hidden;
}

.service-grid article {
  min-height: 220px;
  padding: 1.25rem;
  border-left: 1px solid var(--blue-medium);
}

.service-grid article:first-child {
  border-left: 0;
}

.service-grid article:hover {
  background: var(--blue-soft);
}

.service-grid article > span {
  display: block;
  margin-bottom: 3rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 850;
}

.service-grid h3 {
  color: var(--blue);
  font-size: 1rem;
}

.service-grid p {
  margin-bottom: 0;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.5;
}

.workplace-explainer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem);
  color: var(--white);
  background: var(--blue);
  border-radius: 24px;
}

.workplace-explainer h2,
.landing-cta h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.workplace-explainer > div > p:last-child {
  margin-bottom: 0;
  color: var(--white);
  font-weight: 550;
  line-height: 1.6;
}

.journey-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.journey-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem;
  min-height: 66px;
  color: var(--blue);
  background: var(--white);
  border-radius: 11px;
}

.journey-list li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 9px;
  font-weight: 850;
}

.journey-list strong,
.journey-list small {
  display: block;
}

.journey-list small {
  margin-top: 0.2rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 550;
}

.landing-cta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin-top: clamp(3rem, 7vw, 6rem);
  margin-bottom: clamp(3rem, 7vw, 6rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--white);
  background: var(--blue);
  border-radius: 18px;
}

.landing-cta p:last-child {
  margin-bottom: 0;
  color: var(--white);
  font-weight: 550;
}

.landing-support {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--blue);
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 18px;
}

.landing-support h2,
.landing-support p {
  margin-bottom: 0;
}

.landing-support h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.landing-support > p {
  font-weight: 550;
  line-height: 1.65;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 5vw, 4rem);
  color: var(--white);
  background: var(--blue);
  font-size: 0.72rem;
}

.tile:hover .tile__illustration--restverf span:last-child,
.tile:focus .tile__illustration--restverf span:last-child {
  transform: rotate(45deg) translate(-2px, -2px) scale(1.08);
}

@media (max-width: 950px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .craft-visual {
    min-height: 380px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid article {
    border-top: 1px solid var(--grey);
  }

  .workplace-explainer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .landing-header {
    grid-template-columns: 1fr auto;
  }

  .landing-header__label {
    display: none;
  }

  .brand-logo--landing {
    width: 104px;
  }

  .landing-header__action {
    padding: 0.6rem 0.75rem;
    font-size: 0.7rem;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 3.2rem;
  }

  .landing-hero h1 {
    font-size: clamp(2.65rem, 11.5vw, 3.4rem);
  }

  .craft-visual {
    min-height: 320px;
  }

  .craft-visual__facade {
    top: 15%;
    right: 6%;
    width: 64%;
    height: 65%;
  }

  .craft-visual__roller {
    top: 17%;
    left: 5%;
    width: 82px;
    height: 42px;
    border-width: 4px;
  }

  .craft-visual__roller::after {
    top: 38px;
    left: 34px;
    width: 10px;
    height: 62px;
  }

  .craft-visual__roller i {
    top: 95px;
    left: 25px;
    width: 28px;
    height: 55px;
    border-width: 4px;
  }

  .craft-visual__beam {
    left: 4%;
    width: 42%;
  }

  .craft-visual__labels {
    right: 4%;
    bottom: 4%;
    left: 4%;
  }

  .craft-visual__labels span {
    font-size: 0.58rem;
  }

  .landing-section-heading {
    grid-template-columns: 1fr;
  }

  .landing-section-heading > p:last-child {
    margin-top: 1rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    min-height: auto;
    border-left: 0;
    border-top-color: var(--blue-medium);
  }

  .service-grid article > span {
    margin-bottom: 1.5rem;
  }

  .workplace-explainer {
    width: 100%;
    border-radius: 0;
  }

  .landing-cta,
  .landing-support,
  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-support {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.access-editor {
  display: grid;
  gap: 0.8rem;
}

.access-editor > label,
.dialog__body > label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.access-editor select,
.access-editor input,
.dialog__body input,
.dialog__body select,
.dialog__body textarea {
  width: 100%;
  padding: 0.65rem;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--blue-medium);
  border-radius: 8px;
}

.access-editor fieldset {
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--grey);
  border-radius: 10px;
}

.access-app-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.access-editor legend {
  padding: 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 750;
}

.access-editor fieldset label {
  font-size: 0.7rem;
}

.access-editor input[type="checkbox"] {
  width: auto;
}

.app-status-list,
.audit-list,
.tile-manager-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.app-status-list li,
.audit-list li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid var(--grey);
}

.app-status-list li > div,
.audit-list li > div {
  flex: 1;
  min-width: 0;
}

.app-status-list strong,
.app-status-list small,
.audit-list strong,
.audit-list small {
  display: block;
}

.app-status-list small,
.audit-list small {
  margin-top: 0.18rem;
  font-size: 0.65rem;
  opacity: 0.62;
}

.mini-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 8px;
  font-size: 0.58rem;
  font-weight: 850;
}

.progress-block {
  margin-bottom: 0.9rem;
}

.progress-block > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
}

progress {
  width: 100%;
  height: 8px;
  accent-color: var(--red);
}

.audit-dot {
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
}

.audit-list li > span:last-child {
  font-size: 0.65rem;
  font-weight: 800;
  opacity: 0.6;
}

.improvement-admin-list {
  display: grid;
  gap: 0.8rem;
}

.improvement-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--blue-medium);
  border-radius: 12px;
}

.improvement-admin-card__summary {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.improvement-admin-card__meta {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.improvement-admin-card__editor {
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) minmax(220px, 1.4fr) auto;
  gap: 0.7rem;
  align-items: end;
}

.improvement-admin-card__editor label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 750;
}

.improvement-admin-card__editor select,
.improvement-admin-card__editor textarea {
  width: 100%;
  padding: 0.58rem;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--blue-medium);
  border-radius: 8px;
  font: inherit;
}

.tile-manager-list {
  border: 1px solid var(--grey);
  border-radius: 12px;
  overflow: hidden;
}

.tile-manager-row {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto minmax(340px, auto);
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem;
  border-top: 1px solid var(--grey);
}

.tile-manager-row:first-child {
  border-top: 0;
}

.tile-manager-row--hidden,
.tile-manager-row--archived {
  background: var(--blue-soft);
  opacity: 0.72;
}

.drag-handle {
  font-weight: 900;
  opacity: 0.38;
}

.tile-manager-row__content {
  min-width: 0;
}

.tile-manager-row__content strong,
.tile-manager-row__content code,
.tile-manager-row__content small {
  display: block;
}

.tile-manager-row__content code {
  margin: 0.18rem 0;
  overflow: hidden;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-manager-row__content small {
  font-size: 0.65rem;
  opacity: 0.62;
}

.tile-manager-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

.icon-action {
  min-height: 32px;
  padding: 0.38rem 0.5rem;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--blue-medium);
  border-radius: 7px;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
}

.icon-action:hover {
  border-color: var(--red);
}

.icon-action:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.url-guidance {
  display: grid;
  gap: 0.3rem;
  margin-top: 1rem;
  padding: 0.9rem;
  background: var(--blue-soft);
  border-radius: 10px;
  font-size: 0.72rem;
}

.url-guidance small {
  line-height: 1.45;
  opacity: 0.7;
}

.status-panel--admin {
  margin-bottom: 2rem;
}

.dialog__body textarea {
  min-height: 90px;
  resize: vertical;
}

@media (max-width: 1120px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panel--full {
    grid-column: 1 / -1;
  }

  .tile-manager-row {
    grid-template-columns: auto auto minmax(180px, 1fr) auto;
  }

  .tile-manager-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 850px) {
  .topbar {
    flex-wrap: wrap;
  }

  .view-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .urgent-card,
  .admin-alert {
    grid-template-columns: auto 1fr;
  }

  .urgent-card .button,
  .admin-alert .button {
    grid-column: 1 / -1;
  }

  .workspace-toolbar {
    display: grid;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .admin-sidebar nav {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
  }

  .admin-nav__item {
    flex: 0 0 auto;
  }

  .admin-sidebar__label,
  .admin-sidebar__security {
    display: none;
  }
}

@media (max-width: 650px) {
  .tile-meta,
  .service-strip,
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel--wide,
  .admin-panel--full {
    grid-column: auto;
  }

  .access-row {
    min-width: 590px;
  }

  .access-matrix {
    overflow-x: auto;
  }

  .tile-manager-row {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .tile-manager-row > .table-status {
    grid-column: 2;
  }

  .tile-manager-actions {
    grid-column: 2 / -1;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .governance-roles {
    grid-template-columns: 1fr;
  }

  .tile__illustration {
    width: 66px;
  }

  .help-chat {
    right: 0.65rem;
    bottom: 4.7rem;
    width: calc(100% - 1.3rem);
  }

  .chat-toggle {
    right: 0.65rem;
    bottom: 0.65rem;
  }

  .compact-search {
    width: 100%;
  }

  .improvement-callout {
    grid-template-columns: auto 1fr;
  }

  .improvement-callout .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .improvement-admin-card,
  .improvement-admin-card__editor {
    grid-template-columns: 1fr;
  }
}
