.wm-launcher {
  align-items: center;
  background: linear-gradient(135deg, #20223d, #5a3695);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(39,30,75,.16);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: 700 11px/1 Inter, system-ui, sans-serif;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  white-space: nowrap;
}

.wm-launcher:hover { transform: translateY(-1px); }
.wm-launcher em {
  background: #bbff67;
  border-radius: 4px;
  color: #27310e;
  font: 800 7px/1 Inter, system-ui, sans-serif;
  letter-spacing: .08em;
  padding: 4px 5px;
}
.wm-launcher.pulse { background: #2e2450; border-color: #5f4b90; box-shadow: none; }

.wm-overlay {
  align-items: stretch;
  display: flex;
  inset: 0;
  justify-content: flex-end;
  position: fixed;
  z-index: 1200;
}
.wm-backdrop {
  background: rgba(13,17,27,.68);
  border: 0;
  cursor: pointer;
  inset: 0;
  position: absolute;
}
.wm-panel {
  background: #f4f5f8;
  box-shadow: -30px 0 80px rgba(10,15,28,.3);
  max-width: 1440px;
  min-width: min(1180px, 94vw);
  overflow: auto;
  position: relative;
  width: 92vw;
  z-index: 1;
}
.wm-workspace {
  color: #1c2230;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100%;
  padding-bottom: 42px;
}
.wm-hero {
  align-items: flex-start;
  background:
    radial-gradient(circle at 84% -30%, rgba(187,255,103,.22), transparent 35%),
    linear-gradient(125deg, #161a2c 0%, #302552 56%, #563180 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 32px 34px 30px;
}
.wm-hero > div > span,
.wm-assumptions header span,
.wm-drafts header span {
  color: #bdc5da;
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
  margin-bottom: 8px;
}
.wm-hero > div > span b { color: #bbff67; }
.wm-hero h1 {
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 0;
}
.wm-hero h1 em { color: #bbff67; font-style: normal; }
.wm-hero p { color: #dbe0eb; font-size: 11px; margin: 11px 0 0; }
.wm-hero > button {
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.wm-boundary {
  align-items: center;
  background: #eef4df;
  border-bottom: 1px solid #d8e7b6;
  color: #384526;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  padding: 13px 34px;
}
.wm-boundary strong { display: block; font-size: 10px; margin-bottom: 3px; }
.wm-boundary p { font-size: 8px; line-height: 1.45; margin: 0; }
.wm-boundary > b {
  background: #d9f4a7;
  border-radius: 5px;
  font-size: 7px;
  letter-spacing: .1em;
  padding: 6px 8px;
}
.wm-source,
.wm-baseline {
  display: grid;
  gap: 1px;
  padding: 0 34px;
}
.wm-source { background: #dfe2e9; grid-template-columns: repeat(4, 1fr); }
.wm-source > div {
  background: #fff;
  min-width: 0;
  padding: 16px 18px;
}
.wm-source span,
.wm-baseline span,
.wm-outcomes span {
  color: #7c8493;
  display: block;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.wm-source strong { display: block; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-source small { color: #7a8190; display: block; font-size: 7px; margin-top: 5px; }
.wm-trigger {
  align-items: flex-start;
  background: #fff7ef;
  border: 1px solid #f0d3b8;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  margin: 18px 34px 0;
  padding: 13px 15px;
}
.wm-trigger > span {
  background: #e65f3b;
  border-radius: 5px;
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  padding: 5px 7px;
  text-transform: uppercase;
}
.wm-trigger strong { font-size: 10px; }
.wm-trigger p { color: #6e5b52; font-size: 8px; line-height: 1.5; margin: 4px 0 0; }
.wm-baseline {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 18px;
}
.wm-baseline > div {
  background: #23283a;
  color: #fff;
  min-width: 0;
  padding: 14px 15px;
}
.wm-baseline > div:first-child { border-radius: 9px 0 0 9px; }
.wm-baseline > div:last-child { border-radius: 0 9px 9px 0; }
.wm-baseline strong { display: block; font-size: 11px; }
.wm-assumptions,
.wm-drafts {
  background: #fff;
  border: 1px solid #dfe2e9;
  border-radius: 12px;
  margin: 18px 34px 0;
  padding: 18px;
}
.wm-assumptions header,
.wm-drafts header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.wm-assumptions header span,
.wm-drafts header span { color: #7754ad; margin-bottom: 4px; }
.wm-assumptions h2,
.wm-drafts h2 { font-size: 15px; margin: 0; }
.wm-assumptions header b,
.wm-drafts header b {
  background: #f0ebf8;
  border-radius: 5px;
  color: #63448f;
  font-size: 7px;
  letter-spacing: .08em;
  padding: 6px 8px;
}
.wm-drafts > button {
  border: 1px solid #7754ad;
  border-radius: 7px;
  background: #7754ad;
  color: #fff;
  cursor: pointer;
  font: 750 8px/1 Inter, system-ui, sans-serif;
  padding: 9px 11px;
}
.wm-drafts > button:disabled { cursor: not-allowed; opacity: .48; }
.wm-drafts > small { display: block; margin-top: 8px; color: #717986; font-size: 8px; line-height: 1.45; }
.wm-ai {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #d8c9e8;
  border-radius: 9px;
  background: linear-gradient(145deg, #f5f0fa, #fff);
}
.wm-ai > strong { font-size: 10px; }
.wm-ai > p { margin: 0; color: #353c49; font-size: 9px; line-height: 1.55; }
.wm-ai > section > strong { display: block; margin-bottom: 5px; color: #7754ad; font-size: 7px; text-transform: uppercase; }
.wm-ai ul { display: grid; gap: 3px; margin: 0; padding-left: 16px; color: #59616e; font-size: 8px; line-height: 1.45; }
.wm-ai > small { padding-top: 8px; border-top: 1px solid #e1d8eb; color: #717986; font-size: 7px; overflow-wrap: anywhere; }
.wm-assumption-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}
.wm-assumption-grid label { min-width: 0; }
.wm-assumption-grid label.wide { grid-column: 1 / -1; }
.wm-assumption-grid label > span {
  color: #49505e;
  display: block;
  font-size: 8px;
  font-weight: 750;
  margin-bottom: 5px;
}
.wm-assumption-grid input {
  background: #fafbfc;
  border: 1px solid #d7dbe3;
  border-radius: 7px;
  box-sizing: border-box;
  color: #1d2431;
  font: 650 10px/1 Inter, system-ui, sans-serif;
  min-height: 36px;
  padding: 0 10px;
  width: 100%;
}
.wm-assumption-grid input:focus { border-color: #7650af; box-shadow: 0 0 0 3px rgba(118,80,175,.12); outline: 0; }
.wm-assumption-grid input:disabled { color: #747b88; }
.wm-assumption-grid small { color: #9298a4; display: block; font-size: 7px; line-height: 1.4; margin-top: 4px; }
.wm-assumptions > button {
  background: #58358b;
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  margin-top: 12px;
  min-height: 34px;
  padding: 0 14px;
}
.wm-readonly { color: #707887; font-size: 8px; margin: 12px 0 0; }
.wm-gaps {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 140px 1fr;
  margin: 14px 34px 0;
}
.wm-gaps > strong { color: #8b5d1a; font-size: 9px; padding-top: 7px; }
.wm-gaps > div { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-gaps span {
  background: #fff4dc;
  border: 1px solid #f0d7a5;
  border-radius: 999px;
  color: #74501b;
  font-size: 7px;
  padding: 6px 9px;
}
.wm-scenarios {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 34px 0;
}
.wm-scenario {
  background: #fff;
  border: 1px solid #dfe2e9;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(33,38,55,.05);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.wm-scenario.selected { border-color: #6e46a8; box-shadow: 0 0 0 2px rgba(110,70,168,.12), 0 12px 30px rgba(45,31,68,.1); }
.wm-scenario > header {
  align-items: flex-start;
  border-bottom: 1px solid #eceef2;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 16px;
}
.wm-scenario > header span { color: #8065a5; font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.wm-scenario > header h3 { font-size: 14px; letter-spacing: -.02em; margin: 4px 0; }
.wm-scenario > header p { color: #69717f; font-size: 8px; line-height: 1.45; margin: 0; }
.wm-scenario > header b {
  background: #e8f5dc;
  border-radius: 5px;
  color: #477023;
  font-size: 7px;
  padding: 5px 6px;
  text-transform: uppercase;
}
.wm-scenario.conditional > header b { background: #fff0d8; color: #8b5b11; }
.wm-scenario.blocked > header b { background: #ffe4df; color: #a13c2a; }
.wm-hard-stop { background: #fff1ee; border-bottom: 1px solid #f3d0ca; padding: 10px 16px; }
.wm-hard-stop strong { color: #a33b2b; font-size: 8px; text-transform: uppercase; }
.wm-hard-stop p { color: #7c4c44; font-size: 7px; line-height: 1.45; margin: 4px 0 0; }
.wm-outcomes { display: grid; grid-template-columns: repeat(2, 1fr); }
.wm-outcomes > div { border-bottom: 1px solid #eceef2; padding: 12px 14px; }
.wm-outcomes > div:nth-child(odd) { border-right: 1px solid #eceef2; }
.wm-outcomes strong { display: block; font-size: 11px; }
.wm-outcomes small { color: #8b919d; display: block; font-size: 6.5px; line-height: 1.4; margin-top: 4px; }
.wm-coverage { align-items: center; display: grid; gap: 10px; grid-template-columns: 42px 1fr; padding: 12px 14px; }
.wm-coverage > span {
  background: conic-gradient(#7650af var(--coverage), #e5e7ec 0);
  border-radius: 50%;
  height: 34px;
  position: relative;
  width: 34px;
}
.wm-coverage > span::after { background: #fff; border-radius: 50%; content: ""; inset: 6px; position: absolute; }
.wm-coverage strong { display: block; font-size: 8px; }
.wm-coverage small { color: #858c99; display: block; font-size: 6.5px; line-height: 1.4; margin-top: 3px; }
.wm-scenario dl { border-top: 1px solid #eceef2; margin: 0; padding: 2px 14px; }
.wm-scenario dl > div { border-bottom: 1px solid #f0f1f4; padding: 9px 0; }
.wm-scenario dt { color: #7a8290; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.wm-scenario dd { color: #444b58; font-size: 7.5px; line-height: 1.45; margin: 4px 0 0; }
.wm-proposals { list-style: none; margin: 0; padding: 6px 14px 12px; }
.wm-proposals li { align-items: flex-start; display: grid; gap: 7px; grid-template-columns: auto 1fr; padding: 7px 0; }
.wm-proposals li > span { color: #7650af; }
.wm-proposals strong { display: block; font-size: 7.5px; font-weight: 700; line-height: 1.4; }
.wm-proposals small { color: #9096a2; display: block; font-size: 6px; margin-top: 2px; }
.wm-scenario > footer { display: flex; gap: 7px; margin-top: auto; padding: 0 14px 14px; }
.wm-scenario > footer button {
  background: #f0edf5;
  border: 1px solid #d9d1e6;
  border-radius: 7px;
  color: #5c417e;
  cursor: pointer;
  flex: 1;
  font-size: 7.5px;
  font-weight: 800;
  min-height: 34px;
  padding: 5px 8px;
}
.wm-scenario > footer button.primary { background: #58358b; border-color: #58358b; color: #fff; }
.wm-scenario > footer button:disabled { cursor: not-allowed; opacity: .5; }
.wm-pack-list { display: grid; gap: 8px; }
.wm-pack-list article {
  align-items: center;
  background: #f8f9fb;
  border: 1px solid #e1e4e9;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 11px 13px;
}
.wm-pack-list article.stale { background: #fff1ee; border-color: #edc7bf; }
.wm-pack-list span { color: #7650af; display: block; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.wm-pack-list strong { display: block; font-size: 9px; margin: 3px 0; }
.wm-pack-list small { color: #7c8491; display: block; font-size: 7px; }
.wm-pack-list article > div:last-child { text-align: right; }
.wm-pack-list b { color: #58772e; display: block; font-size: 7px; margin-bottom: 4px; }
.wm-pack-list article.stale b { color: #a13c2a; }
.wm-pack-actions { display: flex; gap: 5px; justify-content: flex-end; margin-top: 8px; }
.wm-pack-actions button {
  background: #f0edf5;
  border: 1px solid #d9d1e6;
  border-radius: 6px;
  color: #5c417e;
  cursor: pointer;
  font-size: 6.5px;
  font-weight: 800;
  min-height: 28px;
  padding: 5px 8px;
}
.wm-pack-actions button:first-child { background: #58358b; border-color: #58358b; color: #fff; }
.wm-empty-pack { align-items: center; background: #f7f8fa; border: 1px dashed #d8dce4; border-radius: 8px; display: flex; gap: 10px; padding: 13px; }
.wm-empty-pack strong { font-size: 9px; }
.wm-empty-pack span { color: #7a8290; font-size: 7px; }
.wm-denied { background: #fff; color: #2c3340; min-height: 260px; padding: 50px; }
.wm-denied strong { font-size: 18px; }
.wm-denied p { color: #717986; font-size: 10px; }

@media (max-width: 1100px) {
  .wm-panel { min-width: 96vw; width: 96vw; }
  .wm-source { grid-template-columns: repeat(2, 1fr); }
  .wm-baseline { grid-template-columns: repeat(3, 1fr); }
  .wm-baseline > div:first-child,
  .wm-baseline > div:last-child { border-radius: 0; }
  .wm-scenarios { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .wm-panel { min-width: 100vw; width: 100vw; }
  .wm-hero { padding: 22px 18px; }
  .wm-boundary { grid-template-columns: auto 1fr; padding: 12px 18px; }
  .wm-boundary > b { display: none; }
  .wm-source,
  .wm-baseline { grid-template-columns: 1fr 1fr; padding: 0 18px; }
  .wm-trigger,
  .wm-assumptions,
  .wm-gaps,
  .wm-scenarios,
  .wm-drafts { margin-left: 18px; margin-right: 18px; }
  .wm-assumption-grid { grid-template-columns: 1fr 1fr; }
  .wm-gaps { grid-template-columns: 1fr; }
  .wm-pack-list article { align-items: flex-start; flex-direction: column; }
  .wm-pack-list article > div:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .wm-launcher { transition: none; }
  .wm-launcher:hover { transform: none; }
}

.wm-decision, .wm-decision-inputs { margin:16px 0; padding:16px; border:1px solid #d8e2ed; border-radius:10px; background:#f7fafc; }
.wm-decision h4, .wm-decision-inputs h3 { margin:0 0 8px; }
.wm-decision p, .wm-decision-inputs p { line-height:1.5; }
.wm-decision details, .wm-decision-inputs details { margin:12px 0; }
.wm-decision summary, .wm-decision-inputs summary { cursor:pointer; font-weight:600; padding:8px 0; }
.wm-model-row { margin:14px 0; padding:14px; border:1px solid #d8e2ed; border-radius:8px; min-width:0; }
.wm-model-table { max-width:100%; overflow-x:auto; margin:12px 0; }
.wm-model-table table { border-collapse:collapse; width:100%; font-size:12px; }
.wm-model-table th, .wm-model-table td { padding:8px; border-bottom:1px solid #d8e2ed; text-align:left; vertical-align:top; }
.wm-decision-inputs .wm-assumption-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.wm-decision-inputs select, .wm-decision-inputs input { width:100%; min-width:0; box-sizing:border-box; }
.wm-decision-inputs small, .wm-decision small { display:block; line-height:1.5; }
@media (max-width:640px) { .wm-decision-inputs .wm-assumption-grid { grid-template-columns:1fr; } }
