/* EventID design tokens. Colours come from the logo (brand/README.md); everything else is
   expressed through these variables so light and dark themes stay in step. Light is the default,
   whatever the device prefers: EventID's pages sit inside other companies' sign-in flows and
   apps, and a neutral light page fits more of them. Dark is opt-in with data-theme="dark". */

:root {
  color-scheme: light;

  /* Brand */
  --eid-navy: #0f3a68;
  --eid-navy-deep: #0b325d;
  --eid-blue: #167592;
  --eid-teal: #45c0b7;

  /* Surfaces and text */
  --eid-bg: #f4f6f9;
  --eid-surface: #ffffff;
  --eid-surface-2: #f8fafc;
  --eid-surface-sunken: #eef2f6;
  --eid-border: #dde3ea;
  --eid-border-strong: #c3ccd7;
  --eid-text: #10233d;
  --eid-text-muted: #55657a;
  --eid-text-subtle: #7b8898;

  /* Actions */
  --eid-primary: var(--eid-navy);
  --eid-primary-hover: var(--eid-navy-deep);
  --eid-on-primary: #ffffff;
  --eid-accent: var(--eid-teal);
  --eid-accent-soft: #e3f6f4;
  --eid-link: var(--eid-blue);
  --eid-focus: #45c0b7;

  /* Status: each has a strong colour for text/icons and a soft one for backgrounds */
  --eid-success: #17794a;
  --eid-success-soft: #e4f4ec;
  --eid-warning: #9a5b00;
  --eid-warning-soft: #fdf1dc;
  --eid-danger: #b42318;
  --eid-danger-soft: #fdecea;
  --eid-info: var(--eid-blue);
  --eid-info-soft: #e5f2f6;

  /* Type: system faces render fast, need no third-party font request, and suit an identity provider */
  --eid-font:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --eid-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --eid-text-xs: 12px;
  --eid-text-sm: 13px;
  --eid-text-md: 15px;
  --eid-text-lg: 17px;
  --eid-text-xl: 22px;
  --eid-text-2xl: 28px;

  /* Space (4px grid), radius, elevation */
  --eid-space-1: 4px;
  --eid-space-2: 8px;
  --eid-space-3: 12px;
  --eid-space-4: 16px;
  --eid-space-5: 24px;
  --eid-space-6: 32px;
  --eid-space-7: 48px;
  --eid-radius-sm: 6px;
  --eid-radius: 10px;
  --eid-radius-lg: 16px;
  --eid-shadow-sm: 0 1px 2px rgba(16, 35, 61, 0.06);
  --eid-shadow: 0 1px 3px rgba(16, 35, 61, 0.08), 0 8px 24px rgba(16, 35, 61, 0.06);
  --eid-shadow-lg: 0 12px 40px rgba(16, 35, 61, 0.16);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --eid-bg: #08131f;
  --eid-surface: #0f1d2d;
  --eid-surface-2: #132538;
  --eid-surface-sunken: #0b1826;
  --eid-border: #213650;
  --eid-border-strong: #2f4a68;
  --eid-text: #e8eef5;
  --eid-text-muted: #a3b2c4;
  --eid-text-subtle: #7d8ea3;
  --eid-primary: var(--eid-teal);
  --eid-primary-hover: #5fd0c8;
  --eid-on-primary: #072033;
  --eid-accent-soft: #123a3e;
  --eid-link: #6cc9de;
  --eid-success: #4cc38a;
  --eid-success-soft: #10301f;
  --eid-warning: #f0b252;
  --eid-warning-soft: #33250c;
  --eid-danger: #f47067;
  --eid-danger-soft: #3a1513;
  --eid-info: #6cc9de;
  --eid-info-soft: #0f2c38;
  --eid-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --eid-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  --eid-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* EventID components. Class names are prefixed `eid-` so the hosted login pages, the web app and
   sample relying parties can share one stylesheet without clashing with their own CSS. */

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

body {
  margin: 0;
  background: var(--eid-bg);
  color: var(--eid-text);
  font-family: var(--eid-font);
  font-size: var(--eid-text-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 {
  font-size: var(--eid-text-2xl);
  font-weight: 700;
}
h2 {
  font-size: var(--eid-text-lg);
  font-weight: 650;
}
h3 {
  font-size: var(--eid-text-md);
  font-weight: 600;
}
p {
  margin: 0;
}
a {
  color: var(--eid-link);
  text-underline-offset: 2px;
}
code,
.eid-mono {
  font-family: var(--eid-font-mono);
  font-size: 0.92em;
}
.eid-muted {
  color: var(--eid-text-muted);
}
.eid-subtle {
  color: var(--eid-text-subtle);
  font-size: var(--eid-text-sm);
}
.eid-stack {
  display: flex;
  flex-direction: column;
  gap: var(--eid-space-4);
}
.eid-stack-sm {
  display: flex;
  flex-direction: column;
  gap: var(--eid-space-2);
}
.eid-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--eid-space-2);
}
.eid-hidden,
[hidden] {
  display: none !important;
}
.eid-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* Buttons */
.eid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--eid-space-2);
  min-height: 40px;
  padding: 0 var(--eid-space-4);
  border: 1px solid transparent;
  border-radius: var(--eid-radius-sm);
  background: var(--eid-primary);
  color: var(--eid-on-primary);
  font: inherit;
  font-size: var(--eid-text-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.eid-btn:hover {
  background: var(--eid-primary-hover);
}
.eid-btn:disabled,
.eid-btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: default;
}
.eid-btn-block {
  width: 100%;
}
.eid-btn-secondary {
  background: var(--eid-surface);
  color: var(--eid-text);
  border-color: var(--eid-border-strong);
}
.eid-btn-secondary:hover {
  background: var(--eid-surface-2);
}
.eid-btn-ghost {
  background: transparent;
  color: var(--eid-link);
  padding: 0 var(--eid-space-2);
}
.eid-btn-ghost:hover {
  background: var(--eid-surface-sunken);
}
.eid-btn-danger {
  background: var(--eid-surface);
  color: var(--eid-danger);
  border-color: var(--eid-border-strong);
}
.eid-btn-danger:hover {
  background: var(--eid-danger-soft);
  border-color: var(--eid-danger);
}
.eid-btn-sm {
  min-height: 32px;
  padding: 0 var(--eid-space-3);
  font-size: var(--eid-text-sm);
}

/* Form fields */
.eid-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eid-label {
  font-size: var(--eid-text-sm);
  font-weight: 600;
}
.eid-hint {
  font-size: var(--eid-text-sm);
  color: var(--eid-text-muted);
}
.eid-input,
.eid-select {
  width: 100%;
  min-height: 42px;
  padding: 0 var(--eid-space-3);
  border: 1px solid var(--eid-border-strong);
  border-radius: var(--eid-radius-sm);
  background: var(--eid-surface);
  color: var(--eid-text);
  font: inherit;
}
.eid-input::placeholder {
  color: var(--eid-text-subtle);
}
.eid-input:focus,
.eid-select:focus {
  outline: none;
  border-color: var(--eid-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--eid-focus) 30%, transparent);
}
.eid-input[aria-invalid="true"] {
  border-color: var(--eid-danger);
}
.eid-input-code {
  font-family: var(--eid-font-mono);
  font-size: var(--eid-text-xl);
  letter-spacing: 0.4em;
  text-align: center;
}
.eid-error {
  color: var(--eid-danger);
  font-size: var(--eid-text-sm);
  min-height: 1.2em;
}
.eid-divider {
  display: flex;
  align-items: center;
  gap: var(--eid-space-3);
  color: var(--eid-text-subtle);
  font-size: var(--eid-text-sm);
}
.eid-divider::before,
.eid-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--eid-border);
}

/* Chips: the email being signed in, a person, a company */
.eid-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--eid-space-2);
  max-width: 100%;
  padding: 4px 6px 4px 4px;
  border: 1px solid var(--eid-border);
  border-radius: 999px;
  background: var(--eid-surface-2);
  font-size: var(--eid-text-sm);
}
.eid-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The account being signed in, with Change beside it on one line */
.eid-who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--eid-space-2);
}
.eid-who > .eid-chip {
  min-width: 0;
}
.eid-who > .eid-btn {
  flex-shrink: 0;
}

/* The signed-in account on "Choose an account": avatar, name and email */
.eid-account {
  display: flex;
  align-items: center;
  gap: var(--eid-space-3);
  padding: var(--eid-space-3);
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius-lg);
  background: var(--eid-surface-2);
}
.eid-account > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.eid-account > span:last-child > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Consent: the companies and events an app will see */
.eid-shared-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius-sm);
}
.eid-shared-list > li {
  padding: var(--eid-space-2) var(--eid-space-3);
  font-size: var(--eid-text-sm);
}
.eid-shared-list > li + li {
  border-top: 1px solid var(--eid-border);
}

/* Long-form text on hosted pages (the privacy notice) */
.eid-prose {
  font-size: var(--eid-text-sm);
  line-height: 1.6;
}
.eid-prose h2 {
  margin: var(--eid-space-4) 0 var(--eid-space-2);
  font-size: var(--eid-text-md);
}
.eid-prose p,
.eid-prose ul {
  margin: 0 0 var(--eid-space-2);
}
.eid-prose ul {
  padding-left: var(--eid-space-4);
}
.eid-prose li + li {
  margin-top: var(--eid-space-1);
}

/* Badges: status and role labels */
.eid-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--eid-surface-sunken);
  color: var(--eid-text-muted);
  font-size: var(--eid-text-xs);
  font-weight: 600;
  white-space: nowrap;
}
.eid-badge-success {
  background: var(--eid-success-soft);
  color: var(--eid-success);
}
.eid-badge-warning {
  background: var(--eid-warning-soft);
  color: var(--eid-warning);
}
.eid-badge-danger {
  background: var(--eid-danger-soft);
  color: var(--eid-danger);
}
.eid-badge-info {
  background: var(--eid-info-soft);
  color: var(--eid-info);
}
.eid-badge-accent {
  background: var(--eid-accent-soft);
  color: var(--eid-primary);
}

/* Avatars: initials on a colour derived from the brand palette */
.eid-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--eid-accent-soft);
  color: var(--eid-primary);
  font-size: var(--eid-text-xs);
  font-weight: 700;
  text-transform: uppercase;
}
.eid-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: var(--eid-text-lg);
}
.eid-avatar-square {
  border-radius: var(--eid-radius-sm);
}

/* Alerts */
.eid-alert {
  display: flex;
  gap: var(--eid-space-3);
  padding: var(--eid-space-3) var(--eid-space-4);
  border-radius: var(--eid-radius-sm);
  background: var(--eid-info-soft);
  color: var(--eid-text);
  font-size: var(--eid-text-sm);
}
.eid-alert > svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.eid-alert-warning {
  background: var(--eid-warning-soft);
}
.eid-alert-danger {
  background: var(--eid-danger-soft);
}
.eid-alert-success {
  background: var(--eid-success-soft);
}

/* Cards and settings sections (title + description, then a bordered list of rows) */
.eid-card {
  background: var(--eid-surface);
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius);
  box-shadow: var(--eid-shadow-sm);
}
.eid-card-pad {
  padding: var(--eid-space-5);
}
.eid-section {
  display: flex;
  flex-direction: column;
  gap: var(--eid-space-3);
}
.eid-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--eid-space-4);
}
.eid-section-head p {
  color: var(--eid-text-muted);
  font-size: var(--eid-text-sm);
  margin-top: 2px;
}
.eid-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--eid-surface);
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius);
}
.eid-row {
  display: flex;
  align-items: center;
  gap: var(--eid-space-3);
  min-height: 60px;
  padding: var(--eid-space-3) var(--eid-space-4);
}
.eid-row + .eid-row,
.eid-list > li + li {
  border-top: 1px solid var(--eid-border);
}
/* Someone else's words, such as a supplier's note. */
.eid-quote {
  margin: 0;
  padding: var(--eid-space-2) var(--eid-space-3);
  border-left: 3px solid var(--eid-border-strong);
  color: var(--eid-text-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* A searchable choice list (the supplier picker): radio rows in a scrolling box. */
.eid-picker {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius);
}
.eid-picker-row {
  display: flex;
  align-items: center;
  gap: var(--eid-space-3);
  padding: var(--eid-space-2) var(--eid-space-3);
  cursor: pointer;
}
.eid-picker-row + .eid-picker-row {
  border-top: 1px solid var(--eid-border);
}
.eid-picker-row:has(input:checked) {
  background: var(--eid-accent-soft);
}
.eid-row-main {
  flex: 1;
  min-width: 0;
}
.eid-row-title {
  display: flex;
  align-items: center;
  gap: var(--eid-space-2);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.eid-row-meta {
  color: var(--eid-text-muted);
  font-size: var(--eid-text-sm);
  overflow-wrap: anywhere;
}
.eid-row-actions {
  display: flex;
  flex: none;
  gap: var(--eid-space-2);
}
.eid-empty {
  padding: var(--eid-space-5) var(--eid-space-4);
  color: var(--eid-text-muted);
  font-size: var(--eid-text-sm);
  text-align: center;
}
details.eid-row-details > summary {
  list-style: none;
  cursor: pointer;
}
details.eid-row-details > summary::-webkit-details-marker {
  display: none;
}
.eid-row-body {
  padding: 0 var(--eid-space-4) var(--eid-space-4) 60px;
  color: var(--eid-text-muted);
  font-size: var(--eid-text-sm);
}

/* Data tables (organiser views) */
.eid-table-wrap {
  overflow-x: auto;
  background: var(--eid-surface);
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius);
}
.eid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--eid-text-sm);
}
.eid-table th {
  padding: var(--eid-space-2) var(--eid-space-4);
  background: var(--eid-surface-2);
  color: var(--eid-text-muted);
  font-size: var(--eid-text-xs);
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.eid-table td {
  padding: var(--eid-space-3) var(--eid-space-4);
  border-top: 1px solid var(--eid-border);
  vertical-align: middle;
}

/* Stats */
.eid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--eid-space-3);
}
.eid-stat {
  padding: var(--eid-space-4);
  background: var(--eid-surface);
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius);
}
.eid-stat-value {
  font-size: var(--eid-text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.eid-stat-label {
  color: var(--eid-text-muted);
  font-size: var(--eid-text-sm);
}

/* The EventID badge: the person's identity shown as an event lanyard badge */
.eid-idcard {
  position: relative;
  overflow: hidden;
  max-width: 420px;
  background: var(--eid-surface);
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius-lg);
  box-shadow: var(--eid-shadow);
}
.eid-idcard-band {
  position: relative;
  height: 72px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--eid-blue) 0%, transparent 55%),
    linear-gradient(135deg, var(--eid-navy) 0%, var(--eid-navy-deep) 100%);
}
.eid-idcard-band::before {
  /* the lanyard slot */
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 56px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--eid-bg);
}
.eid-idcard-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--eid-teal);
}
.eid-idcard-body {
  display: flex;
  flex-direction: column;
  gap: var(--eid-space-3);
  padding: var(--eid-space-5);
}
.eid-idcard-name {
  font-size: var(--eid-text-xl);
  font-weight: 700;
}
.eid-idcard-foot {
  display: flex;
  justify-content: space-between;
  gap: var(--eid-space-3);
  padding: var(--eid-space-3) var(--eid-space-5);
  border-top: 1px dashed var(--eid-border-strong);
  color: var(--eid-text-subtle);
  font-size: var(--eid-text-xs);
}

/* Hosted sign-in and consent: a single centred card */
.eid-auth {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--eid-space-5) var(--eid-space-4);
}
.eid-auth-card {
  display: flex;
  flex-direction: column;
  gap: var(--eid-space-4);
  width: 100%;
  padding: var(--eid-space-6);
  background: var(--eid-surface);
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius-lg);
  box-shadow: var(--eid-shadow);
}
.eid-auth-inner {
  width: min(400px, 100%);
}
.eid-auth-logo {
  height: 32px;
  align-self: flex-start;
}
.eid-auth-foot {
  margin-top: var(--eid-space-4);
  color: var(--eid-text-subtle);
  font-size: var(--eid-text-xs);
  text-align: center;
}
.eid-auth-foot a {
  color: inherit;
}
.eid-logo-dark {
  display: none;
}
:root[data-theme="dark"] .eid-logo-light {
  display: none;
}
:root[data-theme="dark"] .eid-logo-dark {
  display: block;
}
@media (max-width: 480px) {
  .eid-auth {
    place-items: start center;
    padding-top: var(--eid-space-6);
  }
  .eid-auth-card {
    padding: var(--eid-space-5);
  }
}

/* An organiser's or supplier's brand beside EventID's own (co-branding, ADR-0006): their logo
   on a white tile (so dark logos stay visible in dark mode), their name and company, and an
   accent line on the card. EventID's logo, buttons and wording are unchanged. */
.eid-auth-card[data-brand] {
  border-top: 4px solid var(--eid-brand, var(--eid-border));
}
.eid-app-brand {
  display: flex;
  align-items: center;
  gap: var(--eid-space-3);
  padding: var(--eid-space-3);
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius);
}
.eid-app-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius-sm);
}
.eid-app-logo img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}
.eid-app-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.eid-app-brand-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.eid-app-brand-company {
  color: var(--eid-text-subtle);
  font-size: var(--eid-text-sm);
}

/* "Continue with EventID": the button a portal or invitation shows, always with EventID's mark. */
.eid-btn-eventid {
  gap: var(--eid-space-2);
}
.eid-btn-eventid img {
  height: 18px;
  width: auto;
}

/* Consent: who is asking, for which account, and for what */
.eid-consent-apps {
  display: flex;
  align-items: center;
  gap: var(--eid-space-3);
}
.eid-consent-link {
  color: var(--eid-text-subtle);
}
.eid-scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius);
}
.eid-scope-list li {
  display: flex;
  gap: var(--eid-space-3);
  padding: var(--eid-space-3) var(--eid-space-4);
  font-size: var(--eid-text-sm);
}
.eid-scope-list li + li {
  border-top: 1px solid var(--eid-border);
}
.eid-scope-list svg {
  flex: none;
  color: var(--eid-accent);
  margin-top: 2px;
}
.eid-scope-list-no svg {
  color: var(--eid-text-muted);
}

/* App shell: sidebar navigation on desktop, top bar with scrolling tabs on mobile */
.eid-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.eid-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--eid-space-5);
  height: 100vh;
  padding: var(--eid-space-5) var(--eid-space-3);
  border-right: 1px solid var(--eid-border);
  background: var(--eid-surface);
  overflow-y: auto;
}
.eid-sidebar-logo {
  height: 28px;
  margin: 0 var(--eid-space-2);
}
.eid-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.eid-nav-label {
  padding: 0 var(--eid-space-3) var(--eid-space-1);
  color: var(--eid-text-subtle);
  font-size: var(--eid-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.eid-nav a {
  display: flex;
  align-items: center;
  gap: var(--eid-space-3);
  min-height: 36px;
  padding: 0 var(--eid-space-3);
  border-radius: var(--eid-radius-sm);
  color: var(--eid-text-muted);
  font-size: var(--eid-text-md);
  font-weight: 500;
  text-decoration: none;
}
.eid-nav a:hover {
  background: var(--eid-surface-sunken);
  color: var(--eid-text);
}
.eid-nav a[aria-current="page"] {
  background: var(--eid-accent-soft);
  color: var(--eid-primary);
  font-weight: 600;
}
.eid-nav a svg {
  flex: none;
  opacity: 0.85;
}
.eid-sidebar-foot {
  margin-top: auto;
}
.eid-content {
  min-width: 0;
  padding: var(--eid-space-6) var(--eid-space-6) var(--eid-space-7);
}
.eid-page {
  display: flex;
  flex-direction: column;
  gap: var(--eid-space-6);
  max-width: 880px;
}
.eid-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--eid-space-4);
}
.eid-page-head p {
  margin-top: var(--eid-space-1);
  color: var(--eid-text-muted);
}
.eid-breadcrumb {
  color: var(--eid-text-muted);
  font-size: var(--eid-text-sm);
  text-decoration: none;
}
.eid-tabs {
  display: flex;
  gap: var(--eid-space-1);
  border-bottom: 1px solid var(--eid-border);
  overflow-x: auto;
}
.eid-tabs a {
  padding: var(--eid-space-2) var(--eid-space-3);
  border-bottom: 2px solid transparent;
  color: var(--eid-text-muted);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.eid-tabs a[aria-current="page"] {
  border-color: var(--eid-accent);
  color: var(--eid-text);
}
@media (max-width: 860px) {
  .eid-shell {
    grid-template-columns: 1fr;
  }
  .eid-sidebar {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--eid-space-3);
    height: auto;
    padding: var(--eid-space-3) var(--eid-space-4);
    border-right: 0;
    border-bottom: 1px solid var(--eid-border);
    overflow-x: auto;
  }
  .eid-sidebar-logo {
    margin: 0;
  }
  .eid-nav {
    flex-direction: row;
  }
  .eid-nav-label,
  .eid-sidebar-foot {
    display: none;
  }
  .eid-nav a {
    white-space: nowrap;
  }
  .eid-content {
    padding: var(--eid-space-5) var(--eid-space-4) var(--eid-space-7);
  }
  .eid-row {
    flex-wrap: wrap;
  }
}

/* A value shown once (client or webhook secret, ADR-0006): selectable, never truncated. */
.eid-reveal {
  display: flex;
  flex-direction: column;
  gap: var(--eid-space-1);
}
.eid-reveal code {
  display: block;
  padding: var(--eid-space-2) var(--eid-space-3);
  border-radius: var(--eid-radius-sm);
  background: var(--eid-surface);
  border: 1px solid var(--eid-border);
  overflow-wrap: anywhere;
  user-select: all;
}

/* A block of code or a payload, scrolling sideways rather than widening the page. */
.eid-code-block {
  margin: 0;
  padding: var(--eid-space-3) var(--eid-space-4);
  background: var(--eid-surface-sunken);
  border: 1px solid var(--eid-border);
  border-radius: var(--eid-radius-sm);
  font-family: var(--eid-font-mono);
  font-size: var(--eid-text-sm);
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
}
