/* ---------------------------------------------
   MyVeeva for Patients — interactive demo
   Inside the phone: colours/copy sampled from the public App Store screenshots.
   Outside the phone: the portfolio's own tokens.
--------------------------------------------- */
.mv {
  --mv-orange: #f7981d;
  --mv-orange-soft: #f9ab64;
  --mv-blue: #0b5aaf;
  --mv-link: #2f5bd3;
  --mv-ink: #1c1c1e;
  --mv-grey: #8e8e93;
  --mv-line: #e1e3e7;
  --mv-wash: #f1f4f9;
  --mv-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;

  --s: 0.9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

/* ---------- Guide (portfolio side) ---------- */
.mv-guide h2 { margin-bottom: 0.4em; }
.mv-guide__intro { color: var(--color-text-muted); max-width: 42ch; margin-bottom: 2rem; }

.mv-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.mv-step { border-bottom: 1px solid var(--color-border); }
.mv-step button {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 0.75rem;
  padding: 1rem 0;
  cursor: pointer;
}
.mv-step button:focus-visible { outline: 2px solid var(--color-text); outline-offset: 4px; }
.mv-step__mark {
  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);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.mv-step__title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3; }
.mv-step__body {
  grid-column: 2;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 44ch;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.mv-step__body > span { overflow: hidden; }
.mv-step.is-active .mv-step__body { grid-template-rows: 1fr; }
.mv-step.is-active .mv-step__body > span { padding-top: 0.4rem; }
.mv-step.is-active .mv-step__mark { border-color: var(--color-text); color: var(--color-text); }
.mv-step.is-done .mv-step__mark { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }

.mv-guide__note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--color-text-muted); }
.mv-guide__note button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mv-guide__note button:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }

/* ---------- Device ----------
   The app is laid out at its real size (375 × 667 pt, measured from the App Store
   screenshots) and scaled as one piece, so every measurement below is in app points. */
.mv-device {
  position: relative;
  width: calc(375px * var(--s) + 24px);
  padding: 12px;
  border-radius: 50px;
  background: #1d1d1f;
  box-shadow: 0 0 0 1px #3a3a3c inset, 0 30px 60px -20px rgba(43, 39, 36, 0.35);
}
.mv-viewport {
  position: relative;
  width: calc(375px * var(--s));
  height: calc(667px * var(--s));
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
}
.mv-screen {
  position: absolute; top: 0; left: 0;
  width: 375px; height: 667px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  background: #fff;
  color: var(--mv-ink);
  font-family: "Inter", var(--mv-font);
  font-size: 17px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
.mv-screen * { box-sizing: border-box; }
.mv [hidden] { display: none !important; }
.mv-screen .mv-view { padding: 0; margin: 0; }
.mv-screen :focus-visible { outline: 2px solid var(--mv-link); outline-offset: -2px; }

.mv-status {
  flex: none;
  height: 44px;
  padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600;
}
.mv-status__icons { display: flex; gap: 5px; align-items: center; }
.mv-home { position: absolute; left: 50%; bottom: 6px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #000; z-index: 8; pointer-events: none; }

.mv-views { position: relative; flex: 1; min-height: 0; }
.mv-view {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: #fff;
  visibility: hidden;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s 0.22s;
}
.mv-view.is-current { visibility: visible; opacity: 1; transform: none; transition: opacity 0.22s ease, transform 0.22s ease; }
.mv-view--wash { background: var(--mv-wash); }
.mv-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 20px; }
.mv-scroll::-webkit-scrollbar { display: none; }

/* Large title header (To Do, Study, Account): 43pt tall, divider at 87pt */
.mv-title {
  flex: none;
  height: 43px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--mv-line);
}
.mv-title h3 { font-family: inherit; font-size: 24px; line-height: 1; font-weight: 400; margin: 0; letter-spacing: -0.2px; }
/* Pushed screen header (Resources, Consent, Survey): back · centred title · action */
.mv-nav {
  flex: none;
  height: 43px;
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  padding: 0 4px;
  border-bottom: 1px solid var(--mv-line);
  background: #fff;
}
.mv-nav__title { text-align: center; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-iconbtn {
  all: unset; box-sizing: border-box;
  width: 44px; height: 40px; display: grid; place-items: center; cursor: pointer; border-radius: 8px;
}

/* Section headings: 22px regular */
.mv-section { padding: 20px 16px 4px; display: flex; justify-content: space-between; align-items: baseline; }
.mv-scroll > .mv-section:first-child { padding-top: 25px; }
.mv-section h4 { font-family: inherit; font-size: 22px; line-height: 28px; font-weight: 400; margin: 0; }
.mv-link { all: unset; cursor: pointer; color: var(--mv-link); font-size: 18px; line-height: 28px; }
.mv-date { padding: 18px 16px 6px; line-height: 18px; font-size: 13px; letter-spacing: 1.2px; color: #3a3a3c; }

/* List rows: 64pt pitch, dividers inset 16pt, icon at 20pt, text at 55pt */
.mv-row {
  all: unset; box-sizing: border-box;
  width: calc(100% - 32px); margin: 0 16px;
  min-height: 64px;
  display: grid; grid-template-columns: 20px 1fr 14px; gap: 15px; align-items: center;
  padding: 10px 6px 13px 4px;
  border-bottom: 1px solid var(--mv-line);
  cursor: pointer;
}
.mv-row br, .mv-contact br { display: none; }
.mv-row__title, .mv-row__sub { display: block; }
.mv-row--tight { gap: 12px; }
.mv-row--wide { grid-template-columns: 22px 1fr 14px; gap: 14px; }
.mv-row.is-disabled { cursor: default; color: #a9acb2; }
.mv-row__title { font-size: 17px; line-height: 22px; }
.mv-row__sub { font-size: 14px; line-height: 18px; color: #6c6f75; }
.mv-row.is-disabled .mv-row__sub { color: #b4b7bc; }
.mv-row.is-leaving { animation: mv-leave 0.45s ease forwards; }
@keyframes mv-leave { to { opacity: 0; transform: translateX(-16px); } }
.mv-row__icon { position: relative; display: block; width: 20px; height: 20px; }
.mv-row__badge { position: absolute; right: -4px; bottom: -3px; }
.mv-empty { margin: 10px 16px 0; padding: 14px 16px; border-radius: 8px; background: var(--mv-wash); font-size: 15px; color: #4a4d52; display: flex; gap: 10px; align-items: center; }

/* Tab bar: top divider at 585pt, 25pt icons, 12px labels, home indicator below */
.mv-tabs {
  flex: none;
  height: 82px;
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: start;
  border-top: 1px solid var(--mv-line);
  padding-top: 10px;
  background: #fff;
}
.mv-tab { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 9px; font-size: 12px; line-height: 13px; color: #1c1c1e; }
.mv-tab svg { width: 26px; height: 26px; }
.mv-tab[aria-selected="true"] { color: var(--mv-orange); font-weight: 500; }

/* Survey: progress header, orange rule, wash background, 47pt answers, 46pt Submit */
.mv-progress { display: flex; align-items: center; justify-content: center; gap: 18px; }
.mv-progress__text { text-align: center; line-height: 1.05; }
.mv-progress strong { font-weight: 500; font-size: 14px; display: block; }
.mv-progress span { font-size: 11px; color: #6c6f75; }
.mv-progress__arrow { all: unset; cursor: pointer; display: grid; place-items: center; width: 22px; height: 22px; color: #1c1c1e; }
.mv-progress__arrow[aria-disabled="true"] { color: #c7c9cd; cursor: default; }
.mv-bar { flex: none; height: 4px; background: var(--mv-line); }
.mv-bar i { display: block; height: 100%; width: 0; background: var(--mv-orange); transition: width 0.35s ease; }
.mv-q { margin: 8px 8px 0; background: #fff; border-radius: 4px; overflow: hidden; border: 1px solid var(--mv-line); scroll-margin-top: 8px; }
.mv-q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mv-q legend { float: left; width: 100%; padding: 14px 12px; font-size: 14px; line-height: 20px; border-bottom: 1px solid var(--mv-line); }
.mv-q legend + * { clear: both; }
.mv-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 0 12px; font-size: 14px; border-bottom: 1px solid var(--mv-line); cursor: pointer; transition: background 0.15s; }
.mv-opt:last-child { border-bottom: 0; }
.mv-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mv-opt__box { width: 18px; height: 18px; flex: none; border: 1.5px solid #8e8e93; border-radius: 3px; background: #fff; display: grid; place-items: center; }
.mv-opt--radio .mv-opt__box { border-radius: 50%; }
.mv-opt__box svg { opacity: 0; }
.mv-opt:has(input:checked) { background: var(--mv-orange-soft); }
.mv-opt:has(input:checked) .mv-opt__box { border-color: #3a3a3c; }
.mv-opt:has(input:checked) .mv-opt__box svg { opacity: 1; }
.mv-opt:has(input:focus-visible) { outline: 2px solid var(--mv-link); outline-offset: -2px; }
.mv-primary {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: block; width: calc(100% - 16px); margin: 16px 8px 12px;
  height: 46px; line-height: 46px; border-radius: 4px; text-align: center;
  background: var(--mv-blue); color: #fff; font-size: 15px; font-weight: 500;
}
.mv-primary[aria-disabled="true"] { background: #a9b9cf; cursor: not-allowed; }
.mv-primary:focus-visible { outline: 2px solid var(--mv-ink); outline-offset: 2px; }
.mv-hint { text-align: center; font-size: 13px; color: #6c6f75; margin: 0 0 12px; min-height: 1em; }

/* Consent: Document / Table of Contents, 17/28.5 body, wash signing area */
.mv-segment { flex: none; height: 44px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--mv-line); }
.mv-segment button { all: unset; cursor: pointer; text-align: center; font-size: 13px; color: #8e8e93; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mv-segment button[aria-selected="true"] { color: #1c1c1e; font-weight: 600; border-color: #1c1c1e; }
.mv-doc { padding: 10px 16px 24px 14px; font-size: 17px; line-height: 28.5px; }
.mv-doc h5 { font-family: inherit; font-size: 22px; line-height: 28px; font-weight: 600; margin: 18px 0 14px; }
.mv-doc h5:first-child { margin-top: 4px; }
.mv-doc p { margin: 0 0 14px; }
.mv-toc { padding: 0 16px; }
.mv-toc button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--mv-line); width: 100%; font-size: 17px; }
.mv-signbar { flex: none; background: var(--mv-wash); padding: 36px 16px 34px; text-align: center; border-top: 1px solid var(--mv-line); }
.mv-signbtn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 45px; background: #fff; border: 1px solid #d5d9e0; border-radius: 6px;
  color: var(--mv-blue); font-size: 14px; font-weight: 600;
}
.mv-signbar p { margin: 16px 0 0; font-size: 13px; color: #6c6f75; }
.mv-signbar .mv-link { font-size: 13px; line-height: 1; font-weight: 600; color: var(--mv-blue); }

/* Bottom sheets */
.mv-sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.35); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s 0.25s; z-index: 5; }
.mv-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  background: #fff; border-radius: 12px 12px 0 0; padding: 8px 16px 34px;
  transform: translateY(105%); transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.mv-sheet.is-open { transform: none; }
.mv-sheet-scrim.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s; }
.mv-sheet__grab { width: 36px; height: 5px; border-radius: 3px; background: #d1d1d6; margin: 0 auto 12px; }
[data-sheet="sign"] h4 { font-family: inherit; font-size: 17px; font-weight: 600; margin: 0 0 4px; }
[data-sheet="sign"] p { font-size: 14px; color: #6c6f75; margin: 0 0 14px; }
.mv-sheet--list { padding: 8px 0 34px; height: 62%; display: flex; flex-direction: column; }
.mv-sheet--list .mv-sheet__grab { margin-bottom: 4px; }
.mv-sheet__list { flex: 1; overflow-y: auto; }
.mv-sheet__list .mv-empty { margin: 0 16px; padding: 18px 4px; background: none; border-radius: 0; border-bottom: 1px solid var(--mv-line); font-size: 15px; color: #6c6f75; }
.mv-pad { position: relative; height: 170px; border: 1px dashed #b9bcc4; border-radius: 8px; background: #fbfcfe; touch-action: none; }
.mv-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; border-radius: 8px; }
.mv-pad__line { position: absolute; left: 18px; right: 18px; bottom: 40px; border-top: 1px solid #c7c7cc; pointer-events: none; }
.mv-pad__x { position: absolute; left: 20px; bottom: 44px; color: #aeaeb2; font-size: 16px; pointer-events: none; }
.mv-pad__hint { position: absolute; inset: 0; display: grid; place-items: center; color: #aeaeb2; font-size: 15px; pointer-events: none; transition: opacity 0.2s; }
.mv-pad.has-ink .mv-pad__hint { opacity: 0; }
.mv-sheet__actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 16px; }
.mv-sheet__actions .mv-primary { margin: 0; width: 100%; }
.mv-secondary { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; height: 46px; line-height: 44px; border-radius: 4px; border: 1px solid #d5d9e0; font-size: 15px; }

/* Confirmation */
.mv-done { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 40px; gap: 12px; }
.mv-done h3 { font-family: inherit; font-size: 22px; font-weight: 600; margin: 8px 0 0; }
.mv-done p { color: #4a4d52; font-size: 16px; margin: 0 0 8px; }
.mv-done .mv-primary { width: 240px; margin: 6px 0 0; }
.mv-check-anim circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: mv-draw 0.5s ease forwards; }
.mv-check-anim path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: mv-draw 0.3s 0.4s ease forwards; }
@keyframes mv-draw { to { stroke-dashoffset: 0; } }

/* Study: name + sponsor, participant ID, 43pt outlined help button, 64pt rows */
.mv-study-head { padding: 22px 16px 0; display: flex; justify-content: space-between; align-items: center; min-height: 54px; }
.mv-study-head strong { font-weight: 400; font-size: 20px; }
.mv-sponsor { font-family: Georgia, serif; font-size: 24px; color: #04994e; display: flex; align-items: center; gap: 2px; }
.mv-pid { padding: 2px 16px 0; font-size: 14px; color: #6c6f75; }
.mv-help { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: center; justify-content: center; margin: 17px 16px 16px; width: calc(100% - 32px); height: 43px; border: 1px solid var(--mv-line); border-radius: 4px; font-size: 16px; }
.mv-contact { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; margin: 0 16px; padding: 11px 6px 11px 4px; min-height: 64px; border-bottom: 1px solid var(--mv-line); }
.mv-contact__acts { display: flex; gap: 6px; color: #1c1c1e; }

/* Account */
.mv-toggle { display: flex; justify-content: space-between; align-items: center; margin: 0 16px; min-height: 56px; border-bottom: 1px solid var(--mv-line); font-size: 17px; }
.mv-switch { all: unset; cursor: pointer; width: 51px; height: 31px; border-radius: 16px; background: #e5e5ea; position: relative; transition: background 0.2s; }
.mv-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 0.2s; }
.mv-switch[aria-checked="true"] { background: #34c759; }
.mv-switch[aria-checked="true"]::after { transform: translateX(20px); }

/* Toast */
.mv-toast { position: absolute; left: 50%; bottom: 100px; transform: translate(-50%, 12px); background: rgba(28,28,30,.92); color: #fff; font-size: 15px; padding: 10px 16px; border-radius: 22px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap; z-index: 7; }
.mv-toast.is-on { opacity: 1; transform: translate(-50%, 0); }


/* Bell with unread dot */
.mv-bell { position: relative; }
.mv-bell__dot { position: absolute; top: 7px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--mv-orange); border: 1.5px solid #fff; }

/* Visit details card */
.mv-card { margin: 12px 8px 0; background: #fff; border: 1px solid var(--mv-line); border-radius: 4px; padding: 16px; }
.mv-pill { display: inline-block; padding: 4px 10px; border-radius: 14px; background: #fde8cc; color: #8a4b00; font-size: 13px; margin-bottom: 12px; }
.mv-card__title { font-size: 20px; }
.mv-card__sub { font-size: 14px; color: #6c6f75; margin-bottom: 10px; }
.mv-card p { font-size: 15px; line-height: 22px; margin: 0; }

/* Consent: signature block + orange submit */
.mv-sig { margin-top: 24px; padding-top: 4px; }
.mv-sig__line { height: 64px; border-bottom: 1px solid #1c1c1e; display: flex; align-items: flex-end; padding: 0 0 4px 4px; }
.mv-sig__ink { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 30px; line-height: 1; color: #1c2f5c; }
.mv-sig__ink img { height: 58px; display: block; }
.mv-sig__label { font-size: 13px; color: #6c6f75; margin: 4px 0 16px; }
.mv-sig__field { display: flex; flex-direction: column; border-bottom: 1px solid var(--mv-line); padding: 8px 0; font-size: 17px; line-height: 24px; }
.mv-sig__field small { font-size: 13px; line-height: 18px; color: #6c6f75; }
.mv-submit { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; height: 45px; line-height: 45px; text-align: center; border-radius: 6px; background: var(--mv-orange); color: #fff; font-size: 15px; font-weight: 600; }
.mv-submit:focus-visible { outline: 2px solid var(--mv-ink); outline-offset: 2px; }

/* Ask for Study Help form */
.mv-form { background: var(--mv-wash); }
.mv-form__intro { margin: 16px 16px 8px; font-size: 15px; line-height: 22px; color: #3a3a3c; }
.mv-opt small { display: block; font-size: 12px; color: #6c6f75; line-height: 16px; }
.mv-opt > span:not(.mv-opt__box) { padding: 8px 0; }

/* Read-only document viewer */
.mv-viewer__meta { flex: none; padding: 10px 16px; font-size: 13px; color: #6c6f75; background: var(--mv-wash); border-bottom: 1px solid var(--mv-line); }
.mv-viewer__meta:empty { display: none; }
.mv-muted { color: #6c6f75; font-size: 15px; }

/* Account */
.mv-account { padding: 22px 16px 18px; border-bottom: 1px solid var(--mv-line); margin-bottom: 4px; }
.mv-account__name { font-size: 22px; line-height: 28px; }
.mv-account__email { font-size: 15px; color: #6c6f75; margin-bottom: 16px; }
.mv-account__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mv-outline { all: unset; box-sizing: border-box; cursor: pointer; height: 43px; border: 1px solid #d5d9e0; border-radius: 4px; text-align: center; line-height: 41px; font-size: 16px; color: #1c1c1e; }
.mv-outline--block { display: block; margin: 20px 16px 0; width: calc(100% - 32px); }
.mv-row--ext { grid-template-columns: 1fr 20px; gap: 12px; padding-left: 0; }
.mv-row--ext svg { color: #3a3a3c; }
.mv-row.is-current-study { cursor: default; }
.mv-logout { all: unset; box-sizing: border-box; cursor: pointer; display: block; margin: 28px 16px 0; width: calc(100% - 32px); height: 43px; line-height: 41px; text-align: center; border: 1px solid #d93025; color: #d93025; border-radius: 4px; font-size: 16px; }
.mv-outline:focus-visible, .mv-logout:focus-visible, .mv-menu__item:focus-visible { outline: 2px solid var(--mv-link); outline-offset: 2px; }

/* Settings */
.mv-group { padding: 22px 16px 6px; font-size: 15px; font-weight: 600; color: #3a3a3c; }
.mv-setting { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; margin: 0 16px; width: calc(100% - 32px); min-height: 56px; border-bottom: 1px solid var(--mv-line); font-size: 17px; cursor: default; }
button.mv-setting { cursor: pointer; }
.mv-setting__val { display: flex; align-items: center; gap: 6px; color: #6c6f75; font-size: 16px; }
.mv-setting__note { margin: 6px 16px 0; font-size: 13px; color: #6c6f75; }

/* Completed sheet helper + document options menu */
.mv-sheet__help { margin: 20px 16px 0; padding: 0 4px; font-size: 14px; line-height: 20px; color: #6c6f75; }
.mv-sheet__help .mv-link { font-size: 14px; line-height: 20px; }
.mv-sheet--menu { padding: 8px 8px 30px; background: transparent; }
.mv-menu__item { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; height: 56px; line-height: 56px; text-align: center; background: #fff; font-size: 18px; color: var(--mv-link); border-bottom: 1px solid var(--mv-line); }
.mv-menu__item:first-child { border-radius: 12px 12px 0 0; }
.mv-menu__item:nth-child(3) { border-radius: 0 0 12px 12px; border-bottom: 0; }
.mv-menu__item--danger { color: #d93025; }
.mv-menu__cancel { margin-top: 8px; border-radius: 12px; font-weight: 600; border-bottom: 0; }

/* Virtual visit */
.mv-card p + p { margin-top: 10px; }
.mv-card__link { font-size: 14px !important; color: var(--mv-link); word-break: break-all; }
.mv-joinbar { flex: none; padding: 12px 16px 34px; background: var(--mv-wash); border-top: 1px solid var(--mv-line); }

/* Design-note pins (inside the scaled app) */
.mv-pins { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.mv-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 #1d1d1f;
  transition: transform 0.15s ease, background 0.15s ease;
}
.mv-pin:hover, .mv-pin.is-active { transform: scale(1.15); background: var(--mv-orange); color: #2b2724; }
.mv-pin:focus-visible { outline: 2px solid var(--mv-link); outline-offset: 3px; }
.mv-pins.is-off { display: none; }

/* Notes caption under the phone (portfolio side) */
.mv-notes { width: calc(375px * var(--s, 0.9) + 24px); margin-top: 1rem; }
.mv-device-col { display: flex; flex-direction: column; align-items: center; }
.mv-notes__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: var(--color-text-muted); }
.mv-notes__toggle { all: unset; cursor: pointer; position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--color-border); transition: background 0.2s; }
.mv-notes__toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.mv-notes__toggle[aria-checked="true"] { background: var(--color-text); }
.mv-notes__toggle[aria-checked="true"]::after { transform: translateX(14px); }
.mv-notes__toggle:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; }
.mv-notes__text { display: flex; gap: 0.6rem; margin: 0.6rem 0 0; min-height: 4.2em; font-size: 0.9rem; line-height: 1.45; color: var(--color-text); }
.mv-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; margin-top: 0.05rem; }
.mv-notes.is-off .mv-notes__text { visibility: hidden; }

/* Notifications sheet */
.mv-notif { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 20px 1fr; gap: 15px; align-items: start; width: calc(100% - 32px); margin: 0 16px; padding: 14px 6px 14px 4px; border-bottom: 1px solid var(--mv-line); }
.mv-notif:focus-visible { outline: 2px solid var(--mv-link); outline-offset: 2px; }
.mv-notif__icon { position: relative; display: block; width: 20px; height: 20px; margin-top: 1px; }
.mv-notif__dot { position: absolute; top: -3px; right: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--mv-orange); border: 1.5px solid #fff; }
.mv-notif__dot.is-read { display: none; }
.mv-notif__body { display: flex; flex-direction: column; gap: 2px; }
.mv-notif__title { font-size: 17px; line-height: 22px; }
.mv-notif.is-unread .mv-notif__title { font-weight: 600; }
.mv-notif__text { font-size: 15px; line-height: 20px; color: #3a3a3c; }
.mv-notif__when { font-size: 13px; line-height: 18px; color: #6c6f75; margin-top: 2px; }
.mv-bell.is-read .mv-bell__dot { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .mv { grid-template-columns: 1fr; }
  .mv-device-col { order: -1; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mv *, .mv *::before, .mv *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}
