/* ================================================================
   eQuip Software Support Portal — Material Design 3 Inspired
   Theme: equip-portal | Scope: ISOLATED (body.equip-portal)
   Brand: Navy #201c51 · Teal #57bdbb
   Font: Roboto + Material Icons Round
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Primary (Navy) */
  --ep-primary:              #201c51;
  --ep-on-primary:           #ffffff;
  --ep-primary-container:    #dde1ff;
  --ep-on-primary-container: #00006e;
  --ep-primary-hover:        rgba(32,28,81,.08);

  /* Secondary (Teal) */
  --ep-secondary:              #3da8a6;
  --ep-on-secondary:           #ffffff;
  --ep-secondary-container:    #ccefed;
  --ep-on-secondary-container: #003736;

  /* Error */
  --ep-error: #ba1a1a;

  /* Surface scale */
  --ep-bg:                    #f0f0f5;
  --ep-surface:               #ffffff;
  --ep-surface-container-low: #f4f4f9;
  --ep-surface-container:     #eeeef3;
  --ep-surface-container-high:#e8e8ed;
  --ep-on-surface:            #1a1a27;
  --ep-on-surface-variant:    #46464f;

  /* Outline */
  --ep-outline:         #777680;
  --ep-outline-variant: #c6c5d0;

  /* Status chip tokens */
  --ep-chip-new-bg:       #e8f0fe; --ep-chip-new-fg:       #1565c0;
  --ep-chip-review-bg:    #fff3e0; --ep-chip-review-fg:    #bf360c;
  --ep-chip-progress-bg:  #ede7f6; --ep-chip-progress-fg:  #4527a0;
  --ep-chip-waiting-bg:   #fce4ec; --ep-chip-waiting-fg:   #b71c1c;
  --ep-chip-resolved-bg:  #e8f5e9; --ep-chip-resolved-fg:  #1b5e20;
  --ep-chip-closed-bg:    #f5f5f5; --ep-chip-closed-fg:    #757575;

  /* Priority */
  --ep-priority-high:   #c62828;
  --ep-priority-medium: #e65100;
  --ep-priority-low:    #388e3c;

  /* Layout */
  --ep-topbar-height: 64px;
  --ep-nav-width:     256px;

  /* Shape */
  --ep-shape-sm:   8px;
  --ep-shape-md:   12px;
  --ep-shape-full: 9999px;

  /* Elevation */
  --ep-elev-1: 0 1px 2px rgba(0,0,0,.18), 0 1px 3px 1px rgba(0,0,0,.10);
  --ep-elev-2: 0 1px 2px rgba(0,0,0,.18), 0 2px 6px 2px rgba(0,0,0,.12);
  --ep-elev-3: 0 4px 8px 3px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.18);

  --ep-font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.equip-portal {
  font-family: var(--ep-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ep-on-surface);
  background: var(--ep-bg);
  -webkit-font-smoothing: antialiased;
}

/* ── App Shell ─────────────────────────────────────────────────── */
.ep-shell {
  display: grid;
  grid-template-columns: var(--ep-nav-width) 1fr;
  grid-template-rows: var(--ep-topbar-height) 1fr;
  height: 100dvh;
  overflow: hidden;
}

/* ── Top App Bar ───────────────────────────────────────────────── */
.ep-topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  background: var(--ep-primary);
  color: var(--ep-on-primary);
  display: flex;
  align-items: center;
  padding: 0 20px 0 8px;
  gap: 8px;
  z-index: 100;
  box-shadow: var(--ep-elev-2);
}

.ep-topbar__menu-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: var(--ep-on-primary);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.ep-topbar__menu-btn:hover { background: rgba(255,255,255,.12); }

.ep-topbar__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.ep-topbar__logo { height: 30px; width: auto; filter: brightness(0) invert(1); }

.ep-topbar__spacer { flex: 1; }

.ep-topbar__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar + tooltip wrapper */
.ep-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  cursor: default;
  outline: none;
}

.ep-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ep-secondary-container);
  color: var(--ep-on-secondary-container);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: box-shadow .15s;
}

.ep-avatar-wrap:hover .ep-avatar,
.ep-avatar-wrap:focus .ep-avatar {
  box-shadow: 0 0 0 3px rgba(255,255,255,.3);
}

.ep-avatar-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #2d2d3f;
  color: #fff;
  border-radius: var(--ep-shape-sm);
  padding: 12px 16px;
  min-width: 200px;
  box-shadow: var(--ep-elev-3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
  z-index: 300;
  white-space: nowrap;
}

.ep-avatar-wrap:hover .ep-avatar-tooltip,
.ep-avatar-wrap:focus .ep-avatar-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Small caret */
.ep-avatar-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 10px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #2d2d3f;
}

.ep-avatar-tooltip__name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.ep-avatar-tooltip__email {
  font-size: 12px;
  color: rgba(255,255,255,.65);
}

/* ── Navigation Drawer ─────────────────────────────────────────── */
.ep-nav {
  grid-column: 1;
  grid-row: 2;
  background: var(--ep-surface-container-low);
  border-right: 1px solid var(--ep-outline-variant);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.ep-nav__section {
  padding: 8px 0;
  flex: 1;
}

.ep-nav__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px 0 16px;
  height: 56px;
  border-radius: 0 var(--ep-shape-full) var(--ep-shape-full) 0;
  margin-right: 12px;
  text-decoration: none;
  color: var(--ep-on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.ep-nav__item:hover {
  background: var(--ep-surface-container-high);
  color: var(--ep-on-surface);
}
.ep-nav__item--active {
  background: var(--ep-primary-container);
  color: var(--ep-on-primary-container);
}
.ep-nav__item--active .ep-nav__icon { color: var(--ep-primary); }

.ep-nav__icon {
  font-size: 22px !important;
  flex-shrink: 0;
}

.ep-nav__footer {
  border-top: 1px solid var(--ep-outline-variant);
  padding: 8px 0;
}
.ep-nav__footer .ep-nav__item { color: var(--ep-on-surface-variant); }

/* ── Scrim ─────────────────────────────────────────────────────── */
.ep-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.36);
  z-index: 195;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.ep-scrim--active { opacity: 1; pointer-events: auto; }

/* ── Main ──────────────────────────────────────────────────────── */
.ep-main {
  grid-column: 2;
  grid-row: 2;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--ep-bg);
  display: flex;
  flex-direction: column;
}

.ep-content {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 28px 48px;
}

/* ── Page Header ───────────────────────────────────────────────── */
.ep-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.ep-page-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--ep-on-surface);
  letter-spacing: -.01em;
}

/* ── Cards ─────────────────────────────────────────────────────── */
.ep-card {
  background: var(--ep-surface);
  border-radius: var(--ep-shape-md);
  box-shadow: var(--ep-elev-1);
}
.ep-card--outlined { box-shadow: none; border: 1px solid var(--ep-outline-variant); }

/* ── Stats Row ─────────────────────────────────────────────────── */
.ep-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.ep-stat {
  background: var(--ep-surface);
  border-radius: var(--ep-shape-md);
  padding: 18px 20px;
  box-shadow: var(--ep-elev-1);
  border-left: 4px solid var(--ep-outline-variant);
}
.ep-stat--primary { border-left-color: var(--ep-primary); }
.ep-stat--blue    { border-left-color: #1565c0; }
.ep-stat--purple  { border-left-color: #6a1b9a; }
.ep-stat--green   { border-left-color: #2e7d32; }

.ep-stat__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--ep-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.ep-stat--blue   .ep-stat__value { color: #1565c0; }
.ep-stat--purple .ep-stat__value { color: #6a1b9a; }
.ep-stat--green  .ep-stat__value { color: #2e7d32; }

.ep-stat__label {
  font-size: 11px;
  color: var(--ep-on-surface-variant);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Toolbar ───────────────────────────────────────────────────── */
.ep-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ep-search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 360px;
}
.ep-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ep-on-surface-variant);
  font-size: 20px !important;
  pointer-events: none;
}
.ep-search__input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 40px;
  border: 1px solid var(--ep-outline-variant);
  border-radius: var(--ep-shape-full);
  font-size: 14px;
  font-family: var(--ep-font);
  color: var(--ep-on-surface);
  background: var(--ep-surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ep-search__input::placeholder { color: var(--ep-outline); }
.ep-search__input:focus {
  border-color: var(--ep-primary);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(32,28,81,.10);
}

/* Filter chips */
.ep-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  flex-wrap: wrap;
}
.ep-filter-chips::-webkit-scrollbar { display: none; }

.ep-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 32px;
  border-radius: var(--ep-shape-full);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--ep-font);
  cursor: pointer;
  border: 1px solid var(--ep-outline-variant);
  background: var(--ep-surface);
  color: var(--ep-on-surface-variant);
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
}
.ep-filter-chip:hover { background: var(--ep-surface-container); }
.ep-filter-chip--active {
  background: var(--ep-primary-container);
  border-color: var(--ep-primary);
  color: var(--ep-on-primary-container);
}
.ep-filter-chip__count {
  background: var(--ep-surface-container-high);
  color: var(--ep-on-surface-variant);
  border-radius: var(--ep-shape-full);
  padding: 0 6px;
  font-size: 11px;
  min-width: 20px;
  text-align: center;
  line-height: 18px;
  height: 18px;
}
.ep-filter-chip--active .ep-filter-chip__count {
  background: var(--ep-primary);
  color: var(--ep-on-primary);
}

/* ── Ticket List ───────────────────────────────────────────────── */
.ep-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-ticket-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--ep-surface);
  border-radius: var(--ep-shape-md);
  border: 1px solid var(--ep-outline-variant);
  text-decoration: none;
  color: var(--ep-on-surface);
  transition: box-shadow .15s, border-color .15s;
  cursor: pointer;
}
.ep-ticket-card:hover {
  border-color: var(--ep-primary);
  box-shadow: var(--ep-elev-2);
}

.ep-ticket-card__priority-bar {
  width: 4px;
  height: 44px;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--ep-outline-variant);
}
.ep-ticket-card__priority-bar--HIGH   { background: var(--ep-priority-high); }
.ep-ticket-card__priority-bar--MEDIUM { background: var(--ep-priority-medium); }
.ep-ticket-card__priority-bar--LOW    { background: var(--ep-priority-low); }

.ep-ticket-card__body { flex: 1; min-width: 0; }

.ep-ticket-card__subject {
  font-size: 14px;
  font-weight: 500;
  color: var(--ep-on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.ep-ticket-card__meta {
  font-size: 12px;
  color: var(--ep-on-surface-variant);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ep-ticket-card__chevron {
  color: var(--ep-outline);
  font-size: 20px !important;
  flex-shrink: 0;
}

/* ── Status Chips ──────────────────────────────────────────────── */
.ep-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--ep-shape-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .02em;
}
.ep-chip--new         { background: var(--ep-chip-new-bg);       color: var(--ep-chip-new-fg); }
.ep-chip--in-review   { background: var(--ep-chip-review-bg);    color: var(--ep-chip-review-fg); }
.ep-chip--in-progress { background: var(--ep-chip-progress-bg);  color: var(--ep-chip-progress-fg); }
.ep-chip--waiting     { background: var(--ep-chip-waiting-bg);   color: var(--ep-chip-waiting-fg); }
.ep-chip--resolved    { background: var(--ep-chip-resolved-bg);  color: var(--ep-chip-resolved-fg); }
.ep-chip--closed      { background: var(--ep-chip-closed-bg);    color: var(--ep-chip-closed-fg); }

/* ── Buttons ───────────────────────────────────────────────────── */
.ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 40px;
  border-radius: var(--ep-shape-full);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--ep-font);
  letter-spacing: .025em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: box-shadow .15s, background .15s, opacity .15s;
  white-space: nowrap;
  line-height: 1;
}
.ep-btn .material-icons-round { font-size: 18px !important; }

.ep-btn--filled {
  background: var(--ep-primary);
  color: var(--ep-on-primary);
  box-shadow: var(--ep-elev-1);
}
.ep-btn--filled:hover { box-shadow: var(--ep-elev-2); background: #2d2869; }
.ep-btn--filled:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }

.ep-btn--tonal {
  background: var(--ep-primary-container);
  color: var(--ep-on-primary-container);
}
.ep-btn--tonal:hover { box-shadow: var(--ep-elev-1); }

.ep-btn--outlined {
  background: transparent;
  color: var(--ep-primary);
  border: 1px solid var(--ep-outline-variant);
}
.ep-btn--outlined:hover { background: var(--ep-primary-hover); }

.ep-btn--text {
  background: transparent;
  color: var(--ep-primary);
  padding: 0 12px;
  box-shadow: none;
}
.ep-btn--text:hover { background: var(--ep-primary-hover); }

.ep-btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }

/* ── Form / Text Fields ────────────────────────────────────────── */
.ep-form { display: flex; flex-direction: column; gap: 20px; }

.ep-field { position: relative; }

.ep-field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ep-on-surface-variant);
  margin-bottom: 6px;
}
.ep-field__label--req::after { content: ' *'; color: var(--ep-error); }

.ep-field__input,
.ep-field__textarea,
.ep-field__select {
  width: 100%;
  padding: 12px 16px;
  background: var(--ep-surface-container-low);
  border: 1px solid var(--ep-outline-variant);
  border-radius: var(--ep-shape-sm);
  font-size: 14px;
  font-family: var(--ep-font);
  color: var(--ep-on-surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  appearance: none;
  line-height: 1.5;
}
.ep-field__input:hover,
.ep-field__textarea:hover,
.ep-field__select:hover {
  border-color: var(--ep-outline);
  background: var(--ep-surface-container);
}
.ep-field__input:focus,
.ep-field__textarea:focus,
.ep-field__select:focus {
  border-color: var(--ep-primary);
  border-width: 2px;
  background: var(--ep-surface);
  box-shadow: 0 0 0 3px rgba(32,28,81,.10);
}
.ep-field__input::placeholder,
.ep-field__textarea::placeholder { color: var(--ep-outline); }
.ep-field__textarea { resize: vertical; min-height: 140px; }
.ep-field__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%2346464f'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: var(--ep-surface-container-low);
  padding-right: 40px;
  cursor: pointer;
}
.ep-field__helper { font-size: 12px; color: var(--ep-on-surface-variant); margin-top: 5px; }
.ep-field__char-count { font-size: 12px; color: var(--ep-on-surface-variant); text-align: right; margin-top: 4px; }

.ep-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Submit two-col layout */
.ep-submit-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* ── Alerts ────────────────────────────────────────────────────── */
.ep-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--ep-shape-sm);
  font-size: 14px;
  line-height: 1.5;
}
.ep-alert .material-icons-round { font-size: 20px !important; flex-shrink: 0; margin-top: 1px; }

.ep-alert--info    { background: #e8f0fe; color: #1a4a8c; }
.ep-alert--info    .material-icons-round { color: #1565c0; }
.ep-alert--success { background: #e8f5e9; color: #1b5e20; }
.ep-alert--success .material-icons-round { color: #2e7d32; }
.ep-alert--error   { background: #fde8e8; color: #7f0000; }
.ep-alert--error   .material-icons-round { color: #c62828; }
.ep-alert--warning { background: #fff3e0; color: #4e2700; }
.ep-alert--warning .material-icons-round { color: #e65100; }

/* ── Empty State ───────────────────────────────────────────────── */
.ep-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 24px 48px;
  text-align: center;
  background: var(--ep-surface);
  border-radius: var(--ep-shape-md);
  border: 1px dashed var(--ep-outline-variant);
}
.ep-empty__icon {
  width: 80px;
  height: 80px;
  background: var(--ep-surface-container);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ep-empty__icon .material-icons-round { font-size: 40px !important; color: var(--ep-outline); }
.ep-empty__title { font-size: 18px; font-weight: 500; color: var(--ep-on-surface); margin-bottom: 8px; }
.ep-empty__body  { font-size: 14px; color: var(--ep-on-surface-variant); margin-bottom: 24px; max-width: 340px; }

/* ── Progress Stepper ──────────────────────────────────────────── */
.ep-stepper {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding: 20px 4px 8px;
  scrollbar-width: none;
}
.ep-stepper::-webkit-scrollbar { display: none; }

.ep-step {
  flex: 1;
  min-width: 56px;
  text-align: center;
  position: relative;
}
.ep-step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: var(--ep-outline-variant);
  z-index: 0;
}
.ep-step:last-child::after { display: none; }
.ep-step--done::after { background: var(--ep-secondary); }

.ep-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ep-outline-variant);
  background: var(--ep-surface);
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ep-on-surface-variant);
  transition: all .2s;
}
.ep-step--done .ep-step__dot {
  background: var(--ep-secondary);
  border-color: var(--ep-secondary);
  color: var(--ep-on-secondary);
}
.ep-step--active .ep-step__dot {
  background: var(--ep-primary);
  border-color: var(--ep-primary);
  color: var(--ep-on-primary);
  box-shadow: 0 0 0 4px var(--ep-primary-container);
}
.ep-step__dot .material-icons-round { font-size: 14px !important; }

.ep-step__label { font-size: 11px; color: var(--ep-on-surface-variant); line-height: 1.3; }
.ep-step--active .ep-step__label { color: var(--ep-primary); font-weight: 600; }
.ep-step--done   .ep-step__label { color: var(--ep-secondary); }

/* ── Ticket Detail ─────────────────────────────────────────────── */
.ep-detail-header {
  padding: 24px 28px;
  background: var(--ep-surface);
  border-radius: var(--ep-shape-md);
  box-shadow: var(--ep-elev-1);
  margin-bottom: 16px;
}
.ep-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ep-detail-title { font-size: 20px; font-weight: 500; color: var(--ep-on-surface); line-height: 1.3; }
.ep-detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ep-on-surface-variant);
  align-items: center;
}
.ep-detail-meta__item { display: flex; align-items: center; gap: 5px; }
.ep-detail-meta__item .material-icons-round { font-size: 16px !important; color: var(--ep-outline); }

.ep-detail-body {
  background: var(--ep-surface);
  border-radius: var(--ep-shape-md);
  box-shadow: var(--ep-elev-1);
  padding: 24px 28px;
}
.ep-detail-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ep-on-surface-variant);
  margin-bottom: 12px;
}
.ep-detail-body__content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ep-on-surface);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Divider ───────────────────────────────────────────────────── */
.ep-divider { border: none; border-top: 1px solid var(--ep-outline-variant); }

/* ── Footer ────────────────────────────────────────────────────── */
.ep-footer {
  text-align: center;
  padding: 20px 28px;
  font-size: 12px;
  color: var(--ep-on-surface-variant);
  border-top: 1px solid var(--ep-outline-variant);
  margin-top: 48px;
}
.ep-footer a { color: var(--ep-primary); text-decoration: none; }
.ep-footer a:hover { text-decoration: underline; }

/* ── Signed-out: no nav, full-width ─────────────────────────────── */
.ep-shell--signed-out {
  grid-template-columns: 1fr;
}
.ep-shell--signed-out .ep-nav,
.ep-shell--signed-out .ep-avatar-wrap {
  display: none !important;
}
.ep-shell--signed-out .ep-main {
  grid-column: 1;
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes ep-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ep-spin { animation: ep-spin .9s linear infinite; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ep-shell { grid-template-columns: 1fr; }

  .ep-nav {
    position: fixed;
    top: var(--ep-topbar-height);
    left: 0;
    bottom: 0;
    width: var(--ep-nav-width);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--ep-elev-3);
  }
  .ep-nav--open { transform: translateX(0); }

  .ep-main { grid-column: 1; }
  .ep-content { padding: 20px 16px 48px; }
  .ep-stats { grid-template-columns: repeat(2, 1fr); }
  .ep-submit-grid { grid-template-columns: 1fr; }
  .ep-form-row { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .ep-topbar__menu-btn { display: none; }
  .ep-scrim { display: none !important; }
}
