/* ---------------------------------------------
   eCOA for sites — interactive demo (portfolio recreation)
   Inside the frame: layout and labels from the public eCOA site help guide
   (26R2/26R3 screenshots). Laid out at 1280 × 800 and scaled as one piece.
--------------------------------------------- */
.ec {
  --s: 0.8;
  --ec-navy: #0c1b3d;
  --ec-bg: #e9eef6;
  --ec-ink: #1f2430;
  --ec-muted: #5f6672;
  --ec-line: #dfe3ea;
  --ec-blue: #2457a8;
  --ec-link: #1d5bbf;
  --ec-orange: #f7981d;
  --ec-orange-soft: #fde6c8;
  --ec-green: #2e8b57;
  --ec-red: #c8372d;
  --ec-amber: #e0a21b;
}

/* ---------- Guide (portfolio side) ---------- */
.ec-guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; margin-bottom: 2rem; }
.ec-guide h2 { margin-bottom: 0.4em; }
.ec-guide__intro { color: var(--color-text-muted); max-width: 60ch; margin: 0; }
/* steps run as one progress track; the active step's description sits under the whole track */
.ec-steps { list-style: none; margin: 0; padding: 0 0 3.6rem; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; }
.ec-step button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 0.65rem; padding: 0.85rem 0 0; border-top: 2px solid var(--color-border); width: 100%; transition: border-color 0.2s ease; }
.ec-step button:hover .ec-step__title { color: var(--color-text); }
.ec-step button:focus-visible { outline: 2px solid var(--color-text); outline-offset: 4px; }
.ec-step__mark { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid var(--color-border); display: grid; place-items: center; font-size: 0.8rem; color: var(--color-text-muted); }
.ec-step__title { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; color: var(--color-text-muted); transition: color 0.2s ease; }
.ec-step.is-active button, .ec-step.is-done button { border-top-color: var(--color-text); }
.ec-step.is-active .ec-step__title { color: var(--color-text); }
.ec-step.is-active .ec-step__mark { border-color: var(--color-text); color: var(--color-text); }
.ec-step.is-done .ec-step__mark { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.ec-step__body { position: absolute; left: 0; bottom: 0; max-width: 70ch; color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.5; display: none; }
.ec-step.is-active .ec-step__body { display: block; animation: ec-step-in 0.25s ease; }
@keyframes ec-step-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Browser frame ---------- */
.ec-frame { position: relative; width: calc(1280px * var(--s) + 2px); margin: 0 auto; border-radius: 12px; background: #fff; border: 1px solid #d6d0c4; box-shadow: 0 30px 60px -28px rgba(43, 39, 36, 0.4); }
.ec-frame__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid #e6e1d6; background: #f4f1ea; border-radius: 12px 12px 0 0; }
.ec-frame__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9d3c7; }
.ec-frame__url { margin-left: 14px; flex: 1; max-width: 360px; height: 20px; border-radius: 6px; background: #fff; border: 1px solid #e6e1d6; font: 500 11px/18px var(--font-body); color: #8a8378; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.ec-viewport { position: relative; width: calc(1280px * var(--s)); height: calc(800px * var(--s)); overflow: hidden; border-radius: 0 0 12px 12px; }
.ec-app {
  position: absolute; top: 0; left: 0; width: 1280px; height: 800px;
  transform: scale(var(--s)); transform-origin: 0 0;
  background: var(--ec-bg); color: var(--ec-ink);
  font: 400 15px/1.4 "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased; display: flex; flex-direction: column;
}
.ec-app * { box-sizing: border-box; }
.ec [hidden] { display: none !important; }
.ec-app h1, .ec-app h2, .ec-app h3, .ec-app h4 { font-family: inherit; line-height: 1.25; }
.ec-app .ec-link { color: var(--ec-link); }
.ec-app :focus-visible { outline: 2px solid var(--ec-link); outline-offset: 2px; }

/* Global header + tabs */
.ec-header { flex: none; height: 64px; background: var(--ec-navy); color: #fff; display: flex; align-items: center; padding: 0 28px; gap: 20px; }
.ec-logo { font-weight: 700; font-size: 22px; letter-spacing: -0.3px; color: #fff; }
.ec-logo b { color: var(--ec-orange); font-weight: 700; }
.ec-study { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.35); font-weight: 600; font-size: 18px; }
.ec-header__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.ec-hbtn { all: unset; cursor: pointer; position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.ec-hbtn__dot { position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--ec-orange); }
.ec-avatar { width: 32px; height: 32px; border-radius: 50%; background: #e5e7eb; display: grid; place-items: center; color: #9aa1ab; }
.ec-tabs { flex: none; height: 56px; background: #fff; display: flex; align-items: stretch; padding: 0 28px; gap: 8px; border-bottom: 1px solid var(--ec-line); }
.ec-tab { all: unset; cursor: pointer; padding: 0 16px; display: flex; align-items: center; font-size: 16px; color: #3a404c; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ec-tab[aria-selected="true"] { color: var(--ec-ink); border-color: var(--ec-orange); }

.ec-views { position: relative; flex: 1; min-height: 0; }
.ec-view { position: absolute; inset: 0; overflow-y: auto; padding: 26px 28px 40px; display: none; scrollbar-width: thin; }
.ec-view.is-current { display: block; }
.ec-h1 { font-size: 30px; font-weight: 600; margin: 0 0 20px; letter-spacing: -0.3px; }
.ec-card { background: #fff; border: 1px solid var(--ec-line); border-radius: 6px; }
.ec-link { all: unset; cursor: pointer; color: var(--ec-link); }
.ec-link:hover { text-decoration: underline; }
.ec-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 4px; font-weight: 600; font-size: 15px; }
.ec-btn--primary { background: var(--ec-blue); color: #fff; }
.ec-btn--secondary { background: #fff; border: 1px solid #cfd5df; color: var(--ec-ink); }
.ec-btn--orange { background: var(--ec-orange); color: #fff; }
.ec-btn[aria-disabled="true"] { background: #b9c6dc; cursor: not-allowed; }

/* Home */
.ec-home-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 18px; margin-bottom: 26px; }
.ec-jump { background: #eef2f9; border-radius: 6px; padding: 18px 22px; }
.ec-jump h3, .ec-quick h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.ec-jump p { margin: 0 0 14px; font-size: 14px; color: var(--ec-muted); }
.ec-input { width: 100%; height: 42px; border: 1px solid #cfd5df; border-radius: 4px; padding: 0 12px; font: inherit; background: #fff; color: var(--ec-ink); }
.ec-jump__results { margin-top: 6px; }
.ec-jump__results button { all: unset; cursor: pointer; display: block; padding: 6px 4px; color: var(--ec-link); }
.ec-quick { padding: 6px 4px; }
.ec-chips { display: flex; gap: 8px; margin: 8px 0 30px; }
.ec-chip { all: unset; cursor: pointer; padding: 3px 12px; border-radius: 14px; border: 1.5px solid #8fb1e6; background: #e6efff; color: var(--ec-link); font-size: 13px; font-weight: 600; }
.ec-quick p { font-size: 14px; margin: 0; }
.ec-h2 { font-size: 22px; font-weight: 600; margin: 0 0 14px; }
.ec-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.ec-action { padding: 18px 20px; }
.ec-action__kicker { font-size: 13px; color: var(--ec-muted); display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.ec-action__big { font-size: 18px; font-weight: 600; margin-bottom: 22px; }
.ec-action .ec-link { font-weight: 600; font-size: 14px; }
.ec-segtabs { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ec-segtabs__tabs { display: flex; gap: 22px; }
.ec-segtabs__tabs span { padding: 6px 4px 8px; font-size: 14px; color: var(--ec-muted); border-bottom: 3px solid transparent; }
.ec-segtabs__tabs span.is-on { color: var(--ec-ink); border-color: var(--ec-orange); }
.ec-toggle2 { display: flex; border-radius: 20px; background: #fff; border: 1px solid var(--ec-line); overflow: hidden; }
.ec-toggle2 button { all: unset; cursor: pointer; padding: 7px 18px; font-size: 13px; font-weight: 600; color: #3a404c; }
.ec-toggle2 button[aria-pressed="true"] { background: var(--ec-blue); color: #fff; border-radius: 20px; }

/* Tables */
.ec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ec-table th { text-align: left; font-weight: 600; font-size: 14px; padding: 16px 20px; border-bottom: 1px solid var(--ec-line); vertical-align: middle; }
.ec-table td { padding: 18px 20px; border-bottom: 1px solid var(--ec-line); vertical-align: middle; }
.ec-table tr:last-child td { border-bottom: 0; }
.ec-table td + td, .ec-table th + th { border-left: 1px solid var(--ec-line); }
.ec-th-sub { display: block; font-weight: 400; font-size: 12px; color: var(--ec-muted); }
.ec-dash { color: #8a909b; }
.ec-ring { display: inline-flex; align-items: center; gap: 10px; }
.ec-ring svg { flex: none; }
.ec-endchip { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 4px; background: #eef1f5; font-size: 14px; }
.ec-squares { display: flex; gap: 3px; }
.ec-squares i { width: 15px; height: 15px; border-radius: 2px; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 10px; font-weight: 700; }
.ec-squares i.ok { background: var(--ec-green); }
.ec-squares i.miss { background: var(--ec-red); }
.ec-trend-down { color: var(--ec-red); }

/* Participants */
.ec-plist-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.ec-plist-head .ec-h1 { margin: 0; }
.ec-plist-tools { display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--ec-line); }
.ec-search { position: relative; width: 380px; }
.ec-search svg { position: absolute; left: 12px; top: 12px; color: #6b7280; }
.ec-search .ec-input { padding-left: 40px; }
.ec-iconbox { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 40px; height: 40px; border: 1px solid #cfd5df; border-radius: 4px; display: grid; place-items: center; color: #3a404c; }
.ec-iconbox:hover { background: #f3f5f9; }
.ec-plist-tools .ec-input { height: 40px; }
.ec-plist-tools .ec-search svg { top: 11px; }
.ec-table .ec-iconbox { width: 32px; height: 32px; }
.ec-row-new td { animation: ec-flash 1.6s ease; }
@keyframes ec-flash { 0%, 40% { background: #fff4e5; } 100% { background: transparent; } }

/* Participant page */
.ec-phead { display: flex; align-items: center; gap: 28px; padding: 16px 22px; margin-bottom: 14px; position: relative; }
.ec-phead__id small { display: block; font-size: 12px; color: var(--ec-muted); }
.ec-phead__id strong { font-size: 26px; font-weight: 600; }
.ec-phead__comp { margin-left: auto; text-align: left; }
.ec-phead__comp small { display: block; font-size: 12px; color: var(--ec-muted); }
.ec-phead__comp strong { font-size: 24px; color: var(--ec-green); font-weight: 700; }
.ec-badge-up { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 3px; background: #dcf2e3; color: #1f6b3e; font-size: 13px; font-weight: 600; vertical-align: 3px; }
.ec-ptabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--ec-line); border-bottom: 0; border-radius: 6px 6px 0 0; padding: 0 12px; }
.ec-ptab { all: unset; cursor: pointer; padding: 14px 16px 12px; font-size: 15px; color: #3a404c; border-bottom: 3px solid transparent; display: flex; gap: 8px; align-items: center; }
.ec-ptab[aria-selected="true"] { color: var(--ec-ink); border-color: var(--ec-orange); }
.ec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ec-orange); }
.ec-pbody { background: #fff; border: 1px solid var(--ec-line); border-radius: 0 0 6px 6px; min-height: 520px; }
.ec-events { display: grid; grid-template-columns: 300px 1fr; }
.ec-evlist { padding: 18px; border-right: 1px solid var(--ec-line); }
.ec-evlist h3 { font-size: 20px; font-weight: 600; margin: 4px 0 16px; }
.ec-ev { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--ec-line); border-radius: 6px; position: relative; }
.ec-ev strong { display: block; font-size: 14px; font-weight: 600; }
.ec-ev span { font-size: 12px; color: var(--ec-muted); }
.ec-ev[aria-current="true"] { background: var(--ec-orange-soft); border-color: #f2b56b; }
.ec-ev__count { position: absolute; right: 12px; top: 50%; margin-top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--ec-orange); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ec-ev__check { color: var(--ec-link); font-size: 12px; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.ec-evdetail { padding: 20px 24px; }
.ec-evdetail__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.ec-evdetail__head h3 { font-size: 22px; font-weight: 600; margin: 0 0 2px; }
.ec-evdetail__head p { margin: 0; color: #3a404c; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.ec-display { display: flex; gap: 10px; align-items: flex-end; }
.ec-display label { font-size: 12px; display: block; margin-bottom: 4px; }
.ec-select { height: 38px; min-width: 170px; border: 1px solid #cfd5df; border-radius: 4px; padding: 0 10px; font: inherit; background: #fff; }
.ec-group { border: 1px solid var(--ec-line); border-radius: 6px; margin-bottom: 16px; }
.ec-group__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 6px; }
.ec-group__head h4 { font-size: 18px; font-weight: 500; margin: 0; }
.ec-group__sub { padding: 6px 18px; font-size: 14px; font-weight: 600; }
.ec-srow { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 22px 1fr 16px; gap: 12px; align-items: center; width: 100%; padding: 12px 18px; border-top: 1px solid var(--ec-line); }
.ec-srow strong { display: block; font-weight: 500; font-size: 15px; }
.ec-srow span { font-size: 13px; color: var(--ec-muted); }
.ec-srow.is-done { cursor: default; }
.ec-pill { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; background: #eef1f5; color: #3a404c; }
.ec-pill--done { background: #dcf2e3; color: #1f6b3e; }

/* Custom dropdown (native <select> renders badly inside the scaled frame) */
.ec-dd { position: relative; min-width: 190px; }
.ec-dd__btn { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px 0 12px; border: 1px solid #cfd5df; border-radius: 4px; background: #fff; font-size: 15px; color: var(--ec-ink); }
.ec-dd__btn[aria-expanded="true"] { border-color: var(--ec-blue); }
.ec-dd__btn:focus-visible { outline: 2px solid var(--ec-link); outline-offset: 2px; }
.ec-dd__list { position: absolute; z-index: 4; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #cfd5df; border-radius: 4px; box-shadow: 0 8px 20px rgba(12,27,61,.14); }
.ec-dd__list li { padding: 9px 12px; font-size: 15px; cursor: pointer; }
.ec-dd__list li:hover, .ec-dd__list li:focus { background: #eef2f9; outline: none; }
.ec-dd__list li[aria-selected="true"] { font-weight: 600; color: var(--ec-blue); }
.ec-field .ec-dd { min-width: 0; }
.ec-field .ec-dd__btn { height: 42px; }
.ec-empty-row { padding: 14px 18px; border-top: 1px solid var(--ec-line); font-size: 14px; color: var(--ec-muted); }

/* Survey (site staff) */
.ec-survey { max-width: 760px; margin: 0 auto; }
.ec-survey__top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ec-survey__top h2 { font-size: 22px; font-weight: 600; margin: 0; }
.ec-q { padding: 20px 22px; margin-bottom: 14px; }
.ec-q legend { font-size: 16px; font-weight: 500; margin-bottom: 12px; padding: 0; }
.ec-q fieldset { border: 0; margin: 0; padding: 0; }
.ec-scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ec-scale label { cursor: pointer; text-align: center; padding: 10px 4px; border: 1px solid #cfd5df; border-radius: 4px; font-size: 14px; }
.ec-scale small { display: block; font-size: 11px; color: var(--ec-muted); margin-top: 2px; }
.ec-scale input, .ec-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ec-scale label:has(input:checked) { background: var(--ec-orange-soft); border-color: var(--ec-orange); }
.ec-scale label:has(input:focus-visible), .ec-choice label:has(input:focus-visible) { outline: 2px solid var(--ec-link); }
.ec-choice label { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #cfd5df; border-radius: 4px; margin-bottom: 8px; cursor: pointer; }
.ec-choice label:has(input:checked) { background: var(--ec-orange-soft); border-color: var(--ec-orange); }
.ec-survey__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.ec-autosave { font-size: 13px; color: var(--ec-muted); }

/* Past surveys + compliance */
.ec-past { padding: 20px 22px; }
.ec-past__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ec-past__head h3 { font-size: 20px; font-weight: 600; margin: 0; }
.ec-status { display: inline-flex; align-items: center; gap: 6px; }
.ec-status i { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 9px; font-weight: 700; }
.ec-compl { padding: 22px; }
.ec-compl h3 { font-size: 20px; font-weight: 600; margin: 0 0 14px; }
.ec-compl__row { display: grid; grid-template-columns: 120px repeat(3, 1fr); gap: 14px; align-items: stretch; margin-bottom: 14px; }
.ec-compl__who { font-weight: 600; padding-top: 14px; }
.ec-compl__card { border: 1px solid var(--ec-line); border-radius: 6px; padding: 12px 14px; }
.ec-compl__card small { display: block; font-size: 12px; color: var(--ec-muted); margin-bottom: 6px; }
.ec-compl__card strong { font-size: 22px; }

/* Side panel (participant details) */
.ec-scrim { position: absolute; inset: 0; background: rgba(12, 27, 61, 0.35); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; z-index: 5; }
.ec-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .2s; }
.ec-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 440px; background: #fff; z-index: 6; transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.12); }
.ec-panel.is-open { transform: none; }
.ec-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--ec-line); }
.ec-panel__head h3 { font-size: 22px; font-weight: 600; margin: 0; }
.ec-panel__body { padding: 18px 22px; overflow-y: auto; }
.ec-panel__sec { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 12px; }
.ec-panel__sec h4 { font-size: 16px; font-weight: 600; margin: 0; }
.ec-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0 0 22px; }
.ec-dl dt { font-size: 12px; color: var(--ec-muted); }
.ec-dl dd { margin: 2px 0 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }

/* Modals */
.ec-modal { position: absolute; left: 50%; top: 50%; width: 760px; max-height: 700px; transform: translate(-50%, -48%) scale(.98); background: #fff; border-radius: 8px; z-index: 6; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.ec-modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity .2s, transform .2s; }
.ec-modal__head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 26px 16px; border-bottom: 1px solid var(--ec-line); }
.ec-modal__head h3 { font-size: 24px; font-weight: 500; margin: 0; }
.ec-modal__head small { display: block; font-size: 16px; color: var(--ec-muted); margin-top: 2px; }
.ec-modal__body { padding: 22px 26px; overflow-y: auto; }
.ec-modal__foot { display: flex; justify-content: flex-end; gap: 12px; padding: 14px 26px; border-top: 1px solid var(--ec-line); }
.ec-field { margin-bottom: 18px; }
.ec-field label { display: block; font-size: 15px; margin-bottom: 6px; }
.ec-field label b { color: var(--ec-red); font-weight: 400; }
.ec-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.ec-idsplit { display: flex; align-items: center; gap: 10px; }
.ec-idsplit .ec-input { width: 84px; }
.ec-idsplit .ec-input + span + .ec-input { width: 100px; }
.ec-help { font-size: 14px; color: var(--ec-muted); margin: 8px 0 0; line-height: 1.5; }
.ec-error { color: var(--ec-red); font-size: 13px; margin-top: 6px; }
.ec-review { display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; margin: 0; }
.ec-review dt { color: var(--ec-muted); }
.ec-review dd { margin: 0; }
.ec-modal--handoff { width: 820px; }
.ec-handoff { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ec-handoff__opt { background: #f5f7fb; border-radius: 6px; padding: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ec-handoff__opt h4 { font-size: 20px; font-weight: 500; margin: 0 0 12px; }
.ec-handoff__opt p { font-size: 14px; color: var(--ec-muted); margin: 0 0 16px; text-align: left; }
.ec-handoff__opt .ec-btn { width: 100%; margin-top: auto; }

/* Participant handoff (full-screen, staff logged out) */
.ec-kiosk { position: absolute; inset: 0; z-index: 8; background: #f5f7fb; display: none; align-items: center; justify-content: center; }
.ec-kiosk.is-on { display: flex; }
.ec-kiosk__card { width: 520px; background: #fff; border-radius: 10px; padding: 34px 38px; box-shadow: 0 10px 30px rgba(12,27,61,.12); }
.ec-kiosk__card h3 { font-size: 24px; font-weight: 600; margin: 0 0 6px; }
.ec-kiosk__card p { color: var(--ec-muted); margin: 0 0 20px; }
.ec-kiosk__card .ec-btn { width: 100%; margin-top: 16px; }
.ec-kiosk__brand { position: absolute; top: 22px; left: 28px; font-weight: 700; font-size: 20px; color: var(--ec-navy); }
.ec-kiosk__brand b { color: var(--ec-orange); }

/* Toast */
.ec-toast { position: absolute; left: 50%; bottom: 28px; transform: translate(-50%, 10px); background: #1f2430; color: #fff; padding: 12px 20px; border-radius: 6px; font-size: 15px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 9; }
.ec-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Design-note pins on the frame edge + caption */
.ec-pins { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ec-pin { all: unset; box-sizing: border-box; pointer-events: auto; cursor: pointer; position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; display: grid; place-items: center; background: #2b2724; color: #faf7f2; font: 600 12px/1 "Inter", sans-serif; box-shadow: 0 0 0 2px #faf7f2; transition: transform .15s, background .15s; }
.ec-pin:hover, .ec-pin.is-active { transform: scale(1.15); background: var(--ec-orange); color: #2b2724; }
.ec-pin:focus-visible { outline: 2px solid var(--ec-link); outline-offset: 3px; }
.ec-pins.is-off { display: none; }
.ec-notes { width: calc(1280px * var(--s) + 2px); margin: 1.25rem auto 0; display: grid; grid-template-columns: 1fr; gap: 0.9rem; align-items: start; }
.ec-notes__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: var(--color-text-muted); padding-top: 0.15rem; }
.ec-notes__toggle { all: unset; cursor: pointer; position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--color-border); }
.ec-notes__toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ec-notes__toggle[aria-checked="true"] { background: var(--color-text); }
.ec-notes__toggle[aria-checked="true"]::after { transform: translateX(14px); }
.ec-notes__toggle:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; }
.ec-notes__text { display: flex; gap: 0.6rem; margin: 0; min-height: 2.9em; font-size: 0.9rem; line-height: 1.45; }
.ec-notes__num { flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--color-text); color: var(--color-bg); font-size: 0.72rem; font-weight: 600; display: grid; place-items: center; }
.ec-notes.is-off .ec-notes__text { visibility: hidden; }
.ec-note-small { display: none; font-size: 0.85rem; color: var(--color-text-muted); margin: 0.75rem 0 0; }

@media (max-width: 860px) {
  .ec-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; padding-bottom: 4.6rem; }
  .ec-notes { grid-template-columns: 1fr; }
  .ec-note-small { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .ec *, .ec *::before, .ec *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.ec-foot { margin: 1rem auto 0; width: calc(1280px * var(--s) + 2px); max-width: 100%; font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- 26R1/26R2 participant page ---------- */
.ec-view[data-view="participant"] { padding: 0 0 40px; }
.ec-pbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 48px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--ec-line); }
.ec-back { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ec-pbar__mid { font-size: 14px; color: #3a404c; }
.ec-pbar__mid strong { font-weight: 500; color: var(--ec-ink); margin-right: 8px; }
.ec-pinner { padding: 22px 28px 0; }
.ec-phead2 { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid #d3dae6; }
.ec-phead2 h1 { font-size: 28px; font-weight: 600; margin: 0; }
.ec-phead2 p { margin: 2px 0 0; color: #3a404c; }
.ec-sumcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.ec-sum { padding: 14px 16px; }
.ec-sum__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--ec-line); }
.ec-sum__head h3 { font-size: 18px; font-weight: 500; margin: 0; }
.ec-sum__head small { font-size: 11px; color: var(--ec-muted); font-weight: 400; margin-left: 4px; }
.ec-ext { all: unset; cursor: pointer; color: var(--ec-link); display: grid; place-items: center; }
.ec-bar { display: grid; grid-template-columns: 82px 1fr 40px; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; }
.ec-bar__track { height: 7px; border-radius: 4px; background: #eef1f5; overflow: hidden; }
.ec-bar__track i { display: block; height: 100%; border-radius: 4px; }
.ec-bar b { font-weight: 500; text-align: right; }
.ec-sum__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 5px 0; }
.ec-sum__row span { display: flex; align-items: center; gap: 8px; }
.ec-sum__row b { font-weight: 500; }
.ec-warn { width: 18px; height: 18px; border-radius: 50%; background: #fdf0c4; color: #8a6400; font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ec-warn--x { background: #fbe0de; color: var(--ec-red); }
.ec-sum__topic { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.ec-sum__meta { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ec-muted); }
.ec-es { overflow: visible; }
.ec-es__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--ec-line); }
.ec-es__head h2 { font-size: 20px; font-weight: 600; margin: 0; }
.ec-es__head .ec-link { font-size: 14px; }
.ec-evlist__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ec-evlist__head h3 { margin: 0; }
.ec-today { position: relative; text-align: center; margin: 4px 0 14px; }
.ec-today::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--ec-orange); }
.ec-today span { position: relative; padding: 2px 10px; border: 1px solid #f2b56b; border-radius: 12px; background: #fff; font-size: 11px; letter-spacing: 1px; color: #3a404c; }
.ec-evdetail__head { padding-bottom: 14px; border-bottom: 1px solid var(--ec-line); }
.ec-display2 { margin-bottom: 16px; width: 200px; }
.ec-display2 label { display: block; font-size: 13px; margin-bottom: 4px; }
.ec-srow strong .ec-pill { margin-left: 6px; vertical-align: 1px; }
.ec-grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.ec-grid th, .ec-grid td { border: 1px solid var(--ec-line); padding: 10px 12px; text-align: center; }
.ec-grid th:first-child, .ec-grid td:first-child { text-align: left; width: 200px; }
.ec-grid thead th { font-weight: 500; }
.ec-grid thead tr:last-child th { font-weight: 600; }
.ec-grid td strong { display: block; font-weight: 500; }
.ec-grid td span { font-size: 12px; color: var(--ec-muted); }
.ec-grid i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700; }
.ec-grid i.ok { background: #d8f0e0; color: #1f6b3e; }
.ec-grid i.miss { background: #fbe0de; color: var(--ec-red); }
.ec-grid i.up { background: #c9ced6; }
.ec-past__head { gap: 12px; }
/* The ⋯ button and dropdown share one control height */
.ec-app { --ec-control: 40px; }
.ec-iconbox, .ec-dd__btn { height: var(--ec-control); }
.ec-iconbox { width: var(--ec-control); }

/* ---------- Study Details (documented layout) ---------- */
.ec-sd { padding: 20px 22px; }
.ec-sd h2 { font-size: 20px; font-weight: 500; margin: 0; }
.ec-sd--preview { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 16px; }
.ec-sd--preview p { margin: 4px 0 0; font-size: 14px; color: #3a404c; }
.ec-sd--preview .ec-btn { flex: none; }
.ec-sd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ec-sd__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ec-sd__head .ec-link { font-size: 14px; font-weight: 600; }
.ec-sd__label { font-size: 15px; font-weight: 500; margin: 6px 0 8px; }
.ec-sd__p { font-size: 14px; line-height: 1.6; color: #3a404c; margin: 0 0 12px; }
.ec-sd__rule { border-top: 1px solid var(--ec-line); margin: 18px 0 16px; }
.ec-sd__foot { display: flex; justify-content: flex-end; margin-top: 18px; }
.ec-sd__foot .ec-btn { min-width: 180px; }
.ec-muted { color: var(--ec-muted); }
.ec-version { display: flex; justify-content: space-between; align-items: flex-start; border: 1px solid var(--ec-line); border-radius: 4px; padding: 12px 14px; margin-bottom: 14px; font-size: 15px; }
.ec-version strong { font-weight: 500; }
.ec-version--past { background: #f8f9fb; }
.ec-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ec-tags span { padding: 2px 8px; border-radius: 3px; background: #eef1f5; font-size: 13px; }
.ec-uptodate { display: flex; align-items: center; gap: 6px; font-size: 15px; margin-bottom: 8px; }
.ec-uptodate span { color: var(--ec-green); display: grid; }
.ec-report-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.ec-report-row .ec-btn { min-width: 170px; height: var(--ec-control); }
.ec-report { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ec-line); font-size: 14px; }
.ec-report small { display: block; color: var(--ec-muted); font-size: 12px; }
.ec-report .ec-link { font-weight: 600; }
.ec-sv { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 12px; color: #3a404c; }
.ec-chip-status { padding: 2px 8px; border-radius: 3px; font-size: 13px; background: #fbe0de; color: #b3261e; }
.ec-chip-status.is-ok { background: #dcf2e3; color: #1f6b3e; }
.ec-contact-form label { display: block; font-size: 14px; margin-bottom: 6px; }
.ec-contact-row { display: flex; gap: 10px; }
.ec-contact-row .ec-input { flex: 1; height: var(--ec-control); }
.ec-contact-row .ec-btn { height: var(--ec-control); }
.ec-contact-saved { display: flex; align-items: center; gap: 12px; border: 1px solid var(--ec-line); border-radius: 4px; padding: 10px 14px; font-size: 15px; }
.ec-contact-saved span { flex: 1; }
.ec-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid #c9d3e6; border-top-color: var(--ec-blue); border-radius: 50%; animation: ec-spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes ec-spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
