:root {
  --chal-bg: #0b111f;
  --chal-panel: #0e1526;
  --chal-panel-2: #121a2e;
  --chal-line: #223050;
  --chal-line-soft: #1c2740;
  --chal-ink: #dfe8ff;
  --chal-ink-dim: #8fa0c2;
  --chal-ink-faint: #66779c;
  --chal-up: #5be0e6;
  --chal-down: #ff5a6e;
  --chal-flat: #8fa4c4;
  --chal-gold: #ffd36e;
  --chal-violet: #c06bff;
  --chal-good: #4fe06a;
  --chal-good-soft: #8af2a1;
  --chal-mono: Consolas, 'Courier New', monospace;
}

.mg-solo-lab .mg-mode-cards-lab { grid-template-columns: 1fr; }
.mg-solo .mg-art-challenge-lab {
  background-image: url(/img/minigames/tetra/generated/pixel-banner-chal-v1.png?v=1);
  image-rendering: pixelated;
}
.mg-solo .mg-art-challenge-lab::before {
  background-image: url(/img/minigames/tetra/generated/pixel-mono-chal-v4.png?v=1);
}

.mg-chal-hud {
  display: flex; flex-direction: column; gap: 0.55em; margin-top: 0.8em; padding: 0.9em 1em 1em;
  font-size: 12px; line-height: 1.4; width: 100%; box-sizing: border-box;
  font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  background-color: rgba(14, 23, 41, 0.92);
  border: 1px solid #1e2c4d; border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.mg-chal-hud.tetra-challenge-px { position: absolute; z-index: 60; margin-top: 0; left: -9999px; top: -9999px; }
.mg-chal-hud-kicker {
  display: flex; align-items: center; gap: 0.55em; min-width: 0;
  font-size: 0.68em; font-weight: 700; letter-spacing: 0.16em; color: #7787ad;
  text-transform: uppercase; white-space: nowrap;
}
.mg-chal-hud-dot {
  width: 0.5em; height: 0.5em; border-radius: 50%; background: #4fd8e0; flex: 0 0 auto;
}
.mg-chal-hud-name {
  font-size: 1.12em; font-weight: 800; letter-spacing: -0.01em; color: #e9efff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.mg-chal-hud-count {
  font-size: 0.92em; color: #ffd36e; font-weight: 800;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%;
}
.mg-chal-hud-goal {
  font-size: 0.95em; color: #9fadd0; font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.mg-chal-hud-bar {
  display: block; height: 0.5em; border-radius: 999px; overflow: hidden;
  background: #16213a;
}
.mg-chal-hud-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: #4fd8e0;
  transition: width 0.2s ease;
}
.mg-chal-hud-crit { display: flex; flex-wrap: wrap; gap: 0.35em; }
.mg-chal-hud-crit:empty { display: none; }
.mg-chal-hud-crit .mg-chal-crit-chip { font-size: 0.8em; padding: 0.2em 0.7em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.mg-chal-fin-toggle, .mg-chal-hud-stop {
  display: flex; align-items: center; gap: 0.6em; width: 100%; box-sizing: border-box;
  font-size: 0.92em; font-weight: 700; white-space: nowrap; font-family: inherit;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
  padding: 0.55em 0.8em; border-radius: 0.75em; cursor: pointer; text-align: left;
  border: 1px solid #1e2c4d; background: #131d33;
  color: #cfdaf5;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.mg-chal-fin-toggle i {
  width: 0.5em; height: 0.5em; border-radius: 50%; background: #7787ad; flex: 0 0 auto;
  transition: background-color 0.15s ease;
}
.mg-chal-fin-toggle:hover, .mg-chal-hud-stop:hover { border-color: #3d4f7c; color: #e9efff; background: #1a2745; }
.mg-chal-fin-toggle.on {
  border-color: rgba(79, 216, 224, 0.55); background: rgba(79, 216, 224, 0.12); color: #86ecf2;
}
.mg-chal-fin-toggle.on i { background: #4fd8e0; }
.mg-chal-hud-stop:hover { border-color: rgba(255, 101, 119, 0.5); color: #ffb3bd; background: #241522; }
.mg-chal-hud .mg-chal-bot-panel { margin-top: 0.2em; border: none; background: transparent; padding: 0; }
@media (max-width: 720px) {
  .mg-chal-hud { font-size: 11px; }
}

.mg-chal-crit-chip {
  display: inline-flex; align-items: baseline; gap: 4px;
  border: 1px solid #1e2c4d; border-radius: 999px; padding: 3px 10px;
  font-size: 11px; font-weight: 700;
  color: #9fadd0; background: #131d33; font-variant-numeric: tabular-nums;
}
.mg-chal-crit-chip em { font-style: normal; color: #7787ad; font-weight: 400; }
.mg-chal-crit-chip small { color: #ffd36e; font-weight: 700; }
.mg-chal-crit-chip.ok { border-color: rgba(79, 216, 224, 0.5); color: #86ecf2; background: rgba(79, 216, 224, 0.1); }
.mg-chal-crit-chip.bad { border-color: rgba(255, 101, 119, 0.4); color: #ffb3bd; background: rgba(255, 101, 119, 0.1); }

.mg-chal-bot-panel {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 8px; padding: 8px 10px;
  border: 1px solid var(--chal-line); border-radius: 10px; background: rgba(14, 22, 40, 0.88);
}
.mg-chal-bot-panel canvas { border: 1px solid var(--chal-line-soft); background: #0a0f1c; image-rendering: pixelated; }
.mg-chal-bot-stat { font-size: 11px; color: var(--chal-ink-dim); letter-spacing: 0.4px; }

.mg-chz {
  --chz-ink: #e9efff;
  --chz-sub: #9fadd0;
  --chz-mut: #7787ad;
  --chz-line: #16213a;
  --chz-line-2: #1e2c4d;
  --chz-panel: #0e1729;
  --chz-raise: #131d33;
  --chz-acc: #4fd8e0;
  --chz-acc-ink: #04252b;
  --chz-gold: #ffd36e;
  --chz-red: #ff6577;
  display: flex; flex-direction: column; height: 100%; min-height: 0;
  color: var(--chz-ink);
  font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 14px; line-height: 1.5;
}
.mg-chz *, .mg-chz *::before, .mg-chz *::after { box-sizing: border-box; }
:where(.mg-chz) :where(h1, h2, p, ol) { margin: 0; padding: 0; }
:where(.mg-chz) ol { list-style: none; }
:where(.mg-chz) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mg-chz button:focus-visible, .mg-chz input:focus-visible, .mg-chz select:focus-visible,
.mg-chz [tabindex]:focus-visible { outline: 2px solid var(--chz-acc); outline-offset: 2px; border-radius: 8px; }
.mg-chz b { font-variant-numeric: tabular-nums; }

.chz-col { width: 100%; max-width: 960px; margin-inline: auto; padding-inline: 28px; }
.chz-top { flex: 0 0 auto; border-bottom: 1px solid var(--chz-line); background: rgba(9, 14, 26, 0.6); }
.chz-top-in { display: flex; align-items: center; gap: 14px; padding-block: 16px; }
.chz-back {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px;
  border: 1px solid var(--chz-line-2); background: var(--chz-raise);
  display: inline-flex; align-items: center; justify-content: center; color: var(--chz-sub);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.chz-back:hover { color: var(--chz-ink); border-color: #3d4f7c; }
.chz-back .chz-i { width: 12px; height: 12px; }
.chz-top-txt { min-width: 0; flex: 1 1 auto; }
.chz-top-txt h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chz-top-txt p { font-size: 13px; color: var(--chz-mut); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chz-top-act { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.chz-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.chz-scroll::-webkit-scrollbar { width: 10px; }
.chz-scroll::-webkit-scrollbar-thumb { background: #223052; border-radius: 8px; border: 3px solid #0b111f; }
.chz-page { padding-block: 24px 56px; }

.chz-i { width: 10px; height: 10px; fill: currentColor; flex: 0 0 auto; }
.chz-i-to { width: 22px; height: 16px; color: var(--chz-acc); align-self: center; }

.chz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--chz-line-2); background: var(--chz-raise); color: #cfdaf5;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.chz-btn:hover { background: #1a2745; border-color: #3d4f7c; color: var(--chz-ink); }
.chz-btn:disabled { opacity: 0.5; cursor: default; }
.chz-btn.sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.chz-btn.lg { height: 52px; padding: 0 30px; font-size: 16px; font-weight: 800; border-radius: 12px; }
.chz-btn.primary { background: var(--chz-acc); border-color: transparent; color: var(--chz-acc-ink); }
.chz-btn.primary:hover { background: #6ae4eb; color: var(--chz-acc-ink); }
.chz-btn.primary .chz-i { width: 11px; height: 11px; }
.chz-btn.danger { background: transparent; border-color: #4a2733; color: #ff8d99; }
.chz-btn.danger:hover { background: #2a1520; color: #ffb3bd; }
.chz-btn.armed { background: #3a1721; border-color: var(--chz-red); color: #ffb3bd; }

.chz-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--chz-line); margin-bottom: 4px; }
.chz-tabbtn {
  padding: 10px 4px 13px; font-size: 16px; font-weight: 700; color: var(--chz-mut);
  border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 0;
  transition: color 0.15s ease;
}
.chz-tabbtn:hover { color: var(--chz-sub); }
.chz-tabbtn.on { color: var(--chz-ink); font-weight: 800; border-bottom-color: var(--chz-acc); }

.chz-row {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 14px; margin-inline: -14px; border-radius: 12px;
  border-bottom: 1px solid var(--chz-line); cursor: pointer;
  transition: background-color 0.15s ease;
}
.chz-row:hover { background: #0f1930; }
.chz-row.quiet { cursor: default; }
.chz-row.quiet:hover { background: transparent; }
.chz-row-main { flex: 1 1 auto; min-width: 0; }
.chz-row-name {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  font-size: 17px; font-weight: 800; letter-spacing: -0.01em;
}
.chz-row-name em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--chz-gold); flex: 0 0 auto; }
.chz-row-meta { font-size: 13px; color: var(--chz-sub); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chz-streak { color: var(--chz-gold); font-weight: 700; }
.chz-row-delta { flex: 0 0 auto; }
.chz-tag {
  flex: 0 0 auto; height: 24px; padding: 0 11px; border-radius: 999px;
  border: 1px solid #2b3a5c; background: #141e36; color: #93a2c8;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.chz-tag:hover { border-color: #44578a; color: var(--chz-sub); }
.chz-tag.pub { border-color: rgba(79, 216, 224, 0.55); background: rgba(79, 216, 224, 0.1); color: var(--chz-acc); }

.chz-delta { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.chz-delta b { font-size: 15px; }
.chz-delta .chz-i { width: 10px; height: 10px; }
.chz-delta.up { color: var(--chz-acc); }
.chz-delta.down { color: var(--chz-red); }
.chz-delta.flat { color: var(--chz-mut); }
.chz-delta.big b { font-size: 22px; }
.chz-delta.big .chz-i { width: 14px; height: 14px; }

.chz-h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 36px 0 14px; }
.chz-h2.dim { color: var(--chz-mut); font-size: 15px; }
.chz-h2.set { margin-top: 44px; padding-bottom: 10px; border-bottom: 1px solid var(--chz-line); }
.mg-chz [data-set] > .chz-h2.set:first-child { margin-top: 8px; }
.chz-h2.runday { font-size: 15px; margin: 28px 0 6px; }
.chz-h2.runday span { color: var(--chz-mut); font-weight: 400; font-size: 13px; }
.chz-h2 + .chz-help { margin: -8px 0 14px; }

.chz-hero {
  background: var(--chz-panel); border: 1px solid var(--chz-line-2); border-radius: 14px;
  padding: 22px 26px 24px; margin-top: 8px;
}
.chz-hero-top { display: flex; align-items: baseline; gap: 16px; }
.chz-hero-top p { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--chz-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chz-hero-top span { flex: 0 0 auto; font-size: 13px; color: var(--chz-mut); font-variant-numeric: tabular-nums; }
.chz-hero-line { display: flex; align-items: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.chz-hero-num b { display: block; font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.chz-hero-num.from b { color: var(--chz-sub); }
.chz-hero-num i { display: block; font-style: normal; font-size: 12px; color: var(--chz-mut); margin-top: 6px; }
.chz-hero-cta { margin-left: auto; }
.chz-hero-sub { font-size: 13px; color: var(--chz-sub); margin-top: 14px; font-variant-numeric: tabular-nums; }
.chz-hero .chz-choices { margin-top: 18px; }

.chz-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chz-choice {
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--chz-line-2); background: transparent; color: var(--chz-sub);
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.chz-choice:hover { border-color: #3d4f7c; color: var(--chz-ink); }
.chz-choice.on { background: rgba(79, 216, 224, 0.12); border-color: var(--chz-acc); color: #86ecf2; }

.chz-table { width: 100%; border-collapse: collapse; }
.chz-table thead th {
  font-size: 12px; font-weight: 700; color: var(--chz-mut); text-align: left;
  padding: 0 12px 10px; border-bottom: 1px solid var(--chz-line-2);
}
.chz-table thead th.n { text-align: right; }
.chz-table tbody th { font-size: 14.5px; font-weight: 700; color: var(--chz-sub); text-align: left; padding: 13px 12px; }
.chz-table tbody td { padding: 13px 12px; }
.chz-table tbody tr { border-bottom: 1px solid var(--chz-line); transition: background-color 0.15s ease; }
.chz-table tbody tr:hover { background: #0e182c; }
.chz-table td.n { text-align: right; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chz-table td.gold { color: var(--chz-gold); }
.chz-table td .dim { color: #6b7aa4; font-weight: 400; }
.chz-table tr.total th, .chz-table tr.total td { border-top: 1px solid var(--chz-line-2); background: rgba(14, 23, 41, 0.6); }
.chz-table tr.total th { color: var(--chz-ink); }

.chz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }

.chz-pbs li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--chz-line); }
.chz-pb-ic { color: var(--chz-gold); display: inline-flex; }
.chz-pb-ic .chz-i { width: 12px; height: 12px; }
.chz-pbs b { font-size: 18px; font-weight: 800; }
.chz-pb-day { margin-left: auto; font-size: 13px; color: var(--chz-mut); font-variant-numeric: tabular-nums; }

.chz-days { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 4px; }
.chz-day { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.chz-day i { width: 22px; height: 22px; border-radius: 4px; background: #101a30; border: 1px solid var(--chz-line-2); }
.chz-day.on i { background: #2b3c60; border-color: #3a4e7c; }
.chz-day.up i { background: rgba(79, 216, 224, 0.28); border-color: var(--chz-acc); }
.chz-day.down i { background: rgba(255, 101, 119, 0.22); border-color: var(--chz-red); }
.chz-day.today i { box-shadow: 0 0 0 2px rgba(79, 216, 224, 0.55); }
.chz-day span { font-size: 11px; color: var(--chz-mut); font-variant-numeric: tabular-nums; }
.chz-streakline { flex-basis: 100%; font-size: 13px; font-weight: 700; color: var(--chz-gold); margin-top: 10px; }

.chz-empty {
  text-align: center; padding: 48px 24px; border: 1px dashed #26365c; border-radius: 14px; margin-top: 10px;
}
.chz-empty b { display: block; font-size: 17px; font-weight: 800; }
.chz-empty span { display: block; font-size: 13px; color: var(--chz-sub); margin-top: 8px; line-height: 1.6; }
.chz-empty.tall { padding: 72px 24px; }
.chz-empty.tall .chz-btn { margin-top: 22px; }
.chz-empty.sm { padding: 18px 6px; border: 0; text-align: left; margin: 0; }
.chz-empty.sm span { margin: 0; }

.chz-note {
  display: flex; align-items: center; gap: 12px; margin-top: 20px;
  background: var(--chz-panel); border: 1px solid var(--chz-line-2); border-radius: 12px; padding: 14px 18px;
}
.chz-note span { flex: 1 1 auto; font-size: 13px; color: var(--chz-sub); line-height: 1.6; }
.chz-note.gold { color: var(--chz-gold); font-weight: 700; font-size: 14px; }
.chz-note.gold .chz-i { width: 12px; height: 12px; }

.chz-skel i { display: block; height: 18px; border-radius: 8px; background: #101a30; margin: 18px 0; }
.chz-skel i:nth-child(1) { width: 55%; }
.chz-skel i:nth-child(2) { width: 82%; }
.chz-skel i:nth-child(3) { width: 68%; }
.chz-skel i:nth-child(4) { width: 40%; }
.chz-skel i:nth-child(5) { width: 74%; }
.chz-skel i:nth-child(6) { width: 60%; }

.chz-form { max-width: 520px; display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.chz-field > span { display: block; font-size: 13px; font-weight: 700; color: var(--chz-sub); margin-bottom: 9px; }
.chz-field input[type="text"] {
  width: 100%; height: 50px; border-radius: 12px; padding: 0 16px;
  background: #0d1526; border: 1px solid var(--chz-line-2); color: var(--chz-ink);
  font: inherit; font-size: 16px; font-weight: 700;
}
.chz-field input[type="text"]:focus { border-color: var(--chz-acc); outline: none; }
.chz-help { font-size: 13px; color: var(--chz-mut); line-height: 1.6; }
.chz-form .chz-btn.lg { align-self: flex-start; }
.chz-center { text-align: center; padding: 18px 0; }

.chz-foot { flex: 0 0 auto; border-top: 1px solid var(--chz-line); background: #0b111f; }
.chz-foot-in { display: flex; align-items: center; gap: 10px; padding-block: 12px; }
.chz-foot-warn { flex: 1 1 auto; text-align: right; font-size: 13px; color: var(--chz-gold); }

.chz-knob { display: flex; align-items: flex-start; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--chz-line); }
.chz-knob.dephide { display: none; }
.chz-knob-l { flex: 1 1 auto; min-width: 0; }
.chz-knob-l b { font-size: 15px; font-weight: 700; }
.chz-knob-l span { display: block; font-size: 13px; color: var(--chz-mut); margin-top: 4px; line-height: 1.55; max-width: 60ch; }
.chz-knob-r { flex: 0 0 auto; padding-top: 2px; }
.chz-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--chz-acc); margin-left: 8px; vertical-align: 2px; }

.chz-switch {
  width: 48px; height: 28px; border-radius: 999px; position: relative;
  background: #1a2438; border: 1px solid var(--chz-line-2);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.chz-switch i {
  position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: #7787ad; transition: transform 0.15s ease, background-color 0.15s ease;
}
.chz-switch.on { background: rgba(79, 216, 224, 0.2); border-color: var(--chz-acc); }
.chz-switch.on i { transform: translateX(20px); background: var(--chz-acc); }

.chz-seg { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.chz-seg-btn {
  height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--chz-line-2); background: transparent; color: var(--chz-sub);
  display: inline-flex; align-items: center;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.chz-seg-btn:hover { border-color: #3d4f7c; color: var(--chz-ink); }
.chz-seg-btn.on { background: rgba(79, 216, 224, 0.12); border-color: var(--chz-acc); color: #86ecf2; }

.chz-numwrap { display: inline-flex; align-items: center; gap: 8px; }
.chz-numwrap i { font-style: normal; font-size: 13px; color: var(--chz-mut); white-space: nowrap; }
.mg-chz input[type="number"], .mg-chz select {
  height: 36px; border-radius: 8px; padding: 0 10px;
  background: #0d1526; border: 1px solid var(--chz-line-2); color: var(--chz-ink);
  font: inherit; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.mg-chz input[type="number"] { width: 96px; text-align: right; }
.mg-chz input[type="number"]:focus, .mg-chz select:focus { border-color: var(--chz-acc); outline: none; }
.mg-chz input::placeholder { color: var(--chz-mut); }

.chz-goal { background: var(--chz-panel); border: 1px solid var(--chz-line-2); border-radius: 12px; padding: 18px 20px; margin-bottom: 6px; }
.chz-goal-line { font-size: 16px; font-weight: 800; line-height: 1.6; padding-bottom: 14px; border-bottom: 1px solid var(--chz-line); }
.chz-goal-row { display: flex; flex-wrap: wrap; gap: 14px 26px; padding-top: 14px; }
.chz-goal-row label { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--chz-sub); }
.chz-goal-row i { font-style: normal; font-size: 12px; color: var(--chz-mut); }

.chz-crit { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--chz-line); }
.chz-crit label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--chz-sub); font-weight: 700; }
.chz-crit i { font-style: normal; font-size: 12px; color: var(--chz-mut); }
.chz-crit + .chz-btn.sm, .chz-help + .chz-btn.sm { margin-top: 12px; }

.chz-disp { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.chz-disp-chip {
  text-align: left; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--chz-line-2); background: transparent;
  font-size: 14px; font-weight: 700; color: #cfdaf5;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.chz-disp-chip:hover { border-color: #3d4f7c; }
.chz-disp-chip i { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--chz-mut); margin-top: 3px; }
.chz-disp-chip.hero { border-color: var(--chz-acc); background: rgba(79, 216, 224, 0.1); }
.chz-disp-chip.hero i { color: var(--chz-acc); }
.chz-disp-chip.hidden { border-style: dashed; opacity: 0.55; }
.chz-disp-chip.hidden i { color: var(--chz-red); }
.chz-map { display: block; border: 1px solid var(--chz-line-2); border-radius: 8px; cursor: crosshair; touch-action: none; margin: 10px 0 12px; }

.chz-run { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--chz-line); cursor: pointer; }
.chz-run:hover { background: #0e182c; }
.chz-run.head { cursor: default; border-bottom: 1px solid var(--chz-line-2); padding: 4px 0 8px; }
.chz-run.head:hover { background: transparent; }
.chz-run .no { flex: 0 0 44px; color: var(--chz-mut); font-weight: 700; font-variant-numeric: tabular-nums; }
.chz-run .tm { flex: 0 0 48px; color: var(--chz-mut); font-variant-numeric: tabular-nums; }
.chz-run .mc { flex: 0 0 86px; text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chz-run.head .no, .chz-run.head .tm, .chz-run.head .mc { font-size: 12px; font-weight: 700; color: var(--chz-mut); }
.chz-run .rest { flex: 1 1 auto; display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }
.chz-run-act { margin-left: auto; display: flex; gap: 6px; }
.chz-run-note { flex-basis: 100%; font-size: 13px; color: var(--chz-sub); }
.chz-run.excluded { opacity: 0.5; }
.chz-run-detail { flex-basis: 100%; border-top: 1px dashed var(--chz-line-2); padding-top: 12px; cursor: default; }
.chz-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-top: 10px; }
.chz-dcell { padding: 9px 12px; border: 1px solid var(--chz-line); border-radius: 10px; }
.chz-dcell b { display: block; font-size: 15px; font-weight: 800; }
.chz-dcell span { display: block; font-size: 12px; color: var(--chz-mut); margin-top: 2px; }
.chz-badge {
  font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: #1a2438; color: #93a2c8;
}
.chz-badge.warm { background: rgba(255, 211, 110, 0.14); color: var(--chz-gold); }
.chz-badge.ok { background: rgba(79, 216, 224, 0.14); color: var(--chz-acc); }
.chz-badge.bad { background: rgba(255, 101, 119, 0.14); color: var(--chz-red); }

.chz-charthost { position: relative; margin-top: 22px; }
.chz-chart { display: block; width: 100%; cursor: crosshair; }
.chz-chartnote {
  font-size: 13px; color: var(--chz-mut); text-align: center;
  padding: 34px 16px; border: 1px dashed #26365c; border-radius: 12px;
}
.chz-charttip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--chz-raise); border: 1px solid var(--chz-line-2); border-radius: 8px;
  padding: 7px 11px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
.chz-charttip b { display: block; font-size: 12px; font-weight: 800; }
.chz-charttip span { display: block; font-size: 12px; color: var(--chz-sub); margin-top: 2px; font-variant-numeric: tabular-nums; }

.chz-cal-grid { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.chz-cal-week { display: flex; flex-direction: column; gap: 3px; flex: 0 0 auto; }
.chz-cal-cell {
  display: block; width: 15px; height: 15px; border-radius: 4px;
  background: #101a30; border: 1px solid var(--chz-line);
}
.chz-cal-cell.l1 { background: rgba(79, 216, 224, 0.18); border-color: rgba(79, 216, 224, 0.25); }
.chz-cal-cell.l2 { background: rgba(79, 216, 224, 0.36); border-color: rgba(79, 216, 224, 0.4); }
.chz-cal-cell.l3 { background: rgba(79, 216, 224, 0.58); border-color: rgba(79, 216, 224, 0.6); }
.chz-cal-cell.l4 { background: rgba(79, 216, 224, 0.82); border-color: var(--chz-acc); }
.chz-cal-cell.pre { visibility: hidden; }
.chz-cal-cell.future { background: transparent; border: 1px dashed #223052; }
.chz-cal-cell.today { box-shadow: 0 0 0 2px rgba(79, 216, 224, 0.6); }
.chz-cal-meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 12px; font-size: 13px; color: var(--chz-sub); font-variant-numeric: tabular-nums;
}
.chz-cal-meta .gold { color: var(--chz-gold); }
.chz-cal-legend { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-size: 11px; color: var(--chz-mut); }
.chz-cal-legend .chz-cal-cell { width: 11px; height: 11px; }
.chz-cal-legend .chz-cal-cell:first-of-type { margin-left: 6px; }
.chz-cal-legend .chz-cal-cell:last-of-type { margin-right: 6px; }

.chz-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chz-duo-card {
  background: var(--chz-panel); border: 1px solid var(--chz-line-2); border-radius: 12px;
  padding: 18px 20px;
}
.chz-duo-card.best { border-color: rgba(255, 211, 110, 0.4); }
.chz-duo-l { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--chz-sub); }
.chz-duo-card.best .chz-duo-l { color: var(--chz-gold); }
.chz-duo-l .chz-i { width: 11px; height: 11px; }
.chz-duo-v { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; line-height: 1; }
.chz-duo-card.best .chz-duo-v { color: var(--chz-gold); }
.chz-duo-meta { display: block; font-size: 13px; color: var(--chz-mut); margin-top: 8px; font-variant-numeric: tabular-nums; }
.chz-duo-card .chz-btn { margin-top: 14px; }

.chz-mss { padding: 0; }
.chz-ms { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--chz-line); }
.chz-ms.quiet { opacity: 0.55; }
.chz-ms-l { flex: 1 1 auto; font-size: 14px; color: var(--chz-sub); font-weight: 700; font-variant-numeric: tabular-nums; }
.chz-ms b { font-size: 17px; font-weight: 800; }

@media (max-width: 1100px) {
  .chz-col { padding-inline: 22px; }
  .chz-hero-num b { font-size: 38px; }
}
@media (max-width: 860px) {
  .chz-two { grid-template-columns: 1fr; }
  .chz-duo { grid-template-columns: 1fr; }
  .chz-hero { padding: 18px 20px 20px; }
  .chz-hero-cta { margin-left: 0; width: 100%; order: 9; }
  .chz-row { gap: 12px; flex-wrap: wrap; }
  .chz-knob { flex-direction: column; gap: 10px; }
  .chz-run .mc { flex-basis: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-chz *, .mg-chz *::before { transition: none !important; }
}
