:root{color-scheme:light;--ink:#142823;--muted:#47635a;--paper:#f4f6f3;--line:#c5d0c8;--accent:#11614d;font:16px/1.55 "Inter","Arial",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}main{max-width:1150px;margin:auto;padding:clamp(16px,4vw,52px)}header{margin-bottom:1.5rem}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.13;letter-spacing:-.03em}h1{font-size:clamp(2.1rem,5vw,3.8rem)}h2{font-size:clamp(1.25rem,2.8vw,1.9rem)}a{color:#075941;text-underline-offset:.2em}button,input,textarea,select{font:inherit}button{cursor:pointer;background:#154e40;color:white;border:1px solid transparent;border-radius:8px;padding:.63rem 1rem;font-weight:600}button:hover{filter:brightness(1.13)}button:disabled{cursor:not-allowed;opacity:.65}input:not([type=checkbox]):not([type=radio]),textarea,select{border:1px solid #97a99e;background:white;color:#173129;border-radius:6px;max-width:100%;padding:.48rem .62rem}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ed813e;outline-offset:3px}table{border-collapse:collapse;text-align:left}td,th{padding:.6rem .72rem;border-bottom:1px solid var(--line)}.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:clamp(16px,3vw,32px);min-width:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px}.muted{color:var(--muted)}pre{white-space:pre-wrap;overflow-wrap:anywhere}img{max-width:100%}

/* Role controls stay visible while the visitor tries both sides of a workflow. */
.role-switch {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  margin-block: 12px 20px;
  padding: 4px;
  background: #edf1ee;
  border: 1px solid #bdc8bf;
  border-radius: 10px;
}
.role-switch button, .demo .role-switch button {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #284736;
  background: transparent;
  font-weight: 500; font-size: 1rem; line-height: 1.4;
  font-family: inherit;
}
.role-switch button[aria-pressed="true"], .demo .role-switch button[aria-pressed="true"] {
  color: #fff;
  background: #21523c;
  border-color: #21523c;
}
[data-mode-panel][hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes reveal-panel {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
  }
  [data-mode-panel]:not([hidden]), dialog[open], details[open] > :not(summary) {
    animation: reveal-panel 160ms ease-out;
  }
  button { transition: background-color 120ms ease-out, color 120ms ease-out, border-color 120ms ease-out; }
  button:active:enabled { transform: translateY(1px); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
