/**
 * ONEMANCREW PORTAAL - design system
 *
 * Eigen stijlblad voor /portaal, los van het marketingsite-stylesheet.
 * Exact kleurenpalet en typografie per spec: Poppins only, haakse hoeken,
 * viewfinder-hoeken op het hoofdelement van elk scherm, oranje maximaal
 * zo'n 8% van een scherm, teal nooit los (alleen in het orange-naar-teal
 * verloop).
 */

:root {
  /* Kleuren */
  --p-graphite: #202020;
  --p-black: #141414;
  --p-offwhite: #f2efea;
  --p-ink-muted: #a8a39c;
  --p-hairline: #3a3a3a;
  --p-orange: #d07335;
  --p-orange-dim: #a85b29;
  --p-teal: #2e8c8c;
  --p-danger: #d0573b;

  /* Typografie */
  --p-font: 'Poppins', sans-serif;
  --p-fs-label: 0.72rem;
  --p-fs-sm: 0.875rem;
  --p-fs-base: 1rem;
  --p-fs-md: 1.15rem;
  --p-fs-lg: 1.5rem;
  --p-fs-xl: clamp(1.9rem, 1.6rem + 1.3vw, 2.6rem);
  --p-fs-display: clamp(2.4rem, 1.9rem + 2vw, 3.6rem);
  --p-lh-body: 26px;

  /* Vorm */
  --p-radius-input: 2px;
  --p-space-3xs: 0.25rem;
  --p-space-2xs: 0.5rem;
  --p-space-xs: 0.75rem;
  --p-space-sm: 1rem;
  --p-space-md: 1.5rem;
  --p-space-lg: 2rem;
  --p-space-xl: 3rem;
  --p-space-2xl: 4.5rem;

  --p-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --p-duration: 220ms;
}

/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--p-graphite);
  color: var(--p-offwhite);
  font-family: var(--p-font);
  font-weight: 300;
  font-size: var(--p-fs-base);
  line-height: var(--p-lh-body);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--p-offwhite);
  outline-offset: 2px;
}

/* Zonder dit wint elke class die zelf "display" zet (zoals .p-empty's
   display:flex) van de standaard [hidden]-regel van de browser, omdat
   beide dezelfde specificiteit hebben en de class-regel later geladen
   wordt. Dat liet verborgen secties (leeg/laden/fout) toch zichtbaar
   blijven staan. */
[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   TYPOGRAFIE
   -------------------------------------------------------------------------- */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  font-size: var(--p-fs-display);
}

h2 {
  font-size: var(--p-fs-xl);
}

h3 {
  font-size: var(--p-fs-md);
}

p {
  margin: 0;
}

/* Koppen combineren één vet (600) en één licht (200) woord/deel, bijv.
   "Jouw projecten." Markeer het lichte deel met deze class. */
.p-weight-light {
  font-weight: 200;
}

.p-label {
  display: inline-block;
  font-size: var(--p-fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--p-ink-muted);
}

.p-text-muted {
  color: var(--p-ink-muted);
}

.p-text-sm {
  font-size: var(--p-fs-sm);
}

/* --------------------------------------------------------------------------
   WOORDMERK
   -------------------------------------------------------------------------- */
.p-wordmark {
  display: inline-flex;
  font-size: var(--p-fs-lg);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.p-wordmark__bold {
  font-weight: 600;
}

.p-wordmark__light {
  font-weight: 200;
}

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.p-shell {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.p-main {
  flex: 1;
}

.p-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--p-space-md);
}

/* Effen orange-naar-teal verloopbalk, 3px, onderaan elke paginas. Dit is de
   enige plek waar teal mag bestaan buiten de login-gloed. */
.p-gradient-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p-orange), var(--p-teal));
  z-index: 50;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   VIEWFINDER-HOEKEN
   Vier L-hoeken om het hoofdelement van elk scherm (loginkader,
   thumbnails, player).
   -------------------------------------------------------------------------- */
.p-viewfinder {
  position: relative;
}

.p-viewfinder::before,
.p-viewfinder::after,
.p-viewfinder__corner--tr,
.p-viewfinder__corner--bl {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.p-viewfinder::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--p-offwhite);
  border-left: 2px solid var(--p-offwhite);
}

.p-viewfinder::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--p-offwhite);
  border-right: 2px solid var(--p-offwhite);
}

.p-viewfinder__corner--tr,
.p-viewfinder__corner--bl {
  position: absolute;
}

.p-viewfinder__corner--tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--p-offwhite);
  border-right: 2px solid var(--p-offwhite);
}

.p-viewfinder__corner--bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--p-offwhite);
  border-left: 2px solid var(--p-offwhite);
}

/* --------------------------------------------------------------------------
   REC-PUNT
   Het enige ronde element. Oranje, gebruikt voor status "review", actieve
   fase-indicator en eerstvolgende deadline.
   -------------------------------------------------------------------------- */
.p-rec-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-orange);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   KNOPPEN
   -------------------------------------------------------------------------- */
.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--p-space-2xs);
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 600;
  font-size: var(--p-fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background-color var(--p-duration) var(--p-ease), border-color var(--p-duration) var(--p-ease), color var(--p-duration) var(--p-ease), opacity var(--p-duration) var(--p-ease);
}

.p-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.p-btn--primary {
  background: var(--p-orange);
  color: var(--p-graphite);
}

.p-btn--primary:hover:not(:disabled),
.p-btn--primary:focus-visible:not(:disabled) {
  background: var(--p-orange-dim);
}

.p-btn--ghost {
  background: transparent;
  border-color: var(--p-hairline);
  color: var(--p-offwhite);
}

.p-btn--ghost:hover:not(:disabled),
.p-btn--ghost:focus-visible:not(:disabled) {
  border-color: var(--p-offwhite);
}

.p-btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   FORMULIER
   -------------------------------------------------------------------------- */
.p-field {
  display: flex;
  flex-direction: column;
  gap: var(--p-space-2xs);
}

.p-field + .p-field {
  margin-top: var(--p-space-sm);
}

.p-field label {
  font-size: var(--p-fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--p-ink-muted);
}

.p-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--p-graphite);
  border: 1px solid var(--p-hairline);
  border-radius: var(--p-radius-input);
  color: var(--p-offwhite);
  font-size: var(--p-fs-base);
  transition: border-color var(--p-duration) var(--p-ease);
}

.p-field input::placeholder {
  color: var(--p-ink-muted);
}

.p-field input:focus-visible {
  border-color: var(--p-orange);
  outline: none;
}

.p-field input[aria-invalid='true'] {
  border-color: var(--p-danger);
}

.p-field-error {
  font-size: var(--p-fs-sm);
  color: var(--p-danger);
  min-height: 1.2em;
}

/* --------------------------------------------------------------------------
   LOGINPAGINA
   -------------------------------------------------------------------------- */
.p-login {
  /* .p-main geeft al flex:1 (vult de hoogte tussen eventuele topbar en
     footer binnen .p-shell), dus hier geen eigen min-height nodig. */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--p-space-lg) var(--p-space-md);
  overflow: hidden;
}

/* Subtiele radiale teal-gloed rechtsboven, alleen op de loginpagina. */
.p-login::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: clamp(320px, 45vw, 620px);
  height: clamp(320px, 45vw, 620px);
  background: radial-gradient(circle, rgba(46, 140, 140, 0.28), transparent 70%);
  pointer-events: none;
}

.p-login__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: var(--p-space-xl) var(--p-space-lg);
  background: var(--p-black);
}

.p-login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--p-space-3xs);
  text-align: center;
  margin-bottom: var(--p-space-xl);
}

.p-login__tagline {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--p-ink-muted);
}

.p-login__heading {
  margin-bottom: var(--p-space-lg);
  text-align: center;
}

.p-login__forgot {
  display: inline-block;
  margin-top: var(--p-space-2xs);
  padding: 0;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  font-size: var(--p-fs-sm);
  color: var(--p-ink-muted);
  transition: color var(--p-duration) var(--p-ease), border-color var(--p-duration) var(--p-ease);
}

.p-login__forgot:hover,
.p-login__forgot:focus-visible {
  color: var(--p-offwhite);
  border-bottom-color: var(--p-offwhite);
}

.p-login__submit {
  margin-top: var(--p-space-lg);
}

.p-login__status {
  margin-top: var(--p-space-sm);
  font-size: var(--p-fs-sm);
  min-height: 1.3em;
}

.p-login__status[data-tone='error'] {
  color: var(--p-danger);
}

.p-login__status[data-tone='success'] {
  color: var(--p-teal);
}

.p-login__hint {
  margin-top: var(--p-space-lg);
  text-align: center;
  font-size: var(--p-fs-sm);
  color: var(--p-ink-muted);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.p-footer {
  padding: var(--p-space-lg) var(--p-space-md) calc(var(--p-space-lg) + 10px);
  text-align: center;
  font-size: var(--p-fs-sm);
  color: var(--p-ink-muted);
}

.p-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--p-space-sm);
}

.p-footer a {
  transition: color var(--p-duration) var(--p-ease);
}

.p-footer a:hover,
.p-footer a:focus-visible {
  color: var(--p-offwhite);
}

/* --------------------------------------------------------------------------
   TOPBAR (ingelogde schermen)
   -------------------------------------------------------------------------- */
.p-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--p-space-md);
  padding: var(--p-space-md);
  min-width: 0;
  border-bottom: 1px solid var(--p-hairline);
}

.p-topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--p-space-md);
  min-width: 0;
}

.p-topbar__user {
  overflow: hidden;
  min-width: 0;
  max-width: 40vw;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--p-fs-sm);
  color: var(--p-ink-muted);
}

.p-signout {
  flex-shrink: 0;
}

.p-signout {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--p-fs-sm);
  color: var(--p-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.p-signout:hover,
.p-signout:focus-visible {
  color: var(--p-offwhite);
}

/* --------------------------------------------------------------------------
   LEGE STAAT / PLACEHOLDER (tijdelijk, tot stap 2 en 4 de echte content
   leveren)
   -------------------------------------------------------------------------- */
.p-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--p-space-2xs);
  padding: var(--p-space-xl) 0;
  max-width: 32rem;
}

.p-empty p {
  color: var(--p-ink-muted);
}

/* --------------------------------------------------------------------------
   PAGINAKOP / TERUGLINK (ingelogde schermen)
   -------------------------------------------------------------------------- */
.p-page-heading {
  margin-top: var(--p-space-2xs);
  margin-bottom: var(--p-space-lg);
}

.p-back-link {
  display: inline-block;
  margin-top: var(--p-space-lg);
  margin-bottom: var(--p-space-md);
  font-size: var(--p-fs-sm);
  color: var(--p-ink-muted);
  transition: color var(--p-duration) var(--p-ease);
}

.p-back-link:hover,
.p-back-link:focus-visible {
  color: var(--p-offwhite);
}

/* --------------------------------------------------------------------------
   PROJECTENRASTER (klant: "Jouw projecten.")
   -------------------------------------------------------------------------- */
.p-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--p-space-lg);
  padding-block: var(--p-space-lg) var(--p-space-2xl);
}

.p-project-card {
  display: block;
  background: var(--p-black);
  transition: background-color var(--p-duration) var(--p-ease);
}

.p-project-card:hover,
.p-project-card:focus-visible {
  background: #1a1a1a;
}

.p-project-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--p-black);
  border-bottom: 1px solid var(--p-hairline);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--p-space-sm);
}

.p-project-card__body {
  padding: var(--p-space-md);
}

.p-project-card__status {
  margin-bottom: var(--p-space-2xs);
}

.p-project-card__title {
  font-size: var(--p-fs-md);
  font-weight: 600;
  margin: 0 0 var(--p-space-xs);
}

.p-project-card__body p + p {
  margin-top: var(--p-space-3xs);
}

/* --------------------------------------------------------------------------
   PROJECTHEADER (projectdetail)
   -------------------------------------------------------------------------- */
.p-project-header {
  padding-bottom: var(--p-space-lg);
}

.p-project-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--p-space-sm);
  margin-top: var(--p-space-md);
}

/* --------------------------------------------------------------------------
   FASEBALK
   Afgerond: off-white tekst. Huidig: oranje vlak. Toekomstig: grijs/gedimd
   (de standaard .p-phase-bar__step-kleur).
   -------------------------------------------------------------------------- */
.p-phase-bar {
  display: flex;
  border: 1px solid var(--p-hairline);
  margin-bottom: var(--p-space-xl);
}

.p-phase-bar__step {
  flex: 1;
  padding: var(--p-space-sm) var(--p-space-xs);
  text-align: center;
  font-size: var(--p-fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--p-ink-muted);
  background: var(--p-black);
  border-right: 1px solid var(--p-hairline);
}

.p-phase-bar__step:last-child {
  border-right: none;
}

.p-phase-bar__step--done {
  color: var(--p-offwhite);
}

.p-phase-bar__step--current {
  color: var(--p-graphite);
  background: var(--p-orange);
}

/* --------------------------------------------------------------------------
   PROJECTLAYOUT (hoofdkolom + zijbalk)
   -------------------------------------------------------------------------- */
.p-project-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--p-space-2xl);
  padding-bottom: var(--p-space-2xl);
}

/* --------------------------------------------------------------------------
   VERSIEWISSELAAR
   -------------------------------------------------------------------------- */
.p-version-switcher {
  display: flex;
  gap: var(--p-space-2xs);
  margin-bottom: var(--p-space-sm);
}

.p-version-switcher__btn {
  padding: 0.5rem 1rem;
  background: var(--p-black);
  border: 1px solid var(--p-hairline);
  border-radius: 0;
  color: var(--p-ink-muted);
  font-size: var(--p-fs-sm);
  font-weight: 600;
}

.p-version-switcher__btn--active {
  color: var(--p-offwhite);
  border-color: var(--p-offwhite);
}

/* --------------------------------------------------------------------------
   PLAYER (stap 3 vervangt de placeholder door de echte Bunny-iframe)
   -------------------------------------------------------------------------- */
.p-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--p-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--p-space-sm);
}

.p-player__frame {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.p-player__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.p-player__badge {
  position: absolute;
  top: var(--p-space-sm);
  right: var(--p-space-sm);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--p-space-2xs);
  font-size: var(--p-fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--p-offwhite);
  background: rgba(20, 20, 20, 0.7);
  padding: 0.3rem 0.6rem;
}

.p-player__placeholder {
  text-align: center;
  color: var(--p-ink-muted);
  padding: var(--p-space-md);
}

/* --------------------------------------------------------------------------
   FEEDBACKFORMULIER
   -------------------------------------------------------------------------- */
.p-feedback-form {
  margin-bottom: var(--p-space-xl);
}

.p-feedback-form label {
  display: block;
  margin-bottom: var(--p-space-2xs);
  font-size: var(--p-fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--p-ink-muted);
}

.p-feedback-form__text {
  width: 100%;
  min-height: 90px;
  padding: 0.85rem 1rem;
  background: var(--p-black);
  border: 1px solid var(--p-hairline);
  border-radius: var(--p-radius-input);
  resize: vertical;
}

.p-feedback-form__text:focus-visible {
  border-color: var(--p-orange);
  outline: none;
}

.p-feedback-form__row {
  display: flex;
  align-items: center;
  gap: var(--p-space-md);
  margin-top: var(--p-space-sm);
}

.p-feedback-form__row .p-login__status {
  margin: 0;
}

.p-feedback-form__timecode-label {
  display: flex;
  align-items: center;
  gap: var(--p-space-2xs);
  margin-bottom: 0;
  font-size: var(--p-fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--p-ink-muted);
}

.p-feedback-form__timecode {
  width: 4.5rem;
  padding: 0.4rem 0.5rem;
  background: var(--p-black);
  border: 1px solid var(--p-hairline);
  border-radius: var(--p-radius-input);
  color: var(--p-offwhite);
  font-size: var(--p-fs-sm);
  text-transform: none;
  letter-spacing: normal;
}

.p-feedback-form__timecode:focus-visible {
  border-color: var(--p-orange);
  outline: none;
}

/* --------------------------------------------------------------------------
   FEEDBACK-THREAD
   -------------------------------------------------------------------------- */
.p-feedback-thread {
  display: flex;
  flex-direction: column;
  gap: var(--p-space-md);
  padding-bottom: var(--p-space-2xl);
}

.p-feedback-item {
  padding: var(--p-space-sm) var(--p-space-md);
  background: var(--p-black);
  border-left: 2px solid var(--p-orange);
}

.p-feedback-item--verwerkt {
  opacity: 0.55;
  border-left-color: var(--p-hairline);
}

.p-feedback-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--p-space-2xs) var(--p-space-sm);
}

.p-feedback-item__time {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--p-orange);
  font-size: var(--p-fs-sm);
}

.p-feedback-item--verwerkt .p-feedback-item__time {
  color: var(--p-ink-muted);
}

.p-feedback-item__author {
  font-size: var(--p-fs-sm);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.p-feedback-item__text {
  margin-top: var(--p-space-2xs);
}

.p-feedback-item__status {
  margin-left: auto;
}

.p-feedback-replies {
  margin-top: var(--p-space-sm);
  padding-left: var(--p-space-md);
  border-left: 1px solid var(--p-hairline);
  display: flex;
  flex-direction: column;
  gap: var(--p-space-xs);
}

.p-feedback-reply__author {
  display: block;
  font-size: var(--p-fs-sm);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   ZIJBALK
   -------------------------------------------------------------------------- */
.p-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--p-space-xl);
  padding-bottom: var(--p-space-2xl);
}

.p-sidebar__block {
  display: flex;
  flex-direction: column;
  gap: var(--p-space-sm);
}

/* Deadlines: verticale tijdlijn, afgerond = doorgestreept, eerstvolgende
   = oranje punt (de enige ronde vorm buiten de REC-punt-klasse zelf). */
.p-deadline-list {
  display: flex;
  flex-direction: column;
  gap: var(--p-space-sm);
  border-left: 1px solid var(--p-hairline);
  padding-left: var(--p-space-md);
}

.p-deadline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p-deadline-item__dot {
  position: absolute;
  left: calc(-1 * var(--p-space-md) - 4px);
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-ink-muted);
}

.p-deadline-item--next .p-deadline-item__dot {
  background: var(--p-orange);
}

.p-deadline-item__title {
  font-size: var(--p-fs-sm);
  font-weight: 600;
}

.p-deadline-item__date {
  font-size: var(--p-fs-sm);
  color: var(--p-ink-muted);
}

.p-deadline-item--done .p-deadline-item__title {
  text-decoration: line-through;
  color: var(--p-ink-muted);
}

.p-deadline-item--done .p-deadline-item__dot {
  background: var(--p-hairline);
}

/* Afspraken: bewust zwart-op-wit, los van de rest van het donkere scherm. */
.p-agreement {
  background: var(--p-offwhite);
  color: var(--p-graphite);
  padding: var(--p-space-md);
}

.p-agreement__pledge {
  font-weight: 600;
  margin-bottom: var(--p-space-sm);
}

.p-agreement__list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--p-space-3xs) var(--p-space-sm);
  margin: 0;
}

.p-agreement__list dt {
  font-size: var(--p-fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.65;
}

.p-agreement__list dd {
  margin: 0;
  font-size: var(--p-fs-sm);
}

.p-agreement__link {
  display: inline-block;
  margin-top: var(--p-space-sm);
  font-size: var(--p-fs-sm);
  font-weight: 600;
  text-decoration: underline;
}

/* Bestanden */
.p-file-list {
  display: flex;
  flex-direction: column;
  gap: var(--p-space-2xs);
}

.p-file-item a {
  display: block;
  padding: var(--p-space-sm) var(--p-space-md);
  background: var(--p-black);
  border: 1px solid var(--p-hairline);
  font-size: var(--p-fs-sm);
  font-weight: 600;
  transition: border-color var(--p-duration) var(--p-ease);
}

.p-file-item a:hover,
.p-file-item a:focus-visible {
  border-color: var(--p-offwhite);
}

/* --------------------------------------------------------------------------
   BEHEER (admin)
   -------------------------------------------------------------------------- */
.p-field select,
.p-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--p-graphite);
  border: 1px solid var(--p-hairline);
  border-radius: var(--p-radius-input);
  color: var(--p-offwhite);
  font-size: var(--p-fs-base);
}

.p-field select:focus-visible,
.p-field textarea:focus-visible {
  border-color: var(--p-orange);
  outline: none;
}

.p-admin-summary {
  display: flex;
  align-items: center;
  gap: var(--p-space-2xs);
  margin-top: var(--p-space-sm);
  margin-bottom: var(--p-space-lg);
  font-size: var(--p-fs-md);
  font-weight: 600;
  color: var(--p-orange);
}

.p-admin-section {
  margin-bottom: var(--p-space-xl);
}

.p-admin-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--p-space-sm);
  margin-bottom: var(--p-space-md);
}

.p-admin-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--p-space-md);
  margin-bottom: var(--p-space-md);
  background: var(--p-black);
  border: 1px solid var(--p-hairline);
}

.p-admin-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--p-space-2xs);
  max-height: 180px;
  overflow-y: auto;
  padding: var(--p-space-xs);
  background: var(--p-graphite);
  border: 1px solid var(--p-hairline);
}

.p-admin-checklist__item {
  display: flex;
  align-items: center;
  gap: var(--p-space-2xs);
  font-size: var(--p-fs-sm);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--p-offwhite);
}

.p-admin-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--p-hairline);
}

.p-admin-row {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 0.8fr 1fr;
  align-items: center;
  gap: var(--p-space-sm);
  padding: var(--p-space-sm) var(--p-space-md);
  background: var(--p-black);
}

.p-admin-row__title {
  font-weight: 600;
}

a.p-admin-row__title:hover,
a.p-admin-row__title:focus-visible {
  text-decoration: underline;
}

.p-admin-inline-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  background: var(--p-graphite);
  border: 1px solid var(--p-hairline);
  border-radius: var(--p-radius-input);
  color: var(--p-offwhite);
  font-size: var(--p-fs-sm);
}

.p-admin-inline-input:focus-visible {
  border-color: var(--p-orange);
  outline: none;
}

.p-btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--p-fs-label);
}

.p-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--p-space-2xs);
  font-size: var(--p-fs-sm);
  font-weight: 600;
  color: var(--p-orange);
}

.p-admin-reply-form {
  display: flex;
  align-items: center;
  gap: var(--p-space-2xs);
  margin-top: var(--p-space-sm);
}

.p-admin-reply-form input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  background: var(--p-black);
  border: 1px solid var(--p-hairline);
  border-radius: var(--p-radius-input);
  color: var(--p-offwhite);
  font-size: var(--p-fs-sm);
}

.p-admin-reply-form input:focus-visible {
  border-color: var(--p-orange);
  outline: none;
}

@media (max-width: 700px) {
  .p-admin-row {
    grid-template-columns: 1fr;
    gap: var(--p-space-3xs);
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY: beweging respecteren
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .p-project-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .p-login__card {
    padding: var(--p-space-lg) var(--p-space-md);
  }

  .p-phase-bar {
    flex-wrap: wrap;
  }

  .p-phase-bar__step {
    flex-basis: 50%;
    border-bottom: 1px solid var(--p-hairline);
  }

  .p-project-header__actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Op zeer smalle schermen laten logo + "uitloggen" al bijna geen ruimte
     over; het e-mailadres zou dan tot bijna niets worden afgekapt. Het
     dient alleen ter bevestiging wie je bent, dus verbergen heeft hier
     voorrang op de uitlogknop die altijd bruikbaar moet blijven. */
  .p-topbar__user {
    display: none;
  }
}
