/* GraphixRx interactive composition theater, version 2.
   Overrides earlier compressed mockup styles without affecting MergeMedic document mode.
   Conceptual illustration using fictional Salesforce data. */

/* Actual wordmarks, not glyphs. Both official logos have dark lettering, so give them
   a clean light surface with room to render at a readable size. */
.mm-composition-chooser {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 28px 8px;
}
.mm-composition-chooser button {
  flex: 0 1 510px;
  min-width: 0;
  min-height: 106px;
  display: grid;
  grid-template-columns: 194px minmax(0,1fr);
  grid-template-rows: auto;
  align-items: center;
  column-gap: 18px;
  padding: 14px 19px;
  border-radius: 17px;
  overflow: hidden;
}
.mm-composition-chooser button > .mm-chooser-logo,
.mm-composition-chooser button > .mm-chooser-logo-graphix {
  grid-row: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 194px;
  height: 71px;
  min-width: 0;
  padding: 7px 10px;
  background: #f8fcff;
  border: 1px solid rgba(161,211,232,.8);
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(0,16,31,.14);
}
.mm-composition-chooser button .mm-chooser-logo img,
.mm-composition-chooser button .mm-chooser-logo-graphix img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 61px;
  display: block;
  object-fit: contain;
}
.mm-composition-chooser button > .mm-chooser-copy {
  grid-row: auto;
  min-width: 0;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  background: transparent;
  border: 0;
  padding: 0;
}
.mm-composition-chooser button strong {
  font-size: 18px;
  line-height: 1.16;
  letter-spacing: -.02em;
}
.mm-composition-chooser button small {
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Stop spending most of the horizontal real estate on the explanation cards. */
.mm-theater-scene.mm-graphix-scene {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  padding: 20px 30px 30px;
}
.mm-theater-scene.mm-graphix-scene[hidden] { display: none !important; }
.mm-graphix-scene .mm-graphix-center {
  width: 100%;
  max-width: none;
  margin: 0;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-direction: column;
  z-index: 2;
}
.mm-graphix-scene .mm-theater-scene-label {
  margin: 0 0 15px;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 10px;
}
.mm-graphix-scene .mm-theater-scene-label .mm-label-cross { margin-right: 6px; }
.gx-v2-board {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #477d9c;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(150deg, #102f4b 0%, #09243b 80%);
  box-shadow: 0 24px 58px rgba(0,9,25,.28), 0 0 0 5px rgba(107,191,222,.035);
  color: #e9f8fd;
}
.gx-v2-toolbar,
.gx-v2-board-foot {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 16px 24px;
  background: rgba(3,20,37,.57);
  color: #a9d6e8;
  letter-spacing: .115em;
  font-size: 10px;
  font-weight: 800;
}
.gx-v2-toolbar { border-bottom: 1px solid rgba(135,202,228,.17); }
.gx-v2-toolbar > span:first-child { display: flex; align-items: center; gap: 8px; }
.gx-v2-toolbar i { width: 8px; height: 8px; background: #84d8f1; border-radius: 50%; box-shadow: 0 0 0 5px rgba(132,216,241,.1); }
.gx-v2-board-foot { border-top: 1px solid rgba(135,202,228,.17); font-size: 9px; color: #8fbed5; }
.gx-v2-workspace {
  position: relative;
  padding: 29px 30px 25px;
  background-image: radial-gradient(circle at 48% 40%, rgba(40,110,151,.13), transparent 53%), linear-gradient(rgba(131,202,231,.025) 1px, transparent 1px),linear-gradient(90deg,rgba(131,202,231,.025) 1px,transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}
.gx-v2-root {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 500px);
  min-height: 108px;
  margin: 0 auto;
  padding: 20px 27px;
  border: 1px solid #69b5d5;
  border-radius: 16px;
  background: linear-gradient(115deg, #205c7c, #12405b);
  box-shadow: 0 14px 28px rgba(0, 15, 33, .2);
  text-align: center;
  transition: transform .4s, opacity .4s;
}
.gx-v2-root > span { font-size: 10px; font-weight: 800; letter-spacing: .15em; color: #b0e4f3; }
.gx-v2-root strong { display: block; font: 700 30px/1.2 'Space Grotesk',sans-serif; color: #fff; margin: 9px 0 5px; letter-spacing: -.028em; }
.gx-v2-root small { font-size: 12px; color: #cae6f1; }
.gx-v2-connections { width: min(78%, 860px); height: 64px; position: relative; margin: 0 auto; opacity: .95; }
.gx-v2-connections::before { content: ''; position: absolute; left: 50%; width: 2px; height: 34px; top: 0; background: #6cbdd7; }
.gx-v2-connections::after { content: ''; position: absolute; left: 16.66%; right: 16.66%; top: 32px; height: 2px; background: linear-gradient(90deg,transparent,#6cbdd7 12%,#6cbdd7 88%,transparent); }
.gx-v2-connections span { position: absolute; top: 32px; width: 2px; height: 31px; background: #6cbdd7; }
.gx-v2-connections span:nth-child(1) { left: 16.66%; }
.gx-v2-connections span:nth-child(2) { left: 50%; }
.gx-v2-connections span:nth-child(3) { left: 83.33%; }
.gx-v2-connections span::after { content: ''; position:absolute;bottom:0;left:-4px;width:10px;height:10px;border-radius:50%;background:#8ce3f2;box-shadow:0 0 0 5px rgba(140,227,242,.13); }
.gx-v2-story-columns {
  display: grid;
  grid-template-columns: .92fr 1.18fr 1.18fr;
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}
.gx-v2-lane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #335e7c;
  border-radius: 17px;
  background: rgba(9,34,56,.85);
  transition: opacity .45s, transform .5s, filter .45s;
}
.gx-v2-lane-label { display: grid; gap: 5px; padding: 0 1px 12px; border-bottom: 1px solid rgba(121,186,218,.18); }
.gx-v2-lane-label > span { color: #93cce4; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.gx-v2-lane-label > b { font: 700 18px/1.25 'Space Grotesk',sans-serif; color: #f0faff; }
.gx-v2-lane-label > em { font-size: 11px; font-style: normal; color: #a6d2e7; }
.gx-v2-lane-accounts { border-color: #3b8da2; background: linear-gradient(160deg,rgba(23,82,91,.35),rgba(10,42,63,.75)); }
.gx-v2-lane-cases { border-color: #9b6375; background: linear-gradient(155deg,rgba(70,43,58,.55),rgba(12,36,55,.8)); }
.gx-v2-meeting-card { display:flex;gap:13px;align-items:flex-start;border:1px solid #5790b0;border-radius:14px;padding:17px 14px;background:#1b4b6e; }
.gx-v2-meeting-card .gx-v2-meeting-date { flex:none;display:grid;justify-items:center;gap:2px;border-radius:10px;background:#d5eff9;color:#184866;padding:10px 11px;font:700 11px/1.15 'DM Sans',sans-serif; }
.gx-v2-meeting-date b { font-size:29px;line-height:1; }
.gx-v2-meeting-date small { text-align:center;font-size:10px;line-height:1.2; }
.gx-v2-meeting-card div { display:grid;gap:6px;min-width:0; }
.gx-v2-meeting-card div > small { font-size:9px;font-weight:800;letter-spacing:.1em;color:#9cd8ef; }
.gx-v2-meeting-card div > strong { font:700 18px/1.2 'Space Grotesk',sans-serif;color:#fff; }
.gx-v2-meeting-card div > span,.gx-v2-meeting-card p { margin:0; font-size:12px;line-height:1.55;color:#c5e1ee; }
.gx-v2-repeat-list { display:grid;gap:10px; }
.gx-v2-account-card { display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #3c94a3;border-radius:14px;background:linear-gradient(120deg,#19545c,#0e424e);padding:15px 16px;box-shadow:inset 3px 0 #6bcad2; }
.gx-v2-account-card div { display:grid;gap:5px;min-width:0; }
.gx-v2-account-card small { color:#a4dee7;font-size:9px;font-weight:800;letter-spacing:.1em; }
.gx-v2-account-card strong { color:#fff;font:700 17px/1.2 'Space Grotesk',sans-serif; }
.gx-v2-account-card span { color:#c4eced;font-size:12px; }
.gx-v2-account-card > b { flex:none;color:#effffc;font:700 16px/1.1 'Space Grotesk',sans-serif;white-space:nowrap; }
.gx-v2-case-card { border:1px solid #bd7480;border-radius:14px;padding:15px 17px;background:linear-gradient(125deg,#563440,#3e2b3d);box-shadow:inset 3px 0 #f19891; }
.gx-v2-case-status { display:flex;align-items:center;gap:6px;margin-bottom:9px;font-size:9px;font-weight:800;letter-spacing:.08em;color:#ffd0c4; }
.gx-v2-case-status span { display:inline-grid;place-items:center;border-radius:50%;width:15px;height:15px;background:#ef9d90;color:#3e2334;font-size:11px;font-weight:900; }
.gx-v2-case-card strong { display:block;color:#fff;font:700 17px/1.22 'Space Grotesk',sans-serif; }
.gx-v2-case-card p { margin:6px 0;color:#f1d6d7;font-size:12px;line-height:1.45; }
.gx-v2-case-card small {color:#e6b6c2;font-size:10px;}
.gx-v2-template-summary { margin-top:auto;font-size:11px;font-weight:700;color:#b9dee9;display:flex;gap:7px;align-items:center;line-height:1.4; }
.gx-v2-summary-dot {display:block;width:7px;height:7px;flex:none;background:#8fd3e7;border-radius:50%;}
.gx-v2-lane-cases .gx-v2-summary-dot{background:#f19b9b;}
.gx-v2-story-footer { display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;min-height:55px; }
.gx-v2-filter-state { font-size:11px;line-height:1.5;color:#bad9e6; }
.gx-v2-filter-state span {font-size:18px;color:#8dd7ec;margin-right:6px;vertical-align:middle;}
.gx-v2-ready-state {padding:11px 17px;border:1px solid #4c9fb4;border-radius:12px;background:rgba(21,83,104,.6);font-size:10px;font-weight:800;letter-spacing:.06em;color:#dcfcff;text-align:center; }
.gx-v2-ready-state > span {margin-right:7px;color:#99e8f7;}
.gx-v2-ready-state small {display:block;font-size:10px;color:#b9e3e9;letter-spacing:0;margin-top:5px;font-weight:600;}

/* Turn the four huge side panels into short secondary stage buttons. */
.gx-v2-step-strip { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px; }
.mm-graphix-scene .gx-v2-step-strip .mm-ingredient {
  min-width:0; min-height:128px; height:100%; padding:16px 17px;
  display:flex;flex-direction:column;justify-content:flex-start;
  border-radius:14px;
  background:rgba(23,62,91,.64);
}
.mm-graphix-scene .gx-v2-step-strip .mm-ingredient::after { display:none; }
.mm-graphix-scene .gx-v2-step-strip .mm-ingredient-head { margin-bottom:7px; }
.mm-graphix-scene .gx-v2-step-strip .mm-ingredient-number { width:29px;height:26px;font-size:10px; }
.mm-graphix-scene .gx-v2-step-strip .mm-ingredient-tag { font-size:9px; }
.mm-graphix-scene .gx-v2-step-strip .mm-ingredient strong { font-size:15px;line-height:1.28;margin:0 0 6px; }
.mm-graphix-scene .gx-v2-step-strip .mm-ingredient-description { font-size:11px;line-height:1.5; }
.mm-graphix-scene .gx-v2-step-strip .mm-ingredient.is-current { background:rgba(34,95,127,.84);border-color:#8bd3e8; }

/* Five-stage composition logic. No absolute text pill can obstruct the cards. */
.mm-theater[data-mode=graphix][data-stage="0"] .gx-v2-root {opacity:.25;transform:translateY(9px) scale(.97)}
.mm-theater[data-mode=graphix][data-stage="0"] .gx-v2-connections,
.mm-theater[data-mode=graphix][data-stage="1"] .gx-v2-connections {opacity:0;}
.mm-theater[data-mode=graphix][data-stage="0"] .gx-v2-lane,
.mm-theater[data-mode=graphix][data-stage="1"] .gx-v2-lane {opacity:0;transform:translateY(12px);pointer-events:none;}
.mm-theater[data-mode=graphix][data-stage="2"] .gx-v2-lane {opacity:.5;filter:grayscale(.65);}
.mm-theater[data-mode=graphix][data-stage="3"] .gx-v2-lane {opacity:.76;filter:grayscale(.32);}
.mm-theater[data-mode=graphix][data-stage="0"] .gx-v2-story-footer,
.mm-theater[data-mode=graphix][data-stage="1"] .gx-v2-story-footer,
.mm-theater[data-mode=graphix][data-stage="2"] .gx-v2-story-footer {opacity:0;}
.mm-theater[data-mode=graphix][data-stage="3"] .gx-v2-ready-state,
.mm-theater[data-mode=graphix][data-stage="4"] .gx-v2-ready-state {opacity:0;}
.mm-theater[data-mode=graphix][data-stage="3"] .gx-v2-filter-state,
.mm-theater[data-mode=graphix][data-stage="4"] .gx-v2-filter-state,
.mm-theater[data-mode=graphix][data-stage="5"] .gx-v2-filter-state {opacity:1;}
.mm-theater[data-mode=graphix][data-stage="5"] .gx-v2-ready-state {opacity:1;}
.gx-v2-connections,.gx-v2-story-footer { transition: opacity .4s; }
.gx-v2-ready-state,.gx-v2-filter-state { transition: opacity .4s; }

@media(max-width:1110px) {
  .mm-composition-chooser button {flex:1 1 420px;grid-template-columns:155px minmax(0,1fr);}
  .mm-composition-chooser button > .mm-chooser-logo,.mm-composition-chooser button > .mm-chooser-logo-graphix{width:155px;height:62px;}
  .mm-theater-scene.mm-graphix-scene{padding:18px 22px 26px;}
  .gx-v2-workspace{padding:24px 20px;}
  .gx-v2-story-columns{gap:10px;}
  .gx-v2-lane{padding:12px;}
  .gx-v2-lane-label > b{font-size:15px;}
  .gx-v2-account-card{align-items:flex-start;flex-direction:column;gap:7px;}
  .gx-v2-account-card strong,.gx-v2-case-card strong{font-size:15px;}
  .gx-v2-step-strip{grid-template-columns:repeat(2,minmax(0,1fr));}
  .mm-graphix-scene .gx-v2-step-strip .mm-ingredient{min-height:100px;}
}
@media(max-width:900px) {
  .mm-composition-chooser {display:grid;grid-template-columns:1fr;gap:10px;padding:17px 15px 6px;}
  .mm-composition-chooser button {width:100%;min-height:82px;grid-template-columns:160px minmax(0,1fr);gap:13px;padding:10px 12px;}
  .mm-composition-chooser button > .mm-chooser-logo,.mm-composition-chooser button > .mm-chooser-logo-graphix{width:160px;height:58px;padding:5px 8px;}
  .mm-composition-chooser button strong{font-size:15px;}
  .mm-composition-chooser button small{font-size:10px;}
  .gx-v2-story-columns{grid-template-columns:1fr 1fr;}
  .gx-v2-lane-meeting{grid-column:1/-1;}
  .gx-v2-lane-accounts,.gx-v2-lane-cases{grid-column:auto;}
  .gx-v2-meeting-card{align-items:center;}
  .gx-v2-template-summary{margin-top:9px;}
  .gx-v2-connections{display:none;}
  .gx-v2-root{margin-bottom:17px;}
  .gx-v2-toolbar,.gx-v2-board-foot{font-size:9px;gap:8px;padding:14px 16px;}
}
@media(max-width:520px) {
  .mm-composition-chooser button {grid-template-columns:115px minmax(0,1fr);gap:9px;min-height:76px;}
  .mm-composition-chooser button > .mm-chooser-logo,.mm-composition-chooser button > .mm-chooser-logo-graphix{width:115px;height:50px;}
  .mm-composition-chooser button strong{font-size:13px;}
  .mm-composition-chooser button small{font-size:9px;}
  .mm-theater-scene.mm-graphix-scene{padding:16px 11px 22px;gap:13px;}
  .gx-v2-workspace{padding:17px 12px;}
  .gx-v2-root{padding:13px 12px;min-height:87px;}
  .gx-v2-root strong{font-size:22px;margin:6px 0 4px;}
  .gx-v2-root > span{font-size:8px;}
  .gx-v2-root small{font-size:10px;}
  .gx-v2-story-columns{grid-template-columns:minmax(0,1fr);gap:11px;}
  .gx-v2-lane-meeting,.gx-v2-lane-accounts,.gx-v2-lane-cases{grid-column:1;}
  .gx-v2-lane{padding:11px;gap:9px;}
  .gx-v2-lane-label{padding-bottom:8px;}
  .gx-v2-lane-label > b{font-size:15px;}
  .gx-v2-account-card{align-items:center;flex-direction:row;gap:10px;padding:10px 11px;}
  .gx-v2-account-card strong,.gx-v2-case-card strong{font-size:14px;}
  .gx-v2-account-card > b{font-size:13px;}
  .gx-v2-case-card{padding:10px 12px;}
  .gx-v2-case-card p{font-size:11px;margin:4px 0;}
  .gx-v2-template-summary{font-size:10px;}
  .gx-v2-story-footer{flex-direction:column;align-items:stretch;}
  .gx-v2-filter-state{font-size:10px;}
  .gx-v2-board-foot{font-size:8px;flex-wrap:wrap;}
  .gx-v2-toolbar{font-size:8px;flex-wrap:wrap;}
  .gx-v2-step-strip{grid-template-columns:1fr 1fr;gap:7px;}
  .mm-graphix-scene .gx-v2-step-strip .mm-ingredient{padding:10px;min-height:114px;}
  .mm-graphix-scene .gx-v2-step-strip .mm-ingredient strong{font-size:12px;}
  .mm-graphix-scene .gx-v2-step-strip .mm-ingredient-description{font-size:10px;}
  .mm-graphix-scene .gx-v2-step-strip .mm-ingredient-tag{font-size:7px;}
}
@media(prefers-reduced-motion:reduce){
  .gx-v2-root,.gx-v2-lane,.gx-v2-connections,.gx-v2-story-footer,.gx-v2-ready-state,.gx-v2-filter-state{transition:none!important;}
}
