.mc {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 580px;
  margin: 0 auto;
  color: var(--ink, #0D0D0D);
  font-family: var(--text, "Inter", system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}
.mc *, .mc *::before, .mc *::after { box-sizing: border-box; }
.mc p, .mc h3 { margin: 0; }

.mc-card {
  background: var(--card, #fff);
  border-radius: 28px;
  box-shadow: var(--shadow, 0 30px 70px rgba(30,20,60,.10), 0 4px 14px rgba(30,20,60,.05));
}

.mc-main {
  position: absolute;
  top: 0; left: 0;
  width: 400px;
  padding: 24px 24px 26px;
}
.mc-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240,83,74,.12);
  color: #D9443B;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.mc-title {
  margin-top: 12px;
  font-family: var(--display, "Geist", system-ui, sans-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink, #0D0D0D);
}
.mc-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink3, #7C7C83);
}

.mc-setup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line, rgba(0,0,0,.08));
}
.mc-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--muted, #F2F1F4);
  color: var(--ink2, #55555B);
}
.mc-setup-text {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink2, #55555B);
}
.mc-setup-text b {
  font-weight: 500;
  color: var(--ink, #0D0D0D);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: color 150ms ease;
}
.mc-setup-text b.is-changed { color: #D9443B; }

.mc-sets { margin-top: 16px; display: grid; gap: 8px; }
.mc-row {
  display: grid;
  grid-template-columns: 22px 1fr 1fr 44px;
  gap: 8px;
  align-items: center;
}
.mc-n {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink3, #7C7C83);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.mc-box {
  height: 44px;
  border-radius: 12px;
  background: var(--muted, #F2F1F4);
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
  font-family: var(--display, "Geist", system-ui, sans-serif);
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #0D0D0D);
}
.mc-box small {
  font-family: var(--text, "Inter", system-ui, sans-serif);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink3, #7C7C83);
}
.mc-tick {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line, rgba(0,0,0,.08));
  display: grid; place-items: center;
  color: #fff;
}
.mc-tick.is-done { background: #F0534A; border-color: #F0534A; }

/* Floating sheet */
.mc-float {
  position: absolute;
  right: 0; bottom: 0;
  width: 296px;
  padding: 18px 18px 8px;
}
.mc-float-title {
  font-family: var(--display, "Geist", system-ui, sans-serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding-bottom: 6px;
}
.mc-srow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line, rgba(0,0,0,.08));
}
.mc-float-title + .mc-srow { border-top: 0; }
.mc-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #0D0D0D);
  line-height: 1.3;
}
.mc-label span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink3, #7C7C83);
}
.mc-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mc-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--muted, #F2F1F4);
  color: var(--ink, #0D0D0D);
  font: 400 20px/1 var(--text, "Inter", system-ui, sans-serif);
  cursor: pointer;
  display: grid; place-items: center;
  position: relative;
  transition: opacity 150ms ease, transform 150ms ease;
}
/* 44pt hit area around a 36px button */
.mc-btn::after { content: ""; position: absolute; inset: -4px; }
.mc-btn:active { transform: scale(.94); }
.mc-btn:disabled { opacity: .35; cursor: default; }
.mc-btn:focus-visible { outline: 2px solid #F0534A; outline-offset: 2px; }
.mc-val {
  min-width: 34px;
  text-align: center;
  font-family: var(--display, "Geist", system-ui, sans-serif);
  font-weight: 500;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #0D0D0D);
  white-space: nowrap;
}
.mc-val small {
  font-family: var(--text, "Inter", system-ui, sans-serif);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink3, #7C7C83);
}
.mc-val [data-mc-val], .mc-val[data-mc-val] { display: inline-block; transition: transform 150ms ease; }
.mc-bump { transform: translateY(-2px); }

.mc-pad-wrap { display: flex; align-items: center; gap: 12px; }
.mc-holes {
  display: grid;
  gap: 2px;
  padding: 5px 4px;
  border-radius: 999px;
  background: var(--muted, #F2F1F4);
}
.mc-hole {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.25px solid var(--ink3, #7C7C83);
  background: transparent;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.mc-hole.is-above { background: var(--ink2, #55555B); border-color: var(--ink2, #55555B); }
.mc-hole.is-on { background: #F0534A; border-color: #F0534A; }

@media (max-width: 759px) {
  .mc {
    height: auto;
    max-width: 340px;
  }
  .mc-main {
    position: relative;
    width: 100%;
    padding: 20px 18px 22px;
  }
  .mc-title { font-size: 23px; }
  .mc-float {
    position: relative;
    right: auto; bottom: auto;
    width: calc(100% - 20px);
    margin: -14px 0 0 20px;
    padding: 16px 16px 6px;
  }
  .mc-srow { gap: 8px; }
  .mc-stepper { gap: 4px; }
  .mc-btn { width: 44px; height: 44px; }
  .mc-btn::after { inset: 0; }
  .mc-val { min-width: 30px; }
  .mc-pad-wrap { gap: 8px; }
}

@media (max-width: 400px) {
  .mc-main { padding: 18px 16px 20px; }
  .mc-title { font-size: 22px; }
  .mc-setup { gap: 10px; }
  .mc-row { grid-template-columns: 18px 1fr 1fr 44px; gap: 6px; }
  .mc-float { width: calc(100% - 12px); margin-left: 12px; }
  .mc-val { font-size: 20px; min-width: 26px; }
  .mc-val small { margin-right: -2px; }
}

@media (prefers-reduced-motion: reduce) {
  .mc *, .mc *::after { transition: none !important; }
  .mc-btn:active { transform: none; }
  .mc-bump { transform: none; }
}
.vpic-home>*,.vpic-kit>*{width:100%;max-width:520px}
.vpic-home h3{letter-spacing:-.02em}
/* Dark page: the Appearance picture's own controls sit on the page, not on its light panel, and the
   import picture's foot pill is glass; both read the page's ink there. */
:root[data-theme="dark"] .vpic-themes .th{color:var(--ink)}
:root[data-theme="dark"] .vpic-themes .th-sw{box-shadow:inset 0 0 0 1px rgba(255,255,255,.24)}
:root[data-theme="dark"] .vpic-themes .th-tone[aria-pressed="true"] .th-sw{box-shadow:inset 0 0 0 1px rgba(255,255,255,.24),0 0 0 2px #16151C,0 0 0 4px currentColor}
:root[data-theme="dark"] .vpic-import .ic-foot{background:rgba(255,255,255,.1);color:var(--ink-2)}
.vwide .vpic>*{max-width:none}