/* Content Studio — Ventin Media theme (from ventinmedia.com: Inter, royal blue, navy, pale blue).
   Self-contained: no Tailwind build needed. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("inter-latin.woff2") format("woff2");
}

:root {
  --vm-blue: #1924a2;        /* primary: top strip, buttons, headline accent */
  --vm-blue-ink: #11186d;    /* hover / pressed */
  --vm-navy: #101540;        /* body text */
  --vm-violet: #36188c;      /* secondary accent */
  --vm-sky: #f7fbff;         /* page background */
  --vm-mist: #e8eefb;        /* soft fills, chips */
  --vm-line: #dfe5f2;
  --vm-muted: #515a7a;
  --vm-white: #ffffff;
  --vm-ok: #1d7a4b;   --vm-ok-soft: #e1f3e8;
  --vm-warn: #9a5b00; --vm-warn-soft: #fbefd9;
  --vm-crit: #b42318; --vm-crit-soft: #fde7e5;
  --vm-radius: 14px;
  --vm-shadow: 0 1px 2px rgba(16, 21, 64, .06), 0 6px 20px rgba(16, 21, 64, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.vm {
  margin: 0;
  background: var(--vm-sky);
  color: var(--vm-navy);
  font: 400 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.vm a { color: var(--vm-blue); }
.vm a:hover { color: var(--vm-blue-ink); }
.vm :focus-visible { outline: 2px solid var(--vm-blue); outline-offset: 2px; }
.vm h1, .vm h2, .vm h3 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.vm h1 { font-size: 32px; }
.vm h2 { font-size: 20px; }
.vm code { font: 500 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--vm-mist); border-radius: 5px; padding: 1px 5px; }

/* Header: royal-blue strip over a white bar with the logo, as on ventinmedia.com */
.vm-strip { background: var(--vm-blue); height: 6px; }
.vm-header { background: var(--vm-white); border-bottom: 1px solid var(--vm-line); }
.vm-header .in { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vm-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.vm-logo img { height: 30px; width: auto; display: block; }
.vm-logo span { font-weight: 700; font-size: 14px; color: var(--vm-muted); border-left: 1px solid var(--vm-line); padding-left: 12px; }
.vm-nav { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.vm-nav a { color: var(--vm-navy); text-decoration: none; }
.vm-nav a:hover { color: var(--vm-blue); }
.vm-nav .who { color: var(--vm-muted); font-weight: 400; }

.vm-main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 64px; }

/* Text helpers */
.vm-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vm-blue); }
.vm-muted { color: var(--vm-muted); }
.vm-small { font-size: 13px; }
.vm-xs { font-size: 12px; }
.vm-num { font-variant-numeric: tabular-nums; }
.vm-back { font-size: 14px; font-weight: 600; text-decoration: none; }

/* Layout */
.vm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vm-between { justify-content: space-between; }
.vm-stack { display: flex; flex-direction: column; gap: 10px; }
.vm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vm-mt { margin-top: 24px; }
.vm-mt-s { margin-top: 10px; }
.vm-p { margin: 6px 0 0; }

/* Cards */
.vm-card { background: var(--vm-white); border: 1px solid var(--vm-line); border-radius: var(--vm-radius); padding: 20px; box-shadow: var(--vm-shadow); min-width: 0; }
a.vm-card { display: flex; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.vm-card:hover { border-color: var(--vm-blue); color: inherit; }
.vm-card h3 { font-size: 18px; }
.vm-divide { border-top: 1px solid var(--vm-line); padding-top: 14px; margin-top: 14px; }

/* Buttons: pill, uppercase, as on the site */
.vm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--vm-blue); background: var(--vm-blue); color: var(--vm-white); border-radius: 999px; padding: 9px 18px; font: 700 13px/1 "Inter", sans-serif; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; text-decoration: none; white-space: nowrap; }
.vm-btn:hover { background: var(--vm-blue-ink); border-color: var(--vm-blue-ink); color: var(--vm-white); }
.vm-btn[disabled] { opacity: .45; cursor: not-allowed; }
.vm-btn.ghost { background: var(--vm-white); color: var(--vm-blue); }
.vm-btn.ghost:hover { background: var(--vm-mist); color: var(--vm-blue-ink); }
.vm-btn.sm { padding: 6px 12px; font-size: 11.5px; }
.vm-link-btn { border: 0; background: none; padding: 0; font: 600 13px "Inter", sans-serif; color: var(--vm-blue); cursor: pointer; }
.vm-link-btn:hover { color: var(--vm-crit); }

/* Inputs */
.vm-field { width: 100%; border: 1px solid var(--vm-line); border-radius: 10px; padding: 9px 12px; background: var(--vm-white); color: var(--vm-navy); font: 400 14px "Inter", sans-serif; }
.vm-field:focus { border-color: var(--vm-blue); outline: none; box-shadow: 0 0 0 3px rgba(25, 36, 162, .15); }
select.vm-field { width: auto; padding: 6px 10px; font-size: 13px; }
.vm-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.vm-check input { accent-color: var(--vm-blue); width: 16px; height: 16px; }

/* Chips */
.vm-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; background: var(--vm-mist); color: var(--vm-blue); }
.vm-chip.hold { background: var(--vm-warn-soft); color: var(--vm-warn); }
.vm-chip.todo { background: var(--vm-blue); color: var(--vm-white); }
.vm-chip.ok { background: var(--vm-ok-soft); color: var(--vm-ok); }
.vm-chip.crit { background: var(--vm-crit-soft); color: var(--vm-crit); }

/* Messages and banners */
.vm-msg { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; background: var(--vm-ok-soft); border-left: 4px solid var(--vm-ok); }
.vm-msg.error { background: var(--vm-crit-soft); border-left-color: var(--vm-crit); }
.vm-msg.warning { background: var(--vm-warn-soft); border-left-color: var(--vm-warn); }

/* Questions list */
.vm-q { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.vm-q .n { width: 26px; height: 26px; border-radius: 50%; background: var(--vm-mist); color: var(--vm-blue); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.vm-q .n.off { background: #eef0f5; color: var(--vm-muted); }
.vm-ctx { border-left: 3px solid var(--vm-line); padding: 2px 0 2px 12px; color: var(--vm-muted); font-size: 14px; font-style: italic; margin-top: 8px; }

/* Tables */
.vm-tablewrap { overflow-x: auto; }
.vm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vm-table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vm-muted); padding: 8px 10px; border-bottom: 1px solid var(--vm-line); white-space: nowrap; }
.vm-table td { padding: 10px; border-bottom: 1px solid var(--vm-line); vertical-align: middle; }
.vm-table tr:last-child td { border-bottom: 0; }
.vm-table td:first-child { min-width: 200px; }

/* Stat */
.vm-stat { font-size: 15px; font-weight: 700; margin-top: 6px; }

@media (max-width: 860px) {
  .vm-grid3, .vm-grid2 { grid-template-columns: minmax(0, 1fr); }
  .vm h1 { font-size: 26px; }
  .vm-nav { margin-left: 0; }
}

/* ── App shell (wireframe: header, left sidebar, breadcrumbs) ─────────────────────────────── */
.vm-header .in.wide { max-width: none; padding: 12px 24px; }
.vm-pill { border: 1px solid var(--vm-line); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; color: var(--vm-muted); white-space: nowrap; }
.vm-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.vm-user a { color: var(--vm-navy); text-decoration: none; font-weight: 600; }
.vm-user a:hover { color: var(--vm-blue); }
.vm-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--vm-blue); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.vm-strip-fixed { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 20; }
.vm-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; padding-top: 4px; }
.vm-side { position: sticky; top: 4px; height: calc(100vh - 4px); background: var(--vm-white); border-right: 1px solid var(--vm-line); display: flex; flex-direction: column; min-width: 0; }
.vm-side-logo { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; text-decoration: none; }
.vm-side-logo img { height: 24px; width: auto; display: block; }
.vm-side-logo span { font-size: 12.5px; font-weight: 700; color: var(--vm-muted); border-left: 1px solid var(--vm-line); padding-left: 10px; }
.vm-side-nav { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.vm-side-nav a, .vm-side-nav span.later { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--vm-navy); text-decoration: none; }
.vm-side-nav a:hover { background: var(--vm-mist); color: var(--vm-blue); }
.vm-side-nav a[aria-current="page"] { background: var(--vm-blue); color: #fff; }
.vm-side-nav span.later { color: #9aa2bd; cursor: default; }
.vm-side-nav .ph { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #9aa2bd; border: 1px solid var(--vm-line); border-radius: 999px; padding: 1px 7px; }
.vm-side-nav .gap { height: 14px; flex: none; }

/* Account switcher (agency ↔ client accounts) */
.vm-switch { margin: 4px 12px 2px; position: relative; }
.vm-switch summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--vm-line); border-radius: 12px; cursor: pointer; background: var(--vm-sky); }
.vm-switch summary::-webkit-details-marker { display: none; }
.vm-switch summary:hover, .vm-switch[open] summary { border-color: var(--vm-blue); }
.vm-switch-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--vm-violet); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.vm-switch-icon.agency { background: var(--vm-blue); }
.vm-switch-name { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.vm-switch-name b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-switch-name small { font-size: 11.5px; color: var(--vm-muted); }
.vm-switch-caret { color: var(--vm-muted); font-size: 12px; }
.vm-switch-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--vm-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 21, 64, .16); padding: 6px; max-height: 60vh; overflow-y: auto; }
.vm-switch-menu .lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vm-muted); padding: 8px 10px 4px; }
.vm-switch-menu a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--vm-navy); text-decoration: none; }
.vm-switch-menu a:hover { background: var(--vm-mist); }
.vm-switch-menu a[aria-current="true"] { background: var(--vm-mist); color: var(--vm-blue); }
.vm-switch-menu .vm-switch-icon { width: 24px; height: 24px; font-size: 11.5px; border-radius: 7px; }

/* Signed-in person, pinned to the bottom of the sidebar; opens a menu upward */
.vm-side-foot { border-top: 1px solid var(--vm-line); background: #fff; position: relative; }
.vm-side-foot summary { list-style: none; display: flex; gap: 10px; align-items: center; padding: 12px 14px; cursor: pointer; }
.vm-side-foot summary::-webkit-details-marker { display: none; }
.vm-side-foot summary:hover, .vm-side-foot[open] summary { background: var(--vm-sky); }
.vm-side-who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.vm-side-who b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-side-who small { font-size: 11.5px; color: var(--vm-muted); }
.vm-user-menu { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--vm-line); border-radius: 12px; box-shadow: 0 -8px 32px rgba(16, 21, 64, .16); padding: 6px; }
.vm-user-menu a, .vm-user-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none; font: 600 14px "Inter", sans-serif; color: var(--vm-navy); text-decoration: none; cursor: pointer; }
.vm-user-menu a:hover, .vm-user-menu button:hover { background: var(--vm-mist); color: var(--vm-blue); }
.vm-user-menu form { margin: 0; border-top: 1px solid var(--vm-line); margin-top: 4px; padding-top: 4px; }

/* Agency viewing a client's account */
.vm-asbanner { background: var(--vm-violet); color: #fff; padding: 9px 32px; font-size: 13.5px; font-weight: 600; display: flex; gap: 14px; flex-wrap: wrap; }
.vm-asbanner a { color: #fff; text-decoration: underline; }
.vm-asbanner a:hover { color: #fff; }
.vm-content { min-width: 0; }
.vm-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 32px; border-bottom: 1px solid var(--vm-line); background: var(--vm-white); font-size: 13.5px; color: var(--vm-muted); }
.vm-crumbs a { font-weight: 600; text-decoration: none; }
.vm-content .vm-main { max-width: 1440px; margin: 0; padding: 28px 32px 64px; }
.vm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--vm-line); margin-top: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.vm-tabs a, .vm-tabs span { padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--vm-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.vm-tabs a:hover { color: var(--vm-blue); }
.vm-tabs a[aria-current="page"] { color: var(--vm-navy); border-bottom-color: var(--vm-blue); }
.vm-list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--vm-line); font-size: 14px; }
.vm-list-row:first-of-type { border-top: 0; }
.vm-empty { color: var(--vm-muted); font-size: 14px; padding: 6px 0; }
.vm-big { font-size: 22px; font-weight: 800; margin-top: 4px; }
.vm-center { max-width: 460px; margin: 0 auto; }
@media (max-width: 900px) {
  .vm-shell { grid-template-columns: minmax(0, 1fr); }
  .vm-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--vm-line); }
  .vm-side-nav { flex-direction: row; overflow-x: auto; padding: 6px 12px 10px; }
  .vm-side-nav .gap { display: none; }
  .vm-side-nav a, .vm-side-nav span.later { white-space: nowrap; }
  .vm-asbanner { padding-left: 16px; padding-right: 16px; }
  .vm-crumbs, .vm-content .vm-main { padding-left: 16px; padding-right: 16px; }
}

.vm-table a, .vm-list-row a { font-weight: 600; text-decoration: none; }
.vm-table a:hover, .vm-list-row a:hover { text-decoration: underline; }
.vm-chip.warn { background: var(--vm-warn-soft); color: var(--vm-warn); }

/* Prep steps, tiles, grouped items */
.vm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vm-steps li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--vm-line); border-radius: var(--vm-radius); padding: 14px 16px; }
.vm-steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #eef0f5; color: var(--vm-muted); flex: none; }
.vm-steps li.done .n { background: var(--vm-ok-soft); color: var(--vm-ok); }
.vm-steps li.now { border-color: var(--vm-blue); box-shadow: 0 0 0 3px rgba(25, 36, 162, .1); }
.vm-steps li.now .n { background: var(--vm-blue); color: #fff; }
.vm-steps b { display: block; font-size: 14.5px; }
.vm-steps small { color: var(--vm-muted); font-size: 12.5px; }
.vm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.vm-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--vm-line); border-radius: 12px; text-decoration: none; color: var(--vm-navy); background: var(--vm-sky); }
.vm-tile:hover { border-color: var(--vm-blue); color: var(--vm-navy); }
.vm-tile b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.vm-tile span { font-weight: 700; font-size: 14px; }
.vm-tile small { color: var(--vm-muted); font-size: 12px; }
.vm-group { border-top: 1px solid var(--vm-line); padding: 12px 0; }
.vm-group > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.vm-group > summary::-webkit-details-marker, .vm-item > summary::-webkit-details-marker, .vm-more > summary::-webkit-details-marker { display: none; }
.vm-group > summary::before, .vm-item > summary::before, .vm-more > summary::before { content: "▸"; color: var(--vm-blue); font-size: 12px; margin-right: 4px; }
.vm-group[open] > summary::before, .vm-item[open] > summary::before, .vm-more[open] > summary::before { content: "▾"; }
.vm-group > summary small { flex-basis: 100%; padding-left: 16px; }
.vm-item { margin: 6px 0 0 16px; padding: 8px 12px; border: 1px solid var(--vm-line); border-radius: 10px; background: #fff; }
.vm-item > summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vm-more > summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 14px; color: var(--vm-blue); }
.vm-where { margin: 10px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.vm-where li { border-left: 3px solid var(--vm-line); padding-left: 10px; font-size: 14px; display: flex; flex-direction: column; }

/* Bracket notes as chips */
.vm-mk { display: inline-block; font: 600 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; border-radius: 5px; padding: 0 6px; white-space: nowrap; vertical-align: 1px; background: var(--vm-mist); color: var(--vm-blue); }
.vm-mk.you { background: var(--vm-warn-soft); color: var(--vm-warn); }
.vm-mk.pub { background: #e3e8fb; color: var(--vm-blue); }
.vm-mk.legal { background: var(--vm-crit-soft); color: var(--vm-crit); }
.vm-mk.link { background: #eef0f5; color: var(--vm-muted); }
.vm-mk.embed { background: #f1eefb; color: var(--vm-violet); }
.vm-chapter { font: 700 12px/1.5 "Inter", sans-serif; color: var(--vm-muted); }

/* Reading view */
.vm-post-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.vm-post { background: #fff; border: 1px solid var(--vm-line); border-radius: var(--vm-radius); padding: 40px clamp(20px, 5vw, 64px); font-size: 17.5px; line-height: 1.7; box-shadow: var(--vm-shadow); min-width: 0; }
.vm-post > * { max-width: 68ch; }
.vm-post-title { font-size: 34px !important; line-height: 1.15 !important; margin-bottom: 20px !important; }
.vm-post h2 { font-size: 24px; margin: 34px 0 10px; scroll-margin-top: 20px; }
.vm-post h3 { font-size: 16px; margin: 24px 0 8px; color: var(--vm-muted); }
.vm-post p { margin: 0 0 16px; }
.vm-post ul { margin: 0 0 16px; padding-left: 22px; }
.vm-post a { color: var(--vm-blue); }
.vm-post-cta { background: var(--vm-sky); border-left: 4px solid var(--vm-blue); border-radius: 10px; padding: 14px 18px; margin: 0 0 18px; font-size: 16px; }
.vm-post-btn { display: inline-block; background: var(--vm-blue); color: #fff; border-radius: 999px; padding: 2px 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.vm-post-rail { position: sticky; top: 20px; }
.vm-bar { height: 6px; border-radius: 999px; background: #eef0f5; overflow: hidden; margin-top: 8px; }
.vm-bar i { display: block; height: 100%; max-width: 100%; background: var(--vm-blue); }
.vm-toc { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.vm-toc a { text-decoration: none; font-weight: 600; }
.vm-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 13px; }
@media (max-width: 1100px) { .vm-post-wrap { grid-template-columns: minmax(0, 1fr); } .vm-post-rail { position: static; } .vm-steps { grid-template-columns: minmax(0, 1fr); } }

/* Links styled as buttons keep their button colours (".vm a" would otherwise win). */
.vm a.vm-btn, .vm a.vm-btn:hover { color: #fff; }
.vm a.vm-btn.ghost, .vm a.vm-btn.ghost:hover { color: var(--vm-blue); }

/* Margin notes in the reading view */
.vm-post { padding-left: clamp(52px, 6vw, 72px); }
.vm-blk { position: relative; }
.vm-gut { position: absolute; left: -40px; top: 2px; bottom: 14px; width: 28px; }
.vm-gut::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 4px; border-radius: 4px; background: currentColor; opacity: .55; }
.vm-gut.legal { color: var(--vm-crit); } .vm-gut.you { color: #c27c0e; } .vm-gut.pub { color: var(--vm-blue); }
.vm-gut.answered { color: var(--vm-ok); } .vm-gut.info { color: #aab1c8; }
.vm-gut-btn { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: currentColor; padding: 0; cursor: pointer; box-shadow: 0 1px 3px rgba(16, 21, 64, .25); font: 800 11.5px/1 "Inter", sans-serif; }
.vm-gut-btn { color: #fff; } /* number on the dot */
.vm-gut.legal .vm-gut-btn { background: var(--vm-crit); } .vm-gut.you .vm-gut-btn { background: #c27c0e; } .vm-gut.pub .vm-gut-btn { background: var(--vm-blue); }
.vm-gut.answered .vm-gut-btn { background: var(--vm-ok); } .vm-gut.info .vm-gut-btn { background: #aab1c8; }
.vm-gut:hover::before, .vm-gut.pinned::before { opacity: 1; }
.vm-pop { display: none; position: absolute; left: 34px; top: -6px; width: min(400px, 78vw); z-index: 40; background: #fff; border: 1px solid var(--vm-line); border-radius: 14px; box-shadow: 0 14px 40px rgba(16, 21, 64, .18); padding: 6px 14px; color: var(--vm-navy); font-size: 14px; line-height: 1.5; }
.vm-gut.open .vm-pop { display: block; }
/* Notes as highlights (the margin dot stays only for notes whose sentence can't be found). */
.vm-gut.marked::before, .vm-gut.marked .vm-gut-btn { display: none; }
.vm-hl { color: inherit; border-radius: 3px; padding: 1px 0; cursor: pointer; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  text-decoration: underline 2px; text-underline-offset: 3px; background: #eef1fb; text-decoration-color: #aab1c8; }
.vm-hl.you { background: #fdf1db; text-decoration-color: #c27c0e; }
.vm-hl.pub { background: #e3ebfd; text-decoration-color: var(--vm-blue); }
.vm-hl.legal { background: #fde4e4; text-decoration-color: var(--vm-crit); }
.vm-hl.answered { background: #e2f5ea; text-decoration-color: var(--vm-ok); }
.vm-hl.edit { background: #efeafb; text-decoration-color: var(--vm-violet); }
.vm-hl:hover, .vm-hl.active, .vm-hl:focus-visible { filter: saturate(1.6) brightness(.96); outline: none; }
.vm-hl:focus-visible { box-shadow: 0 0 0 2px var(--vm-blue); }
@media (max-width: 640px) {
  .vm-gut.open .vm-pop { position: fixed; left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; max-height: 70vh; overflow: auto; }
}
.vm-pop-item { padding: 10px 0; border-top: 1px solid var(--vm-line); }
.vm-pop-item:first-child { border-top: 0; }
.vm-pop-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.vm-pop .vm-ctx { font-size: 13.5px; margin-top: 6px; }
.vm-pop-answer { margin-top: 8px; padding: 8px 10px; background: var(--vm-ok-soft); border-radius: 8px; font-size: 13.5px; }
.vm-pop-chat { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.vm-pop-chat textarea { font-size: 13.5px; resize: vertical; min-height: 54px; }
.vm-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: #aab1c8; }
.vm-dot.legal { background: var(--vm-crit); } .vm-dot.you { background: #c27c0e; } .vm-dot.pub { background: var(--vm-blue); } .vm-dot.answered { background: var(--vm-ok); }
.vm-legend span { display: flex; align-items: center; gap: 8px; }
.vm-linkph { color: var(--vm-blue); text-decoration: underline; text-underline-offset: 3px; position: relative; cursor: default; }
.vm-linkph:hover::after, .vm-linkph:focus::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; background: var(--vm-navy); color: #fff; font: 600 12px/1.3 "Inter", sans-serif; padding: 5px 9px; border-radius: 6px; z-index: 50; pointer-events: none; }
.vm-gut.edit { color: var(--vm-violet); } .vm-gut.edit .vm-gut-btn { background: var(--vm-violet); } .vm-dot.edit { background: var(--vm-violet); }
.vm-mk.edit { background: #efeafb; color: var(--vm-violet); font-family: "Inter", sans-serif; white-space: normal; }
.vm-structure { border-left: 4px solid var(--vm-violet); background: #f5f2fd; border-radius: 12px; padding: 14px 18px; font-size: 14px; }
.vm-preview .vm-btn { opacity: .5; cursor: default; pointer-events: none; }

/* Modals (native <dialog>, opened by static/studio/modal.js) */
.vm-modal { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--vm-line); border-radius: var(--vm-radius); box-shadow: 0 24px 60px rgba(16, 21, 64, .25); color: var(--vm-navy); }
.vm-modal::backdrop { background: rgba(16, 21, 64, .45); }
.vm-modal form { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.vm-modal h2 { margin: 0; }
.vm-modal label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.vm-modal .vm-modal-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vm-modal fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vm-modal legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.vm-modal .vm-radio { flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--vm-line); border-radius: 10px; cursor: pointer; font-weight: 400; }
.vm-modal .vm-radio:has(input:checked) { border-color: var(--vm-blue); background: var(--vm-mist); }
.vm-modal .vm-radio input { margin-top: 3px; accent-color: var(--vm-blue); }
.vm-modal .vm-radio b { display: block; font-size: 14px; }
.vm-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
@media (max-width: 520px) { .vm-modal .vm-modal-pair { grid-template-columns: 1fr; } }

