/* Cabarrus Manager view (PREVIEW Oct 30 2026, Jeremy): team as baseball cards (left) + Requests (right) + day timeline.
 * Cabarrus manager page only. Team colors per theme: Maroon (maroon + gold), Classic (midnight + magenta), Enterprise (navy + gold). */

/* ---------- team colors ---------- */
html[data-theme="maroon"] {
  --cmv-edge:#5C0632; --cmv-edge-2:#8A1538; --cmv-line:#C9A45C; --cmv-ribbon-a:#8A1538; --cmv-ribbon-b:#5C0632; --cmv-ribbon-ink:#FFF8EA;
  --cmv-field-a:#9A2148; --cmv-field-b:#3E0422; --cmv-ini:#FFF4E0; --cmv-dia:#C9A45C; --cmv-dia-ink:#3E0422;
  --cmv-stock:#F4EBDB; --cmv-stock-2:#EADCC4; --cmv-stock-ink:#2B1A1F; --cmv-stock-muted:#6B5560; --cmv-rule:#D5C3A8; --cmv-band:#5C0632; --cmv-band-ink:#FFF8EA;
  --cmv-strip:#FBF6EC; --cmv-strip-ink:#2B1A1F; --cmv-shadow:rgba(62,4,34,.30);
}
html[data-theme="enterprise"] {
  --cmv-edge:#0F3550; --cmv-edge-2:#1A6E8E; --cmv-line:#C8902E; --cmv-ribbon-a:#1A6E8E; --cmv-ribbon-b:#0F3550; --cmv-ribbon-ink:#FFFFFF;
  --cmv-field-a:#1F6F92; --cmv-field-b:#0A2236; --cmv-ini:#F3F8FC; --cmv-dia:#C8902E; --cmv-dia-ink:#0A2236;
  --cmv-stock:#EEF1F0; --cmv-stock-2:#DFE6E8; --cmv-stock-ink:#14202E; --cmv-stock-muted:#4A5A6E; --cmv-rule:#C4CFD8; --cmv-band:#0F3550; --cmv-band-ink:#FFFFFF;
  --cmv-strip:#F7FAFC; --cmv-strip-ink:#14202E; --cmv-shadow:rgba(11,42,64,.30);
}
html:not([data-theme="maroon"]):not([data-theme="enterprise"]) {
  --cmv-edge:#1B1033; --cmv-edge-2:#3B1D6E; --cmv-line:#E879F9; --cmv-ribbon-a:#A21CAF; --cmv-ribbon-b:#6B21A8; --cmv-ribbon-ink:#FFFFFF;
  --cmv-field-a:#5B21B6; --cmv-field-b:#170B2E; --cmv-ini:#FCE7FF; --cmv-dia:#E879F9; --cmv-dia-ink:#1B1033;
  --cmv-stock:#EEE8F3; --cmv-stock-2:#DDD3E8; --cmv-stock-ink:#22172F; --cmv-stock-muted:#5C4E6B; --cmv-rule:#CBBEDA; --cmv-band:#2A1650; --cmv-band-ink:#FFFFFF;
  --cmv-strip:#F7F3FA; --cmv-strip-ink:#22172F; --cmv-shadow:rgba(0,0,0,.55);
}
.cmv-team, .cmv-sheet { --cmv-ok:#16A34A; --cmv-busy:#DC2626; --cmv-stale:#8C8C96; --cmv-off:#B8BCC6; --cmv-none:#B8BCC6;
  --cmv-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --cmv-cond: "Oswald", "Bebas Neue", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; }

/* ---------- two columns ---------- */
body.cm-page .ms-main--sl .cmv-grid { display: block; }
body.cm-page .ms-main--sl .cmv-grid.cmv-on { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1700px) { body.cm-page .ms-main--sl .cmv-grid.cmv-on { grid-template-columns: minmax(0, 1.9fr) minmax(420px, 1fr); } }
@media (max-width: 1000px) { body.cm-page .ms-main--sl .cmv-grid.cmv-on { grid-template-columns: minmax(0, 1fr); } } /* phones: team first, requests under */
.cmv-req { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
body.cm-page.cmx-easy .ms-main--sl .cmv-req #cmxStop + #stoplightAdmin { margin-top: 0; }
.cmv-reqhead { display: none; padding: 2px 4px 0; }
.cmv-grid.cmv-on .cmv-reqhead { display: block; }
.cmv-reqhead h2 { margin: 2px 0 4px; font: 700 20px/1.2 var(--q-serif, Georgia, serif); color: var(--fg); }
.cmv-reqhead p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.cmv-grid.cmv-on + #cmxWho, body.cmx-easy.cm-page .ms-main--sl .cmv-grid.cmv-on ~ #cmxWho { margin-top: 20px; }
body.cm-page .ms-main--sl .cm-card.sl.cmv-team { padding: 24px 24px 18px; }
@media (max-width: 760px) { body.cm-page .ms-main--sl .cm-card.sl.cmv-team { padding: 16px 12px 12px; } }

/* ---------- team header ---------- */
.cmv-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.cmv-eyebrow { font: 700 11px/1.2 var(--q-sans, system-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cmv-h2 { margin: 4px 0 2px; font: 700 clamp(20px, 2.2vw, 26px)/1.15 var(--q-serif, Georgia, serif); color: var(--fg); }
.cmv-line { margin: 2px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cmv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cmv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 12.5px/1 var(--q-sans, system-ui); color: var(--fg);
  background: var(--surface-raised, rgba(255,255,255,.06)); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cmv-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cmv-none); flex: none; }
.st-available .cmv-dot, .s-available .cmv-dot { background: var(--cmv-ok); box-shadow: 0 0 0 2px rgba(22,163,74,.22); }
.st-busy .cmv-dot, .s-busy .cmv-dot { background: var(--cmv-busy); box-shadow: 0 0 0 2px rgba(220,38,38,.22); }
.st-stale .cmv-dot, .s-check-status .cmv-dot { background: var(--cmv-stale); }
.st-off .cmv-dot, .s-off .cmv-dot, .s-eod .cmv-dot, .s-expired .cmv-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--cmv-off); }
.cmv-loading, .cmv-err, .cmv-empty { margin: 8px 0; color: var(--muted); }
.cmv-err { color: var(--st-wait, #b45309); font-weight: 600; }
.cmv-foot { margin: 16px 2px 0; font-size: 12.5px; color: var(--muted); }
.cmv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmv-dim { color: inherit; opacity: .68; font-weight: 500; }
.cmv-est { display: inline-block; margin-left: 2px; padding: 0 3px; border-radius: 3px; font: 600 .78em/1.25 var(--q-sans, system-ui); letter-spacing: .02em;
  color: inherit; opacity: .72; border: 1px dotted currentColor; vertical-align: .08em; }

/* ---------- the cards: trading-card proportions 2.5 : 3.5 ---------- */
.cmv-cards { list-style: none; margin: 0; padding: 4px 2px 6px; display: grid; gap: 22px 18px;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
@media (max-width: 520px) { .cmv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }
.cmv-slot { min-width: 0; container-type: inline-size; container-name: cmvcard; }
.cmv-card { position: relative; aspect-ratio: 2.5 / 3.5; perspective: 1000px; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; }
.cmv-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s ease-out; }
.cmv-card.is-hover .cmv-tilt { transition: transform .08s linear; }
.cmv-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(0deg); }
.cmv-card.is-back .cmv-inner { transform: rotateY(180deg); }
.cmv-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; overflow: hidden;
  border: 7px solid var(--cmv-edge); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.cmv-back { transform: rotateY(180deg); }
/* the inner thin frame line, printed a few px inside the thick border */
.cmv-face::before { content: ''; position: absolute; inset: 5px; border: 1.5px solid var(--cmv-line); border-radius: 8px; pointer-events: none; z-index: 4; opacity: .95; }
/* sheen (desktop hover only) */
.cmv-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(120% 70% at var(--mx) var(--my), rgba(255,255,255,.34), rgba(255,255,255,.08) 38%, transparent 62%),
              linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 46%, transparent 60%);
  mix-blend-mode: soft-light; }
.cmv-card.is-hover .cmv-face::after { opacity: 1; }
.cmv-shadow { position: absolute; left: 7%; right: 7%; bottom: -2px; height: 18%; border-radius: 50%; background: var(--cmv-shadow); filter: blur(12px);
  opacity: .55; transform: translateY(6px); transition: transform .35s ease, opacity .35s ease; z-index: 0; pointer-events: none; }
.cmv-card.is-hover .cmv-shadow { opacity: .75; transform: translate(calc((var(--mx) - 50%) * -.12), 12px) scale(1.04); }
.cmv-tilt { z-index: 1; }

/* flip: rotateY with a lift (translateZ + scale 1.03 mid-flip), moving shadow, ease-in-out ~0.6s */
@keyframes cmvToBack { 0% { transform: rotateY(0deg) translateZ(0) scale(1); } 50% { transform: rotateY(90deg) translateZ(36px) scale(1.03); } 100% { transform: rotateY(180deg) translateZ(0) scale(1); } }
@keyframes cmvToFront { 0% { transform: rotateY(180deg) translateZ(0) scale(1); } 50% { transform: rotateY(90deg) translateZ(36px) scale(1.03); } 100% { transform: rotateY(0deg) translateZ(0) scale(1); } }
@keyframes cmvShadowA { 0% { transform: translate(0, 6px) scale(1); opacity: .55; } 50% { transform: translate(-14%, 22px) scale(.72, .9); opacity: .32; filter: blur(18px); } 100% { transform: translate(0, 6px) scale(1); opacity: .55; } }
@keyframes cmvShadowB { 0% { transform: translate(0, 6px) scale(1); opacity: .55; } 50% { transform: translate(14%, 22px) scale(.72, .9); opacity: .32; filter: blur(18px); } 100% { transform: translate(0, 6px) scale(1); opacity: .55; } }
.cmv-card.anim-to-back .cmv-inner { animation: cmvToBack .6s cubic-bezier(.45,.05,.35,1) both; }
.cmv-card.anim-to-front .cmv-inner { animation: cmvToFront .6s cubic-bezier(.45,.05,.35,1) both; }
.cmv-card.anim-to-back .cmv-shadow { animation: cmvShadowA .6s ease-in-out; }
.cmv-card.anim-to-front .cmv-shadow { animation: cmvShadowB .6s ease-in-out; }

.cmv-hit { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 8px; }
.cmv-hit:focus-visible { outline: 3px solid var(--cmv-line); outline-offset: -10px; }
.cmv-frame { position: absolute; inset: 0; display: flex; flex-direction: column; pointer-events: none; }

/* ---- FRONT ---- */
.cmv-front { background: var(--cmv-edge); }
.cmv-photo { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(90% 70% at 30% 18%, rgba(255,255,255,.20), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 2px, transparent 2px 7px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, var(--cmv-field-a), var(--cmv-field-b)); }
.cmv-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(0,0,0,.35), transparent); }
.cmv-ini { position: relative; z-index: 1; margin-top: -10%; font: 700 clamp(46px, 34cqi, 84px)/1 var(--q-serif, "Playfair Display", Georgia, serif); letter-spacing: .02em;
  color: var(--cmv-ini); text-shadow: 0 2px 0 rgba(0,0,0,.18), 0 10px 26px rgba(0,0,0,.35); }
/* Nov 3 2026: scoped to the card face. Unscoped, it also hit the "Cabarrus interpreters" panel (same class), nudging it 13px left/12px down and stretching its letter spacing. */
.cmv-face .cmv-team { position: absolute; top: 12px; right: 13px; z-index: 2; font: 700 9.5px/1 var(--cmv-cond); letter-spacing: .22em; color: rgba(255,255,255,.86); font-stretch: condensed; }
.cmv-no { position: absolute; top: 26px; right: 13px; z-index: 2; font: 800 15px/1 var(--cmv-mono); color: var(--cmv-line); font-variant-numeric: tabular-nums; }
/* diamond team badge with the status dot */
.cmv-badge { position: absolute; top: 10px; left: 10px; z-index: 2; width: 40px; height: 40px; }
.cmv-dia { position: absolute; inset: 5px; transform: rotate(45deg); background: linear-gradient(135deg, #fff6, transparent 55%), var(--cmv-dia); border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); display: grid; place-items: center; border-radius: 3px; }
.cmv-dia b { transform: rotate(-45deg); font: 800 8.5px/1 var(--cmv-cond); letter-spacing: .08em; color: var(--cmv-dia-ink); }
.cmv-badge .cmv-dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border: 2px solid #fff; }
.cmv-badge .cmv-dot { box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.st-off .cmv-badge .cmv-dot, .st-none .cmv-badge .cmv-dot { background: #D9DCE3; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
/* angled name ribbon */
.cmv-banner { position: relative; z-index: 2; margin: -22px -10px 0; padding: 8px 18px 7px; transform: skewY(-5deg); transform-origin: left;
  background: linear-gradient(90deg, var(--cmv-ribbon-a), var(--cmv-ribbon-b)); border-top: 2px solid var(--cmv-line); border-bottom: 2px solid var(--cmv-line);
  box-shadow: 0 4px 10px rgba(0,0,0,.28); }
.cmv-name { display: block; transform: skewY(5deg); font: 700 clamp(14px, 9.4cqi, 19px)/1.05 var(--cmv-cond); font-stretch: condensed; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cmv-ribbon-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.cmv-pos { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px 6px; background: var(--cmv-edge); }
.cmv-tag { padding: 3px 7px; border-radius: 3px; font: 700 9.5px/1 var(--cmv-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--cmv-dia-ink); background: var(--cmv-line); }
.cmv-st { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font: 600 11.5px/1.1 var(--q-sans, system-ui); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmv-since { font-weight: 500; opacity: .8; }
.cmv-strip { display: grid; grid-template-columns: 1fr 1.6fr; margin: 0 8px 8px; border-radius: 4px; overflow: hidden; background: var(--cmv-strip); color: var(--cmv-strip-ink); }
.cmv-strip > div { padding: 6px 8px 5px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmv-strip > div + div { border-left: 1px solid var(--cmv-rule); }
.cmv-strip b { font: 800 15px/1.05 var(--cmv-mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmv-strip span { font: 700 8.5px/1 var(--q-sans, system-ui); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.cmv-histbtn { position: absolute; z-index: 6; right: 12px; top: 44px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.75); background: rgba(0,0,0,.28); color: #fff; cursor: pointer; backdrop-filter: blur(2px); }
.cmv-histbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cmv-histbtn:hover { background: rgba(0,0,0,.45); }
.cmv-histbtn:focus-visible, .cmv-histlink:focus-visible { outline: 3px solid var(--cmv-line); outline-offset: 2px; }
.st-off .cmv-photo, .st-none .cmv-photo { filter: saturate(.55) brightness(.92); }

/* ---- BACK: cardstock ---- */
.cmv-back { color: var(--cmv-stock-ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--cmv-stock), var(--cmv-stock-2)); }
.cmv-back .cmv-frame { padding: 9px 9px 8px; }
.cmv-bhead { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 1px 6px; padding: 7px 9px 6px; border-radius: 3px 3px 0 0; background: var(--cmv-band); color: var(--cmv-band-ink); }
.cmv-bname { font: 700 13px/1.1 var(--cmv-cond); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmv-bno { font: 800 12px/1.1 var(--cmv-mono); color: var(--cmv-line); }
.cmv-bhead small { grid-column: 1 / -1; font: 600 9px/1.2 var(--q-sans, system-ui); letter-spacing: .1em; text-transform: uppercase; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmv-tbl { width: 100%; margin-top: 6px; border-collapse: collapse; font-family: var(--cmv-mono); font-variant-numeric: tabular-nums; font-size: 11px; table-layout: fixed; }
.cmv-tbl th, .cmv-tbl td { padding: 5px 3px; border-bottom: 1px solid var(--cmv-rule); text-align: right; vertical-align: top; line-height: 1.2; }
.cmv-tbl thead th { padding-top: 2px; font: 800 9px/1 var(--cmv-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cmv-stock-muted); border-bottom: 1.5px solid var(--cmv-stock-ink); }
.cmv-tbl tbody th { text-align: left; font: 800 9px/1.25 var(--cmv-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cmv-stock-muted); width: 30%; }
.cmv-tbl td { font-weight: 700; color: var(--cmv-stock-ink); }
.cmv-tbl tr:last-child th, .cmv-tbl tr:last-child td { border-bottom: 1.5px solid var(--cmv-stock-ink); }
.cmv-vri { margin: 6px 2px 0; font: 600 9.5px/1.3 var(--q-sans, system-ui); color: var(--cmv-stock-muted); }
.cmv-bfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 500 9px/1.2 var(--q-sans, system-ui); color: var(--cmv-stock-muted); }
.cmv-histlink { pointer-events: auto; position: relative; z-index: 6; padding: 6px 10px; border-radius: 999px; border: 0; cursor: pointer; font: 700 11.5px/1 var(--q-sans, system-ui);
  color: var(--cmv-band-ink); background: var(--cmv-band); box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.cmv-histlink:hover { filter: brightness(1.12); }
.cmv-histbtn { pointer-events: auto; }
/* narrow cards (phones): stack each stat row so exact "X h Y min" values never squeeze */
@container cmvcard (max-width: 205px) {
  .cmv-tbl thead { display: none; }
  .cmv-tbl, .cmv-tbl tbody { display: block; }
  .cmv-tbl tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--cmv-rule); padding: 3px 0 2px; }
  .cmv-tbl tr:last-child { border-bottom: 1.5px solid var(--cmv-stock-ink); }
  .cmv-tbl tbody th { grid-column: 1 / -1; width: auto; padding: 0 2px 1px; border: 0; font-size: 8.5px; }
  .cmv-tbl td { border: 0; padding: 0 2px; font-size: 10.5px; text-align: left; }
  .cmv-tbl td + td { text-align: right; }
  .cmv-tbl tr:first-child::before { content: none; }
  .cmv-tbl tbody tr:first-child th::after { content: '  · today | week'; font-weight: 600; letter-spacing: .04em; text-transform: none; opacity: .8; }
  .cmv-tbl tr:last-child th, .cmv-tbl tr:last-child td { border: 0; }
  .cmv-strip b { font-size: 13px; }
  .cmv-name { font-size: 14px; }
  .cmv-st { font-size: 10.5px; }
  .cmv-since { display: none; }
  .cmv-bfoot .cmv-dim, .cmv-vri { display: none; }
  .cmv-bhead small { font-size: 8px; }
  .cmv-histlink { padding: 5px 8px; font-size: 10.5px; }
}

/* desktop only: hover lift */
@media (hover: hover) and (pointer: fine) {
  .cmv-card.is-hover .cmv-tilt { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(6px); }
}
@media not ((hover: hover) and (pointer: fine)) {
  .cmv-face::after { display: none; }
}
/* reduced motion: no 3D flip, a calm crossfade */
@media (prefers-reduced-motion: reduce) {
  .cmv-tilt, .cmv-card.is-hover .cmv-tilt { transform: none !important; transition: none; }
  .cmv-inner, .cmv-card.is-back .cmv-inner { transform: none !important; animation: none !important; }
  .cmv-face { backface-visibility: visible; -webkit-backface-visibility: visible; transition: opacity .28s ease, visibility .28s; }
  .cmv-back { transform: none; opacity: 0; visibility: hidden; }
  .cmv-card.is-back .cmv-back { opacity: 1; visibility: visible; }
  .cmv-card.is-back .cmv-front { opacity: 0; visibility: hidden; }
  .cmv-face::after { display: none; }
  .cmv-shadow { animation: none !important; transition: none; }
}

/* ---------- day timeline panel ---------- */
html.cmv-lock, html.cmv-lock body { overflow: hidden; }
.cmv-sheet-wrap { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.cmv-scrim { position: absolute; inset: 0; background: rgba(10,6,14,.42); opacity: 0; transition: opacity .25s ease; }
.cmv-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 28px;
  background: var(--card, #fff); color: var(--fg); box-shadow: -18px 0 48px rgba(0,0,0,.28); transform: translateX(104%); transition: transform .32s cubic-bezier(.2,.8,.2,1); outline: none;
  border-left: 6px solid var(--cmv-edge); }
html:not([data-theme="maroon"]):not([data-theme="enterprise"]) .cmv-sheet { background: #17112A; }
.cmv-sheet-wrap.open { pointer-events: auto; }
.cmv-sheet-wrap.open .cmv-scrim { opacity: 1; }
.cmv-sheet-wrap.open .cmv-sheet { transform: none; }
@media (max-width: 640px) { .cmv-sheet { width: 100vw; padding: 16px 14px 28px; border-left: 0; border-top: 6px solid var(--cmv-edge); } }
@media (prefers-reduced-motion: reduce) { .cmv-sheet { transition: none; } .cmv-scrim { transition: none; } }
.cmv-shead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cmv-shead > div { flex: 1; min-width: 0; }
.cmv-sini { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; border: 3px solid var(--cmv-edge); box-shadow: inset 0 0 0 1.5px var(--cmv-line);
  font: 700 18px/1 var(--q-serif, Georgia, serif); color: var(--cmv-ini); background: linear-gradient(160deg, var(--cmv-field-a), var(--cmv-field-b)); }
.cmv-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); font-size: 24px; line-height: 1; cursor: pointer; }
.cmv-dpick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmv-dbtn, .cmv-dtoday { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-raised, transparent); color: var(--fg); font: 700 16px/1 var(--q-sans, system-ui); cursor: pointer; }
.cmv-dtoday { font-size: 14px; }
.cmv-dbtn[disabled] { opacity: .4; cursor: default; }
.cmv-dlabel { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font: 600 15px/1 var(--q-sans, system-ui); }
.cmv-dlabel input { border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 14px; color-scheme: light dark; max-width: 140px; }
.cmv-days { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0 2px; padding-bottom: 4px; scrollbar-width: thin; }
.cmv-day { flex: none; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 12.5px/1 var(--q-sans, system-ui); cursor: pointer; }
.cmv-day.on { background: var(--cmv-edge); border-color: var(--cmv-edge); color: #fff; }
.cmv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 16px 0 10px; }
.cmv-tiles > div { padding: 10px 10px 9px; border-radius: 10px; background: var(--surface-raised, rgba(255,255,255,.05)); border: 1px solid var(--line); }
.cmv-tiles > div:first-child { grid-column: 1 / -1; }
.cmv-tiles dt { font: 700 10.5px/1 var(--q-sans, system-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cmv-tiles dd { margin: 6px 0 0; font: 700 17px/1.15 var(--q-sans, system-ui); font-variant-numeric: tabular-nums; }
.cmv-note, .cmv-legend { margin: 8px 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cmv-pill { display: inline-block; padding: 1px 6px; border-radius: 999px; font: 600 11px/1.4 var(--q-sans, system-ui); background: var(--surface-raised, rgba(255,255,255,.08)); border: 1px solid var(--line); color: var(--muted); }
.cmv-dstrip { margin: 14px 0 6px; }
.cmv-dbar { position: relative; height: 22px; border-radius: 6px; background: var(--surface-raised, rgba(255,255,255,.06)); border: 1px solid var(--line); overflow: hidden; }
.cmv-blk { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: var(--cmv-edge-2); }
.cmv-blk.k-vri { background: repeating-linear-gradient(135deg, var(--cmv-edge-2) 0 4px, transparent 4px 7px); box-shadow: inset 0 0 0 1px var(--cmv-edge-2); }
.cmv-blk.k-admin { background: var(--cmv-line); }
.cmv-blk.k-gap { top: 9px; bottom: 9px; background: repeating-linear-gradient(90deg, var(--muted) 0 3px, transparent 3px 6px); opacity: .55; }
.cmv-blk.is-est { opacity: .55; outline: 1px dashed var(--fg); outline-offset: -1px; }
.cmv-ticks { position: relative; height: 16px; }
.cmv-tick { position: absolute; top: 2px; transform: translateX(-50%); font: 600 10.5px/1 var(--q-sans, system-ui); color: var(--muted); white-space: nowrap; }
.cmv-dends { display: flex; justify-content: space-between; font: 600 12px/1 var(--q-sans, system-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.cmv-tl { list-style: none; margin: 14px 0 6px; padding: 0; position: relative; }
.cmv-tl::before { content: ''; position: absolute; left: 82px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.cmv-ti { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 0 22px; padding: 8px 0; font-variant-numeric: tabular-nums; }
.cmv-ti::before { content: ''; position: absolute; left: 77px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--card, #fff); border: 2px solid var(--muted); box-sizing: border-box; }
.cmv-tt { font: 700 13.5px/1.3 var(--q-sans, system-ui); text-align: right; white-space: nowrap; }
.cmv-td { font-size: 14.5px; line-height: 1.35; min-width: 0; }
.cmv-td small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.ti-case .cmv-td { padding: 8px 10px; border-radius: 8px; background: var(--surface-raised, rgba(255,255,255,.05)); border: 1px solid var(--line); border-left: 4px solid var(--cmv-edge-2); }
.ti-case::before { border-color: var(--cmv-edge-2); background: var(--cmv-edge-2); }
.ti-case.k-vri .cmv-td { border-left-style: dashed; }
.ti-case.k-admin .cmv-td { border-left-color: var(--cmv-line); }
.ti-gap { padding: 2px 0; }
.ti-gap::before { width: 8px; height: 8px; left: 79px; top: 8px; border-style: dotted; }
.ti-gap .cmv-tt { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.ti-gap .cmv-td { font-size: 13.5px; color: var(--muted); }
.ti-shift-start::before, .ti-shift-end::before { width: 16px; height: 16px; left: 75px; top: 10px; border-radius: 4px; transform: rotate(45deg); border-color: var(--cmv-line); background: var(--cmv-edge); }
.ti-shift-start .cmv-td, .ti-shift-end .cmv-td { font-weight: 700; }
.cmv-ti .cmv-td .cmv-dot { margin-right: 7px; vertical-align: 1px; }
.ti-status .cmv-td small, .ti-shift-start .cmv-td small, .ti-shift-end .cmv-td small { display: inline; margin-left: 4px; }
.cmv-more { margin: 16px 0 0; }
.cmv-more a { font-weight: 700; color: var(--accent, inherit); }
@media (max-width: 640px) {
  .cmv-tl::before { left: 66px; }
  .cmv-ti { grid-template-columns: 58px 1fr; gap: 0 18px; }
  .cmv-ti::before { left: 61px; }
  .ti-gap::before { left: 63px; }
  .ti-shift-start::before, .ti-shift-end::before { left: 59px; }
  .cmv-tt { font-size: 12.5px; }
}

/* fit pass (preview tests): exact "X h Y min" never truncates; quiet est. marks inside the stat table */
.cmv-strip { grid-template-columns: minmax(0, .72fr) minmax(0, 2fr); }
.cmv-strip > div { padding: 6px 7px 5px; }
.cmv-strip b { font-size: clamp(11.5px, 7.4cqi, 15px); letter-spacing: -.02em; overflow: visible; text-overflow: clip; }
.cmv-tbl td { white-space: nowrap; letter-spacing: -.02em; }
.cmv-tbl .cmv-est { margin-left: 1px; padding: 0 2px; border: 0; border-radius: 2px; font: 700 7px/1.2 var(--q-sans, system-ui); letter-spacing: .02em;
  vertical-align: super; background: rgba(0,0,0,.08); color: var(--cmv-stock-muted); opacity: 1; }
.cmv-tbl .cmv-dim { font-size: .85em; }
@container cmvcard (max-width: 230px) {
  .cmv-tbl thead { display: none; }
  .cmv-tbl, .cmv-tbl tbody { display: block; }
  .cmv-tbl tr { display: grid; grid-template-columns: 1fr auto; column-gap: 6px; border-bottom: 1px solid var(--cmv-rule); padding: 3px 0 2px; }
  .cmv-tbl tr:last-child { border-bottom: 1.5px solid var(--cmv-stock-ink); }
  .cmv-tbl tbody th { grid-column: 1 / -1; width: auto; padding: 0 2px 1px; border: 0; font-size: 8px; }
  .cmv-tbl td { border: 0; padding: 0 2px; font-size: clamp(9px, 5.4cqi, 11px); text-align: left; }
  .cmv-tbl td + td { text-align: right; opacity: .8; }
  .cmv-tbl tbody tr:first-child th::after { content: '  · today | week'; font-weight: 600; letter-spacing: .04em; text-transform: none; opacity: .8; }
  .cmv-tbl tr:last-child th, .cmv-tbl tr:last-child td { border: 0; }
  .cmv-back .cmv-frame { padding: 8px 8px 7px; }
  .cmv-bhead { padding: 6px 8px 5px; }
  .cmv-tbl { margin-top: 4px; }
  .cmv-vri, .cmv-bfoot .cmv-dim { display: none; }
  .cmv-bfoot { justify-content: center; }
  .cmv-histlink { padding: 5px 9px; font-size: 10.5px; }
}
@container cmvcard (max-width: 230px) {
  .cmv-tbl td { font-size: clamp(8.5px, 4.85cqi, 10.5px); letter-spacing: -.035em; }
  .cmv-tbl .cmv-est { font-size: 6.5px; padding: 0 1px; margin-left: 0; letter-spacing: 0; }
}
/* wide back (e.g. a flipped phone card at 300px): est. sits under its value so it never runs into the next column */
@container cmvcard (min-width: 231px) {
  .cmv-tbl td .cmv-est { display: block; width: max-content; margin: 1px 0 0 auto; vertical-align: baseline; font-size: 7.5px; }
}
/* the timeline panel is always opaque (theme --card can be translucent) */
html[data-theme="maroon"] .cmv-sheet { background: #FBF8F3; }
html[data-theme="enterprise"] .cmv-sheet { background: #FFFFFF; }
html:not([data-theme="maroon"]):not([data-theme="enterprise"]) .cmv-sheet { background: #150D26; }
html[data-theme="maroon"] .cmv-ti::before { background: #FBF8F3; }
html[data-theme="enterprise"] .cmv-ti::before { background: #FFFFFF; }
html:not([data-theme="maroon"]):not([data-theme="enterprise"]) .cmv-ti::before { background: #150D26; }
.ti-case::before { background: var(--cmv-edge-2) !important; }
.ti-shift-start::before, .ti-shift-end::before { background: var(--cmv-edge) !important; }
/* phones: two cards per row for the rundown; a flipped card takes the full row so its back stays readable */
@media (max-width: 520px) {
  .cmv-slot:has(> .cmv-card.is-back) { grid-column: 1 / -1; }
  .cmv-slot:has(> .cmv-card.is-back) .cmv-card { max-width: 300px; margin: 0 auto; }
}
/* readable ink inside the timeline panel, per theme */
html[data-theme="maroon"] .cmv-sheet { --fg: #2B1A1F; --muted: #6B5560; --line: #E2D3C3; --surface-raised: #F5EDE3; }
html[data-theme="enterprise"] .cmv-sheet { --fg: #14202E; --muted: #4A5A6E; --line: #D3DCE4; --surface-raised: #F2F6F9; }
html:not([data-theme="maroon"]):not([data-theme="enterprise"]) .cmv-sheet { --fg: #F3EEFA; --muted: #B9A8D0; --line: rgba(255,255,255,.14); --surface-raised: rgba(255,255,255,.05); }
.cmv-sheet { color: var(--fg); }
.cmv-tt .cmv-est { font-size: 9px; padding: 0 2px; }
.cmv-tl::before { left: 98px; }
.cmv-ti { grid-template-columns: 88px 1fr; }
.cmv-ti::before { left: 93px; }
.ti-gap::before { left: 95px; }
.ti-shift-start::before, .ti-shift-end::before { left: 91px; }
@media (max-width: 640px) {
  .cmv-tl::before { left: 90px; }
  .cmv-ti { grid-template-columns: 80px 1fr; gap: 0 20px; }
  .cmv-ti::before { left: 85px; }
  .ti-gap::before { left: 87px; }
  .ti-shift-start::before, .ti-shift-end::before { left: 83px; }
}
@container cmvcard (max-width: 230px) { .cmv-since { display: none; } }
@media (max-width: 420px) { .cmv-dpick { gap: 6px; flex-wrap: nowrap; } .cmv-dlabel { padding: 0 8px; min-width: 0; flex: 1; } .cmv-dlabel input { max-width: 112px; font-size: 13px; } .cmv-dlabel > span:first-child { display: none; } .cmv-dtoday { padding: 0 9px; } }

/* Regular weekly shift on the card back + Day timeline (PREVIEW Oct 30 2026, Jeremy t1884u) */
.cmv-sched { margin: 6px 2px 0; font: 600 9.5px/1.35 var(--q-sans, system-ui); color: var(--cmv-stock-ink); }
.cmv-sched .cmv-swk { display: inline-block; margin-right: 6px; white-space: nowrap; }
.cmv-sched .cmv-swk b { font-weight: 800; letter-spacing: .02em; }
.cmv-sched .cmv-soff { display: block; font-weight: 800; color: var(--cmv-stock-muted); }
.cmv-tiles dd small { display: block; margin-top: 5px; font: 600 12.5px/1.35 var(--q-sans, system-ui); color: var(--muted); }
.cmv-tiles dd .cmv-swk { display: inline-block; margin-right: 10px; white-space: nowrap; }
.cmv-tiles dd .cmv-swk b { color: var(--fg); font-weight: 700; }
@media (max-width: 600px) { .cmv-sched { font-size: 9px; margin-top: 4px; } }

/* ---- Manager notes (PREVIEW Nov 1 2026, Jeremy t1905u) ---- */
/* card face: pencil badge under the timeline button; count bubble when there are notes */
.cmv-notebtn { position: absolute; z-index: 6; right: 12px; top: 84px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.75); background: rgba(0,0,0,.28); color: #fff; cursor: pointer; backdrop-filter: blur(2px); pointer-events: auto; }
.cmv-notebtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmv-notebtn:hover { background: rgba(0,0,0,.45); }
.cmv-notebtn:focus-visible, .cmv-tab:focus-visible, .cmv-nsave:focus-visible, .cmv-nlink:focus-visible, .cmv-nghost:focus-visible { outline: 3px solid var(--cmv-line); outline-offset: 2px; }
.cmv-ncount { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  font: 800 10.5px/1 var(--q-sans, system-ui); font-variant-numeric: tabular-nums; color: var(--cmv-band-ink); background: var(--cmv-band); border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.cmv-noteslink { background: transparent; color: var(--cmv-stock-ink); box-shadow: inset 0 0 0 1.5px var(--cmv-band); }
@container cmvcard (max-width: 205px) {
  .cmv-notebtn { top: 80px; width: 30px; height: 30px; }
  .cmv-bfoot { gap: 4px; }
  .cmv-noteslink { padding: 5px 7px; }
}

/* sheet: tabs */
.cmv-tabs { display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; border-radius: 12px; background: var(--surface-raised, rgba(255,255,255,.05)); border: 1px solid var(--line); }
.cmv-tab { flex: 1; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 700 14px/1 var(--q-sans, system-ui); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.cmv-tab.on { background: var(--cmv-band); color: var(--cmv-band-ink); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.cmv-tabn { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font: 800 11.5px/1 var(--q-sans, system-ui);
  font-variant-numeric: tabular-nums; background: rgba(0,0,0,.08); color: inherit; }
.cmv-tab.on .cmv-tabn { background: rgba(255,255,255,.22); }
html:not([data-theme="maroon"]):not([data-theme="enterprise"]) .cmv-tabn { background: rgba(255,255,255,.12); }

/* sheet: compose + list */
.cmv-npane { display: grid; gap: 14px; }
.cmv-nbox { display: grid; gap: 6px; }
.cmv-ncompose { padding: 14px; border-radius: 12px; background: var(--surface-raised, rgba(255,255,255,.05)); border: 1px solid var(--line); }
.cmv-nlabel { font: 700 13px/1.2 var(--q-sans, system-ui); color: var(--fg); }
.cmv-nbox textarea { width: 100%; min-height: 84px; max-height: 300px; resize: vertical; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--card, #fff); color: var(--fg); font: 400 15px/1.45 var(--q-sans, system-ui); }
html[data-theme="maroon"] .cmv-nbox textarea { background: #FFFFFF; }
html:not([data-theme="maroon"]):not([data-theme="enterprise"]) .cmv-nbox textarea { background: rgba(0,0,0,.25); }
.cmv-nbox textarea:focus { outline: none; border-color: var(--cmv-edge); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cmv-edge) 22%, transparent); }
.cmv-nbox textarea::placeholder { color: var(--muted); opacity: .85; }
.cmv-nhint { margin: 0; font: 600 12.5px/1.35 var(--q-sans, system-ui); color: var(--muted); }
.cmv-nbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 2px; }
.cmv-nsave { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--cmv-band); color: var(--cmv-band-ink); font: 700 14px/1 var(--q-sans, system-ui); cursor: pointer; }
.cmv-nsave:disabled { opacity: .45; cursor: default; }
.cmv-nghost { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 14px/1 var(--q-sans, system-ui); cursor: pointer; }
.cmv-ncnt { font: 600 12px/1 var(--q-sans, system-ui); font-variant-numeric: tabular-nums; color: var(--muted); }
.cmv-ncnt.is-near { color: var(--st-wait, #b45309); }
.cmv-nby { margin-left: auto; font: 500 12px/1.2 var(--q-sans, system-ui); color: var(--muted); }
.cmv-nempty { margin: 4px 0; color: var(--muted); font-size: 14px; }
.cmv-nh3 { margin: 4px 0 0; font: 700 13px/1 var(--q-sans, system-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); }
.cmv-nh3 span { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.cmv-nlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cmv-ni { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid var(--cmv-edge); background: var(--surface-raised, rgba(255,255,255,.04)); }
.cmv-ni.is-new { animation: cmvNoteIn .9s ease-out; }
@keyframes cmvNoteIn { from { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cmv-edge) 35%, transparent); } to { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .cmv-ni.is-new { animation: none; } }
.cmv-nmeta { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font: 600 12.5px/1.3 var(--q-sans, system-ui); color: var(--muted); }
.cmv-nwho { color: var(--fg); font-weight: 700; }
.cmv-nedited { font-style: italic; font-weight: 500; }
.cmv-ntext { margin: 6px 0 4px; font: 400 15px/1.5 var(--q-sans, system-ui); color: var(--fg); white-space: pre-wrap; overflow-wrap: anywhere; }
.cmv-nacts { display: flex; gap: 6px; }
.cmv-nlink { min-height: 36px; padding: 0 10px; margin-left: -10px; border: 0; border-radius: 8px; background: transparent; color: var(--fg); font: 700 13px/1 var(--q-sans, system-ui);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); cursor: pointer; }
.cmv-nlink + .cmv-nlink { margin-left: 0; }
.cmv-nlink:hover { background: var(--surface-raised, rgba(255,255,255,.06)); text-decoration-color: currentColor; }
.cmv-ndel { color: var(--st-busy, #B91C1C); }
html:not([data-theme="maroon"]):not([data-theme="enterprise"]) .cmv-ndel { color: #FCA5A5; }
.cmv-ni.is-editing { border-left-color: var(--cmv-line); }
.cmv-ni.is-editing .cmv-nbox { margin-top: 8px; }
@media (max-width: 640px) {
  .cmv-nby { margin-left: 0; flex-basis: 100%; }
  .cmv-ncompose { padding: 12px; }
  .cmv-nbox textarea { font-size: 16px; } /* no iOS zoom on focus */
}
.cmv-bfoot .cmv-histlink { white-space: nowrap; flex: none; }
.cmv-bfoot .cmv-dim { margin-left: auto; text-align: right; }
.cmv-bfoot { justify-content: flex-start; }
@container cmvcard (max-width: 340px) { .cmv-bfoot .cmv-dim { display: none; } .cmv-bfoot { justify-content: center; } }
/* theme form styles (Classic rounds every field into a pill): keep the note box a box */
.cmv-sheet .cmv-nbox textarea { border-radius: 10px !important; min-height: 84px; }

/* Nov 3 2026 (Jeremy t1975u) · flip fix: the front was showing through the back, mirrored.
   The 3D flip hid the far face only with backface-visibility. Desktop Chrome (GPU) and Safari skip that rule for
   pieces painted on their own layer: the frosted (backdrop-filter) clock / pencil / round buttons, the blended sheen,
   the dimmed photo, the slanted name banner. So the flipped card showed the back AND a mirrored ghost of the front.
   Fix: the hidden face is truly hidden (visibility), swapped exactly at the 90° edge-on point of the flip,
   and nothing inside a card uses backdrop-filter any more. */
.cmv-face { isolation: isolate; }
.cmv-face .cmv-histbtn, .cmv-face .cmv-notebtn, .cmv-face .mr-cardpill { -webkit-backdrop-filter: none; backdrop-filter: none; }
.cmv-face .cmv-histbtn, .cmv-face .cmv-notebtn { background: rgba(0,0,0,.42); }
.cmv-face .cmv-histbtn:hover, .cmv-face .cmv-notebtn:hover { background: rgba(0,0,0,.58); }
.cmv-face .mr-cardpill:not(.is-done) { background: rgba(0,0,0,.46); }
.cmv-card.is-back .cmv-front, .cmv-card:not(.is-back) .cmv-back { visibility: hidden; }
/* during the 0.6s turn: the outgoing face stays until the card is edge-on (50%), then the incoming face takes over */
@keyframes cmvFaceOut { 0% { visibility: visible; } 50%, 100% { visibility: hidden; } }
@keyframes cmvFaceIn { 0%, 50% { visibility: hidden; } 100% { visibility: visible; } }
.cmv-card.anim-to-back .cmv-front, .cmv-card.anim-to-front .cmv-back { animation: cmvFaceOut .6s linear both; }
.cmv-card.anim-to-back .cmv-back, .cmv-card.anim-to-front .cmv-front { animation: cmvFaceIn .6s linear both; }
@media (prefers-reduced-motion: reduce) {
  .cmv-card.anim-to-back .cmv-face, .cmv-card.anim-to-front .cmv-face { animation: none !important; }
}
