:root{
  --mmd-red:#C40001;
  --mmd-card:#ffffff;
  --mmd-text:#111111;
  --mmd-muted:#5b5f66;
  --mmd-border: rgba(0,0,0,.12);
  --mmd-shadow: 0 10px 30px rgba(0,0,0,.08);
  --mmd-focus: rgba(196,0,1,.25);
  --mmd-green:#16a34a;
  --mmd-yellow:#f59e0b;
  --mmd-red2:#dc2626;
}
@media (prefers-color-scheme: dark){
  :root{
    --mmd-card:#141824;
    --mmd-text:#f2f4f8;
    --mmd-muted:#b6bcc7;
    --mmd-border: rgba(255,255,255,.12);
    --mmd-shadow: 0 10px 30px rgba(0,0,0,.35);
    --mmd-focus: rgba(196,0,1,.35);
  }
}
.dark .mmd-cr{
  --mmd-card:#141824;
  --mmd-text:#f2f4f8;
  --mmd-muted:#b6bcc7;
  --mmd-border: rgba(255,255,255,.12);
  --mmd-shadow: 0 10px 30px rgba(0,0,0,.35);
  --mmd-focus: rgba(196,0,1,.35);
}
.mmd-cr{ font-family:inherit; color:var(--mmd-text); }
.mmd-cr *{ box-sizing:border-box; }

.mmd-cr__brand{
  display:flex; gap:14px; align-items:flex-start;
  padding:16px;
  border:1px solid var(--mmd-border);
  border-radius:18px;
  background: var(--mmd-card);
  box-shadow: var(--mmd-shadow);
  margin-bottom:14px;
}
.mmd-cr__ribbon{ width:8px; border-radius:999px; background: var(--mmd-red); flex:0 0 auto; align-self:stretch; }
.mmd-cr__title{ font-size:18px; font-weight:900; line-height:1.2; }
.mmd-cr__subtitle{ margin-top:6px; color:var(--mmd-muted); font-size:13px; line-height:1.4; }

.mmd-cr__grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.mmd-cr__card{
  border:1px solid var(--mmd-border);
  border-radius:18px;
  background: var(--mmd-card);
  box-shadow: var(--mmd-shadow);
  padding:14px;
}
.mmd-cr__cardtitle{
  font-weight:900; font-size:14px; margin-bottom:10px;
  display:flex; align-items:center; gap:10px;
}
.mmd-cr__cardtitle:before{ content:""; width:10px; height:10px; border-radius:3px; background: var(--mmd-red); }

.mmd-cr__label{ display:block; font-size:12px; font-weight:800; margin:10px 0 6px; }
.mmd-cr__row2{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }

.mmd-cr__input{
  width:100%;
  border:1px solid var(--mmd-border);
  background:transparent;
  color:var(--mmd-text);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
  font-size:14px;
}
.mmd-cr__input:focus{
  border-color: rgba(196,0,1,.55);
  box-shadow: 0 0 0 4px var(--mmd-focus);
}
.mmd-cr__hint{ margin-top:6px; font-size:12px; color:var(--mmd-muted); font-weight:700; }

.mmd-cr__divider{ height:1px; background:var(--mmd-border); margin:14px 0 6px; }

.mmd-cr__actions{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.mmd-cr__btn{
  border:1px solid var(--mmd-border);
  background:transparent;
  color:var(--mmd-text);
  padding:10px 12px;
  border-radius:12px;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
}
.mmd-cr__btn:hover{ border-color: rgba(196,0,1,.45); }
.mmd-cr__btn--primary{ background: var(--mmd-red); border-color: var(--mmd-red); color:#fff; }
.mmd-cr__btn--primary:hover{ filter:brightness(.96); }
.mmd-cr__btn--small{ padding:9px 10px; font-size:12px; }

.mmd-cr__error{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(220,38,38,.35);
  background: rgba(220,38,38,.08);
  font-size:13px;
  font-weight:900;
}
.mmd-cr__empty{ color:var(--mmd-muted); font-size:13px; line-height:1.5; padding:8px 2px; }

.mmd-cr__top{ border:1px solid var(--mmd-border); border-radius:16px; padding:14px; }
.mmd-cr__topLabel{ color:var(--mmd-muted); font-weight:900; font-size:12px; }
.mmd-cr__topValue{ font-size:30px; font-weight:950; line-height:1.1; margin-top:6px; }
.mmd-cr__topSub{ margin-top:6px; font-size:13px; font-weight:900; color:var(--mmd-muted); }

.mmd-cr__mini{
  margin-top:12px;
  border:1px solid var(--mmd-border);
  border-radius:16px;
  padding:12px;
}
.mmd-cr__miniTitle{
  font-weight:950;
  font-size:12px;
  color:var(--mmd-muted);
  margin-bottom:10px;
}
.mmd-cr__miniRow{
  display:grid;
  grid-template-columns: 92px 1fr 66px;
  gap:10px;
  align-items:center;
  margin:8px 0;
}
.mmd-cr__miniLabel{ font-weight:900; font-size:12px; color:var(--mmd-muted); }
.mmd-cr__miniTrack{
  height:10px;
  border-radius:999px;
  background: rgba(127,127,127,.15);
  overflow:hidden;
  border:1px solid var(--mmd-border);
}
.mmd-cr__miniFill{
  height:100%;
  width:0%;
  background: var(--mmd-red);
  border-radius:999px;
  transition: width .25s ease;
}
.mmd-cr__miniVal{ text-align:right; font-weight:950; font-size:12px; }

.mmd-cr__compareBox{
  margin-top:12px;
  border:1px solid var(--mmd-border);
  border-radius:16px;
  padding:12px;
}
.mmd-cr__compareTitle{ font-weight:950; font-size:12px; color:var(--mmd-muted); margin-bottom:10px; }
.mmd-cr__tableWrap{ overflow:auto; border-radius:12px; }
.mmd-cr__table{ width:100%; border-collapse:separate; border-spacing:0; min-width:520px; }
.mmd-cr__table th, .mmd-cr__table td{
  padding:10px 12px;
  border-bottom:1px solid var(--mmd-border);
  font-size:13px;
  white-space:nowrap;
}
.mmd-cr__table th{ text-align:left; font-size:12px; color:var(--mmd-muted); font-weight:950; }
.mmd-cr__table tbody tr:last-child td{ border-bottom:none; }
.mmd-cr__table tbody tr[data-cr-highlight="1"] td{
  background: rgba(196,0,1,.08);
}
.mmd-cr__compareHint{ margin-top:10px; color:var(--mmd-muted); font-size:12px; font-weight:900; }

.mmd-cr__pt{
  margin-top:12px;
  border:1px solid var(--mmd-border);
  border-radius:16px;
  padding:12px;
}
.mmd-cr__ptTitle{ font-weight:950; font-size:12px; color:var(--mmd-muted); margin-bottom:10px; }
.mmd-cr__ptGrid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; }
.mmd-cr__ptCard{
  border:1px solid var(--mmd-border);
  border-radius:14px;
  padding:10px;
  background: rgba(127,127,127,.06);
}
.mmd-cr__ptCard--accent{
  background: rgba(196,0,1,.08);
  border-color: rgba(196,0,1,.25);
}
.mmd-cr__ptName{ font-weight:950; font-size:12px; }
.mmd-cr__ptVal{ margin-top:6px; font-weight:950; font-size:18px; }
.mmd-cr__ptHint{ margin-top:6px; color:var(--mmd-muted); font-size:11px; font-weight:800; line-height:1.25; }

.mmd-cr__share{
  margin-top:12px;
  padding:12px;
  border:1px solid var(--mmd-border);
  border-radius:14px;
}
.mmd-cr__shareTitle{ font-size:12px; font-weight:950; margin-bottom:8px; }
.mmd-cr__shareRow{ display:flex; gap:8px; }
.mmd-cr__shareInput{
  flex:1 1 auto;
  border:1px solid var(--mmd-border);
  background:transparent;
  color:var(--mmd-text);
  border-radius:12px;
  padding:10px 12px;
  font-size:13px;
  outline:none;
}
.mmd-cr__shareHint{ margin-top:8px; color:var(--mmd-muted); font-size:12px; font-weight:700; }

.mmd-cr__note{ margin-top:12px; color:var(--mmd-muted); font-size:12px; line-height:1.45; font-weight:800; }

.mmd-cr__seo{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--mmd-border);
  border-radius:18px;
  background: var(--mmd-card);
  box-shadow: var(--mmd-shadow);
}
.mmd-cr__seo h4{ margin:0 0 8px 0; font-size:16px; font-weight:950; }
.mmd-cr__seo p{ margin:8px 0; color:var(--mmd-muted); line-height:1.55; font-size:13px; }

@media (max-width: 980px){
  .mmd-cr__grid{ grid-template-columns:1fr; }
  .mmd-cr__shareRow{ flex-direction:column; }
  .mmd-cr__row2{ grid-template-columns:1fr; }
  .mmd-cr__miniRow{ grid-template-columns: 86px 1fr 66px; }
  .mmd-cr__ptGrid{ grid-template-columns:1fr; }
}
