/* DemoStudio player - stage 1920x1080, light product-demo look. Contract: docs/demostudio-design.md section 6. */
.ds-root {
  --ds-accent: #2f6b4f;
  --ds-ink: #111827;
  --ds-ink2: #374151;
  --ds-mute: #6b7280;
  --ds-line: #e5e7eb;
  position: fixed; inset: 0; overflow: hidden; margin: 0;
  background: #1b1f23;
  font-family: "Pretendard", "Pretendard Variable", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
}
html, body { margin: 0; padding: 0; background: #1b1f23; }
.ds-root *, .ds-root *::before, .ds-root *::after { box-sizing: border-box; }
.ds-viewport { position: absolute; inset: 0; }
#ds-stage {
  position: absolute; left: 0; top: 0; overflow: hidden;
  transform-origin: 0 0; background: #f6f7f9; color: var(--ds-ink);
}
.ds-camera {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  transform-origin: 0 0; transition: transform 1.2s cubic-bezier(.45, 0, .2, 1);
}
.ds-layer { position: absolute; inset: 0; }
.ds-layer.ds-enter { animation: ds-enter .45s ease-out; }
@keyframes ds-enter { from { opacity: 0; } to { opacity: 1; } }

/* no transitions while seeking / validating */
.ds-instant, .ds-instant * { transition: none !important; }
.ds-noanim *, .ds-noanim *::before, .ds-noanim *::after { animation: none !important; transition: none !important; }
.ds-noanim .ds-conn-flow, .ds-noanim .ds-ring { display: none; }

/* ---------- element base ---------- */
.ds-el {
  position: absolute; z-index: 10;
  transition: opacity .55s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.ds-el.ds-hidden { opacity: 0; transform: translateY(22px); pointer-events: none; }
.ds-el.ds-pulse { animation: ds-pulse 1.4s ease-in-out; }
@keyframes ds-pulse {
  0%, 50%, 100% { transform: scale(1); }
  25%, 75% { transform: scale(1.035); }
}
.ds-synthetic {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  background: rgba(17, 24, 39, .78); color: #fff;
  font-size: 17px; font-weight: 700; line-height: 1; padding: 7px 13px; border-radius: 999px;
  letter-spacing: -.01em; pointer-events: none;
}
.ds-media { display: block; width: 100%; height: auto; }
.ds-inline-svg svg { display: block; width: 100%; height: auto; }
.ds-placeholder {
  display: flex; align-items: center; justify-content: center; min-height: 200px; height: 100%;
  background: repeating-linear-gradient(45deg, #f3f4f6 0 18px, #e9ebee 18px 36px);
  color: #9ca3af; font-size: 24px;
}

/* ---------- device ---------- */
.ds-t-device { z-index: 12; }
.ds-frame { position: relative; }
.ds-screen { position: relative; overflow: hidden; background: #fff; }
.ds-screen.ds-fixed .ds-media { height: 100%; object-fit: cover; object-position: top; }
.ds-dev-phone .ds-frame {
  border: 14px solid #15181c; border-radius: 56px; background: #15181c; overflow: hidden;
  box-shadow: 0 0 0 2px #30353b, 0 44px 80px -30px rgba(17, 24, 39, .5);
}
.ds-dev-phone .ds-screen { border-radius: 42px; }
.ds-dev-phone .ds-frame::before {
  content: ""; position: absolute; top: 12px; left: 37%; width: 26%; height: 24px;
  background: #15181c; border-radius: 14px; z-index: 4;
}
.ds-dev-phone .ds-synthetic { top: 48px; right: 22px; }
.ds-dev-tablet .ds-frame {
  border: 20px solid #1c2025; border-radius: 40px; background: #1c2025; overflow: hidden;
  box-shadow: 0 0 0 2px #30353b, 0 44px 80px -30px rgba(17, 24, 39, .45);
}
.ds-dev-tablet .ds-screen { border-radius: 18px; }
.ds-dev-browser .ds-frame {
  border: 1px solid #d5dae0; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -34px rgba(17, 24, 39, .4), 0 2px 6px rgba(17, 24, 39, .06);
}
.ds-dev-browser .ds-synthetic { top: 6px; right: 14px; }
.ds-t-image > .ds-img-box > .ds-synthetic, .ds-t-svg > .ds-img-box > .ds-synthetic {
  top: auto; bottom: calc(100% + 8px); right: 0;
}
.ds-t-layers > .ds-synthetic { top: auto; right: auto; left: 14px; bottom: 14px; }
.ds-bar {
  height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  background: #eef1f4; border-bottom: 1px solid #dde2e7;
}
.ds-bar i { width: 13px; height: 13px; border-radius: 50%; background: #ff5f57; flex: none; }
.ds-bar i:nth-child(2) { background: #febc2e; }
.ds-bar i:nth-child(3) { background: #28c840; }
.ds-url {
  margin-left: 14px; flex: 1; height: 26px; border-radius: 13px; background: #fff;
  font-size: 15px; line-height: 26px; color: var(--ds-mute); padding: 0 14px; overflow: hidden; white-space: nowrap;
}
.ds-url:empty { max-width: 40%; }
.ds-dev-none .ds-frame {
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(17, 24, 39, .4);
}
.ds-dev-label {
  margin-top: 22px; text-align: center; font-size: 26px; font-weight: 700; color: var(--ds-ink2);
  letter-spacing: -.01em; white-space: nowrap;
}

/* ---------- text ---------- */
.ds-t-text {
  z-index: 20; white-space: pre-line; word-break: keep-all; overflow-wrap: normal;
  letter-spacing: -.01em; color: var(--ds-ink2);
}
.ds-role-title { font-size: 60px; font-weight: 800; line-height: 1.22; color: var(--ds-ink); letter-spacing: -.025em; }
.ds-role-subtitle { font-size: 34px; font-weight: 500; line-height: 1.45; color: #4b5563; }
.ds-role-body { font-size: 28px; font-weight: 400; line-height: 1.65; color: var(--ds-ink2); }
.ds-role-badge {
  font-size: 22px; font-weight: 700; line-height: 1.2; color: #fff; background: var(--ds-accent);
  padding: 9px 20px; border-radius: 999px; white-space: nowrap;
}
.ds-role-note {
  font-size: 22px; line-height: 1.55; color: var(--ds-mute);
  border-left: 4px solid var(--ds-accent); padding: 4px 0 4px 18px;
}

/* ---------- steps ---------- */
.ds-t-steps { z-index: 20; display: flex; flex-direction: column; gap: 16px; word-break: keep-all; }
.ds-step {
  display: flex; align-items: flex-start; gap: 20px; padding: 18px 24px;
  border-radius: 18px; background: #fff; border: 2px solid transparent;
  box-shadow: 0 2px 10px rgba(17, 24, 39, .05);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .3s, border-color .3s, opacity .3s;
}
.ds-step-num {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: #e5e7eb; color: var(--ds-mute); font-weight: 800; font-size: 23px;
  display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s;
}
.ds-step-body { min-width: 0; }
.ds-step-title { font-size: 28px; font-weight: 700; color: #4b5563; line-height: 48px; }
.ds-step-text { font-size: 22px; color: var(--ds-mute); line-height: 1.5; margin-top: -2px; }
.ds-step.ds-active {
  border-color: var(--ds-accent); background: color-mix(in srgb, var(--ds-accent) 7%, #fff);
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--ds-accent) 55%, transparent);
}
.ds-step.ds-active .ds-step-num { background: var(--ds-accent); color: #fff; }
.ds-step.ds-active .ds-step-title { color: var(--ds-ink); }
.ds-step.ds-done .ds-step-num { background: color-mix(in srgb, var(--ds-accent) 20%, #fff); color: var(--ds-accent); }
.ds-step.ds-done { opacity: .78; }

/* ---------- connector ---------- */
.ds-t-connector { z-index: 8; pointer-events: none; }
.ds-t-connector.ds-hidden { transform: none; }
.ds-t-connector.ds-pulse { animation: none; }
.ds-t-connector svg { position: absolute; left: 0; top: 0; overflow: visible; }
.ds-conn-line {
  stroke: var(--ds-accent); stroke-width: 5; stroke-linecap: round;
  stroke-dashoffset: var(--ds-len, 0); transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1);
}
.ds-drawn .ds-conn-line { stroke-dashoffset: 0; }
.ds-conn-halo {
  stroke: color-mix(in srgb, var(--ds-accent) 16%, transparent); stroke-width: 20; stroke-linecap: round;
  opacity: 0; transition: opacity .6s;
}
.ds-played .ds-conn-halo { opacity: 1; }
.ds-conn-head { fill: var(--ds-accent); opacity: 0; transition: opacity .3s ease .7s; }
.ds-drawn .ds-conn-head { opacity: 1; }
.ds-conn-flow { opacity: 0; transition: opacity .4s; }
.ds-played .ds-conn-flow { opacity: 1; }
.ds-conn-flow .ds-dot { fill: #fff; stroke: var(--ds-accent); stroke-width: 5; }
.ds-conn-dash .ds-conn-line { stroke-dasharray: 18 14; stroke-dashoffset: 0; transition: none; }
.ds-conn-dash.ds-played .ds-conn-line { animation: ds-dash .9s linear infinite; }
@keyframes ds-dash { to { stroke-dashoffset: -32; } }
.ds-conn-label {
  position: absolute; transform: translate(-50%, -50%);
  background: #fff; color: var(--ds-accent); border: 2px solid var(--ds-accent);
  font-size: 22px; font-weight: 700; padding: 7px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(17, 24, 39, .35); opacity: 0; transition: opacity .4s ease .5s;
}
.ds-conn-label.ds-above { transform: translate(-50%, calc(-100% - 22px)); }
.ds-drawn .ds-conn-label { opacity: 1; }

/* ---------- highlight ---------- */
.ds-t-highlight { z-index: 40; pointer-events: none; }
.ds-t-highlight.ds-hidden { transform: scale(1.08); }
.ds-hl-box {
  position: absolute; inset: 0; border: 5px solid var(--ds-accent); border-radius: 16px;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--ds-accent) 22%, transparent), 0 14px 34px -10px rgba(17, 24, 39, .35);
}
.ds-hl-label {
  position: absolute; left: 50%; bottom: calc(100% + 18px); transform: translateX(-50%);
  background: var(--ds-accent); color: #fff; font-size: 24px; font-weight: 700; line-height: 1.2;
  padding: 11px 22px; border-radius: 12px; white-space: nowrap;
  box-shadow: 0 12px 26px -12px rgba(17, 24, 39, .5);
}
.ds-hl-label::after {
  content: ""; position: absolute; left: 50%; top: 100%; margin-left: -10px;
  border: 10px solid transparent; border-top-color: var(--ds-accent);
}
.ds-hl-label.ds-pos-bottom { bottom: auto; top: calc(100% + 18px); }
.ds-hl-label.ds-pos-bottom::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ds-accent); }
.ds-hl-label.ds-pos-right, .ds-hl-label.ds-pos-left { bottom: auto; top: 50%; transform: translateY(-50%); }
.ds-hl-label.ds-pos-right { left: calc(100% + 20px); }
.ds-hl-label.ds-pos-left { left: auto; right: calc(100% + 20px); }
.ds-hl-label.ds-pos-right::after, .ds-hl-label.ds-pos-left::after { top: 50%; margin: -10px 0 0; border-top-color: transparent; }
.ds-hl-label.ds-pos-right::after { left: auto; right: 100%; border-right-color: var(--ds-accent); }
.ds-hl-label.ds-pos-left::after { left: 100%; border-left-color: var(--ds-accent); }

/* ---------- map ---------- */
.ds-t-map { z-index: 6; }
.ds-map-bg {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: #e8ecef;
  box-shadow: 0 30px 60px -30px rgba(17, 24, 39, .35), 0 0 0 1px rgba(17, 24, 39, .06);
}
.ds-map-bg .ds-media { width: 100%; height: 100%; object-fit: cover; }
.ds-marker {
  position: absolute; width: 0; height: 0; z-index: 2; opacity: 0;
  transform: translateY(-16px) scale(.5);
  transition: opacity .35s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1);
}
.ds-marker.ds-on { opacity: 1; transform: none; }
.ds-pin {
  position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ds-mk, var(--ds-accent)); border: 6px solid #fff; box-shadow: 0 4px 14px rgba(17, 24, 39, .35);
}
.ds-ring {
  position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; border-radius: 50%;
  background: color-mix(in srgb, var(--ds-mk, var(--ds-accent)) 35%, transparent);
  animation: ds-ring 2s ease-out infinite;
}
@keyframes ds-ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.ds-mk-label {
  position: absolute; left: 28px; top: -22px; white-space: nowrap;
  background: #fff; color: var(--ds-ink); font-size: 22px; font-weight: 700; line-height: 1.2;
  padding: 9px 16px; border-radius: 10px; box-shadow: 0 8px 22px -8px rgba(17, 24, 39, .35);
}
.ds-marker.ds-left .ds-mk-label { left: auto; right: 28px; }

/* ---------- layers (exploded view) ---------- */
.ds-ly-scene { position: absolute; width: 0; height: 0; transform-style: preserve-3d; }
.ds-ly-plane {
  position: absolute; border-radius: 18px; overflow: hidden; background: #fff;
  border: 2px solid #fff; opacity: .96;
  box-shadow: 0 40px 50px -30px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .08);
  transition: transform 1s cubic-bezier(.3, .7, .2, 1);
}
.ds-ly-plane .ds-media { width: 100%; height: 100%; object-fit: cover; }
.ds-ly-lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.ds-ly-leader { opacity: 0; transition: opacity .5s; }
.ds-ly-leader.ds-on { opacity: 1; }
.ds-ly-leader line { stroke: #9ca3af; stroke-width: 2; stroke-dasharray: 5 6; }
.ds-ly-leader circle { fill: var(--ds-accent); stroke: #fff; stroke-width: 3; }
.ds-ly-label {
  position: absolute; transform: translate(-12px, -50%); opacity: 0;
  font-size: 28px; font-weight: 700; color: var(--ds-ink); line-height: 1.25; word-break: keep-all;
  transition: opacity .5s, transform .5s;
}
.ds-ly-label.ds-on { opacity: 1; transform: translate(0, -50%); }

/* ---------- compare ---------- */
.ds-t-compare { display: flex; }
.ds-cmp-pane { position: relative; flex: none; }
.ds-cmp-card {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden; background: #fff;
  border: 1px solid var(--ds-line); box-shadow: 0 30px 60px -32px rgba(17, 24, 39, .4);
}
.ds-cmp-card .ds-media { width: 100%; height: 100%; object-fit: contain; }
.ds-cmp-label {
  position: absolute; left: 20px; top: 20px; z-index: 3;
  background: #4b5563; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.2;
  padding: 9px 18px; border-radius: 999px;
}
.ds-after .ds-cmp-label { background: var(--ds-accent); }
.ds-cmp-mid { position: relative; flex: none; display: flex; align-items: center; justify-content: center; }
.ds-cmp-line { position: absolute; top: 30px; bottom: 30px; left: 50%; width: 2px; margin-left: -1px; background: #d1d5db; }
.ds-cmp-arrow {
  position: relative; width: 62px; height: 62px; border-radius: 50%; background: var(--ds-accent); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -10px rgba(17, 24, 39, .5);
}

/* ---------- image / svg ---------- */
.ds-img-box { position: relative; }
.ds-img-box.ds-fixed .ds-media { height: 100%; object-fit: contain; }
.ds-img-label { margin-top: 14px; text-align: center; font-size: 22px; font-weight: 600; color: #4b5563; }

/* ---------- caption ---------- */
#ds-caption {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 100;
  width: max-content; max-width: min(1500px, calc(100% - 96px)); padding: 16px 34px; border-radius: 16px;
  background: rgba(17, 24, 39, .84); color: #fff;
  font-size: 34px; font-weight: 500; line-height: 1.45; text-align: center;
  word-break: keep-all; letter-spacing: -.01em; pointer-events: none;
}
#ds-caption.ds-empty { display: none; }

/* ---------- controls (interactive) ---------- */
.ds-controls {
  position: absolute; left: 0; right: 0; bottom: 0; height: 72px; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px;
  color: #e5e7eb; user-select: none;
}
.ds-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.ds-btn:hover { background: rgba(255, 255, 255, .2); }
.ds-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ds-btn svg { width: 22px; height: 22px; }
.ds-btn.ds-play { width: 52px; height: 52px; background: var(--ds-accent); }
.ds-dots { display: flex; gap: 8px; margin: 0 6px; flex-wrap: nowrap; }
.ds-dot {
  width: 10px; height: 10px; border-radius: 5px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .3); transition: width .25s, background .25s;
}
.ds-dot.ds-on { width: 28px; background: #fff; }
.ds-counter {
  font-size: 14px; color: #cbd5e1; max-width: 36vw; white-space: pre; overflow: hidden; text-overflow: ellipsis;
}
.ds-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.ds-progress-bar { height: 100%; width: 0; background: var(--ds-accent); }
@media (max-width: 640px) {
  .ds-counter { display: none; }
  .ds-dots { gap: 5px; }
  .ds-controls { gap: 8px; }
}

/* ---------- sketch (hand-drawn SVG line art, sketch.ts) ---------- */
.ds-root { --ds-hand-font: "DS Hand", "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
.ds-t-sketch.ds-hidden { transform: none; }
.ds-t-sketch .ds-sketch { position: relative; }
.ds-t-sketch .ds-sketch svg { display: block; width: 100%; height: auto; overflow: visible; }
.ds-t-sketch .ds-sketch.ds-fixed svg { height: 100%; }
.ds-t-sketch .ds-sketch svg text { font-family: var(--ds-hand-font); }
.ds-sk-color svg [stroke]:not([stroke="none"]) { stroke: var(--ds-sk-color); }
.ds-sk-sw svg [stroke]:not([stroke="none"]) { stroke-width: var(--ds-sk-sw); }
.ds-el.ds-popping { transition: opacity .12s ease; }
.ds-font-hand { font-family: var(--ds-hand-font); letter-spacing: 0; }

/* ---------- theme style "sketch" (project.theme.style = "sketch"): paper, ink, caption box ---------- */
.ds-style-sketch { --ds-ink: #1d1d1b; --ds-ink2: #1d1d1b; }
.ds-style-sketch #ds-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(rgba(60, 50, 30, .035) 1px, transparent 1.2px),
    radial-gradient(rgba(60, 50, 30, .025) 1px, transparent 1.2px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px;
}
.ds-style-sketch .ds-camera { z-index: 1; }
.ds-style-sketch #ds-caption {
  bottom: auto; top: 72%; transform: translateX(-50%);
  background: #1d1d1b; color: #fff; border-radius: 18px; padding: 18px 34px;
  font-size: 40px; font-weight: 600; line-height: 1.4;
}
.ds-style-sketch[data-orient="landscape"] #ds-caption { top: auto; bottom: 56px; }
.ds-style-sketch .ds-t-text { color: var(--ds-ink); }

/* ---------- illust elements (illust.ts): card, pill, quote, checkmark, character ---------- */
.ds-root { --ds-ok: #2e9e5b; --ds-warn: #e8552b; --ds-mark: #f6d34a; --ds-line-ink: #1d1d1b;
  --ds-mono: Consolas, "D2Coding", "Courier New", monospace; }
.ds-card { background: #fff; border: 3px solid var(--ds-line-ink); border-radius: 14px; overflow: hidden;
  box-shadow: 6px 6px 0 rgba(29, 29, 27, .12); }
.ds-card-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 2px solid var(--ds-line-ink); }
.ds-card-dots { width: 54px; height: 12px; background:
  radial-gradient(circle, var(--ds-line-ink) 0 5px, transparent 5.5px) 0 0 / 18px 12px repeat-x; }
.ds-chrome-app .ds-card-dots { display: none; }
.ds-card-title { font-size: 22px; font-weight: 700; color: var(--ds-ink2); }
.ds-card-body { display: flex; flex-direction: column; gap: 16px; padding: 24px 26px 26px; }
.ds-row { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.ds-row-text { font-size: 28px; font-weight: 600; color: var(--ds-ink); flex: 1 1 auto; min-width: 0; }
.ds-input { flex: 1 1 auto; min-width: 0; height: 56px; display: flex; align-items: center; padding: 0 18px;
  border: 2.5px solid var(--ds-line-ink); border-radius: 10px; background: #fff;
  font-family: var(--ds-mono); font-size: 26px; white-space: nowrap; overflow: hidden; }
.ds-caret { display: none; width: 2px; height: 30px; margin-left: 2px; background: var(--ds-line-ink); }
.ds-input.ds-typing .ds-caret { display: inline-block; }
.ds-cbtn { flex: 1 1 auto; text-align: center; padding: 12px 20px; border-radius: 10px;
  background: var(--ds-accent); color: #fff; font-size: 26px; font-weight: 800; }
.ds-badge { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 22px; font-weight: 800;
  border: 2.5px solid var(--ds-line-ink); background: #fff; }
.ds-badge-warn { border-color: var(--ds-warn); color: var(--ds-warn); }
.ds-badge-ok { border-color: var(--ds-ok); color: var(--ds-ok); }
.ds-tick { flex: 0 0 auto; display: inline-block; width: 44px; height: 44px; line-height: 0; color: var(--ds-ok);
  opacity: 0; transform-origin: center; }
.ds-tick svg { width: 100%; height: 100%; display: block; }
.ds-tick-warn { color: var(--ds-warn); }
.ds-tick.ds-on { opacity: 1; }
.ds-t-checkmark .ds-checkmark { width: 100%; height: auto; aspect-ratio: 1; }
.ds-pill-wrap { width: auto; }
.ds-pill { display: inline-block; padding: 8px 26px; border-radius: 999px; font-size: 28px; font-weight: 800;
  line-height: 1.3; white-space: nowrap; border: 3px solid var(--ds-line-ink); background: #fff; color: var(--ds-ink); }
.ds-pill-accent { background: var(--ds-accent); border-color: var(--ds-accent); color: #fff; }
.ds-pill-dark { background: var(--ds-line-ink); color: #fff; }
.ds-quote { position: relative; background: #fff; border: 3px solid var(--ds-line-ink); border-radius: 14px;
  padding: 34px 40px 36px; box-shadow: 6px 6px 0 rgba(29, 29, 27, .12); }
.ds-quote-src { position: absolute; top: -26px; left: 32px; font-size: 22px; padding: 4px 18px; }
.ds-quote-text { margin: 0; font-size: 34px; line-height: 1.55; font-weight: 500; color: var(--ds-ink); word-break: keep-all; }
.ds-hl { background-image: linear-gradient(transparent 55%, var(--ds-mark) 55%, var(--ds-mark) 92%, transparent 92%);
  background-repeat: no-repeat; background-size: 100% 100%; }
.ds-char .ds-media { width: 100%; height: auto; }
.ds-t-text.ds-underline::after { content: ""; display: block; width: 120px; height: 8px; margin: 18px auto 0;
  border-radius: 4px; background: var(--ds-accent); }
.ds-t-text.ds-underline[style*="text-align: left"]::after { margin-left: 0; }

/* ---------- theme style "illust" (16:9 illustrated explainer) ---------- */
.ds-style-illust { --ds-ink: #1d1d1b; --ds-ink2: #3a3a37; --ds-accent: #e8552b; }
.ds-style-illust #ds-caption { background: #3a3a37; border-radius: 10px; font-weight: 700; padding: 12px 28px; font-size: 34px; }
.ds-style-illust .ds-t-text { color: var(--ds-ink); }
.ds-style-illust .ds-conn-line { stroke: var(--ds-line-ink); stroke-width: 3.5; }
.ds-style-illust .ds-conn-head { fill: var(--ds-line-ink); }
.ds-style-illust .ds-conn-halo { display: none; }
.ds-btn.ds-mute.ds-on { opacity: .45; text-decoration: line-through; }
/* frame: "none" - no card shadow or rounded corners (clips placed straight on the stage) */
.ds-noframe .ds-frame, .ds-noframe .ds-screen { box-shadow: none !important; border-radius: 0 !important; background: transparent !important; border: 0 !important; }
.ds-noframe .ds-frame::before, .ds-noframe .ds-frame::after { display: none !important; }

/* ---------- shapes (2026-11-29): box, tap, spotlight; slide-in ---------- */
.ds-el.ds-sliding, .ds-el.ds-sliding.ds-hidden { transition: none; }
.ds-el.ds-sliding { opacity: 1; transform: none; }
.ds-box-wrap { position: absolute; }
.ds-box { position: relative; width: 100%; height: 100%; box-sizing: border-box; display: flex; overflow: visible; }
.ds-box-text { width: 100%; white-space: pre-line; line-height: 1.3; font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
.ds-box-text.ds-hand { font-family: var(--ds-hand-font); line-height: 1.15; }
.ds-box-tail { position: absolute; width: 44px; height: 44px; transform: rotate(45deg); z-index: -1; }
.ds-tail-bottom-left { left: 56px; bottom: -18px; } .ds-tail-bottom-right { right: 56px; bottom: -18px; }
.ds-tail-top-left { left: 56px; top: -18px; } .ds-tail-top-right { right: 56px; top: -18px; }
.ds-tail-left { left: -18px; top: calc(50% - 22px); } .ds-tail-right { right: -18px; top: calc(50% - 22px); }
.ds-t-tap.ds-hidden { transform: none; }
.ds-tap-dot { position: absolute; left: 25%; top: 25%; width: 50%; height: 50%; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,255,255,.7); }
.ds-tap-ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid; opacity: 0; }
.ds-t-spotlight { pointer-events: none; }
.ds-t-spotlight.ds-hidden { transform: none; }
.ds-spot-ring { position: absolute; border: 5px solid; border-radius: 50%; box-sizing: border-box; }
/* cutout style (2026-11-29): paper on a light table */
.ds-style-cutout { --ds-ink: #1f1f1f; --ds-ink2: #333; --ds-accent: #fa5252; }
.ds-style-cutout #ds-caption { background: #222; border-radius: 12px; font-weight: 700; padding: 12px 28px; font-size: 34px; }
.ds-t-spotlight { z-index: 35; }
.ds-t-tap { z-index: 38; }
/* launch style (2026-11-29): dark stage, big type, light */
.ds-style-launch { --ds-ink: #f5f5f7; --ds-ink2: #a1a1a6; --ds-accent: #7c8cff; }
.ds-style-launch #ds-caption { background: rgba(255,255,255,.12); color: #f5f5f7; border-radius: 12px; font-weight: 700; padding: 12px 28px; font-size: 34px; }
.ds-style-launch .ds-t-text { color: var(--ds-ink); }
/* notebook style (2026-11-29): theory / maths / code explainers in a Jupyter-like look (notebook.ts) */
.ds-style-notebook { --ds-ink: #111827; --ds-ink2: #6b7280; --ds-accent: #2563eb; --ds-code: "DS Code", D2Coding, Consolas, "Malgun Gothic", monospace; }
.ds-style-notebook .ds-layer.ds-enter { animation: none; }
.ds-style-notebook #ds-caption { background: none; color: #111827; font-weight: 800; font-size: 44px; line-height: 1.35; padding: 0; border-radius: 0; letter-spacing: -.02em; }
.ds-style-notebook[data-orient="landscape"] #ds-caption { font-size: 40px; }
.ds-nb-heading { color: var(--ds-ink, #111827); }
.ds-nb-series { color: #6b7280; font-weight: 600; margin-bottom: .35em; letter-spacing: -.01em; }
.ds-nb-accent { color: var(--ds-accent); }
.ds-nb-title { font-weight: 800; letter-spacing: -.02em; line-height: 1.25; word-break: keep-all; }
.ds-nb-label { position: absolute; font-family: var(--ds-code); font-size: 20px; color: #6b7280; white-space: nowrap; }
.ds-nb-label-left { right: calc(100% + 14px); top: 14px; }
.ds-nb-label-top { left: 0; bottom: calc(100% + 8px); }
.ds-nb-code { background: #fff; border: 2px solid #d5dae1; border-radius: 10px; padding: 12px 0; font-family: var(--ds-code); line-height: 1.6; color: #1f2937; box-sizing: border-box; }
.ds-nb-line { display: flex; padding: 0 18px 0 0; white-space: pre; transition: background .25s; }
.ds-nb-line.ds-nb-hl { background: #fff3bf; }
.ds-nb-no { flex: none; width: 2.6em; padding-right: .9em; text-align: right; color: #adb5bd; user-select: none; }
.ds-nb-tx { flex: 1; min-width: 0; overflow: hidden; }
.ds-tk-kw { color: #7c3aed; font-weight: 700; }
.ds-tk-fn { color: #1d4ed8; }
.ds-tk-st { color: #c2410c; }
.ds-tk-nu { color: #0f766e; }
.ds-tk-cm { color: #9ca3af; font-style: italic; }
.ds-tk-op { color: #475569; }
.ds-nb-caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -.15em; background: #1f2937; margin-left: 1px; }
.ds-nb-out { position: absolute; inset: 0; background: #fff; border: 2px solid #e5e7eb; border-radius: 14px; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.ds-nb-badge { position: absolute; right: 0; bottom: calc(100% + 8px); background: #e7f5ff; color: #1c7ed6; font-size: 18px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.ds-nb-source { color: #6b7280; line-height: 1.4; }
.ds-nb-math { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .18em; color: #111827; font-weight: 600; }
.ds-nb-math .katex { font-size: 1em; }
.ds-nb-part { transition: opacity .3s; }
.ds-nb-part.ds-nb-off { opacity: 0; }
.ds-nb-svg { display: block; overflow: visible; font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
.ds-nb-grid { stroke: #eef0f3; stroke-width: 1.5; }
.ds-nb-axis { stroke: #9ca3af; stroke-width: 2; }
.ds-nb-tick { fill: #6b7280; }
.ds-nb-alabel { fill: #374151; font-weight: 700; }
.ds-nb-ctitle { fill: #374151; font-weight: 700; }
.ds-nb-reflabel, .ds-nb-slabel, .ds-nb-mlabel { font-weight: 800; }
.ds-nb-legend { fill: #374151; font-weight: 600; }
.ds-style-notebook #ds-caption.ds-cap-box { width: max-content !important; max-width: 86% !important; left: 50% !important; transform: translateX(-50%) !important;
  background: rgba(33,37,41,.92); color: #fff; font-weight: 700; font-size: 32px; padding: 12px 26px; border-radius: 10px; }
.ds-nb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; }
.ds-nb-chip { display: inline-block; border: 2px solid #dee2e6; background: #f8f9fa; color: #343a40; border-radius: 999px; padding: .18em .7em; font-weight: 700; white-space: nowrap; transition: opacity .3s; }
.ds-nb-chip.ds-solid { color: #fff; }
.ds-nb-chip.ds-nb-off { opacity: 0; }
.ds-nb-chip-sep { color: #adb5bd; font-weight: 700; }
.ds-nb-stack { display: flex; flex-direction: column; }
.ds-nb-card { border: 2px solid #dee2e6; background: #fff; border-radius: 12px; padding: .5em .8em; transition: opacity .35s, background .35s, border-color .35s; }
.ds-nb-card-t { font-weight: 800; color: #212529; letter-spacing: -.01em; }
.ds-nb-card-s { color: #868e96; margin-top: .25em; }
.ds-nb-card.ds-on { border-color: var(--nb-c); background: color-mix(in srgb, var(--nb-c) 9%, #fff); }
.ds-nb-card.ds-on .ds-nb-card-t { color: var(--nb-c); }
.ds-nb-card.ds-dim { opacity: .32; }
.ds-nb-panel { border: 2px solid var(--nb-c); background: #fff; border-radius: 14px; padding: .7em .9em; box-sizing: border-box; display: flex; flex-direction: column; gap: .45em; transition: opacity .35s, background .35s; }
.ds-nb-panel-k { color: #868e96; font-weight: 700; }
.ds-nb-panel-t { font-weight: 800; color: #212529; line-height: 1.25; white-space: pre-line; letter-spacing: -.01em; }
.ds-nb-panel-b { color: #495057; line-height: 1.5; white-space: pre-line; }
.ds-nb-panel-tag { align-self: flex-start; background: var(--nb-c); color: #fff; font-weight: 800; border-radius: 999px; padding: .2em .8em; }
.ds-nb-panel.ds-on { background: color-mix(in srgb, var(--nb-c) 7%, #fff); }
.ds-nb-panel.ds-dim { opacity: .3; border-color: #dee2e6; }
.ds-nb-range-row { position: absolute; left: 0; right: 0; }
.ds-nb-range-l { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 28px; color: #343a40; }
.ds-nb-range-line { position: absolute; top: 50%; height: 2px; background: #ced4da; }
.ds-nb-range-box { position: absolute; top: 18%; height: 64%; border: 2.5px dashed; border-radius: 8px; background: rgba(121,80,242,.06); box-sizing: border-box; }
.ds-nb-range-mid { position: absolute; top: 26%; height: 48%; width: 3px; margin-left: -1.5px; background: #343a40; }
.ds-nb-range-dot { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #1f2937; box-shadow: 0 0 0 4px #fff; }
.ds-nb-range-note { position: absolute; top: 86%; text-align: center; font-size: 18px; font-weight: 700; white-space: nowrap; }
.ds-nb-math-frame { padding: .15em .6em; box-sizing: border-box; }
