.md207 {
  --md-bg: #070a08;
  --md-panel: #0c120e;
  --md-line: rgba(189, 199, 181, .16);
  --md-copy: #dce1d8;
  --md-muted: #818d81;
  --md-gold: #c8a65c;
  --md-green: #64e395;
  --md-blue: #6ab7d9;
  --md-red: #ff6b65;
  --md-amber: #f2bb5b;
  position: relative;
  isolation: isolate;
  margin: clamp(22px, 4vw, 58px) 0;
  overflow: hidden;
  border: 1px solid var(--md-line);
  border-radius: 3px;
  color: var(--md-copy);
  background:
    linear-gradient(rgba(255, 255, 255, .016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .016) 1px, transparent 1px),
    radial-gradient(circle at 82% -8%, rgba(106, 183, 217, .13), transparent 33%),
    radial-gradient(circle at -4% 60%, rgba(200, 166, 92, .07), transparent 28%),
    var(--md-bg);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.md207::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(122deg, transparent 0 53%, rgba(106, 183, 217, .026) 53% 54%, transparent 54%);
}

.md207[data-awaiting-debrief="true"] {
  border-color: rgba(106, 183, 217, .48);
  box-shadow: 0 0 0 1px rgba(106, 183, 217, .12), 0 30px 80px rgba(0, 0, 0, .3);
}

.md207 button,
.md207 input,
.md207 textarea { font: inherit; }
.md207 button { color: inherit; }

.md207__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(30px, 5vw, 72px);
  border-bottom: 1px solid var(--md-line);
}

.md207__hero-copy > span,
.md207__section > header > div > span {
  display: block;
  margin-bottom: 11px;
  color: var(--md-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .22em;
}

.md207__hero h2,
.md207__section h3 {
  margin: 0;
  color: #f3f5f0;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 950;
  line-height: .86;
  letter-spacing: -.045em;
}

.md207__hero h2 em {
  display: block;
  color: var(--md-blue);
  font-style: normal;
}

.md207__hero-copy > p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #aab3aa;
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.7;
}

.md207__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.md207__hero-actions button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(106, 183, 217, .3);
  background: rgba(106, 183, 217, .07);
  color: #d6e6ed;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .11em;
  cursor: pointer;
}

.md207__hero-actions button:first-child {
  border-color: rgba(100, 227, 149, .42);
  background: rgba(100, 227, 149, .1);
  color: var(--md-green);
}

.md207__hero-actions button:hover { border-color: var(--md-blue); background: rgba(106, 183, 217, .13); }
.md207__hero-actions button:first-child:hover { border-color: var(--md-green); background: rgba(100, 227, 149, .16); }
.md207__hero-actions button b { margin-left: 8px; }

.md207__score {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 170px;
  padding: 24px;
  border: 1px solid rgba(242, 187, 91, .36);
  background: linear-gradient(135deg, rgba(242, 187, 91, .09), rgba(255, 255, 255, .015));
}

.md207__score-ring {
  --md-score: 0deg;
  display: grid;
  place-content: center;
  width: clamp(112px, 14vw, 142px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, #0b100d 58%, transparent 59%), conic-gradient(var(--md-amber) var(--md-score), rgba(255, 255, 255, .08) 0);
  text-align: center;
  box-shadow: inset 0 0 38px rgba(242, 187, 91, .05);
}

.md207__score-ring strong { color: #f1f3ee; font: 950 clamp(38px, 5vw, 54px)/.9 "Arial Narrow", Arial, sans-serif; }
.md207__score-ring small { margin-top: 6px; color: var(--md-muted); font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.md207__score > span { display: grid; gap: 7px; }
.md207__score > span small { color: var(--md-muted); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.md207__score > span b { color: var(--md-amber); font-family: "Arial Narrow", Arial, sans-serif; font-size: clamp(19px, 2.5vw, 28px); font-weight: 950; line-height: .95; letter-spacing: .04em; }
.md207__score > span em { color: #929d93; font-size: 10px; font-style: normal; line-height: 1.5; }

.md207__score[data-md-score-tone="elite"] { border-color: rgba(100, 227, 149, .48); background: linear-gradient(135deg, rgba(100, 227, 149, .12), rgba(255, 255, 255, .015)); }
.md207__score[data-md-score-tone="elite"] .md207__score-ring { background: radial-gradient(circle at center, #0b100d 58%, transparent 59%), conic-gradient(var(--md-green) var(--md-score), rgba(255, 255, 255, .08) 0); }
.md207__score[data-md-score-tone="elite"] > span b { color: var(--md-green); }
.md207__score[data-md-score-tone="complete"] { border-color: rgba(106, 183, 217, .46); background: linear-gradient(135deg, rgba(106, 183, 217, .11), rgba(255, 255, 255, .015)); }
.md207__score[data-md-score-tone="complete"] .md207__score-ring { background: radial-gradient(circle at center, #0b100d 58%, transparent 59%), conic-gradient(var(--md-blue) var(--md-score), rgba(255, 255, 255, .08) 0); }
.md207__score[data-md-score-tone="complete"] > span b { color: var(--md-blue); }
.md207__score[data-md-score-tone="action"] { border-color: rgba(255, 107, 101, .48); background: linear-gradient(135deg, rgba(255, 107, 101, .1), rgba(255, 255, 255, .015)); }
.md207__score[data-md-score-tone="action"] .md207__score-ring { background: radial-gradient(circle at center, #0b100d 58%, transparent 59%), conic-gradient(var(--md-red) var(--md-score), rgba(255, 255, 255, .08) 0); }
.md207__score[data-md-score-tone="action"] > span b { color: var(--md-red); }

.md207__signal {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 46px;
  padding: 0 clamp(20px, 4vw, 54px);
  border-bottom: 1px solid var(--md-line);
  background: rgba(6, 12, 8, .9);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .14em;
}

.md207__signal > span { display: flex; gap: 10px; align-items: center; color: var(--md-green); }
.md207__signal > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--md-green); box-shadow: 0 0 14px rgba(100, 227, 149, .7); }
.md207__signal > em { color: var(--md-muted); font-style: normal; letter-spacing: .06em; }
.md207__signal > strong { margin-left: auto; color: #aeb8ae; }
.md207__signal[data-md-signal="closed"] > span { color: var(--md-blue); }
.md207__signal[data-md-signal="closed"] > span i { background: var(--md-blue); box-shadow: 0 0 14px rgba(106, 183, 217, .7); }

.md207__section { padding: clamp(28px, 4.5vw, 58px); border-bottom: 1px solid var(--md-line); }
.md207__section > header { display: flex; gap: 32px; align-items: end; justify-content: space-between; margin-bottom: clamp(24px, 4vw, 42px); }
.md207__section h3 { font-size: clamp(34px, 5vw, 62px); }
.md207__section > header > p { max-width: 430px; margin: 0; color: var(--md-muted); font-size: 10px; line-height: 1.6; text-align: right; }

.md207__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--md-line);
}

.md207__metrics article {
  display: grid;
  align-content: center;
  min-height: 148px;
  padding: 22px;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .008));
}

.md207__metrics article:nth-child(3n) { border-right: 0; }
.md207__metrics article:nth-last-child(-n + 3) { border-bottom: 0; }
.md207__metrics small { color: var(--md-muted); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.md207__metrics strong { margin-top: 12px; color: #f0f3ed; font: 950 clamp(30px, 4vw, 48px)/1 "Arial Narrow", Arial, sans-serif; }
.md207__metrics em { margin-top: 5px; color: var(--md-gold); font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .12em; }
.md207__metrics article > i { height: 4px; margin-top: 16px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.md207__metrics article > i b { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #488fab, var(--md-blue)); transition: width .3s ease; }
.md207__metrics article[data-level="warning"] strong { color: var(--md-amber); }
.md207__metrics article[data-level="warning"] > i b { background: var(--md-amber); }
.md207__metrics article[data-level="critical"] strong { color: var(--md-red); }
.md207__metrics article[data-level="critical"] > i b { background: var(--md-red); }

.md207__ratings {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--md-line);
}

.md207__ratings article {
  --md-rating: 50%;
  display: grid;
  align-content: space-between;
  min-height: 210px;
  padding: 20px;
  border-right: 1px solid var(--md-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .008));
}

.md207__ratings article:last-child { border-right: 0; }
.md207__ratings article > header { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.md207__ratings article > header > span { display: grid; gap: 7px; }
.md207__ratings article > header b { color: #dce2da; font-size: 9px; letter-spacing: .09em; }
.md207__ratings article > header small { color: var(--md-muted); font-size: 8px; line-height: 1.5; }
.md207__ratings article > header strong { color: var(--md-blue); font: 950 22px/1 "Arial Narrow", Arial, sans-serif; }
.md207__ratings input { width: 100%; accent-color: var(--md-blue); cursor: pointer; }
.md207__ratings article > footer { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.md207__ratings article > footer::before { content: ""; position: absolute; top: -8px; left: 0; width: var(--md-rating); height: 2px; background: var(--md-blue); }
.md207__ratings article > footer i { color: #59645a; font-size: 7px; font-style: normal; text-align: center; }
.md207__ratings article[data-score="5"] { background: linear-gradient(180deg, rgba(100, 227, 149, .08), rgba(255, 255, 255, .008)); }
.md207__ratings article[data-score="5"] > header strong { color: var(--md-green); }
.md207__ratings article[data-score="1"] { background: linear-gradient(180deg, rgba(255, 107, 101, .08), rgba(255, 255, 255, .008)); }
.md207__ratings article[data-score="1"] > header strong { color: var(--md-red); }

.md207__notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.md207__notes label {
  display: grid;
  gap: 0;
  border: 1px solid var(--md-line);
  background: rgba(255, 255, 255, .014);
}

.md207__notes label.has-content { border-color: rgba(100, 227, 149, .28); }
.md207__notes label > span { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; min-height: 48px; padding: 0 14px; border-bottom: 1px solid var(--md-line); }
.md207__notes label > span > b { color: var(--md-gold); font: 900 17px/1 "Arial Narrow", Arial, sans-serif; }
.md207__notes label > span > strong { font-size: 9px; letter-spacing: .1em; }
.md207__notes label > span > small { color: var(--md-muted); font-size: 7px; }
.md207__notes textarea { width: 100%; min-height: 132px; resize: vertical; box-sizing: border-box; padding: 16px; border: 0; outline: 0; background: #080d0a; color: #dce2da; font-size: 11px; line-height: 1.6; }
.md207__notes textarea:focus { box-shadow: inset 0 0 0 1px rgba(106, 183, 217, .42); }

.md207__compare {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--md-line);
}

.md207__compare > article {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 20px;
  border-right: 1px solid var(--md-line);
  background: rgba(255, 255, 255, .014);
}

.md207__compare > article:last-child { border-right: 0; }
.md207__compare > article > small { color: var(--md-muted); font-size: 8px; font-weight: 900; letter-spacing: .11em; }
.md207__compare > article > strong { color: #eef2eb; font: 950 30px/1 "Arial Narrow", Arial, sans-serif; }
.md207__compare > article > span { display: flex; gap: 9px; align-items: center; }
.md207__compare > article > span b { color: var(--md-muted); font-size: 10px; }
.md207__compare > article > span em { color: #606b61; font-size: 7px; font-style: normal; letter-spacing: .08em; }
.md207__compare > article[data-delta="up"] > span b { color: var(--md-green); }
.md207__compare > article[data-delta="down"] > span b { color: var(--md-red); }
.md207__compare > .md207__compare-empty { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; min-height: 104px; border-right: 0; }
.md207__compare-empty > b { display: grid; place-content: center; width: 70px; height: 70px; border: 1px solid rgba(106, 183, 217, .25); border-radius: 50%; color: var(--md-blue); font-size: 8px; letter-spacing: .08em; }
.md207__compare-empty > span { display: grid; gap: 6px; }
.md207__compare-empty > span strong { color: #dce2db; font-size: 10px; letter-spacing: .1em; }
.md207__compare-empty > span small { color: var(--md-muted); font-size: 9px; line-height: 1.5; }

.md207__archive { display: grid; border: 1px solid var(--md-line); }
.md207__archive > p,
.md207__archive > article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 17px; align-items: center; min-height: 78px; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--md-line); background: rgba(255, 255, 255, .012); }
.md207__archive > p { grid-template-columns: auto 1fr; }
.md207__archive > :last-child { border-bottom: 0; }
.md207__archive > p > b,
.md207__archive > article > b { display: grid; place-content: center; width: 36px; height: 36px; border: 1px solid rgba(106, 183, 217, .28); border-radius: 50%; color: var(--md-blue); font: 900 11px/1 "Arial Narrow", Arial, sans-serif; }
.md207__archive > p > span,
.md207__archive > article > span { display: grid; gap: 4px; min-width: 0; }
.md207__archive > p span strong,
.md207__archive > article span strong { color: #dde3dc; font-size: 10px; letter-spacing: .06em; }
.md207__archive > p span small,
.md207__archive > article span small,
.md207__archive > article span em { overflow: hidden; color: var(--md-muted); font-size: 7px; font-style: normal; letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; }
.md207__archive > article > strong { color: var(--md-green); font: 950 27px/1 "Arial Narrow", Arial, sans-serif; }
.md207__archive > article > strong small { color: var(--md-muted); font-size: 8px; }
.md207__archive > article > button { width: 34px; height: 34px; border: 0; background: transparent; color: #657066; cursor: pointer; font-size: 20px; }
.md207__archive > article > button:hover { color: var(--md-red); }

.md207__footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 clamp(20px, 4vw, 54px);
  color: var(--md-muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .11em;
}

.md207__footer b { color: var(--md-blue); }

.md207__toast {
  position: fixed;
  z-index: 9100;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(106, 183, 217, .44);
  background: rgba(7, 13, 9, .97);
  color: var(--md-blue);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .5);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.md207__toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .md207__hero { grid-template-columns: 1fr; }
  .md207__ratings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md207__ratings article:nth-child(3) { border-right: 0; }
  .md207__ratings article:nth-child(n + 4) { border-top: 1px solid var(--md-line); }
  .md207__ratings article:last-child { border-right: 1px solid var(--md-line); }
  .md207__compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md207__compare > article:nth-child(2) { border-right: 0; }
  .md207__compare > article:nth-child(n + 3) { border-top: 1px solid var(--md-line); }
}

@media (max-width: 760px) {
  .md207 { margin-inline: -1px; }
  .md207__hero { padding: 30px 20px; }
  .md207__hero h2 { font-size: clamp(42px, 15vw, 68px); }
  .md207__hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .md207__score { grid-template-columns: auto 1fr; gap: 16px; min-height: 130px; padding: 17px; }
  .md207__score-ring { width: 100px; }
  .md207__signal { padding-inline: 14px; }
  .md207__signal > em { display: none; }
  .md207__section { padding: 28px 16px; }
  .md207__section > header { display: grid; gap: 12px; }
  .md207__section > header > p { text-align: left; }
  .md207__section h3 { font-size: 40px; }
  .md207__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md207__metrics article,
  .md207__metrics article:nth-child(3n) { border-right: 1px solid var(--md-line); border-bottom: 1px solid var(--md-line); }
  .md207__metrics article:nth-child(2n) { border-right: 0; }
  .md207__metrics article:nth-last-child(-n + 2) { border-bottom: 0; }
  .md207__ratings { grid-template-columns: 1fr; }
  .md207__ratings article,
  .md207__ratings article:nth-child(3),
  .md207__ratings article:last-child { min-height: 164px; border-right: 0; border-top: 0; border-bottom: 1px solid var(--md-line); }
  .md207__ratings article:last-child { border-bottom: 0; }
  .md207__notes { grid-template-columns: 1fr; }
  .md207__compare { grid-template-columns: 1fr 1fr; }
  .md207__archive > article { grid-template-columns: auto 1fr auto; }
  .md207__archive > article > strong { grid-column: 2; }
  .md207__archive > article > button { grid-column: 3; grid-row: 1 / 3; }
  .md207__footer { display: grid; gap: 5px; justify-content: start; padding-block: 14px; }
}

@media (max-width: 470px) {
  .md207__hero-actions { grid-template-columns: 1fr; }
  .md207__score { grid-template-columns: 1fr; }
  .md207__metrics { grid-template-columns: 1fr; }
  .md207__metrics article,
  .md207__metrics article:nth-child(2n),
  .md207__metrics article:nth-last-child(-n + 2) { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--md-line); }
  .md207__metrics article:last-child { border-bottom: 0; }
  .md207__compare { grid-template-columns: 1fr; }
  .md207__compare > article,
  .md207__compare > article:nth-child(2) { border-right: 0; border-top: 1px solid var(--md-line); }
  .md207__compare > article:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .md207 *,
  .md207 *::before,
  .md207 *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  body > *:not(.system-shell),
  .system-tree,
  .system-content > *:not(.md207),
  .md207__hero-actions,
  .md207__signal,
  .md207__archive button,
  .md207__toast { display: none !important; }
  .system-shell,
  .system-content,
  .md207 { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; color: #111 !important; background: #fff !important; box-shadow: none !important; }
  .md207__hero,
  .md207__section { padding: 18px 0; break-inside: avoid; }
  .md207 h2,
  .md207 h3,
  .md207 strong,
  .md207 b { color: #111 !important; }
  .md207 p,
  .md207 small,
  .md207 span,
  .md207 em { color: #444 !important; }
}
