/* Studio components on top of theme.css (which sets the colors, type and admin chrome). */
:root {
  --studio-accent: var(--jade, #14806a);
  --studio-error: var(--error-fg, #b42318);
  --studio-warning: #b45309;
  --studio-info: var(--body-quiet-color, #616972);
  --studio-ok: var(--jade-strong, #0f6b58);
  --studio-card: var(--surface, #fdfdfd);
  --studio-line: var(--hairline-color, #e7e9ec);
}

.studio-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.studio-thumb {
  object-fit: cover;
  border-radius: 6px;
  vertical-align: middle;
  background: var(--darkened-bg, #f3f4f6);
}
.studio-thumb--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--body-quiet-color, #6b7280);
}
.studio-preview-media { max-width: 480px; max-height: 360px; border-radius: 8px; }

.studio-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.studio-actions form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.studio-actions .button, .studio-actions button { margin: 0; }

.studio-panel {
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 16px;
  background: var(--studio-card);
}
.studio-panel h3 { margin: 0 0 10px; font-size: 14px; }
.studio-tabs { display: flex; gap: 6px; margin: 12px 0 4px; border-bottom: 1px solid var(--studio-line); }
.studio-tab { padding: 8px 14px; border-radius: 8px 8px 0 0; color: var(--body-quiet-color, #6b7280); }
.studio-tab.is-active { background: var(--studio-accent); color: var(--on-jade, #fff) !important; font-weight: 600; }
.studio-phone .rule-text h4, .studio-phone .rule-text h5, .studio-phone .rule-text h6 { margin: 8px 0 4px; }
.studio-phone .rule-text blockquote { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--phone-accent, #14806a); color: #4b5563; }
.branch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .branch-layout { grid-template-columns: 1fr; } }
#branch-template { width: 100%; min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; box-sizing: border-box; }
#branch-output { border: 1px solid var(--studio-line); border-radius: 10px; padding: 12px 14px; min-height: 80px; background: var(--studio-card); }
.branch-vars { max-height: 60vh; overflow: auto; }
.branch-vars table { width: 100%; border-collapse: collapse; font-size: 12px; }
.branch-vars td { padding: 3px 6px; border-bottom: 1px solid var(--studio-line); vertical-align: top; }
.branch-vars td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; cursor: pointer; }
.branch-examples li { margin: 4px 0; }
.branch-examples code { cursor: pointer; }
.studio-panel__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.studio-panel__title { font-size: 16px; font-weight: 600; display: flex; gap: 8px; align-items: center; }

.studio-issues { list-style: none; margin: 0; padding: 0; }
.studio-issues li { padding: 4px 0 4px 22px; position: relative; line-height: 1.5; }
.studio-issues li::before { position: absolute; left: 0; font-weight: 700; }
.studio-issues .error::before { content: "✕"; color: var(--studio-error); }
.studio-issues .warning::before { content: "!"; color: var(--studio-warning); left: 4px; }
.studio-issues .info::before { content: "i"; color: var(--studio-info); left: 4px; font-style: italic; }
.studio-issues .where { color: var(--body-quiet-color, #6b7280); margin-right: 4px; }
.studio-ok { color: var(--studio-ok); font-weight: 600; }

.studio-help { margin-top: 10px; }
.studio-help summary { cursor: pointer; font-weight: 600; }
.studio-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; margin-top: 10px; }
.studio-help-list { margin: 0; padding-left: 18px; }
.studio-help-list li { margin: 2px 0; list-style: disc; }
.studio-help code { background: var(--darkened-bg, #f3f4f6); padding: 0 4px; border-radius: 4px; }

.studio-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.studio-upload-status { margin-top: 6px; color: var(--body-quiet-color, #6b7280); }

#studio-dropzone {
  border: 2px dashed var(--studio-line);
  border-radius: 12px;
  padding: 40px 16px;
  text-align: center;
  cursor: pointer;
  color: var(--body-quiet-color, #6b7280);
}
#studio-dropzone { transition: border-color .15s, background-color .15s, color .15s; }
#studio-dropzone:hover, #studio-dropzone:focus-visible { border-color: var(--studio-accent); outline: none; }
#studio-dropzone.is-over, .is-page-dropping #studio-dropzone {
  border-color: var(--studio-accent);
  color: var(--studio-accent);
  background-color: color-mix(in srgb, var(--studio-accent) 7%, transparent);
}
#studio-upload-list { list-style: none; padding: 0; margin: 16px 0 0; }
#studio-upload-list:empty { display: none; }
/* the media list: a slim drop bar above the search */
.studio-quickdrop { margin: 0 0 14px; }
.studio-quickdrop #studio-dropzone { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 16px; }
.studio-quickdrop #studio-dropzone .ph { font-size: 20px; color: var(--studio-accent); }
.studio-quickdrop #studio-dropzone small { flex-basis: 100%; }
.studio-quickdrop #studio-upload-list { margin-top: 8px; }
/* the media add form: the file row is where a dropped file lands */
.is-page-dropping .studio-filedrop { outline: 2px dashed var(--studio-accent); outline-offset: 2px; border-radius: 10px; background-color: color-mix(in srgb, var(--studio-accent) 6%, transparent); }
/* files dragged over a media page: the whole window takes them */
.studio-page-drop {
  position: fixed;
  inset: 10px;
  z-index: 60;
  display: none;
  place-items: center;
  border: 2px dashed var(--studio-accent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--body-bg, #fff) 78%, transparent);
  pointer-events: none;
}
.studio-page-drop span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--studio-accent); color: var(--on-jade, #fff); font-size: 15px; font-weight: 650; box-shadow: 0 10px 30px rgba(6, 35, 28, .25); }
.studio-page-drop .ph { font-size: 20px; }
.is-page-dropping .studio-page-drop { display: grid; }
.studio-upload-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--studio-line); }
.studio-upload-name { font-weight: 600; min-width: 180px; }
.studio-upload-row.is-error .studio-upload-state { color: var(--studio-error); }
.studio-upload-row.is-done .studio-upload-state { color: var(--studio-ok); }

.studio-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.studio-dashboard ul { margin: 0; padding-left: 0; list-style: none; }
.studio-dashboard li { padding: 4px 0; border-bottom: 1px solid var(--studio-line); }
.studio-stat { font-size: 22px; font-weight: 700; }

.studio-results { border-collapse: collapse; width: 100%; }
.studio-results th, .studio-results td { padding: 6px 10px; border-bottom: 1px solid var(--studio-line); text-align: right; }
.studio-results th:first-child, .studio-results td:first-child { text-align: left; }
.studio-prose { max-width: 720px; line-height: 1.7; }
/* an AI call's raw data on the chapter review page (readings/admin.py CallInline): what was sent, what came back */
.raw-call summary { cursor: pointer; font-size: 12.5px; color: var(--body-quiet-color, #6b7280); overflow-wrap: anywhere; }
.raw-call[open] summary { margin-bottom: 6px; }
.raw-call__label { margin: 8px 0 4px; font-size: 11.5px; font-weight: 700; color: var(--body-quiet-color, #6b7280); }
.raw-call__text { max-height: 420px; overflow: auto; margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--darkened-bg, #f6f8f7);
                  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Webtoon cut: shared by the preview and the screen editor (the web app can reuse it).
   A region places text on the cut, bare or on a box drawn behind it. Region positions are % of the cut and
   font size is % of its width, so a cut looks the same at any width. */
.panel { position: relative; container-type: inline-size; --ink: #2A2230; }
.panel > img { position: relative; width: 100%; display: block; }
/* Cut shapes. Slant: the picture inside a slanted frame line. Inset: a smaller framed picture on one side,
   the rest of the cut is the page, where bubbles can sit. Sticker: a small cut-out picture, no frame. */
.panel.frame-slant::before { content: ""; position: absolute; inset: 0; background: var(--ink); clip-path: polygon(0 0, 100% 4.5%, 100% 100%, 0 95.5%); }
.panel.frame-slant > img { clip-path: polygon(1.5px 1.5px, calc(100% - 1.5px) calc(4.5% + 1.5px), calc(100% - 1.5px) calc(100% - 1.5px), 1.5px calc(95.5% - 1.5px)); }
/* leaning the other way (좌하 → 우상): the same frame mirrored, its right side higher */
.panel.frame-slant.slant-up::before { clip-path: polygon(0 4.5%, 100% 0, 100% 95.5%, 0 100%); }
.panel.frame-slant.slant-up > img { clip-path: polygon(1.5px calc(4.5% + 1.5px), calc(100% - 1.5px) 1.5px, calc(100% - 1.5px) calc(95.5% - 1.5px), 1.5px calc(100% - 1.5px)); }
.panel.frame-inset > img, .panel.frame-sticker > img { width: var(--iw, 64%); margin-left: calc((100% - var(--iw, 64%)) / 2); }
.panel.frame-inset.side-left > img, .panel.frame-sticker.side-left > img { margin-left: 4%; }
.panel.frame-inset.side-right > img, .panel.frame-sticker.side-right > img { margin-left: calc(96% - var(--iw, 64%)); }
.panel.frame-inset > img { box-sizing: border-box; border: 1.5px solid var(--ink); box-shadow: 0 .6em 1.4em -.6em rgba(42, 34, 48, .35); }
.panel.frame-sticker > img { filter: drop-shadow(0 .35em .7em rgba(42, 34, 48, .14)); }
.panel.fade-top > img { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%); mask-image: linear-gradient(to bottom, transparent, #000 18%); }
.panel.fade-bottom > img { -webkit-mask-image: linear-gradient(to top, transparent, #000 18%); mask-image: linear-gradient(to top, transparent, #000 18%); }
.panel.fade-both > img { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent); }
.panel-region {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  height: var(--h);
  padding: .2em .3em;
  font-size: calc(var(--fs, 4.2) * 1cqw);
  line-height: 1.35;
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: anywhere;
  color: var(--region-color, #222);
}
.panel-region.align-left { justify-content: flex-start; text-align: left; }
.panel-region.align-right { justify-content: flex-end; text-align: right; }
.panel-region.weight-bold { font-weight: 700; }
/* 강조 글자 (em_look, em_color): the words wrapped in ** in a text area. Without a colour of its own, the product's
   accent drawn a little toward the words' own colour: deeper in a white bubble, lighter in white words on a picture */
.panel-region strong { font-weight: inherit; color: var(--region-em, color-mix(in srgb, var(--phone-accent, #14806a) 72%, currentColor)); }
.panel-region.em-bold strong { font-weight: 800; }
.panel-region.em-marker strong {
  color: inherit; background: linear-gradient(transparent 56%, color-mix(in srgb, var(--region-em, color-mix(in srgb, var(--phone-accent, #14806a) 72%, currentColor)) 42%, transparent) 0);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.panel-region.em-underline strong {
  color: inherit; text-decoration: underline .12em var(--region-em, color-mix(in srgb, var(--phone-accent, #14806a) 72%, currentColor)); text-underline-offset: .2em;
  text-decoration-skip-ink: none;
}
/* Narration boxes: the text sits on its own paper (or ink) box, so it reads on any picture. */
.panel-region.box-caption, .panel-region.box-ink { height: auto; padding: .55em .8em; border-radius: .25em; box-shadow: 0 .15em .6em rgba(15, 22, 20, .18); }
.panel-region.box-caption { background: rgba(251, 248, 241, .94); border: 1px solid rgba(30, 43, 40, .16); color: var(--region-color, #1E2B28); }
.panel-region.box-ink { background: rgba(18, 26, 23, .84); border: 1px solid rgba(191, 227, 211, .22); color: var(--region-color, #EEF4F1); }
/* A narration frame: paper with a double line, for the narrator's voice. */
.panel-region.box-frame {
  height: auto; padding: .95em 1.1em; background: rgba(255, 253, 249, .96); color: var(--region-color, #2A2230);
  border: 1.5px solid var(--ink); outline: 1px solid rgba(42, 34, 48, .6); outline-offset: -.32em;
  box-shadow: 0 .3em 1em -.3em rgba(42, 34, 48, .25);
}
/* Speech bubbles: the area is the bubble's body; its picture (catalog/bubbles.py: body and tail as one outline,
   so the outline runs unbroken into the tail) is stretched over the area plus a margin for the tail. The text
   takes the colour that reads on the bubble's fill (--bubble-text) unless the writer picked one. */
.panel-region.box-bubble { padding: .3em calc(var(--rw, 40) * .13%); color: var(--region-color, var(--bubble-text, var(--ink))); }
.panel-region.box-bubble::before {
  content: ""; position: absolute; z-index: -1; inset: -23.333% -10%;
  background: var(--bubble) center / 100% 100% no-repeat; filter: drop-shadow(0 .18em .45em rgba(42, 34, 48, .14));
}
/* A long tail is drawn on a canvas with twice the margin (bubbles.py VIEWS). */
.panel-region.box-bubble.tail-long::before { inset: -46.667% -20%; }
.panel-region.bubble-round { padding-inline: calc(var(--rw, 40) * .07%); }
.panel-region.bubble-cloud { padding-inline: calc(var(--rw, 40) * .16%); }
.panel-region.bubble-shout { padding-inline: calc(var(--rw, 40) * .18%); font-weight: 700; }
.panel-region.bubble-soft::before { filter: drop-shadow(0 .3em .9em rgba(42, 34, 48, .24)); }
/* The drawn shapes (bubbles.py DRAWN): more room where the edge comes in, and their own shadow or light. */
.panel-region.bubble-capsule, .panel-region.bubble-anger, .panel-region.bubble-flower, .panel-region.bubble-sing,
.panel-region.bubble-dream, .panel-region.bubble-shiver { padding-inline: calc(var(--rw, 40) * .16%); }
.panel-region.bubble-crystal, .panel-region.bubble-scroll { padding-inline: calc(var(--rw, 40) * .19%); }
.panel-region.bubble-burst { padding-inline: calc(var(--rw, 40) * .2%); font-weight: 700; }
.panel-region.bubble-pop::before, .panel-region.bubble-glow::before { filter: none; }
.panel-region.bubble-hanji::before, .panel-region.bubble-scroll::before, .panel-region.bubble-talisman::before {
  filter: drop-shadow(0 .25em .6em rgba(60, 40, 20, .22));
}
/* Sound effects: hand lettering with a white edge, tilted away from the side it sits on. */
.panel-region.box-sfx {
  height: auto; padding: 0; white-space: pre; font-family: "Nanum Pen Script", cursive; line-height: 1;
  color: var(--region-color, var(--ink)); transform: rotate(-9deg);
  text-shadow: .05em .05em 0 #fff, -.05em -.05em 0 #fff, .05em -.05em 0 #fff, -.05em .05em 0 #fff, 0 0 .2em rgba(255, 255, 255, .9);
}
.panel-region.box-sfx.align-right { transform: rotate(9deg); }
.studio-phone .panel.full { margin-left: -18px; margin-right: -18px; }
/* Cuts run on without a gap, like a webtoon strip; "overlap" pulls a cut up over the one before. */
.studio-phone .block.block-panel { margin-bottom: 0; }
.studio-phone .block.block-panel + .block:not(.block-panel) { margin-top: 18px; }
.studio-phone .block.block-panel.overlap-small { margin-top: -9%; }
.studio-phone .block.block-panel.overlap-large { margin-top: -22%; }

/* Preview: a phone-sized rendering of the same payload customers get. */
.studio-preview { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .studio-preview { grid-template-columns: 1fr; } }
.studio-phone {
  width: 100%;
  max-width: 400px;
  border: 10px solid #111827;
  border-radius: 36px;
  overflow: clip; /* clips to the rounded frame without becoming a scroll box, so a scroll video can stick */
  background-color: var(--phone-bg, #fff);
  background-image: var(--phone-bg-image, none);
  background-size: cover;
  background-position: top center;
  color: var(--phone-text, #2b2f33);
  font-family: var(--phone-body-font, "Wanted Sans Variable", "Apple SD Gothic Neo", sans-serif);
  font-size: var(--phone-text-size, 15.5px);
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
/* The exit popup opens outside the phone (체험하기's frame, the customer's window) and reads like the phone: the
   product's body font, size and colours, never the page's around it. */
.play-popup {
  color: var(--phone-text, #2b2f33);
  font-family: var(--phone-body-font, "Wanted Sans Variable", "Apple SD Gothic Neo", sans-serif);
  font-size: var(--phone-text-size, 15.5px);
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
/* The phone is a page of its own: what the studio's admin pages set on bare elements (Django admin's p, headings,
   ul > li, tables and inputs, the change form's aligned labels and lists, the studio theme's icons) and what the
   customer site sets (box sizing, links, pictures, buttons) is undone inside it and inside the exit popup, so a
   screen looks the same in the editor, 화면 확인, 체험하기 and for customers. The class is doubled on purpose: these
   rules then outrank every admin rule with one class (form .aligned ul li, body .module h2, .form-row img) and still
   give way to every studio rule further down, which all name a part of the phone (.studio-phone .md li). The admin's
   rules with two classes style only working form controls in the change form, and the editor never draws those.
   Everything later in this file styles the phone. */
:is(.studio-phone, .play-popup) *, :is(.studio-phone, .play-popup) *::before, :is(.studio-phone, .play-popup) *::after { box-sizing: border-box; }
:is(.studio-phone.studio-phone, .play-popup.play-popup) :where(p, ul, ol, li, dl, dt, dd, h1, h2, h3, h4, h5, h6, blockquote, hr, table, caption, thead, tbody, tfoot, tr, th, td, code, pre, label, fieldset, legend, details, summary) {
  all: revert;
}
:is(.studio-phone.studio-phone, .play-popup.play-popup) :where(ul, ol) { margin: .6em 0; padding: 0 0 0 1.2em; }
:is(.studio-phone.studio-phone, .play-popup.play-popup) :where(h4) { margin: 0 0 6px; font-size: 16px; color: #111827; }
:is(.studio-phone.studio-phone, .play-popup.play-popup) :where(img, input, select, textarea, .ph) { vertical-align: baseline; }
:is(.studio-phone.studio-phone, .play-popup.play-popup) :where(button) { appearance: auto; }
:is(.studio-phone, .play-popup) a:is(:link, :visited) { color: inherit; text-decoration: none; }
:is(.studio-phone, .play-popup) :is(img, video) { display: block; max-width: 100%; }
:is(.studio-phone, .play-popup) button { font: inherit; color: inherit; }
.studio-phone.fit-repeat { background-size: auto; background-repeat: repeat; }
.studio-phone.fit-top { background-size: 100% auto; background-repeat: no-repeat; }
/* A screen: its own background (colour, picture, pattern or looping video) under the blocks. */
.studio-phone .screen {
  position: relative;
  isolation: isolate;
  padding: 20px 18px 28px;
  border-bottom: 6px solid rgba(17, 24, 39, .06);
  background-color: var(--screen-color, transparent);
  background-image: var(--screen-image, none);
  background-size: cover;
  background-position: center top;
}
.studio-phone .screen.fit-repeat { background-size: auto; background-repeat: repeat; }
.studio-phone .screen.fit-top { background-size: 100% auto; background-repeat: no-repeat; }
/* One screen, no scrolling: exactly one phone screen tall (customers: 100svh), with three places.
   The middle takes the spare height and centres its blocks; the bottom sits on the bottom edge. */
.studio-phone { --fit-height: 760px; }
.studio-phone .screen.layout-fit { display: flex; flex-direction: column; min-height: var(--fit-height); box-sizing: border-box; }
.studio-phone .screen.layout-fit .zone { display: flex; flex-direction: column; }
.studio-phone .screen.layout-fit .zone-middle { flex: 1; justify-content: center; }
.studio-phone .screen.layout-fit .zone-bottom > .block:last-child { margin-bottom: 0; }
.studio-phone .screen.layout-fit.is-overflowing { box-shadow: inset 0 0 0 2px var(--studio-error, #b42318); }
/* a block's own text sizes (px): the body and everything else in the block, and the title on its own */
.studio-phone .block.has-text-size, .studio-phone .block.has-text-size :is(.md, .cover-kicker) { font-size: var(--block-size); }
.studio-phone .block.has-title-size :is(.block-title, .input-title, .leave-offer__card h4),
.play-popup .has-title-size h4 { font-size: var(--title-size); }
.studio-phone .screen-video, .studio-phone .box-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* 처음 한 번 보여 줄 영상: over the looping video until it ends, then it fades away (flow-player.js playOpening).
   The editor's phone, which plays nothing, shows the loop. */
.studio-phone .screen-video--opening { transition: opacity .45s ease, visibility 0s linear .45s; }
.studio-phone .screen.opening-done .screen-video--opening { opacity: 0; visibility: hidden; }
.studio-phone:not(.play-phone) .screen-video--opening { display: none; }
/* the loop waits unseen until the opening hands over: loaded first, it would flash the scene the opening ends on
   before the opening's own first frame (the screen's picture shows until then) */
.play-phone .screen:has(> .screen-video--opening):not(.opening-done) > .screen-video:not(.screen-video--opening) { visibility: hidden; }
/* The layer over a background: a dark or light veil, a blur (backdrop-filter, so the edges stay crisp), or both.
   A screen that continues the one before keeps the layer, so the player can ease its blur and veil across. */
.studio-phone .screen.overlay-dark::before, .studio-phone .screen.overlay-light::before, .studio-phone .screen.has-blur::before, .studio-phone .screen.continues::before,
.studio-phone .boxed.overlay-dark::before, .studio-phone .boxed.overlay-light::before, .studio-phone .boxed.has-blur::before,
.studio-phone .screen.overlay-veil::before, .studio-phone .boxed.overlay-veil::before,
.studio-phone .screen.overlay-foot::before, .studio-phone .boxed.overlay-foot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.studio-phone .overlay-dark::before { background: rgba(10, 12, 16, .5); }
.studio-phone .overlay-light::before { background: rgba(255, 255, 255, .62); }
/* 위아래만 어둡게: the picture stays clear in the middle; the top darkens for the words there and the foot melts into the page */
.studio-phone .overlay-veil::before {
  background:
    linear-gradient(to bottom, rgba(13, 6, 9, .62), rgba(23, 10, 15, .03) 28%, rgba(35, 11, 20, .14) 52%,
      color-mix(in srgb, var(--phone-bg, #0c0a0b) 90%, transparent) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 10%, rgba(13, 6, 9, .36) 73%);
}
/* 아래만 어둡게: a bright picture stays bright; only the foot darkens under the words and melts into the page */
.studio-phone .overlay-foot::before {
  background: linear-gradient(to bottom, transparent 46%, rgba(26, 9, 17, .34) 64%, color-mix(in srgb, var(--phone-bg, #0c0a0b) 88%, transparent) 100%);
}
.studio-phone .screen.has-blur::before { -webkit-backdrop-filter: blur(var(--screen-blur)); backdrop-filter: blur(var(--screen-blur)); }
.studio-phone .boxed.has-blur::before { -webkit-backdrop-filter: blur(var(--box-blur)); backdrop-filter: blur(var(--box-blur)); }
/* a blurred picture or video block: soft inside, its edges still clean */
.studio-phone .media-blur { overflow: hidden; border-radius: 12px; }
.studio-phone .media-blur > .media { filter: blur(var(--media-blur)); transform: scale(1.08); border-radius: 0; }
.studio-phone .media-blur.full { margin-left: -18px; margin-right: -18px; border-radius: 0; }
.studio-phone .scrub-stage.media-blur { border-radius: 0; }

/* Glass: the block's own surface, frosting whatever is behind it (a picture, a video, other blocks). */
.studio-phone .block.glass {
  padding: 18px; border-radius: 18px;
  -webkit-backdrop-filter: blur(var(--glass-blur, 14px)) saturate(1.25); backdrop-filter: blur(var(--glass-blur, 14px)) saturate(1.25);
}
.studio-phone .block.glass-light { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 18px 40px -26px rgba(0, 0, 0, .5); }
.studio-phone .block.glass-dark { --box-text: var(--block-text, #eaf1ee); --box-heading: var(--block-heading, #fff); color: #eaf1ee; background: rgba(12, 16, 14, .42); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .6); }

/* Placed and tilted: a floated block sits at its own spot on the screen, over the others (or just above the
   background), and any block can lean. `rotate` (not transform) so entrances can still move it. */
.studio-phone .block.is-tilted { rotate: var(--rotate, 0deg); }
.studio-phone .block.is-float { position: absolute; z-index: 3; left: var(--x, 10%); top: var(--y, 10%); width: var(--w, 60%); max-width: none; margin: 0; }
.studio-phone .block.is-float.layer-back { z-index: -1; }
.studio-phone .block.is-float.full { width: var(--w, 60%); }
/* 화면 위에 붙어 따라오기 (layout pin): while the customer reads on, the block holds at the top of the screen (under the
   site's bar on a real page, --pin-top) on a frosted strip of the screen's own colour, edge to edge. Only when playing:
   in the editor it stays in its place. */
.play-phone .block.is-pinned { position: sticky; top: var(--pin-top, 0px); z-index: 6; margin: -10px -18px 4px; padding: 10px 18px 12px; }
.play-phone .block.is-pinned:not(.boxed, .tinted, .glass) {
  background: color-mix(in srgb, var(--screen-color, var(--phone-bg, #fff)) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
/* a pinned 진행 막대 fills as far as its screen has been read (flow-player.js followMeters) */
.play-phone .is-pinned .text-meter .meter__track i { width: 100%; scale: var(--meter-read, 0) 1; animation: none; transition: scale .15s linear; }
.panel-region.is-tilted { rotate: var(--rotate, 0deg); }
/* a darkened background turns the screen's own titles and text light (text boxes keep their colours) */
.studio-phone .screen.overlay-dark { color: #f2f3f5; --phone-heading: #f2f6f4; --phone-text: #dce7e2; }
.studio-phone .screen:is(.overlay-veil, .overlay-foot) { color: #f5eff1; --phone-heading: #fff; --phone-text: #eee4e8; }
.studio-phone .screen.overlay-dark .screen-label { color: rgba(242, 246, 244, .72); }
.studio-phone .screen-label {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
/* a step of the input, drawn as its own screen in the studio: which step it is */
.studio-phone .screen-step { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--phone-accent, #14806a) 16%, #fff); color: color-mix(in srgb, var(--phone-accent, #14806a) 80%, #000); font-weight: 700; }
.studio-phone .locked-banner { background: #fef3c7; color: #92400e; padding: 8px 10px; border-radius: 8px; font-size: 12px; margin-bottom: 12px; }
.studio-phone .block { margin: 0 0 14px; }
.studio-phone .full { margin-left: -18px; margin-right: -18px; width: calc(100% + 36px); max-width: none; }

/* Text box styles: the background a block sits on and the type written over it. */
.studio-phone .boxed {
  position: relative;
  isolation: isolate;
  padding: var(--box-pad, 30px 22px 34px);
  background-color: var(--box-color, transparent);
  color: var(--box-text, inherit);
}
.studio-phone .tinted { padding: 14px 16px; border-radius: 12px; background-color: var(--box-color); }
.studio-phone .boxed.pad-small { --box-pad: 18px 16px 20px; }
.studio-phone .boxed.pad-large { --box-pad: 44px 28px 48px; }
.studio-phone .boxed.bg-none { background: transparent; }
/* 아래쪽 배경색: a colour box can fade down into a second colour */
.studio-phone .boxed.bg-color.has-fade-to { background-image: linear-gradient(180deg, transparent, var(--box-color-to)); }
.studio-phone .boxed.bg-image { background-image: var(--box-image); background-size: cover; background-position: center; }
.studio-phone .boxed.bg-pattern { background-image: var(--box-image); background-repeat: repeat; }
/* a framed picture: the corners keep their size and the edges stretch with the text */
.studio-phone .boxed.bg-frame {
  background: none;
  border: var(--frame-width) solid transparent;
  border-image-source: var(--box-image);
  border-image-slice: var(--frame-slice) fill;
  border-image-width: var(--frame-width);
  border-image-repeat: stretch;
  padding: 10px 6px 16px;
}
.studio-phone .boxed.bg-frame.pad-small { padding: 4px 2px 8px; }
.studio-phone .boxed.bg-frame.pad-large { padding: 22px 12px 28px; }
.studio-phone .boxed.bg-video { overflow: hidden; }
.studio-phone .boxed.rounded { border-radius: 16px; overflow: hidden; }
.studio-phone .boxed.border-line { box-shadow: inset 0 0 0 1.5px var(--box-border, #2e3a36); }
.studio-phone .boxed.border-double { box-shadow: inset 0 0 0 2px var(--box-border, #2e3a36); }
.studio-phone .boxed.border-double::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--box-border, #2e3a36); pointer-events: none; }
/* Surfaces drawn in code, so a box can look like polished stone without a picture: a sheen of light
   from the top left, cloudy veins and a fine grain, all blended into the box colour. */
.studio-phone .box-tex {
  --sheen: radial-gradient(140% 95% at 6% -10%, rgba(255, 255, 255, .9), transparent 56%),
           radial-gradient(120% 90% at 106% 112%, rgba(0, 0, 0, .4), transparent 60%);
  --veins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .02' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='360' height='360' filter='url(%23v)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.studio-phone .box-tex.tex-sheen { background-image: var(--sheen); }
.studio-phone .box-tex.tex-grain { background-image: var(--grain); background-size: 200px; }
.studio-phone .box-tex.tex-stone {
  background-image: var(--sheen), var(--veins), var(--grain);
  background-size: 100% 100%, 100% 100%, 360px, 200px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .25);
}
.studio-phone .block-title {
  margin: 0 0 1.1em;
  font-family: var(--box-title-font, var(--phone-title-font, inherit));
  font-size: 1.45em;
  font-weight: var(--phone-title-weight, 700);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--box-heading, var(--phone-heading, #1e2b28));
  text-align: var(--box-title-align, inherit);
  text-wrap: balance;
  word-break: keep-all; /* Korean titles break between words, never inside one */
  white-space: pre-line; /* a line break typed in a title stays a line break */
}
.studio-phone .boxed .block-title { margin-bottom: 1.3em; }
.studio-phone .md { font-family: var(--box-body-font, var(--phone-body-font, inherit)); color: var(--box-text, var(--phone-text, inherit)); }
.studio-phone .md > :first-child { margin-top: 0; }
.studio-phone .md h4, .studio-phone .md h5, .studio-phone .md h6 { margin: 1.8em 0 .6em; font-weight: 700; line-height: 1.5; color: var(--box-heading, var(--phone-heading, #1e2b28)); }
.studio-phone .md h4 { font-size: 1.2em; }
.studio-phone .md h5 { font-size: 1.1em; }
.studio-phone .md h6 { font-size: 1em; }
/* a chapter's subheading: a short accent rule above, set apart from the paragraphs around it */
.studio-phone .md h5.md-sub { margin: 2.2em 0 .7em; padding-top: .9em; font-family: var(--box-title-font, var(--phone-title-font, inherit)); font-size: 1.12em; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.studio-phone .md h5.md-sub::before { content: ""; display: block; width: 1.6em; height: 3px; margin: -1.05em 0 .8em; border-radius: 2px; background: var(--phone-accent, #14806a); }
.studio-phone .md > h5.md-sub:first-child { margin-top: .2em; padding-top: 0; border-top: 0; }
.studio-phone .md > h5.md-sub:first-child::before { margin-top: 0; }
/* centred words have no left edge for the rule to stand on: there it is left out */
.studio-phone :is(.align-center, .text-scroll, .text-pullquote, .text-stat, .text-cover, .text-tablet, .text-pebble, .text-glow, .text-corners, .text-poem, .text-gold, .text-neon) .md h5.md-sub::before { display: none; }
.studio-phone .md p { margin: .6em 0; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.studio-phone .md hr { margin: 1.4em 0; border: 0; border-top: 1px solid currentColor; opacity: .18; }
.studio-phone .md blockquote { margin: .8em 0; padding-left: .8em; border-left: 3px solid var(--phone-accent, #14806a); opacity: .9; }
/* lists drawn the same wherever the phone sits: in the editor's preview the admin form's own rules (form .aligned ul)
   would push them 160px right and drop the bullets, and the admin's li rule would shrink the text */
.studio-phone .md :is(ul, ol) { margin: .6em 0; padding: 0 0 0 1.3em; }
.studio-phone .md ul > li { list-style: disc; }
.studio-phone .md ol > li { list-style: decimal; }
.studio-phone .md li { margin: .3em 0; padding: 0; font-size: inherit; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.studio-phone img.fade-top, .studio-phone video.fade-top { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%); mask-image: linear-gradient(to bottom, transparent, #000 18%); }
.studio-phone img.fade-bottom, .studio-phone video.fade-bottom { -webkit-mask-image: linear-gradient(to top, transparent, #000 18%); mask-image: linear-gradient(to top, transparent, #000 18%); }
.studio-phone img.fade-both, .studio-phone video.fade-both { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent); }
/* beats `img.media { width: 100% }` so a full-width picture really reaches both edges */
.studio-phone .media.full { border-radius: 0; width: calc(100% + 36px); }
.studio-phone .spacer-small { height: 8px; }
.studio-phone .spacer-medium { height: 20px; }
.studio-phone .spacer-large { height: 40px; }
.studio-phone .spacer.with-line { border-bottom: 1px solid currentColor; opacity: .15; }
.studio-phone .loading { text-align: center; color: #6b7280; }
.studio-phone .loading__line { margin: 4px 0; }
.studio-phone .align-center { text-align: center; }
.studio-phone .spacing-tight { margin-bottom: 6px; }
.studio-phone .spacing-wide { margin-bottom: 28px; }
.studio-phone .avatar { width: 40px; height: 40px; border-radius: 15px; object-fit: cover; background: #e5e7eb; flex: none; }
/* Character dialogue as a chat room: the character's runs on the left with avatar and name, the
   customer's lines ("나:") on the right in the accent colour; the first bubble of a run has a tail. */
.studio-phone .chat { display: flex; flex-direction: column; gap: 12px; font-family: var(--box-body-font, var(--phone-body-font, inherit)); }
.studio-phone .chat-run { display: flex; gap: 8px; align-items: flex-start; }
.studio-phone .chat-run.is-me { flex-direction: column; align-items: flex-end; gap: 4px; }
.studio-phone .chat-lines { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; max-width: calc(100% - 56px); }
.studio-phone .chat-name { margin: 0 0 2px 2px; font-size: 12px; font-weight: 600; color: var(--chat-name, #6b7280); }
.studio-phone .chat-bubble {
  position: relative; max-width: 100%; padding: 9px 13px; border-radius: 18px; line-height: 1.5; font-size: .95em;
  background: var(--chat-them, #ffffff); color: var(--chat-them-ink, #1f2937);
  box-shadow: 0 1px 1px rgba(17, 24, 39, .06), 0 0 0 1px rgba(17, 24, 39, .05);
  word-break: keep-all; overflow-wrap: anywhere;
}
.studio-phone .chat-bubble p { margin: 0; padding: 0; }
.studio-phone .chat-lines .chat-bubble:first-of-type { border-top-left-radius: 6px; }
.studio-phone .chat-run.is-me .chat-bubble { max-width: 78%; background: var(--phone-accent, #14806a); color: var(--phone-on-accent, #fff); box-shadow: none; }
/* the customer's turn: reply choices to tap, never sent by themselves */
.studio-phone .chat-reply { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 92%; }
.studio-phone .chat-option {
  padding: 8px 14px; border-radius: 999px; font-size: .9em; font-weight: 600; line-height: 1.35;
  border: 1.5px solid var(--phone-accent, #14806a); color: var(--phone-accent, #14806a); background: var(--chat-reply-bg, #fff);
}
.studio-phone .chat-option i { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 6px; border-radius: 50%; background: var(--phone-accent, #14806a); color: var(--phone-on-accent, #fff); font-style: normal; font-size: 10px; vertical-align: 1px; }
/* in the editor's preview a branch line shows which reply it answers; customers never see the tag */
.studio-phone .chat-when { display: block; width: fit-content; margin-bottom: 3px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--phone-accent, #14806a) 14%, transparent); color: var(--phone-accent, #14806a); font-size: 10.5px; font-style: normal; font-weight: 700; }
.studio-phone .screen.overlay-dark .chat-when { color: #bfeedd; }
.play-phone .chat-when { display: none; }
.studio-phone .screen.overlay-dark .chat-option { --chat-reply-bg: rgba(255, 255, 255, .08); color: #e8f5ef; border-color: color-mix(in srgb, var(--phone-accent, #14806a) 70%, #fff); }
.studio-phone .chat-run.is-me .chat-bubble:first-child { border-top-right-radius: 6px; }
/* on a dark screen the character's bubbles turn translucent */
.studio-phone .screen.overlay-dark { --chat-them: rgba(255, 255, 255, .14); --chat-them-ink: #f3f6f5; --chat-name: #c8d4cf; }
.studio-phone .screen.overlay-dark .chat-bubble { box-shadow: none; backdrop-filter: blur(6px); }
/* on a one-screen page a conversation fills the middle and reads from the bottom, like a messenger */
.studio-phone .screen.layout-fit .zone-middle > .block:has(> .chat):only-child { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
/* the typing indicator the player shows before each of the character's bubbles */
.studio-phone .chat-typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px; border-top-left-radius: 6px; background: var(--chat-them, #fff); box-shadow: 0 0 0 1px rgba(17, 24, 39, .05); }
.studio-phone .chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; animation: chat-dot 1s infinite ease-in-out; }
.studio-phone .chat-typing i:nth-child(2) { animation-delay: .15s; }
.studio-phone .chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { transform: none; opacity: .35; } 30% { transform: translateY(-3px); opacity: .8; } }
/* ---- Text shapes (blocks.TEXT_SHAPES). Sizes are in em so a block's own text size scales them; colours come from
   currentColor and the accent, so they read on light and dark screens. A shape with a surface of its own sets the
   type colours for it, unless the block picked its own (--block-text, --block-heading). ---------------------- */
/* Surfaces are materials, not pictures of things: paper with a fine grain, a slab of polished stone, a slip with one
   corner folded, a frame of two rules. The grain is drawn by an SVG noise filter, tiled. */
.studio-phone {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.studio-phone .text-highlight {
  padding: .95em 1.05em; border-radius: 14px; background: color-mix(in srgb, var(--phone-accent, #14806a) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--phone-accent, #14806a) 16%, transparent);
}
.studio-phone .text-quote { border-left: 2px solid var(--phone-accent, #14806a); padding: .15em 0 .15em .9em; }
.studio-phone .text-quote .md { opacity: .88; }
.studio-phone .text-note { font-size: .82em; opacity: .78; }
.studio-phone .text-note .block-title { font-size: 1.2em; }
.studio-phone :is(.text-card, .text-tablet, .text-pebble, .text-memo, .text-letter, .text-scroll) {
  --box-text: var(--block-text, #3b4744); --box-heading: var(--block-heading, #1e2b28); color: var(--box-text);
}
/* 카드: white, lifted by a shadow tinted like the page's ink */
.studio-phone .text-card {
  padding: 1.3em 1.25em 1.2em; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px rgba(30, 43, 40, .06), 0 1px 2px rgba(30, 43, 40, .05), 0 18px 36px -24px rgba(30, 43, 40, .45);
}
.studio-phone .text-banner {
  --box-text: var(--block-text, var(--phone-on-accent, #fff)); --box-heading: var(--block-heading, var(--phone-on-accent, #fff)); color: var(--box-text);
  padding: 1.15em 1.25em; border-radius: 16px; text-align: center;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, .22), transparent 55%), var(--phone-accent, #14806a);
}
.studio-phone .text-banner .block-title { margin-bottom: .45em; }
/* 선 테두리: a frame of two rules, like the border of an old book page */
.studio-phone .text-outline {
  padding: 1.45em 1.3em; border: 1px solid color-mix(in srgb, currentColor 34%, transparent); border-radius: 2px;
  outline: 1px solid color-mix(in srgb, currentColor 16%, transparent); outline-offset: -6px;
}
/* 돌판: a slab of dark polished stone with a fine grain, the words cut into it */
.studio-phone .text-tablet {
  --box-text: var(--block-text, #d5dfda); --box-heading: var(--block-heading, #f3f7f5);
  padding: 1.75em 1.45em 1.65em; text-align: center; border-radius: 10px;
  background: var(--grain), radial-gradient(120% 90% at 16% 0%, rgba(255, 255, 255, .13), transparent 55%), linear-gradient(165deg, #35413d 0%, #232c29 58%, #2b3532 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 22px 38px -26px rgba(10, 18, 15, .8);
  outline: 1px solid rgba(255, 255, 255, .09); outline-offset: -8px; /* the line cut round the plaque */
}
.studio-phone .text-tablet .block-title { letter-spacing: .02em; text-shadow: 0 -1px 0 rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .1); }
.studio-phone .text-tablet .md { text-shadow: 0 -1px 0 rgba(0, 0, 0, .35); }
/* 조약돌: a smooth stone worn round at its edges, a soft shine on top, a breath of the accent in it */
.studio-phone .text-pebble {
  padding: 1.6em 1.5em; text-align: center; border-radius: 28px;
  background: radial-gradient(90% 70% at 24% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 62%),
    linear-gradient(170deg, color-mix(in srgb, var(--phone-accent, #14806a) 5%, #f2f5f4), color-mix(in srgb, var(--phone-accent, #14806a) 9%, #dde4e1));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -8px 16px rgba(30, 43, 40, .07), 0 18px 32px -24px rgba(30, 43, 40, .55);
}
/* 쪽지: a slip of fine paper with one corner folded over (the fold cut away, its flap laid down) */
.studio-phone .block:has(> .text-memo) { filter: drop-shadow(0 10px 12px rgba(30, 43, 40, .13)); }
.studio-phone .text-memo {
  --fold: 1.5em;
  position: relative; padding: 1.35em 1.3em 1.25em; border-radius: 3px; background: var(--grain), #fff;
  clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
}
.studio-phone .text-memo::after {
  content: ""; position: absolute; top: 0; right: 0; width: var(--fold); height: var(--fold); border-bottom-left-radius: 3px;
  background: linear-gradient(225deg, transparent 50%, color-mix(in srgb, var(--phone-accent, #14806a) 14%, #e6eae8) 50%);
  box-shadow: -1px 1px 3px rgba(30, 43, 40, .12);
}
/* 편지지: fine-ruled writing paper; the body sits on its lines, the title over a short accent rule */
.studio-phone .text-letter {
  padding: 1.5em 1.45em 1.6em; border-radius: 4px; background: var(--grain), #fff;
  box-shadow: 0 0 0 1px rgba(30, 43, 40, .07), 0 16px 32px -24px rgba(30, 43, 40, .5);
}
.studio-phone .text-letter .block-title { padding-bottom: .55em; margin-bottom: .25em; border-bottom: 1px solid color-mix(in srgb, var(--phone-accent, #14806a) 45%, transparent); }
.studio-phone .text-letter .md { line-height: 2em; background-image: repeating-linear-gradient(to bottom, transparent 0 calc(2em - 1px), color-mix(in srgb, currentColor 12%, transparent) calc(2em - 1px) 2em); }
.studio-phone .text-letter .md p { margin: 0; line-height: 2em; }
/* 두루마리: a length of hanji unrolled between two slim black rods, its ends still curling */
.studio-phone .text-scroll {
  --box-text: var(--block-text, #3d3a33); --box-heading: var(--block-heading, #23201b);
  position: relative; margin: 4px 6px; padding: 1.8em 2em; text-align: center;
  background: linear-gradient(90deg, rgba(55, 45, 30, .16), rgba(55, 45, 30, 0) 5%, rgba(55, 45, 30, 0) 95%, rgba(55, 45, 30, .16)), var(--grain), #f8f7f2;
  box-shadow: 0 14px 28px -22px rgba(40, 32, 20, .5);
}
.studio-phone .text-scroll::before, .studio-phone .text-scroll::after {
  content: ""; position: absolute; top: -5px; bottom: -5px; width: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #1f1c19, #4a443d 45%, #1f1c19); box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}
.studio-phone .text-scroll::before { left: -4px; }
.studio-phone .text-scroll::after { right: -4px; }
/* 큰따옴표: the body is the quotation, the title its source */
.studio-phone .text-pullquote { margin: 0; padding: .2em .6em 0; text-align: center; }
.studio-phone .text-pullquote::before { content: "\201C"; display: block; height: .62em; margin-bottom: .1em; font: 700 3.4em/1 Georgia, "Times New Roman", serif; color: var(--phone-accent, #14806a); }
.studio-phone .text-pullquote .md { font-size: 1.16em; font-weight: 600; line-height: 1.7; }
.studio-phone .text-pullquote .block-title { margin: 1em 0 0; font-size: .82em; font-weight: 600; opacity: .7; letter-spacing: .02em; }
.studio-phone .text-pullquote .block-title::before { content: "\2014 "; }
.studio-phone .text-divider { text-align: center; }
.studio-phone .text-divider .block-title { display: flex; align-items: center; gap: .7em; font-size: 1.15em; }
.studio-phone .text-divider .block-title::before, .studio-phone .text-divider .block-title::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .28; }
.studio-phone .marker-ink { padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(transparent 56%, color-mix(in srgb, var(--phone-accent, #14806a) 34%, transparent) 56% 94%, transparent 94%); }
.studio-phone .text-stat { text-align: center; }
.studio-phone .text-stat .block-title { margin-bottom: .2em; font-size: 3.1em; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--block-heading, var(--phone-accent, #14806a)); }
.studio-phone .text-stat .md { font-size: .92em; opacity: .8; }
/* 빛나는 글: a soft light behind the words; the words themselves stay crisp */
.studio-phone .text-glow { padding: 1.1em .9em; text-align: center; background: radial-gradient(closest-side, color-mix(in srgb, var(--phone-accent, #14806a) 22%, transparent), transparent); }
.studio-phone .text-glow :is(.block-title, .md) { text-shadow: 0 0 .8em color-mix(in srgb, var(--phone-accent, #14806a) 50%, transparent); }
/* one item per line: 체크 목록, 순서, 태그 */
.studio-phone .md-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: .6em; }
.studio-phone .md ul.md-lines { margin: 0; padding: 0; } /* not indented like a list in the body */
.studio-phone .md-lines li { position: relative; list-style: none; line-height: 1.6; word-break: keep-all; }
.studio-phone .md ul.md-lines > li { list-style: none; } /* and with no bullets of a list */
.studio-phone .text-checklist .md-lines li { padding-left: 1.75em; }
.studio-phone .text-checklist .md-lines li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1em; height: 1.1em; border-radius: 50%;
  background: var(--phone-accent, #14806a) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 78% no-repeat;
}
.studio-phone .text-steps .md-lines { counter-reset: step; gap: .9em; }
.studio-phone .text-steps .md-lines li { counter-increment: step; padding-left: 2.3em; }
.studio-phone .text-steps .md-lines li::before {
  content: counter(step); position: absolute; left: 0; top: -.05em; display: grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: 50%;
  background: color-mix(in srgb, var(--phone-accent, #14806a) 15%, transparent); color: var(--phone-accent, #14806a); font-size: .9em; font-weight: 800;
}
.studio-phone .text-steps .md-lines li:not(:last-child)::after { content: ""; position: absolute; left: .78em; top: 1.75em; bottom: -.85em; width: 1px; background: color-mix(in srgb, var(--phone-accent, #14806a) 30%, transparent); }
.studio-phone .text-chips .md-lines { display: flex; flex-wrap: wrap; gap: .45em; }
.studio-phone .block.align-center .text-chips .md-lines { justify-content: center; }
/* 태그: labels drawn with a hairline, a dot of the accent before each */
.studio-phone .text-chips .md-lines li {
  display: inline-flex; align-items: center; gap: .45em; padding: .34em .8em .34em .7em; border-radius: 8px; font-size: .9em; font-weight: 600;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: color-mix(in srgb, currentColor 4%, transparent);
}
.studio-phone .text-chips .md-lines li::before { content: ""; flex: none; width: .4em; height: .4em; border-radius: 50%; background: var(--phone-accent, #14806a); }
/* 세로쓰기: columns from right to left, like an old book; best kept short. The box is as tall as its words (a column
   holds up to 15) and never scrolls: a column wider than its block (a big brush word in a narrow floated block)
   runs out to the left, the way the columns go, glow and all, instead of being cut off behind a scroll bar. */
.studio-phone .text-vertical {
  writing-mode: vertical-rl; width: fit-content; max-width: 100%; inline-size: fit-content; max-inline-size: 15em; margin: 0 auto;
  letter-spacing: .08em; line-height: 1.9;
}
.studio-phone .text-vertical .block-title { margin: 0; margin-block-end: .9em; }
.studio-phone .text-vertical .md p { margin: 0; margin-block-end: .5em; }
/* a chapter cover: a small line (제1장) over a large title, high on a tall box whose picture fills the rest */
.studio-phone .text-cover { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 300px; padding-top: 18%; text-align: center; }
.studio-phone .text-cover .cover-kicker { font-size: .82em; letter-spacing: .32em; color: var(--box-text, inherit); opacity: .8; }
.studio-phone .text-cover .cover-kicker p { margin: 0; }
.studio-phone .text-cover .block-title { margin: .7em 0 0; font-size: 1.75em; line-height: 1.35; white-space: pre-line; word-break: keep-all; }
.studio-phone .text-cover .block-title::after { content: ""; display: block; width: 1px; height: 2.2em; margin: .8em auto 0; background: currentColor; opacity: .35; }
/* -- shapes for every kind of story: editorial (첫 글자 크게, 머리말과 큰 문장, 모서리 장식, 시), playful (티켓, 영수증,
   붙임쪽지, 말풍선), modern (그라데이션, 알림 카드, 탭 카드), luxurious and night (금박, 네온), traditional (낙관 도장)
   and a story told in steps (타임라인). -- */
.studio-phone :is(.text-ticket, .text-receipt, .text-sticky, .text-bubble, .text-notice, .text-folder) {
  --box-text: var(--block-text, #3b4744); --box-heading: var(--block-heading, #1e2b28); color: var(--box-text);
}
/* 첫 글자 크게: a magazine's opening; the body's first syllable drops two lines into a soft square (a bare big Hangul
   syllable can read like a slip), the title a small kicker over it. Hangul is tracked lightly, never spaced wide. */
.studio-phone .text-dropcap .block-title { margin-bottom: .9em; font-size: .78em; font-weight: 800; letter-spacing: .06em; color: var(--block-heading, var(--phone-accent, #14806a)); }
.studio-phone .text-dropcap .md > p:first-of-type::first-letter {
  float: left; margin: .08em .3em 0 0; padding: .1em .14em; border-radius: .16em;
  background: color-mix(in srgb, var(--block-heading, var(--phone-accent, #14806a)) 12%, transparent);
  font-family: var(--box-title-font, var(--phone-title-font, inherit));
  font-size: 2.3em; font-weight: 800; line-height: 1; color: var(--block-heading, var(--phone-accent, #14806a));
}
/* 사주값별 카드 · 드러내기 (fact_card look reveal): where the customer's value first comes out. Centred; the title a
   small kicker between two rules, the picture, then the value's one line large in the title letters (at the title's
   own weight, so a one-weight brush face is never thickened) and the body under it */
.studio-phone .fact-reveal { text-align: center; }
.studio-phone .fact-reveal .block-title {
  display: flex; justify-content: center; align-items: center; gap: .6em; margin-bottom: 1.1em;
  font-size: .8em; font-weight: 800; letter-spacing: .08em; color: var(--phone-accent, #14806a);
}
.studio-phone .fact-reveal .block-title::before,
.studio-phone .fact-reveal .block-title::after { content: ""; flex: none; width: 1.8em; height: 1px; background: currentColor; opacity: .7; }
.studio-phone .fact-reveal .md { text-align: center; }
.studio-phone .fact-reveal .fact-headline {
  margin: .95em 0 .35em; font-family: var(--box-title-font, var(--phone-title-font, inherit)); font-size: 1.5em;
  font-weight: var(--phone-title-weight, 700); line-height: 1.4; letter-spacing: -.01em; color: var(--box-heading, var(--phone-heading, inherit));
}
.studio-phone .fact-reveal .fact-headline strong { font-weight: inherit; }
/* 머리말과 큰 문장: a short kicker with a rule, then the body set large like a statement */
.studio-phone .text-headline .block-title { display: flex; align-items: center; gap: .6em; margin-bottom: .75em; font-size: .78em; font-weight: 800; letter-spacing: .06em; color: var(--block-heading, var(--phone-accent, #14806a)); }
.studio-phone .text-headline .block-title::before { content: ""; flex: none; width: 1.8em; height: 2px; border-radius: 1px; background: currentColor; }
.studio-phone .block.align-center .text-headline .block-title { justify-content: center; }
.studio-phone .block.align-center .text-headline .block-title::after { content: ""; flex: none; width: 1.8em; height: 2px; border-radius: 1px; background: currentColor; }
.studio-phone .text-headline .md { font-family: var(--box-title-font, var(--phone-title-font, inherit)); font-size: 1.4em; font-weight: var(--phone-title-weight, 700); letter-spacing: -.015em; color: var(--box-heading, var(--phone-heading, inherit)); }
.studio-phone .text-headline .md p { line-height: 1.5; }
.studio-phone .text-headline .md strong { color: var(--phone-accent, #14806a); }
/* 모서리 장식: four corner marks round the words and nothing else, light and modern */
.studio-phone .text-corners {
  --c: var(--phone-accent, #14806a); --l: 1.15em; --w: 2px;
  padding: 1.5em 1.4em; text-align: center; background-repeat: no-repeat;
  background-image: linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
  background-size: var(--l) var(--w), var(--w) var(--l), var(--l) var(--w), var(--w) var(--l), var(--l) var(--w), var(--w) var(--l), var(--l) var(--w), var(--w) var(--l);
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
}
.studio-phone .text-corners .block-title { margin-bottom: .7em; }
/* 시: the lines kept as written, centred with room to breathe; the title signs it underneath */
.studio-phone .text-poem { display: flex; flex-direction: column; align-items: center; padding: .4em 0; text-align: center; }
.studio-phone .text-poem::before { content: ""; width: 1px; height: 1.8em; margin-bottom: 1.2em; background: currentColor; opacity: .35; }
.studio-phone .text-poem .md { font-family: var(--box-title-font, var(--phone-title-font, inherit)); font-size: 1.06em; letter-spacing: .02em; }
.studio-phone .text-poem .md p { margin: 0 0 1.2em; line-height: 2.1; }
.studio-phone .text-poem .block-title { order: 2; margin: .2em 0 0; font-size: .8em; font-weight: 600; letter-spacing: .14em; opacity: .7; }
.studio-phone .text-poem .block-title::before { content: "· "; }
.studio-phone .text-poem .block-title::after { content: " ·"; }
/* 티켓: an admission ticket; the title turned on its side in the stub, a perforated line and a notch above and below it */
.studio-phone .block:has(> .text-ticket) { filter: drop-shadow(0 10px 14px rgba(30, 43, 40, .16)); }
.studio-phone .text-ticket {
  --stub: 4.4em; --notch: .62em;
  position: relative; min-height: 6.4em; padding: 1.25em calc(var(--stub) + 1.1em) 1.2em 1.25em; border-radius: 12px;
  background: linear-gradient(90deg, #fff calc(100% - var(--stub)), color-mix(in srgb, var(--phone-accent, #14806a) 14%, #fff) 0);
  -webkit-mask: radial-gradient(circle at calc(100% - var(--stub)) 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at calc(100% - var(--stub)) 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
}
.studio-phone .text-ticket::after { content: ""; position: absolute; top: calc(var(--notch) + .35em); bottom: calc(var(--notch) + .35em); right: var(--stub); border-left: 2px dashed color-mix(in srgb, currentColor 24%, transparent); }
.studio-phone .text-ticket .block-title {
  position: absolute; top: 0; right: 0; bottom: 0; width: var(--stub); margin: 0; display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; font-size: .86em; font-weight: 800; letter-spacing: .14em; line-height: 1.2; white-space: nowrap; overflow: hidden;
  color: var(--block-heading, color-mix(in srgb, var(--phone-accent, #14806a) 80%, #000));
}
.studio-phone .text-ticket .md p { margin: .3em 0; line-height: 1.65; }
/* 영수증: a slip of till paper with torn zigzag ends; one line per item, the last line set apart as the total */
.studio-phone .text-receipt {
  --zig: .5em;
  margin: 0 7%; padding: 1.5em 1.35em 1.45em; background: var(--grain), #fff; font-variant-numeric: tabular-nums;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--zig) * 2) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--zig) * 2) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) 51% repeat-x;
}
.studio-phone .block:has(> .text-receipt) { filter: drop-shadow(0 8px 10px rgba(30, 43, 40, .14)); }
.studio-phone .text-receipt .block-title { margin-bottom: .8em; padding-bottom: .8em; text-align: center; font-size: 1.15em; letter-spacing: .12em; border-bottom: 1.5px dashed color-mix(in srgb, currentColor 30%, transparent); }
.studio-phone .text-receipt .md-lines { gap: 0; }
.studio-phone .text-receipt .md-lines li { padding: .45em 0; border-bottom: 1px dotted color-mix(in srgb, currentColor 25%, transparent); line-height: 1.5; }
.studio-phone .text-receipt .md-lines li:last-child { margin-top: .35em; padding-top: .6em; border-bottom: 0; border-top: 3px double color-mix(in srgb, currentColor 45%, transparent); font-weight: 800; color: var(--box-heading); }
/* 붙임쪽지: a square sticky note in a pale tint of the accent, a strip of tape across the top, turned a little */
.studio-phone .text-sticky {
  position: relative; margin: .8em 6% .3em; padding: 1.7em 1.35em 1.45em; rotate: -1.3deg;
  border-radius: 2px 2px 16px 2px / 2px 2px 7px 2px;
  background: linear-gradient(175deg, color-mix(in srgb, var(--phone-accent, #14806a) 3%, #fff9d6), color-mix(in srgb, var(--phone-accent, #14806a) 5%, #fdf0b4));
  box-shadow: 0 1px 1px rgba(70, 60, 10, .1), 0 16px 20px -14px rgba(70, 60, 10, .4);
}
.studio-phone .text-sticky::before {
  content: ""; position: absolute; top: -.75em; left: 50%; width: 5.6em; height: 1.55em; translate: -50% 0; rotate: 2.5deg;
  background: rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
/* 말풍선: a line said aloud; the title is who says it, the tail under the bubble points their way */
.studio-phone .text-bubble {
  position: relative; box-sizing: border-box; width: fit-content; max-width: 86%; margin: 0 0 1em; padding: 1em 1.2em; border-radius: 1.35em; background: #fff;
  box-shadow: 0 0 0 1px rgba(30, 43, 40, .06), 0 12px 26px -18px rgba(30, 43, 40, .5);
}
.studio-phone .text-bubble::after { content: ""; position: absolute; left: 1.7em; bottom: -.72em; width: 1.3em; height: .9em; background: inherit; clip-path: polygon(0 0, 100% 0, 8% 100%); }
.studio-phone .block.align-right .text-bubble { margin-left: auto; }
.studio-phone .block.align-center .text-bubble { margin-inline: auto; }
.studio-phone .block.align-right .text-bubble::after { left: auto; right: 1.7em; clip-path: polygon(0 0, 100% 0, 92% 100%); }
.studio-phone .block.align-center .text-bubble::after { left: calc(50% - .65em); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.studio-phone .text-bubble .block-title { margin-bottom: .3em; font-size: .8em; font-weight: 800; color: var(--block-heading, var(--phone-accent, #14806a)); }
.studio-phone .text-bubble .md p { margin: .2em 0; line-height: 1.6; }
/* 그라데이션: a vivid card running from the accent into its warm and cool neighbours */
.studio-phone .text-gradient {
  --box-text: var(--block-text, var(--phone-on-accent, #fff)); --box-heading: var(--block-heading, var(--phone-on-accent, #fff)); color: var(--box-text);
  padding: 1.55em 1.4em; border-radius: 22px;
  background: radial-gradient(110% 90% at 100% 0%, color-mix(in oklch, var(--phone-accent, #14806a), #ffb36b 50%), transparent 62%),
    linear-gradient(140deg, var(--phone-accent, #14806a), color-mix(in oklch, var(--phone-accent, #14806a), #5b3cc4 42%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 20px 36px -22px color-mix(in srgb, var(--phone-accent, #14806a) 80%, #000);
}
.studio-phone .text-gradient .block-title { margin-bottom: .55em; }
/* 알림 카드: a message the way a phone shows it on its lock screen: a small mark, the title bold, the body under it */
.studio-phone .text-notice {
  position: relative; padding: .95em 1.05em 1em 3.3em; border-radius: 20px;
  background: color-mix(in srgb, #fff 86%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 14px 30px -18px rgba(10, 20, 18, .55);
}
.studio-phone .text-notice::before {
  content: ""; position: absolute; left: 1em; top: 1.05em; width: 1.6em; height: 1.6em; border-radius: .5em; background-color: var(--phone-accent, #14806a);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.2 6.8 7.3.2-5.8 4.4 2.1 7-5.8-4.2-5.8 4.2 2.1-7-5.8-4.4 7.3-.2z' fill='%23fff'/%3E%3C/svg%3E");
  background-position: center; background-size: 58%; background-repeat: no-repeat;
}
.studio-phone .text-notice::after { content: "지금"; position: absolute; right: 1.15em; top: 1.1em; font-size: .72em; opacity: .55; }
.studio-phone .text-notice .block-title { margin: 0 2.6em .25em 0; font-size: 1em; font-weight: 800; }
.studio-phone .text-notice .md { font-size: .93em; }
.studio-phone .text-notice .md p { margin: 0; line-height: 1.55; }
/* 탭 카드: a folder; the title on the tab that sticks up out of its top edge */
.studio-phone .text-folder { --tab: color-mix(in srgb, var(--phone-accent, #14806a) 15%, #fff); }
.studio-phone .text-folder .block-title {
  display: inline-block; margin: 0; padding: .55em 1.15em .45em; border-radius: 14px 14px 0 0; background: var(--tab); font-size: .9em;
  color: var(--block-heading, color-mix(in srgb, var(--phone-accent, #14806a) 78%, #000));
}
.studio-phone .text-folder .md { padding: 1.1em 1.25em 1.2em; border-radius: 0 18px 18px 18px; background: var(--tab); }
.studio-phone .text-folder > .md:first-child { border-radius: 18px; }
/* 금박: gold leaf on dark lacquer; the title in a gold sheen, a fine gold rule inset round the edge */
.studio-phone .text-gold {
  --box-text: var(--block-text, #e8dfcc); --box-heading: var(--block-heading, #f1d48a); color: var(--box-text);
  padding: 2em 1.5em 1.8em; text-align: center; border-radius: 8px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 222, 150, .15), transparent 60%), var(--grain), linear-gradient(160deg, #201c18, #121010);
  outline: 1px solid rgba(214, 178, 104, .55); outline-offset: -7px; box-shadow: 0 22px 38px -24px rgba(0, 0, 0, .85);
}
.studio-phone .text-gold::before { content: "\2726"; display: block; margin-bottom: .5em; font-size: .9em; color: #d9b366; }
.studio-phone .text-gold .block-title {
  background: linear-gradient(100deg, #b5842e 0%, #f5df9f 32%, #c8963a 54%, #fff0c4 72%, #ad7a24 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .03em;
}
/* 네온: a tube of light spelling the title on a dark wall, the body under it in a soft glow */
.studio-phone .text-neon {
  --neon: color-mix(in srgb, var(--phone-accent, #14806a) 65%, #fff);
  --box-text: var(--block-text, #d8e2ea); --box-heading: var(--block-heading, #fff); color: var(--box-text);
  padding: 1.7em 1.35em; text-align: center; border-radius: 18px;
  background: radial-gradient(90% 70% at 50% 25%, color-mix(in srgb, var(--neon) 18%, transparent), transparent 70%), #0c1015;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neon) 30%, transparent), 0 0 28px -8px color-mix(in srgb, var(--neon) 55%, transparent);
}
.studio-phone .text-neon .block-title {
  color: #fff; letter-spacing: .03em;
  text-shadow: 0 0 .05em #fff, 0 0 .22em var(--neon), 0 0 .55em var(--neon), 0 0 1.1em color-mix(in srgb, var(--neon) 70%, transparent);
}
.studio-phone .text-neon .md { opacity: .9; }
/* 낙관 도장: the body as if brushed, signed with a vermilion seal at its end: the title cut into the seal the old way,
   two syllables to a column, the columns read from the right (사주돌: 사주 | 돌) */
.studio-phone .text-stamp { display: flex; flex-direction: column; }
.studio-phone .text-stamp .md { order: 1; font-family: var(--box-title-font, var(--phone-title-font, inherit)); }
.studio-phone .text-stamp .block-title {
  order: 2; align-self: flex-end; box-sizing: content-box; height: 2.8em; margin: .9em .45em .2em 0; padding: .28em .22em;
  writing-mode: vertical-rl; font-size: 1em; line-height: 1.4; letter-spacing: 0; text-align: center; /* a column holds two
  syllables (upright Hangul runs about 1.35em each), the columns as wide as they are tall: a square seal for four */
  white-space: normal; word-break: break-all; text-wrap: wrap;
  color: #b3322a; border: 2px solid #b3322a; border-radius: 4px; outline: 1.5px solid #b3322a; outline-offset: 2px; rotate: -4deg;
}
.studio-phone .block.align-center .text-stamp .block-title { align-self: center; margin-right: 0; }
/* 타임라인: one moment per line down a thread, a ring on each and the last one filled; a **bold** start is its date */
.studio-phone .text-timeline .md-lines { gap: 1.05em; }
.studio-phone .text-timeline .md-lines li { padding-left: 1.75em; }
.studio-phone .text-timeline .md-lines li::before {
  content: ""; position: absolute; left: .1em; top: .38em; width: .72em; height: .72em; box-sizing: border-box; border-radius: 50%;
  border: 2px solid var(--phone-accent, #14806a); background: var(--phone-bg, transparent);
}
.studio-phone .text-timeline .md-lines li:not(:last-child)::after { content: ""; position: absolute; left: .43em; top: 1.25em; bottom: -.95em; width: 2px; border-radius: 1px; background: color-mix(in srgb, var(--phone-accent, #14806a) 28%, transparent); }
.studio-phone .text-timeline .md-lines li:last-child::before { background: var(--phone-accent, #14806a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--phone-accent, #14806a) 18%, transparent); }
.studio-phone .text-timeline .md-lines li strong { display: block; margin-bottom: .1em; font-size: .8em; letter-spacing: .05em; color: var(--phone-accent, #14806a); }
/* 강조 점: the old Korean way to stress a word, a dot over each syllable (방점) in place of bold; the lines open up for it */
.studio-phone .text-dots .md p { line-height: 2.05; }
.studio-phone .text-dots .md strong {
  font-weight: inherit; color: inherit;
  -webkit-text-emphasis: filled circle var(--block-heading, var(--phone-accent, #14806a)); text-emphasis: filled circle var(--block-heading, var(--phone-accent, #14806a));
  -webkit-text-emphasis-position: over right; text-emphasis-position: over right;
}
/* 사전 풀이: a dictionary entry; the title as the headword over a fine rule, each paragraph a numbered sense */
.studio-phone .text-dictionary .block-title { margin-bottom: .55em; padding-bottom: .4em; font-size: 1.65em; letter-spacing: -.01em; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.studio-phone .text-dictionary .md { counter-reset: sense; }
.studio-phone .text-dictionary .md > p { position: relative; padding-left: 1.75em; counter-increment: sense; }
.studio-phone .text-dictionary .md > p::before {
  content: counter(sense); position: absolute; left: 0; top: .32em; display: grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%;
  background: var(--block-heading, var(--phone-accent, #14806a)); color: var(--phone-on-accent, #fff); font-size: .78em; font-weight: 800; line-height: 1;
}
.studio-phone .text-dictionary .md > p:only-of-type { padding-left: 0; }
.studio-phone .text-dictionary .md > p:only-of-type::before { content: none; }
/* inside a text box style the box is the emphasis: a highlight keeps its shape but takes the box's colours */
.studio-phone .boxed .text-highlight { background: none; border-radius: 0; padding: 0; }
.studio-phone img.media, .studio-phone video.media { width: 100%; border-radius: 12px; display: block; }
.studio-phone .caption { font-size: 12px; color: #6b7280; margin-top: 4px; }
.studio-phone .gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.studio-phone .gallery::-webkit-scrollbar { display: none; }
.studio-phone .gallery.grid { display: grid; grid-template-columns: 1fr 1fr; }
.studio-phone .gallery__item { flex: none; width: 70%; margin: 0; scroll-snap-align: start; }
.studio-phone .gallery.grid .gallery__item { width: 100%; }
.studio-phone .gallery img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.studio-phone .gallery figcaption { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--box-text, var(--phone-text, #4b5563)); text-wrap: balance; }
.studio-phone .btn { display: block; width: 100%; text-align: center; padding: 12px; border-radius: 12px; background: var(--phone-accent, #14806a); color: var(--phone-on-accent, #fff); font-weight: 600; }
.studio-phone .card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; }
.studio-phone .field { display: block; border: 1px solid #d1d5db; border-radius: 10px; padding: 9px 12px; margin: 6px 0; color: #9ca3af; font-size: 13px; }
.studio-phone .chips span { display: inline-block; border: 1px solid #d1d5db; border-radius: 999px; padding: 4px 10px; margin: 3px 4px 3px 0; font-size: 12px; }
.studio-phone .muted { color: #9ca3af; }
.studio-phone ul.caption { padding-left: 16px; margin: 6px 0 0; }
.studio-phone .chapter-body { line-height: 1.75; white-space: normal; }
/* AI 풀이 글: both edges of a paragraph line up (Korean breaks between words, so a ragged right edge reads as gaps) */
.studio-phone .chapter-body p, .studio-phone .chapter-body li { text-align: justify; text-wrap: wrap; }
.studio-phone .chapter-note { font-size: 12px; color: #0d5e4d; background: #e9f4f0; border-radius: 8px; padding: 8px 10px; }
/* AI 풀이 이어서: until its part is written the block waits out of sight (flow-player.js patchChapters swaps it in) */
.studio-phone .block-chapter_more:has(.chapter-more-wait) { display: none; }
/* 더 알아보기: a quiet bar between two hairlines; what it folds stays shut where customers read (fold.js marks that
   phone has-folds) until it is tapped, and the studio shows it open with a thin rule beside it */
.studio-phone .fold-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 15px 2px;
  border: 0; border-block: 1px solid var(--ed-line); background: none; color: var(--ed-heading); font: inherit; text-align: left;
  cursor: pointer;
}
.studio-phone .fold-toggle__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.studio-phone .fold-toggle__copy b { font-family: var(--ed-serif); font-size: 1.06em; font-weight: 400; letter-spacing: .01em; }
.studio-phone .fold-toggle__copy small { font-size: .8em; line-height: 1.5; color: var(--ed-muted); }
.studio-phone .fold-toggle__act {
  display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 7px 12px 7px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ed-glow) 45%, transparent); font-size: .76em; font-weight: 700; letter-spacing: .04em;
  color: var(--ed-glow);
}
.studio-phone .fold-toggle__act i {
  width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .25s ease, margin .25s ease;
}
.studio-phone .fold-toggle[aria-expanded="true"] .fold-toggle__act i { margin-top: 3px; transform: rotate(-135deg); }
.studio-phone .fold-toggle__close, .studio-phone .fold-toggle[aria-expanded="true"] .fold-toggle__open { display: none; }
.studio-phone .fold-toggle[aria-expanded="true"] .fold-toggle__close { display: inline; }
.studio-phone.has-folds .block.is-folded:not(.is-unfolded) { display: none; }
.studio-phone.has-folds .block.is-folded.is-unfolded { animation: sd-fade .4s ease both; }
.studio-phone:not(.has-folds) .block.is-folded { box-shadow: -6px 0 0 -4px color-mix(in srgb, var(--phone-accent, #14806a) 55%, transparent); }
.studio-phone .chapter-figure { margin: 6px 0 0; }
.studio-phone .chapter-figure img { width: 100%; height: auto; border-radius: 12px; display: block; }
.studio-phone .chapter-figure figcaption { margin-top: 8px; font-size: .86em; opacity: .75; text-align: center; }
/* a picture chapter still being drawn: its place at the picture's size, a slow gleam across it */
.studio-phone .chapter-drawing { position: relative; display: grid; place-items: center; min-height: 140px; margin: 6px 0 0;
  border-radius: 12px; overflow: hidden; background: color-mix(in srgb, currentColor 7%, transparent); }
.studio-phone .chapter-drawing::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .4) 50%, transparent 65%); animation: chapter-drawing 2.6s ease-in-out infinite; }
.studio-phone .chapter-drawing span { position: relative; font-size: 13px; opacity: .62; }
@keyframes chapter-drawing { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .studio-phone .chapter-drawing::after { animation: none; } }
.studio-phone .lock { color: #9ca3af; font-size: 13px; }
.studio-phone .price s { color: #9ca3af; margin-right: 6px; }
.studio-phone .price strong { font-size: 20px; color: #111827; }
.studio-phone .price em { color: #dc2626; font-style: normal; font-weight: 700; margin-right: 6px; }
.studio-phone .products { display: flex; gap: 8px; overflow-x: auto; }
.studio-phone .products .card { min-width: 140px; }
.studio-phone .custom { border: 1px dashed #9fb5ad; border-radius: 10px; padding: 10px; font-size: 12px; color: #0d5e4d; white-space: pre-wrap; }
.studio-phone .custom[data-mounted] { border: 0; padding: 0; font-size: inherit; color: inherit; white-space: normal; }
/* 맞춤 컴포넌트 thread_knot (components.js): two names on two stones, a red thread a tap ties */
.studio-phone .knot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px 16px; border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 0%, #252c55 0%, #161b36 70%); color: #e8e9f5; text-align: center; }
.studio-phone .knot__prompt { margin: 0; font-size: 14px; color: #f3c9d1; letter-spacing: -.01em; }
.studio-phone .knot__stage { position: relative; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 2px; width: 100%; padding: 4px 6px; box-sizing: border-box; }
.studio-phone .knot__svg { width: 100%; height: auto; overflow: visible; }
.studio-phone .knot__stone { display: grid; place-items: center; width: 64px; height: 52px; border-radius: 48% 52% 46% 54% / 56% 50% 50% 44%;
  font-size: 13px; font-weight: 700; line-height: 1.2; word-break: keep-all; box-shadow: inset 0 -6px 12px rgb(0 0 0 / .22), 0 6px 14px rgb(5 8 25 / .45); }
.studio-phone .knot__stone--left { background: linear-gradient(160deg, #f6f3f0, #cfc8c2); color: #2b2a33; }
.studio-phone .knot__stone--right { background: linear-gradient(160deg, #5c6170, #2a2d38); color: #f1f1f5; }
.studio-phone .knot__thread { stroke: #d6455d; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgb(214 69 93 / .55)); }
.studio-phone .knot__tie { opacity: 0; transform-box: fill-box; transform-origin: center; }
.studio-phone .knot__loop { fill: none; stroke: #d6455d; stroke-width: 3; }
.studio-phone .knot__tails { fill: none; stroke: #d6455d; stroke-width: 2.4; stroke-linecap: round; }
.studio-phone .knot.is-tied .knot__tie { animation: knot-tie .5s .55s cubic-bezier(.2, .9, .3, 1.4) both; }
@keyframes knot-tie { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }
.studio-phone .knot__button { min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--phone-accent, #c23b4f); color: var(--phone-on-accent, #fff);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .15s ease, opacity .2s ease; }
.studio-phone .knot__button:active { transform: scale(.97); }
.studio-phone .knot__button:disabled { opacity: .55; cursor: default; }
.studio-phone .knot__caption { margin: 0; min-height: 1.5em; font-size: 13px; line-height: 1.55; color: #dde1f2; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .studio-phone .knot.is-tied .knot__tie { animation: none; opacity: 1; } }
/* the filmed knot: the two names cut into the two stones of a photographed scene; the tap plays the thread tying itself,
   then the sharp last frame settles over the film's end with a breath of light where the knot sits */
.studio-phone .knot--film { gap: 12px; padding: 0 16px 18px; overflow: hidden; background: #0c111d; }
.studio-phone .knot__film { position: relative; margin: 0 -16px; width: calc(100% + 32px); aspect-ratio: 3 / 4; overflow: hidden; background: #0c111d; }
.studio-phone .knot__film :is(.knot__video, .knot__still) { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.studio-phone .knot__still { opacity: 0; transition: opacity .7s ease; }
.studio-phone .knot--film.is-tied .knot__still { opacity: 1; }
.studio-phone .knot__film::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(transparent, #0c111d); pointer-events: none; }
.studio-phone .knot__name {
  position: absolute; z-index: 2; translate: -50% -50%; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--box-title-font, var(--phone-title-font, inherit)); font-size: 15px; font-weight: 700; letter-spacing: .04em; pointer-events: none;
}
.studio-phone .knot__name--left { color: rgba(44, 40, 52, .72); text-shadow: 0 1px 0 rgba(255, 255, 255, .55), 0 -1px 0 rgba(0, 0, 0, .12); }
.studio-phone .knot__name--right { color: rgba(236, 232, 240, .78); text-shadow: 0 -1px 0 rgba(0, 0, 0, .65), 0 1px 0 rgba(255, 255, 255, .08); }
.studio-phone .knot__glow {
  position: absolute; z-index: 1; left: 50%; top: 52%; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 128, 150, .5), rgba(255, 128, 150, 0)); mix-blend-mode: screen; pointer-events: none;
}
.studio-phone .knot--film.is-tied .knot__glow { animation: knot-glow 2s ease-out both; }
@keyframes knot-glow { 0% { opacity: 0; scale: .5; } 35% { opacity: 1; } 100% { opacity: 0; scale: 1.5; } }
.studio-phone .knot--film .knot__prompt { margin: 2px 0 0; }
.studio-phone .knot--film.is-tying:not(.is-tied) .knot__button { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .studio-phone .knot--film.is-tied .knot__glow { animation: none; } }

/* 탭 연출 (blocks._moment, preview_block.html; components.js mountMoments): the opening picture, the film played over it
   at the tap, the ending picture settling over the film's end with a breath of light, and the words lying on the
   picture: before, after or throughout. A card (dark or light) or the screen itself around it. */
.studio-phone .moment { --moment-bg: transparent; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.studio-phone :is(.moment--dark, .moment--light) { padding: 0 16px 18px; border-radius: 18px; overflow: hidden; background: var(--moment-bg); }
.studio-phone .moment--dark { --moment-bg: #0c111d; color: #dde1f2; }
.studio-phone .moment--light { --moment-bg: color-mix(in srgb, var(--phone-accent, #c23b4f) 6%, #fff); color: #3a3530; }
.studio-phone .moment__stage { position: relative; margin: 0; width: 100%; overflow: hidden; }
.studio-phone :is(.moment--dark, .moment--light) .moment__stage { margin: 0 -16px; width: calc(100% + 32px); }
.studio-phone :is(.moment--dark, .moment--light) .moment__stage::after {
  content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 22%; background: linear-gradient(transparent, var(--moment-bg)); pointer-events: none;
}
.studio-phone .moment__poster { display: block; width: 100%; height: auto; }
.studio-phone .moment__stage.has-aspect .moment__poster { height: 100%; object-fit: cover; }
.studio-phone .moment__stage :is(.moment__film, .moment__still) { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; }
.studio-phone .moment:is(.is-playing, .is-done) .moment__film { opacity: 1; }
.studio-phone .moment__still { transition: opacity .7s ease; }
.studio-phone .moment.is-done .moment__still, .studio-phone .moment--no-film.is-playing .moment__still { opacity: 1; }
.studio-phone .moment--no-film .moment__still { transition-duration: 1.1s; }
.studio-phone .moment__glow {
  position: absolute; z-index: 2; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow, #ff8096) 50%, transparent), transparent); mix-blend-mode: screen;
}
.studio-phone .moment.is-done .moment__glow { animation: knot-glow 2s ease-out both; }
.studio-phone .moment__text {
  position: absolute; z-index: 3; translate: -50% -50%; max-width: 80%; white-space: pre-line; line-height: 1.3; pointer-events: none;
  font-family: var(--box-title-font, var(--phone-title-font, inherit)); font-weight: 700; letter-spacing: .04em; transition: opacity .5s ease;
}
.studio-phone .moment__text.is-carved_dark { color: rgba(44, 40, 52, .72); text-shadow: 0 1px 0 rgba(255, 255, 255, .55), 0 -1px 0 rgba(0, 0, 0, .12); }
.studio-phone .moment__text.is-carved_light { color: rgba(236, 232, 240, .78); text-shadow: 0 -1px 0 rgba(0, 0, 0, .65), 0 1px 0 rgba(255, 255, 255, .08); }
.studio-phone .moment__text.is-ink { color: #2a2421; font-weight: 500; letter-spacing: 0; mix-blend-mode: multiply; }
.studio-phone .moment__text.is-glow { color: #fff; text-shadow: 0 0 6px rgba(255, 236, 200, .9), 0 0 18px rgba(255, 200, 150, .6); }
.studio-phone .moment__text.is-shadow { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.studio-phone .moment .when-after { opacity: 0; }
.studio-phone .moment.is-done .when-after { opacity: 1; }
.studio-phone .moment:is(.is-playing, .is-done) .when-before { opacity: 0; }
/* a word's own movement, over and over while it shows (blocks.MOMENT_TEXT_MOTIONS); it stops once the moment is over */
.studio-phone .moment__text.mo-blink { animation: moment-blink 1.8s ease-in-out infinite; }
.studio-phone .moment__text.mo-breathe { animation: moment-breathe 2.4s ease-in-out infinite; }
.studio-phone .moment__text.mo-float { animation: moment-float 3s ease-in-out infinite; }
.studio-phone .moment:is(.is-playing, .is-done) .moment__text.when-before, .studio-phone .moment:not(.is-done) .moment__text.when-after { animation: none; }
@keyframes moment-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes moment-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
@keyframes moment-float { 0%, 100% { translate: -50% -50%; } 50% { translate: -50% calc(-50% - 6px); } }
@media (prefers-reduced-motion: reduce) { .studio-phone .moment__text:is(.mo-blink, .mo-breathe, .mo-float) { animation: none; } }
/* on the studio's still screens the words that come only at the end show faintly (체험하기 plays them as the customer
   sees them), and in the editor's phone every word can be dragged */
.studio-phone:not(.play-phone) .moment.is-studio:not(.is-done) .when-after { opacity: .5; outline: 1px dashed currentColor; outline-offset: 3px; }
.studio-phone.fe-phone .moment__text { pointer-events: auto; cursor: move; }
.studio-phone .moment__prompt { margin: 2px 0 0; font-size: 14px; letter-spacing: -.01em; }
.studio-phone .moment--dark .moment__prompt { color: color-mix(in srgb, var(--phone-accent, #c23b4f) 30%, #fff); }
.studio-phone .moment__button {
  min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--phone-accent, #c23b4f); color: var(--phone-on-accent, #fff);
  font: inherit; font-weight: 700; cursor: pointer; transition: transform .12s, opacity .2s;
}
.studio-phone .moment__button:active { transform: scale(.97); }
.studio-phone .moment__button:disabled { opacity: .55; cursor: default; }
.studio-phone .moment__caption { margin: 0; min-height: 1.5em; font-size: 13px; line-height: 1.55; text-wrap: balance; }
.studio-phone .moment__caption:empty { min-height: 0; }
@media (prefers-reduced-motion: reduce) { .studio-phone .moment.is-done .moment__glow { animation: none; } }
/* 후기 남기기 (preview_block.html review_ask; flow-player.js prepareReview): five stars laid out right to left (5 first in
   the page), so a chosen star lights itself and the ones before it; once sent, only the thanks stays. It takes the
   colours of the box it sits in (its block's 글 상자 스타일). */
.studio-phone .review-ask { position: relative; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.studio-phone .review-ask__title { margin: 0; font-weight: 700; font-size: 17px; }
.studio-phone .review-ask__body { margin: 0; font-size: 13.5px; line-height: 1.55; opacity: .85; }
.studio-phone .review-ask__stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; }
.studio-phone .review-ask__stars :is(legend, b) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.studio-phone .review-ask__stars label { position: relative; cursor: pointer; font-size: 30px; line-height: 1; color: color-mix(in srgb, currentColor 24%, transparent); transition: color .15s; }
.studio-phone .review-ask__stars input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.studio-phone .review-ask__stars label:has(input:checked), .studio-phone .review-ask__stars label:has(input:checked) ~ label { color: var(--phone-accent, #c23b4f); }
.studio-phone .review-ask__stars label:has(input:focus-visible) { outline: 2px solid var(--phone-accent, #c23b4f); outline-offset: 2px; border-radius: 4px; }
.studio-phone .review-ask textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid rgba(43, 38, 48, .18); border-radius: 12px;
  font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; background: #fff; color: #2b2630;
}
.studio-phone .review-ask__said { margin: 0; min-height: 1.4em; font-size: 13px; line-height: 1.5; }
/* 추가 질문 (blocks._ask_more): asked questions as the customer's lines, answers as chapter text, then one of
   ask / buy / sign in (flow-player.js prepareAsk) */
.studio-phone .ask-more { display: flex; flex-direction: column; gap: 12px; }
.studio-phone .ask-more__title { margin: 0; font-weight: 700; font-size: 17px; text-align: center; }
.studio-phone .ask-more__body { margin: 0; font-size: 13.5px; line-height: 1.55; opacity: .85; text-align: center; }
.studio-phone .ask-more__item { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.studio-phone .ask-more__q {
  align-self: flex-end; max-width: 86%; margin: 0; padding: 9px 13px; border-radius: 14px 14px 4px 14px;
  background: color-mix(in srgb, var(--phone-accent, #c23b4f) 12%, #fff); font-size: 14px; line-height: 1.5; white-space: pre-line;
}
.studio-phone .ask-more__a { font-size: 14.5px; line-height: 1.7; }
.studio-phone .ask-more__left { margin: 0; font-size: 13px; font-weight: 600; text-align: center; color: var(--phone-accent, #c23b4f); }
.studio-phone .ask-more__form { display: flex; flex-direction: column; gap: 8px; }
.studio-phone .ask-more__examples { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-phone .ask-more__example {
  padding: 6px 11px; border: 1px solid rgba(43, 38, 48, .14); border-radius: 999px; background: #fff;
  font: inherit; font-size: 12.5px; color: #2b2630; cursor: pointer;
}
.studio-phone .ask-more textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid rgba(43, 38, 48, .18); border-radius: 12px;
  font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; background: #fff; color: #2b2630;
}
.studio-phone .ask-more__form.is-confirming .ask-more__send { background: #2b2630; }
.studio-phone :is(.ask-more__buy, .ask-more__login) { display: flex; flex-direction: column; gap: 10px; }
.studio-phone :is(.ask-more__buy, .ask-more__login)[hidden], .studio-phone .ask-more__form[hidden] { display: none; }
.studio-phone .ask-more__packs { display: grid; gap: 8px; }
.studio-phone .ask-more__pack {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1.5px solid rgba(43, 38, 48, .14);
  border-radius: 14px; background: #fff; color: #2b2630; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.studio-phone .ask-more__pack input { position: absolute; opacity: 0; pointer-events: none; }
.studio-phone .ask-more__pack.is-on { border-color: var(--phone-accent, #c23b4f); box-shadow: 0 0 0 3px color-mix(in srgb, var(--phone-accent, #c23b4f) 14%, transparent); }
.studio-phone .ask-more__pack em { padding: 2px 7px; border-radius: 999px; background: var(--phone-accent, #c23b4f); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.studio-phone .ask-more__pack span { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.studio-phone .ask-more__pack small { font-size: 11.5px; opacity: .6; }
.studio-phone .ask-more__fine { margin: 0; font-size: 12px; line-height: 1.5; opacity: .6; text-align: center; }
.studio-phone .ask-more__said { margin: 0; min-height: 1.4em; font-size: 13px; line-height: 1.5; text-align: center; }
.studio-phone .review-ask.is-sent :is(.review-ask__stars, textarea, .review-ask__send) { display: none; }
.studio-phone .review-ask.is-sent .review-ask__said { font-size: 14.5px; font-weight: 600; }
/* 스크롤을 내리는 만큼: the box is a scroll video's (.scrub, "A scroll video" below), its picture and lines held at the
   top of the view while it scrolls by (its card clips without hiding, which would stop them holding). Without a film
   the ending picture comes in as far as the page has scrolled (--scrub-p, reveal.js); the line under the picture
   shows once the end has come, and goes on the way back up. */
.studio-phone .moment--scroll { overflow: visible; }
@supports (overflow: clip) { .studio-phone .moment--scroll { overflow: clip; } }
.studio-phone .moment__hold { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; z-index: 1; }
.studio-phone .moment.moment--scroll.moment--no-film .moment__still { opacity: var(--scrub-p, 0); transition: none; }
.studio-phone .moment.moment--scroll.moment--no-film.is-done .moment__still { opacity: 1; }
.studio-phone .moment--scroll .moment__caption { transition: opacity .5s ease; }
.studio-phone .moment--scroll:not(.is-done) .moment__caption { opacity: 0; }

/* ---- The input step: drawn whole in the studio (preview_input.html), built as the working form by flow-player.js.
   A person's basics share one compact screen: each field a label row (with 양력/음력 or 시간 모름 on its right)
   over one line to write on. Looks: a white card, a glass card over the screen's picture, or bare lines on it. */
.studio-phone .input-form {
  --accent: var(--phone-accent, #14806a); --field-line: rgba(17, 24, 39, .14); --field-bg: #fff; --field-ink: #111827; --field-soft: #a3a9b2;
  display: flex; flex-direction: column; gap: 12px;
}
/* the input step's title is a title like any other: the title font, size and colour of its block and product */
.studio-phone .input-title {
  margin: 0; font-family: var(--box-title-font, var(--phone-title-font, inherit)); font-size: 1.25em; font-weight: var(--phone-title-weight, 700); line-height: 1.35;
  letter-spacing: -0.01em; color: var(--box-heading, var(--phone-heading, #1e2b28)); text-wrap: balance; word-break: keep-all; white-space: pre-line;
}
.studio-phone .input-desc { margin: 0; font-size: .9em; line-height: 1.6; opacity: .8; word-break: keep-all; text-wrap: pretty; }
.studio-phone .input-note { margin: 0; font-size: 12px; opacity: .65; }
.studio-phone .input-section { font-weight: 700; font-size: 13px; color: var(--accent); }
.studio-phone .input-step-card {
  position: relative; overflow: hidden; display: grid; gap: 16px; padding: 18px 16px 16px; border-radius: 18px;
  background: var(--field-bg); color: var(--field-ink); border: 1px solid rgba(17, 24, 39, .08); box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
}
.studio-phone .input-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; margin-bottom: 8px; }
.studio-phone .input-label { font-weight: 700; font-size: 14px; color: inherit; }
.studio-phone .input-label small { font-weight: 400; opacity: .6; }
.studio-phone .input-help { margin-top: 6px; font-size: 12px; opacity: .65; }
/* a question with words of its own on a screen to itself: a small spaced kicker in the accent, the question large in
   the title font, a line or two under it and a smaller note; a long answer gets a rounded box and its count */
.studio-phone .input-ask { display: grid; gap: 12px; margin-bottom: 22px; }
.studio-phone .input-ask__kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: color-mix(in srgb, var(--accent) 62%, currentColor); }
.studio-phone .input-ask__question {
  margin: 0; font-family: var(--box-title-font, var(--phone-title-font, inherit)); font-size: 27px; font-weight: var(--phone-title-weight, 700);
  line-height: 1.42; letter-spacing: -.02em; word-break: keep-all; white-space: pre-line; text-wrap: balance;
}
.studio-phone .input-ask__desc { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; opacity: .86; word-break: keep-all; white-space: pre-line; }
.studio-phone .input-ask__note { margin: -4px 0 0; font-size: 12px; line-height: 1.5; opacity: .6; word-break: keep-all; }
.studio-phone .input-form :is(.pf-input.pf-input--box, .input-box.input-box--box) {
  height: auto; min-height: 150px; padding: 18px 20px; border: 1px solid var(--field-line); border-radius: 20px;
  background: color-mix(in srgb, #10121e 34%, transparent); font-size: 16px; line-height: 1.6; resize: none;
}
.studio-phone .input-form.look-card :is(.pf-input.pf-input--box, .input-box.input-box--box) { background: var(--field-bg); }
.studio-phone .input-box.input-box--box { white-space: pre-line; }
.studio-phone .input-count { margin-top: 8px; font-size: 12.5px; text-align: right; opacity: .6; font-variant-numeric: tabular-nums; }
/* 그림 보기: four pictures two by two, each floating a little over a pool of light, its name and a small line under it.
   A pick lifts that one, lights it in its own colours (a blurred copy of itself behind it) and lets the rest fade
   back; the button that goes on rises only then. */
.studio-phone .input-field--pictures .input-ask { justify-items: center; margin-bottom: 26px; text-align: center; }
.studio-phone .input-field--pictures .input-ask__question { font-size: 24px; }
.studio-phone .pf-pictures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
.studio-phone .pf-picture {
  display: grid; justify-items: center; gap: 2px; padding: 0 0 4px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: opacity .5s ease, filter .5s ease;
}
.studio-phone .pf-picture__stage { position: relative; display: block; width: min(100%, 152px); aspect-ratio: 1; animation: pf-float 5.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); }
.studio-phone .pf-picture__stage::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 4%; height: 12%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, #fff 26%, transparent), transparent); transition: opacity .5s ease; opacity: .55;
}
.studio-phone .pf-picture__img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .6s ease; }
.studio-phone .pf-picture__glow {
  position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: blur(22px) saturate(1.8) brightness(1.15);
  opacity: 0; transform: scale(1.1); transition: opacity .7s ease;
}
.studio-phone .pf-picture__label { margin-top: 4px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.studio-phone .pf-picture__caption { font-size: 11.5px; letter-spacing: .06em; opacity: .58; }
.studio-phone .pf-pictures.has-pick .pf-picture:not(.is-on) { opacity: .34; filter: saturate(.55) blur(.6px); }
.studio-phone .pf-picture.is-on .pf-picture__img { transform: scale(1.13); filter: drop-shadow(0 0 10px color-mix(in srgb, #fff 30%, transparent)); }
.studio-phone .pf-picture.is-on .pf-picture__glow { opacity: .9; }
.studio-phone .pf-picture.is-on .pf-picture__stage::after { opacity: 1; }
.studio-phone .pf-picture:focus-visible { outline: none; }
.studio-phone .pf-picture:focus-visible .pf-picture__label { text-decoration: underline; text-underline-offset: 4px; }
@keyframes pf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* they come in one after another once the question shows */
.studio-phone .input-form.is-pictures:not(.is-scene) .pf-picture { animation: pf-picture-in .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(.35s + var(--i, 0) * .14s); }
@keyframes pf-picture-in { from { opacity: 0; transform: translateY(14px) scale(.94); } }
.studio-phone .input-form.is-pictures .pf-progress { visibility: hidden; }
.studio-phone .input-form.is-pictures :is(.pf-next, .pf-submit) { transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.studio-phone .input-form.is-pictures:not(.has-pick) :is(.pf-next, .pf-submit) { opacity: 0; transform: translateY(10px); pointer-events: none; }
.studio-phone .input-form.is-pictures:not(.has-pick) .pf-back { opacity: .7; }
@media (prefers-reduced-motion: reduce) {
  .studio-phone .pf-picture__stage, .studio-phone .input-form.is-pictures:not(.is-scene) .pf-picture { animation: none; }
}
/* 질문 앞의 장면 (flow-player.js stage): a film over the screen's own background, under its words; once it has
   played it darkens, and the question rises over it */
.studio-phone .input-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.studio-phone .input-scene video { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter 1.4s ease, transform 1.4s ease; }
.studio-phone .input-scene.is-done video { filter: blur(3px) saturate(.85); transform: scale(1.04); }
.studio-phone .input-scene::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(26, 10, 18, .74), rgba(10, 4, 8, .93));
}
.studio-phone .input-scene.is-done::after { opacity: 1; }
/* the film after a question: as it is, then fading into the page's colour before what comes next */
.studio-phone .input-outro::after { background: var(--phone-bg, #0c0a0b); transition: opacity .5s ease; }
.studio-phone .input-outro.is-closing::after { opacity: 1; }
.studio-phone .input-form.is-staged { transition: opacity .9s ease .45s; }
.studio-phone .input-form.is-scene { opacity: 0; pointer-events: none; transition: none; }
.studio-phone .pf-consent { display: grid; gap: 2px; }
/* 개인정보 안내 (no tick box): a quiet line and the policy's link under it */
.studio-phone .pf-consent--note { justify-items: start; gap: 0; }
.studio-phone .pf-consent--note .pf-note { margin: 0; font-size: 12.5px; line-height: 1.5; opacity: .78; }
.studio-phone .pf-consent--note .pf-policy { margin-left: 0; }
/* 양력·음력·윤달 and 시간 모름: small round ticks on the label row */
.studio-phone .input-radios { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
.studio-phone .input-radios > * { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; opacity: .72; cursor: pointer; }
.studio-phone .input-radios > *::before { content: ""; flex: none; width: 15px; height: 15px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid currentColor; opacity: .7; }
.studio-phone .input-radios > .is-on { opacity: 1; }
.studio-phone .input-radios > .is-on::before {
  border: 0; opacity: 1;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.4l2.5 2.4L11.8 5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
/* a line to write on (the studio shows what will be typed in it) */
.studio-phone .input-box, .studio-phone .pf-input {
  display: block; width: 100%; box-sizing: border-box; height: 48px; margin: 0; padding: 0 14px; border: 1.5px solid var(--field-line); border-radius: 12px;
  background: var(--field-bg); color: var(--field-ink); font: inherit; font-size: 16px; line-height: 45px; outline: none;
}
.studio-phone .input-box { color: var(--field-soft); }
.studio-phone .pf-input::placeholder { color: var(--field-soft); opacity: 1; }
.studio-phone :is(.input-box--numeric, .pf-input--number) { font-size: 18px; font-weight: 600; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
/* the hint in a number field reads as a hint, not as a date already typed: light, plain weight, no spacing */
.studio-phone .pf-input--number::placeholder, .studio-phone .input-box--numeric { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.studio-phone .pf-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.studio-phone .pf-input:disabled { opacity: .45; }
/* 태어난 곳: the places that match what is typed, in a short list right under the line (it pushes the rest down, so
   it never covers the next field on any background) */
.studio-phone .pf-places { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.studio-phone .pf-places[hidden] { display: none; }
.studio-phone .pf-places li {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--field-line); border-radius: 10px;
  background: var(--field-bg); color: var(--field-ink); cursor: pointer; transition: border-color .15s;
}
.studio-phone .pf-places li:hover { border-color: var(--accent); }
.studio-phone .pf-places b { font-size: 14.5px; font-weight: 600; }
.studio-phone .pf-places small { min-width: 0; overflow: hidden; color: var(--field-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.studio-phone .pf-places li.is-empty { cursor: default; color: var(--field-soft); font-size: 13px; }
/* choices to tap; short ones beside other questions (성별) sit in a row */
.studio-phone :is(.input-options, .pf-options) { display: flex; flex-direction: column; gap: 6px; }
.studio-phone :is(.input-options, .pf-options).is-grid { display: grid; grid-template-columns: 1fr 1fr; }
.studio-phone :is(.input-options, .pf-options).is-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.studio-phone :is(.input-options span, .pf-options button) {
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--field-line); background: var(--field-bg); color: var(--field-ink);
  font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; transition: border-color .15s, background-color .15s, color .15s;
}
.studio-phone :is(.input-options, .pf-options).is-row :is(span, button) { text-align: center; }
.studio-phone .pf-options button { cursor: pointer; }
.studio-phone .pf-options button.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--field-bg)); color: var(--accent); }
.studio-phone .input-confirm dl { margin: 4px 0 0; }
.studio-phone .input-confirm dd.is-placeholder { opacity: .5; font-weight: 400; } /* no sample customer: what goes there */
/* glass: the screen's picture shows through the card, the type follows the screen */
.studio-phone .input-form.look-glass { --field-line: rgba(255, 255, 255, .34); --field-bg: rgba(255, 255, 255, .1); --field-ink: currentColor; --field-soft: color-mix(in srgb, currentColor 42%, transparent); }
.studio-phone .look-glass .input-step-card {
  color: inherit; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 20px 40px -28px rgba(0, 0, 0, .6);
}
/* bare: the fields straight on the screen, each a line to write on */
.studio-phone .input-form:is(.look-bare, .look-simple) { --field-line: color-mix(in srgb, currentColor 32%, transparent); --field-bg: transparent; --field-ink: currentColor; --field-soft: color-mix(in srgb, currentColor 42%, transparent); }
.studio-phone :is(.look-bare, .look-simple) .input-step-card { gap: 22px; padding: 4px 0 0; overflow: visible; background: none; border: 0; box-shadow: none; color: inherit; }
.studio-phone :is(.look-bare, .look-simple) :is(.input-box, .pf-input) { height: 42px; padding: 0 2px; border-width: 0 0 1.5px; border-radius: 0; line-height: 40px; }
.studio-phone :is(.look-bare, .look-simple) .pf-input:focus { box-shadow: none; }
/* over a picture a picked choice is filled with the accent, so it reads on any background */
.studio-phone :is(.look-bare, .look-glass) .pf-options button.is-on { background: var(--accent); border-color: var(--accent); color: var(--phone-on-accent, #fff); }
/* simple: the bare lines, larger and quieter. Bold labels, big type, the birth date and time side by side (their ticks
   under the line), choices as thin outlined boxes, the button a light pill with a round arrow like an opening's */
.studio-phone .input-form.look-simple { --field-line: color-mix(in srgb, currentColor 30%, transparent); gap: 16px; }
.studio-phone .look-simple .input-step-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; row-gap: 30px; }
.studio-phone .look-simple .input-step-card > * { grid-column: 1 / -1; }
.studio-phone .look-simple .input-step-card > .input-field--date:has(+ .input-field--time) { grid-column: 1; }
.studio-phone .look-simple .input-step-card > .input-field--date + .input-field--time { grid-column: 2; }
.studio-phone .look-simple .input-head { margin-bottom: 10px; }
.studio-phone .look-simple .input-label { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.studio-phone .look-simple .input-label small { font-size: 13px; }
.studio-phone .look-simple :is(.input-field--date, .input-field--time) { display: flex; flex-direction: column; }
.studio-phone .look-simple :is(.input-field--date, .input-field--time) .input-head { display: contents; }
.studio-phone .look-simple :is(.input-field--date, .input-field--time) .input-label { margin-bottom: 10px; }
.studio-phone .look-simple :is(.input-field--date, .input-field--time) .input-radios { order: 2; justify-content: flex-start; margin-top: 10px; }
.studio-phone .look-simple :is(.input-box, .pf-input) { height: 52px; border-width: 0 0 1px; font-size: 19px; line-height: 50px; }
.studio-phone .look-simple :is(.input-box--numeric, .pf-input--number) { font-size: 19px; font-weight: 500; letter-spacing: .02em; }
.studio-phone .look-simple :is(.pf-input::placeholder, .pf-input--number::placeholder, .input-box) { font-size: 19px; font-weight: 400; letter-spacing: 0; }
.studio-phone .look-simple .pf-input:focus { border-color: var(--accent); }
.studio-phone .look-simple .pf-options button { padding: 15px 14px; border-width: 1px; border-color: color-mix(in srgb, currentColor 30%, transparent); border-radius: 14px; font-size: 15px; font-weight: 500; }
.studio-phone .look-simple .pf-options button.is-on {
  border-color: color-mix(in srgb, var(--accent) 80%, #fff); background: color-mix(in srgb, var(--accent) 26%, transparent); color: inherit; font-weight: 700;
}
.studio-phone .look-simple :is(.pf-next, .pf-submit) {
  display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 8px 0 24px; border-radius: 999px;
  background: color-mix(in srgb, #fff 86%, transparent); color: #2a1a20; font-size: 15px;
}
.studio-phone .look-simple :is(.pf-next, .pf-submit)::after {
  content: "→"; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 24%, #3e1222); color: #fff; font-size: 17px; font-weight: 400;
}
.studio-phone .look-simple .pf-back { width: 58px; height: 58px; border-width: 1px; border-radius: 50%; }
.studio-check summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.studio-check[open] summary { margin-bottom: 8px; }

/* Screen editor (flow-editor.js): pages as one sequence of screen dividers and block cards,
   with the phone preview beside it. */
fieldset.studio-flow .form-row { padding: 0; border-bottom: 0; overflow: visible; }
fieldset.studio-flow .flex-container { display: block; }
fieldset.studio-flow .flex-container > label { display: none; }
fieldset.studio-flow .help { margin-left: 0 !important; padding-left: 0 !important; }

.fe { display: grid; grid-template-columns: 232px minmax(0, 1fr) 412px; gap: 24px; align-items: start; }
@media (max-width: 1560px) { .fe { grid-template-columns: 208px minmax(0, 1fr) 400px; gap: 18px; } }

/* the component tree: the page's screens and blocks on the left (flow-editor.js renderTree) */
.fe-tree {
  position: sticky; top: 12px; max-height: calc(100vh - 24px - var(--fe-bottom-bar, 0px)); box-sizing: border-box; overflow: auto; padding: 10px 6px 14px;
  border: 1px solid var(--studio-line); border-radius: 12px; background: var(--body-bg, #fff); font-size: 12.5px; line-height: 1.35;
}
.fe-tree__head { display: flex; flex-direction: column; gap: 2px; padding: 2px 8px 9px; margin-bottom: 4px; border-bottom: 1px solid var(--studio-line); }
.fe-tree__head b { font-size: 13px; }
.fe-tree__head small { color: var(--body-quiet-color, #6b7280); font-size: 11px; }
.fe-tree__title { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.fe-tree__all {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border: 0; border-radius: 6px;
  background: none; color: var(--body-quiet-color, #6b7280); font: inherit; font-size: 11px; cursor: pointer;
}
.fe-tree__all:hover { background: var(--darkened-bg, #f3f4f6); color: var(--body-fg, #111827); }
.fe-tree__all .ph { font-size: 13px; }
.fe-tree__head .fe-tree__hint { margin-top: 3px; line-height: 1.4; }
#content .fe-tree :is(ul, li) { list-style: none; margin: 0; padding: 0; }
.fe-tree__screen { display: flex; align-items: center; margin-top: 4px; }
.fe-tree__fold { flex: none; display: grid; place-items: center; width: 20px; height: 24px; padding: 0; border: 0; background: none; color: var(--body-quiet-color, #6b7280); cursor: pointer; }
.fe-tree__label {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; border-radius: 7px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.fe-tree__label:hover { background: var(--darkened-bg, #f3f4f6); }
.fe-tree__screen .fe-tree__label b { flex: none; font-weight: 700; }
.fe-tree__words { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--body-quiet-color, #6b7280); }
.fe-tree__tag { flex: none; margin-left: auto; padding: 0 5px; border-radius: 4px; background: var(--darkened-bg, #f3f4f6); color: var(--body-quiet-color, #6b7280); font-size: 10.5px; }
#content .fe-tree .fe-tree__blocks { margin: 1px 0 4px 10px; padding-left: 8px; border-left: 1px solid var(--studio-line); }
.fe-tree__block { display: flex; align-items: center; }
.fe-tree__block .fe-tree__label { gap: 5px; padding: 3px 6px; }
.fe-tree__block .fe-tree__label > .ph:first-child { flex: none; font-size: 14px; color: var(--jade-ink, #0d5e4d); }
.fe-tree__name { flex: none; font-weight: 600; }
.fe-tree__mark { flex: none; font-size: 12px; color: var(--body-quiet-color, #6b7280); }
.fe-tree__mark.is-hidden { color: #b45309; }
.fe-tree__eye, .fe-tree__add {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--body-quiet-color, #6b7280); font-size: 14px; cursor: pointer; opacity: 0; transition: opacity .15s;
}
.fe-tree__eye:hover, .fe-tree__add:hover, .fe-tree__add[aria-expanded="true"] { background: var(--darkened-bg, #f3f4f6); color: var(--body-fg, #111827); }
.fe-tree__block:hover :is(.fe-tree__eye, .fe-tree__add), .fe-tree__screen:hover .fe-tree__add, .fe-tree__block.is-off .fe-tree__eye,
.fe-tree__eye:focus-visible, .fe-tree__add:focus-visible, .fe-tree__add[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .fe-tree__eye, .fe-tree__add { opacity: 1; } }
.fe-tree__block.is-off .fe-tree__label { opacity: .45; }
.fe-tree__block.is-off .fe-tree__name { text-decoration: line-through; }
.fe-tree__block.is-current .fe-tree__label { background: var(--jade-tint, #e9f4f0); color: var(--jade-ink, #0d5e4d); }
/* the screen at the top of the editor right now */
.fe-tree__screen.is-in-view .fe-tree__label { box-shadow: inset 3px 0 0 var(--studio-accent); }
.fe-tree__screen.is-in-view .fe-tree__label b { color: var(--jade-ink, #0d5e4d); }
.fe-tree-toggle { display: none; }
/* moving rows (flow-editor.js "moving rows of the tree"): the lifted row, the line where it lands, the label
   that follows the pointer; while a screen moves, every screen shows folded */
.fe-tree { -webkit-user-select: none; user-select: none; }
.fe-tree :is(.fe-tree__screen, .fe-tree__block).is-dragged { opacity: .35; }
.fe-tree.is-moving-screens .fe-tree__blocks { display: none; }
.fe-tree__screen.is-drop-into .fe-tree__label { background: var(--jade-tint, #e9f4f0); box-shadow: inset 0 0 0 2px var(--studio-accent); color: var(--jade-ink, #0d5e4d); }
.fe-tree__line { position: absolute; z-index: 2; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--studio-accent); pointer-events: none; }
.fe-tree__line[hidden] { display: none; }
.fe-tree__line::before {
  content: ""; position: absolute; left: -3px; top: -3px; width: 8px; height: 8px; box-sizing: border-box;
  border: 2px solid var(--studio-accent); border-radius: 50%; background: var(--body-bg, #fff);
}
.fe-tree__line-tag {
  position: absolute; right: 0; top: -8px; padding: 0 6px; border-radius: 999px; background: var(--studio-accent);
  color: var(--on-jade, #fff); font-size: 10.5px; font-weight: 600; line-height: 16px; white-space: nowrap;
}
.fe-tree__line-tag:empty { display: none; }
.fe-tree-ghost {
  position: fixed; left: 0; top: 0; z-index: 3000; display: flex; align-items: center; gap: 5px; max-width: 240px;
  padding: 5px 10px; border: 1px solid var(--studio-accent); border-radius: 8px; background: var(--body-bg, #fff);
  color: var(--body-fg, #111827); box-shadow: 0 8px 24px rgba(0, 0, 0, .16); font-size: 12.5px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; pointer-events: none;
}
.fe-tree-ghost > .ph:first-child { flex: none; color: var(--jade-ink, #0d5e4d); font-size: 14px; }
.fe-tree-ghost .fe-tree__tag { margin-left: 4px; }
.fe.is-tree-dragging, .fe.is-tree-dragging * { cursor: grabbing !important; }
/* the admin's aligned form (loaded after this file) gives every label a 160px column; the editor lays out its own
   labels, not the preview phone's (a payment card's choices are labels too) */
#content .fe label:where(:not(.studio-phone *)) { display: inline-flex; align-items: center; gap: 6px; width: auto; min-width: 0; padding: 0; float: none; font-weight: 400; }
/* the change form puts a spacer after every label: none in the editor, the phone's labels included */
#content .fe label::after { content: none; }
#content .fe label.button { display: inline-flex; padding: 0 14px; font-weight: 600; }
.fe-main { min-width: 0; }
.fe-grow { flex: 1; }
.fe-help { font-size: 12px; color: var(--body-quiet-color, #6b7280); margin: 0; line-height: 1.5; }
.fe-warning { color: var(--studio-error); font-weight: 600; margin: 6px 0; }
.fe-link { border: 0; background: none; color: var(--studio-accent); cursor: pointer; padding: 4px 0; font-weight: 600; font-size: 13px; text-align: left; align-self: flex-start; }

.fe-toolbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; margin-bottom: 10px; background: var(--body-bg, #fff); border-bottom: 1px solid var(--studio-line); }
.fe-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.fe-tab { border: 1px solid var(--studio-line); background: var(--body-bg, #fff); color: var(--body-fg, #333); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 13px; font-weight: 600; }
.fe-tab small { margin-left: 6px; font-weight: 400; color: var(--body-quiet-color, #6b7280); }
.fe-tab.is-active { background: var(--studio-accent); border-color: var(--studio-accent); color: var(--on-jade, #fff); }
.fe-tab.is-active small { color: rgba(255, 255, 255, .85); }
.fe-save { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--body-quiet-color, #6b7280); }
.fe-save.is-dirty > span { color: var(--studio-warning); font-weight: 600; }
.fe-save__button { display: inline-flex; align-items: center; gap: 6px; }
.fe-save__button:disabled { opacity: .45; cursor: default; }

/* 변경 확인: the unsaved changes, each with a tick box */
.fe-review { width: min(720px, 100%); }
.fe-review__tools { display: flex; align-items: center; gap: 6px; margin: 8px 0; }
#content .fe-review__list, .fe-review__list { list-style: none; margin: 0; padding: 0; overflow: auto; border: 1px solid var(--studio-line); border-radius: 10px; }
#content .fe-review__item, .fe-review__item { list-style: none; display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--studio-line); }
.fe-review__item:last-child { border-bottom: 0; }
.fe-review__pick { display: flex; flex: 1; align-items: flex-start; gap: 10px; cursor: pointer; }
.fe-review__pick input { margin-top: 3px; }
.fe-review__kind { flex: none; min-width: 34px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; text-align: center; background: var(--studio-line); }
.fe-review__item.is-add .fe-review__kind { background: color-mix(in srgb, var(--studio-ok, #15803d) 16%, transparent); color: var(--studio-ok, #15803d); }
.fe-review__item.is-remove .fe-review__kind { background: color-mix(in srgb, var(--studio-error, #b42318) 14%, transparent); color: var(--studio-error, #b42318); }
.fe-review__item.is-edit .fe-review__kind { background: color-mix(in srgb, var(--studio-accent) 14%, transparent); color: var(--studio-accent); }
.fe-review__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.fe-review__text small { color: var(--body-quiet-color, #6b7280); }
.fe-review__detail { font-size: 12px; color: var(--body-medium-color, #444); overflow-wrap: anywhere; }
.fe-review__foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.fe-review__status { margin: 0; font-size: 12px; color: var(--studio-warning); }

/* 웹툰 컷: the text box picker, and for a bubble its shape and tail */
.fe-pe__boxpick { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.fe-pe__picks { display: flex; flex-wrap: wrap; gap: 6px; }
.fe-pe__pick { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--studio-line); border-radius: 10px; background: var(--body-bg, #fff); font: inherit; font-size: 12px; cursor: pointer; }
.fe-pe__pick.is-on { border-color: var(--studio-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--studio-accent) 20%, transparent); color: var(--studio-accent); font-weight: 700; }
.fe-pe__pick:disabled { cursor: default; opacity: .7; }
.fe-pe__picks--shapes .fe-pe__pick { flex-direction: column; width: 84px; padding: 6px; font-size: 11px; }
.fe-pe__picks--shapes img { width: 62px; height: 44px; }
.fe-pe__shape-groups { display: grid; gap: 10px; }
.fe-pe__group-title { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 700; color: var(--body-quiet-color, #6b7280); }
.fe-pe__swatch { width: 18px; height: 12px; border-radius: 3px; border: 1px solid #c9c9cf; background: transparent; }
.fe-pe__swatch.swatch-bubble { border-radius: 50%; border-color: #2a2230; background: #fff; }
.fe-pe__swatch.swatch-caption { background: #fbf8f1; }
.fe-pe__swatch.swatch-frame { background: #fffdf9; border: 3px double #2a2230; }
.fe-pe__swatch.swatch-ink { background: #121a17; border-color: #121a17; }
.fe-pe__swatch.swatch-sfx { border: 0; background: none; }
.fe-pe__swatch.swatch-sfx::before { content: "쾅"; font-family: "Nanum Pen Script", cursive; font-size: 14px; line-height: 12px; }
.fe-pe__bubble, .fe-pe__tailpick { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.fe-pe__bubble > .fe-field--wide, .fe-pe__tailpick > .fe-field--wide { flex: 1 1 320px; }
.fe-pe__tails { display: grid; grid-template-columns: repeat(3, 34px); gap: 4px; }
.fe-pe__tails .fe-pe__pick { justify-content: center; width: 34px; height: 30px; padding: 0; font-size: 15px; }
/* the bubble's outline width and colour, and its fill */
.fe-pe__look { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding-top: 10px; border-top: 1px dashed var(--studio-line); }
.fe-pe__look > .fe-field--wide { grid-column: 1 / -1; }
.fe-pe__line { display: inline-block; width: 18px; border-top: var(--lw) solid currentColor; border-radius: 2px; }
.fe-pe__palette { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.fe-pe__dot { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid rgba(42, 34, 48, .22); background: var(--dot); cursor: pointer; box-shadow: inset 0 0 0 2px var(--body-bg, #fff); }
.fe-pe__dot.is-on { border-color: var(--studio-accent); box-shadow: inset 0 0 0 2px var(--body-bg, #fff), 0 0 0 2px var(--studio-accent); }
.fe-pe__dot:disabled { cursor: default; }
@media (max-width: 720px) { .fe-pe__look { grid-template-columns: minmax(0, 1fr); } }
/* the right-click menu on a text area */
.fe-menu { position: fixed; z-index: 3000; min-width: 168px; padding: 6px; background: var(--body-bg, #fff); border: 1px solid var(--studio-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.fe-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; color: inherit; }
.fe-menu button:hover { background: var(--studio-line); }
.fe-menu button.is-danger { color: var(--studio-error, #b42318); }
.fe-menu hr { margin: 4px 0; border: 0; border-top: 1px solid var(--studio-line); }
.fe-page__help { color: var(--body-quiet-color, #6b7280); margin: 0 0 12px; }
.fe-empty { border: 2px dashed var(--studio-line); border-radius: 12px; padding: 32px 16px; text-align: center; }
.fe-add-screen { margin: 4px 0 24px; }
/* above every screen: + 새 화면 puts a screen in right there */
.fe-screen-gap { position: relative; display: flex; justify-content: center; margin: 0 0 8px; }
.fe-screen-gap::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--studio-line); }
.fe .fe-screen-gap__btn {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border: 1px dashed var(--studio-line);
  border-radius: 999px; background: var(--body-bg, #fff); color: var(--body-quiet-color, #6b7280); font: inherit; font-size: 12px;
  font-weight: 600; cursor: pointer; transition: color .12s, border-color .12s;
}
.fe .fe-screen-gap__btn:hover, .fe .fe-screen-gap__btn:focus-visible { border-style: solid; border-color: var(--studio-accent); color: var(--studio-accent); }
.fe-screen-gap__btn .ph { font-size: 12px; }

/* a screen is a divider in the sequence, not a box around its blocks */
.fe-screen { margin: 0 0 14px; scroll-margin-top: 76px; } /* clear of the sticky tabs when scrolled to */
.fe-screen.is-flash > .fe-screen__bar { animation: fe-flash 1.6s ease-out; }
@keyframes fe-flash {
  0%, 35% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--studio-accent) 45%, transparent); }
  100% { box-shadow: 0 0 0 3px transparent; }
}
/* screen type switch on the screen bar */
.fe-seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 999px; background: var(--body-bg, #fff); border: 1px solid var(--studio-line); }
.fe .fe-seg__btn { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; background: transparent; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--body-quiet-color, #6b7280); cursor: pointer; transition: background-color .15s, color .15s; }
.fe .fe-seg__btn:hover:not(:disabled) { color: var(--body-loud-color); }
.fe .fe-seg__btn.is-on { background: var(--studio-accent); color: var(--on-jade, #fff); }
.fe-screen__warn { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--studio-error); background: color-mix(in srgb, var(--studio-error) 8%, transparent); }
.fe-screen__warn[hidden] { display: none; }
/* one-screen page: three places, drawn like the phone screen they stand for */
.fe-blocks--fit { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 10px; border: 1px solid var(--studio-line); border-radius: 18px; background: color-mix(in srgb, var(--studio-accent) 3%, transparent); }
.fe-zone { padding: 8px 10px 4px; border: 1px dashed var(--studio-line); border-radius: 12px; background: var(--body-bg, #fff); }
.fe-zone--middle { min-height: 80px; }
.fe-zone--bottom { border-style: solid; border-color: color-mix(in srgb, var(--studio-accent) 35%, var(--studio-line)); }
.fe-zone__label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--body-loud-color); }
.fe-zone__label .ph { color: var(--studio-accent); font-size: 14px; }
.fe-zone__label small { font-weight: 400; color: var(--body-quiet-color, #6b7280); }
.fe-screen__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--darkened-bg, #f3f4f6); border-left: 4px solid var(--studio-accent); }
.fe-screen__no { font-weight: 700; white-space: nowrap; }
.fe .fe-screen__name { border: 1px solid transparent; background: transparent; color: var(--body-fg, #333); font: inherit; font-weight: 600; padding: 4px 6px; border-radius: 6px; min-width: 200px; }
.fe-screen__name:hover, .fe-screen__name:focus { border-color: var(--studio-line); background: var(--body-bg, #fff); outline: none; }
.fe-screen__meta { font-size: 12px; color: var(--body-quiet-color, #6b7280); }
.fe-screen__settings { padding: 10px 12px; margin-top: 6px; border: 1px dashed var(--studio-line); border-radius: 10px; }
.fe-blocks { padding-top: 2px; }

/* + between blocks: always there as a small round button; on hover it says what it does and a line marks the spot */
.fe-insert { position: relative; height: 26px; display: flex; align-items: center; justify-content: center; }
.fe-insert::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed transparent; }
.fe-insert:hover::before, .fe-insert.is-over::before { border-top-color: var(--studio-accent); }
.fe .fe-insert__btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 22px; height: 22px;
  padding: 0 5px; border: 1px solid var(--studio-line); border-radius: 999px; background: var(--body-bg, #fff);
  color: var(--body-quiet-color, #6b7280); font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: color .12s, border-color .12s, box-shadow .12s;
}
.fe-insert__btn .ph { font-size: 12px; }
.fe-insert__label { display: none; }
.fe-insert:hover .fe-insert__btn, .fe .fe-insert__btn:focus-visible { padding: 0 10px; border-color: var(--studio-accent); color: var(--studio-accent); box-shadow: 0 2px 8px rgba(20, 128, 106, .16); }
.fe-insert:hover .fe-insert__label, .fe-insert__btn:focus-visible .fe-insert__label { display: inline; }
.fe-insert--end { height: auto; margin: 6px 0 2px; justify-content: flex-start; }
.fe-insert--end::before { display: none; }
.fe .fe-insert--end .fe-insert__btn { height: auto; padding: 6px 14px; border-color: var(--studio-accent); color: var(--studio-accent); font-size: 13px; }
.fe-insert--end .fe-insert__label { display: inline; }
.is-dragging .fe-insert { height: 30px; }
.is-dragging .fe-insert::before { border-top-color: var(--studio-line); }
.is-dragging .fe-insert.is-over::before { border-top: 3px solid var(--studio-accent); }

/* Files dragged in from the computer: every place that takes their kind is outlined, the spot under
   the pointer is filled, and a note at the top says what happens on drop. */
.drop-image .fe-insert::before, .drop-video .fe-insert::before { border-top-color: color-mix(in srgb, var(--studio-accent) 45%, transparent); }
.drop-image [data-drop-kind="image"], .drop-video [data-drop-kind="video"], .drop-audio [data-drop-kind="audio"] {
  outline: 2px dashed color-mix(in srgb, var(--studio-accent) 65%, transparent);
  outline-offset: 3px;
}
.fe [data-drop-kind].is-over { outline: 2px solid var(--studio-accent); outline-offset: 3px; background-color: color-mix(in srgb, var(--studio-accent) 9%, transparent); }
.fe-drophint { display: none; }
.is-dropping-files .fe-drophint {
  position: fixed;
  z-index: 40;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--studio-accent);
  color: var(--on-jade, #fff);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(6, 35, 28, .22);
  pointer-events: none;
}

.fe-card { border: 1px solid var(--studio-line); border-radius: 12px; background: var(--body-bg, #fff); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.fe-card.is-selected { border-color: var(--studio-accent); box-shadow: 0 0 0 2px rgba(20, 128, 106, .18); }
.fe-card.is-dragged { opacity: .45; }
/* 꺼둔 블록: still editable, plainly set aside */
.fe-card.is-off { border-style: dashed; background: var(--darkened-bg, #f8f9fa); }
.fe-card.is-off :is(.fe-card__body, .fe-card__icon, .fe-card__title) { opacity: .55; }
.fe-card.is-off .fe-card__icon { filter: grayscale(1); }
.fe-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 10px 7px 8px; border-bottom: 1px solid var(--studio-line); }
.fe-handle { cursor: grab; color: var(--body-quiet-color, #6b7280); font-size: 16px; padding: 0 2px; user-select: none; }
.fe-card__icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--jade-tint, #e9f4f0); color: var(--jade-ink, #0d5e4d); font-size: 16px; }
.fe-boxpick { display: inline-flex; align-items: center; gap: 4px; color: var(--body-quiet-color, #6b7280); }
#content .fe .fe-boxpick .fe-input { width: auto; min-height: 30px; padding: 3px 24px 3px 8px; font-size: 12.5px; }
.fe-card__title { font-weight: 700; }
.fe-card__body { padding: 12px 14px; container-type: inline-size; }
.fe-card__settings { padding: 2px 14px 12px; border-top: 1px dashed var(--studio-line); background: var(--darkened-bg, #f8f9fa); border-radius: 0 0 12px 12px; }
.fe-card--plain { padding: 0; }
.fe-section { margin-top: 10px; }
.fe-section__title { font-size: 12px; font-weight: 700; color: var(--body-quiet-color, #6b7280); margin-bottom: 6px; }
.fe-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.fe-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-badge--rule { background: var(--jade-tint, #e9f4f0); color: var(--jade-ink, #0d5e4d); }
.fe-badge--hidden { background: #fef3c7; color: #92400e; }
.fe-badge--empty { background: #fee2e2; color: #991b1b; }
.fe-badge--off { background: #e5e7eb; color: #374151; font-weight: 700; }
.fe-tools { display: inline-flex; align-items: center; gap: 2px; }
.fe-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; background: transparent; color: var(--body-medium-color, #3b4148); cursor: pointer; padding: 0; border-radius: 7px; font-size: 16px; line-height: 1; transition: background .15s ease, color .15s ease; }
.fe-icon:hover:not(:disabled) { background: var(--darkened-bg, #f3f4f6); }
.fe-icon:disabled { opacity: .3; cursor: default; }
.fe-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--studio-line); background: var(--surface, #fff); color: var(--body-medium-color, #333); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color .15s ease, color .15s ease; }
.fe-chip:hover { border-color: var(--border-color, #d5d9de); color: var(--body-loud-color, #111); }
.fe-chip i { font-size: 14px; }
/* 연애 상태별 (editor-fields.js statusTools): a small chip by a words field's label, one box per status under it */
.fe-label .fe-status__chip { margin-left: 6px; padding: 1px 8px; font-size: 11px; vertical-align: 1px; }
.fe-status__chip.is-on { border-color: var(--accent); color: var(--accent); }
.fe-status { display: grid; gap: 6px; margin-top: 6px; padding: 10px; border: 1px dashed var(--studio-line); border-radius: 8px; }
.fe-status__row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 8px; }
.fe-status__name { padding-top: 7px; font-size: 12px; font-weight: 600; color: var(--body-medium-color, #333); }
/* 분위기 고르기 (flow-editor.js moodPicker): a card per mood with a few of its colours; a saved one has a small x */
.fe-moods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.fe-mood { position: relative; border: 1px solid var(--studio-line); border-radius: 10px; background: var(--surface, #fff); }
.fe-mood:hover { border-color: var(--border-color, #d5d9de); }
.fe-mood.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.fe-mood__pick { display: grid; gap: 4px; width: 100%; padding: 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fe-mood__pick:disabled { cursor: default; }
.fe-mood b { font-size: 13px; }
.fe-mood small { font-size: 11.5px; line-height: 1.45; color: var(--body-quiet-color, #666); }
.fe-mood__mine { display: block; font-size: 10.5px; font-style: normal; font-weight: 600; color: var(--accent); }
.fe-mood__remove { position: absolute; top: 6px; right: 6px; }
.fe-mood__swatch { display: flex; gap: 3px; margin-bottom: 2px; }
.fe-mood__swatch i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.fe-chip.is-on { border-color: var(--studio-accent); color: var(--studio-accent); }

.fe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.fe-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fe-field--wide { grid-column: 1 / -1; }
.fe-field--check { justify-content: flex-end; }
.fe-label { font-size: 12px; font-weight: 600; color: var(--body-quiet-color, #6b7280); }
/* .fe-prefixed so they win over the admin's input[type=text] rules */
.fe .fe-input { width: 100%; height: auto; box-sizing: border-box; font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid var(--border-color, #ccc); border-radius: 8px; background: var(--body-bg, #fff); color: var(--body-fg, #333); }
.fe .fe-input--auto, .fe .fe-rule__head .fe-input { width: auto; }
.fe textarea.fe-input { resize: vertical; line-height: 1.55; min-height: 38px; overflow: hidden; }
.fe .fe-input:focus { outline: 2px solid rgba(20, 128, 106, .35); border-color: var(--studio-accent); }
.fe-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; }
.fe-check input { margin: 0; }
.fe-multi { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.fe-multi label { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; }
/* the 후기 block's '고객 후기에서 고르기' (flow-editor.js reviewPicker): what customers wrote, ticked into cards */
.fe-reviews-tool { display: grid; gap: 8px; margin-top: 12px; }
.fe-reviews-tool > .fe-chip { justify-self: start; }
.fe-picks { display: grid; gap: 6px; max-height: 360px; overflow: auto; padding: 8px; border: 1px solid var(--studio-line); border-radius: 12px; background: var(--darkened-bg, #f6f8f7); }
.fe-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 11px; border-radius: 9px; background: var(--body-bg, #fff); font-weight: 400; cursor: pointer; transition: box-shadow .15s ease; }
.fe-pick:hover { box-shadow: 0 0 0 1px var(--studio-line); }
.fe-pick input { margin: 3px 0 0; }
.fe-pick.is-in { opacity: .55; cursor: default; }
.fe-pick__text { display: grid; gap: 3px; }
.fe-pick__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 12.5px; }
.fe-pick__head small { color: var(--body-quiet-color, #6b7280); font-size: 11.5px; }
.fe-pick__stars { color: #d9a03f; letter-spacing: 1px; font-weight: 400; }
.fe-pick__body { font-size: 13px; line-height: 1.55; color: var(--body-fg, #333); white-space: pre-line; overflow-wrap: anywhere; }
.fe-pick__image { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.fe-picks__foot { position: sticky; bottom: -8px; display: flex; justify-content: flex-end; padding: 8px 0 2px; background: var(--darkened-bg, #f6f8f7); }
.fe-color { display: flex; align-items: center; gap: 6px; }
.fe-swatch { position: relative; width: 30px; height: 30px; flex: none; border-radius: 8px; border: 1px solid var(--studio-line); cursor: pointer; box-shadow: inset 0 0 0 2px var(--body-bg, #fff); transition: transform .12s; }
.fe-swatch:hover { transform: scale(1.06); }
.fe-swatch:focus-within { outline: 2px solid var(--studio-accent); outline-offset: 2px; }
/* empty field: the default colour shown faded, so writers see what they get without choosing */
.fe-swatch.is-default { opacity: .45; background-image: linear-gradient(135deg, transparent 46%, var(--body-bg, #fff) 46%, var(--body-bg, #fff) 54%, transparent 54%) !important; }
.fe-swatch__picker { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.fe-color .fe-input { max-width: 140px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.fe-swatch__clear[hidden] { display: none; }
/* a slider with an exact number beside it; "기본" (0) greys the slider out */
.fe-range { display: flex; align-items: center; gap: 8px; }
.fe-range .fe-range__slider { flex: 1; min-width: 80px; margin: 0; padding: 0; accent-color: var(--studio-accent); }
.fe-range__value { flex: none; display: inline-flex; align-items: center; gap: 3px; }
.fe .fe-range .fe-range__num { width: 66px; padding: 5px 6px; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
/* 바깥·안쪽 여백: a size for each side in one row (editor-fields.js sidesControl); an empty box reads 기본 */
.fe-sides { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
#content .fe label.fe-sides__side { gap: 5px; font-size: 12.5px; color: var(--body-medium-color, #3b4148); }
.fe .fe-sides .fe-sides__num { width: 70px; padding: 5px 6px; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.fe-sides__unit { margin-right: 2px; font-size: 12px; color: var(--body-quiet-color, #6b7280); }
.fe-sides .fe-chip[hidden] { display: none; }
.fe-range__unit { min-width: 14px; font-size: 12px; color: var(--body-quiet-color, #6b7280); }
.fe-range.is-default .fe-range__slider { opacity: .4; }
.fe-range__zero { flex: none; }
.fe-replay { margin-top: 8px; }

/* the font button and the font list: every font in its own type, the writer's own phrase */
.fe .fe-font { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; text-align: left; cursor: pointer; }
.fe-font__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.fe-fontpick {
  position: fixed; z-index: 3000; display: flex; flex-direction: column; max-height: min(620px, calc(100vh - 24px));
  border: 1px solid var(--studio-line); border-radius: 14px; background: var(--body-bg, #fff); color: var(--body-fg, #222);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35);
}
.fe-fontpick__head { display: flex; align-items: flex-end; gap: 10px; padding: 12px 12px 8px; border-bottom: 1px solid var(--studio-line); }
.fe-fontpick__field { display: flex; flex-direction: column; gap: 4px; flex: 1; font-size: 11.5px; font-weight: 600; color: var(--body-quiet-color, #6b7280); }
.fe-fontpick__field--size { flex: 0 0 120px; }
.fe-fontpick .fe-input { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid var(--border-color, #ccc); border-radius: 8px; background: var(--body-bg, #fff); color: var(--body-fg, #222); font: inherit; font-size: 14px; }
.fe-fontpick__size { width: 100%; accent-color: var(--studio-accent); }
.fe-fontpick__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--studio-line); }
.fe-fontpick__list { --sample-size: 22px; flex: 1; overflow-y: auto; padding: 4px 6px 8px; overscroll-behavior: contain; }
.fe-fontpick__group { position: sticky; top: 0; z-index: 1; padding: 10px 8px 4px; background: var(--body-bg, #fff); font-size: 11.5px; font-weight: 700; color: var(--studio-accent); }
.fe-fontpick__row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 8px 10px;
  border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.fe-fontpick__row:hover, .fe-fontpick__row:focus-visible { background: color-mix(in srgb, var(--studio-accent) 9%, transparent); outline: none; }
.fe-fontpick__row.is-on { background: color-mix(in srgb, var(--studio-accent) 14%, transparent); box-shadow: inset 3px 0 0 var(--studio-accent); }
.fe-fontpick__label { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.fe-fontpick__label small { font-size: 11px; font-weight: 500; color: var(--body-quiet-color, #6b7280); }
.fe-fontpick__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--sample-size); line-height: 1.35; }
.fe-fontpick__foot { margin: 0; padding: 8px 12px 10px; border-top: 1px solid var(--studio-line); font-size: 11.5px; color: var(--body-quiet-color, #6b7280); }
@media (max-width: 560px) { .fe-fontpick__row { grid-template-columns: 1fr; gap: 2px; } }

/* text shapes, each drawn small with the phone's own styles */
.fe-shapes__now { display: flex; align-items: center; gap: 10px; }
.fe-shapes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 10px; }
.fe-shape {
  display: flex; flex-direction: column; gap: 5px; padding: 6px; border: 1px solid var(--studio-line); border-radius: 12px;
  background: var(--body-bg, #fff); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.fe-shape:hover { border-color: color-mix(in srgb, var(--studio-accent) 50%, var(--studio-line)); }
.fe-shape.is-on { border-color: var(--studio-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--studio-accent) 25%, transparent); }
.fe-shape.is-small { flex-direction: row; align-items: center; width: auto; padding: 4px 10px 4px 4px; }
.fe-shape.is-small .fe-shape__view { width: 74px; height: 50px; }
.fe-shape__name { font-size: 11.5px; font-weight: 600; text-align: center; white-space: nowrap; }
/* the mini phone: the real shape styles at a fraction of their size */
.fe .fe-shape__view.studio-phone {
  display: grid; place-items: center; width: 100%; height: 70px; max-width: none; padding: 0; overflow: hidden;
  border: 0; border-radius: 8px; background: #f2f4f3; pointer-events: none;
}
.fe .fe-shape__view.studio-phone > .block { width: 230px; margin: 0; zoom: .4; }
.fe .fe-shape__view.studio-phone .text-cover { min-height: 0; padding-top: 0; }
.fe .fe-shape__view.studio-phone .text-vertical { inline-size: 7em; }
.fe .fe-shape__view.studio-phone .block-title { margin-bottom: .5em; }

/* 도식 색 (editor-fields.js paletteControl, the 사주 도식 모음 page): every palette as a small diagram card in its own
   colours, by family */
.fe-palettes__now { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.fe-palettes__all { display: grid; gap: 14px; margin-top: 12px; }
.fe-palettes__group h5 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; padding: 0; font-size: 12.5px; font-weight: 700; color: var(--body-loud-color); background: none; }
.fe-palettes__group h5 small { font-size: 11px; font-weight: 500; color: var(--body-quiet-color, #6b7280); }
.fe-palettes__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } /* a family per row */
.fe-palette {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 5px 5px 7px; border: 1px solid var(--studio-line);
  border-radius: 12px; background: var(--body-bg, #fff); color: var(--body-fg); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.fe-palette:is(:link, :visited) { color: var(--body-fg); text-decoration: none; }
.fe-palette:hover { border-color: color-mix(in srgb, var(--studio-accent) 50%, var(--studio-line)); }
.fe-palette.is-on { border-color: var(--studio-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--studio-accent) 25%, transparent); }
.fe-palette.is-small { flex-direction: row; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; }
.fe-palette.is-small .fe-palette__view { width: 124px; flex: none; }
.fe-palette__name { display: flex; flex-direction: column; gap: 1px; padding: 0 2px; font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.fe-palette__name small { font-size: 10px; font-weight: 500; color: var(--body-quiet-color, #6b7280); }
.fe-palette__view.studio-phone {
  display: block; width: 100%; max-width: none; padding: 0; border: 0; border-radius: 9px; background: none; overflow: hidden; pointer-events: none;
}
.fe-palette__view.studio-phone .fe-palette__chip { display: grid; gap: 7px; padding: 8px 8px 7px; border-radius: 9px; box-shadow: none; }
.fe-palette__chip .fe-palette__tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.fe-palette__view .fe-palette__chip .sd-tile { width: auto; height: auto; aspect-ratio: 1; max-width: 22px; border-radius: 28%; font-size: 9.5px; }
.fe-palette__view .fe-palette__chip .sd-stack { height: 7px; margin: 0; gap: 1.5px; border-radius: 4px; }
.fe-palette__view .fe-palette__chip .sd-stack span { min-width: 3px; }
.fe-palette__chip .fe-palette__line { display: flex; align-items: center; gap: 5px; }
.fe-palette__chip .fe-palette__line i { flex: 1; height: 2px; border-radius: 1px; background: var(--sd-accent); }
.fe-palette__chip .fe-palette__line b { padding: 1px 6px; border-radius: 999px; background: var(--sd-accent); color: var(--sd-on-accent); font-size: 9px; font-weight: 700; line-height: 1.5; }
/* opened, a chart block's own diagram in every palette (admin_views.palette_swatches), drawn at its width and shrunk
   to the tile (editor-fields.js sets --swatch-zoom from the tiles' width); a tall one is cut with a fade */
.fe-palette__view--chart.studio-phone { max-height: 158px; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.fe-palette__view--chart.studio-phone > .sd { width: 320px; zoom: var(--swatch-zoom, .32); }
.fe-palettes__pick { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--body-quiet-color, #6b7280); white-space: nowrap; }
.fe .fe-palettes__sample { width: auto; min-width: 200px; max-width: 100%; }
/* with the diagrams drawn, three to a row so each is big enough to judge */
.fe-palettes.has-drawings .fe-palettes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fe-palettes.has-drawings .fe-palette__view--chart.studio-phone { max-height: 210px; }
.fe-palettes__note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--body-quiet-color, #6b7280); }
.fe-palettes__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

/* 사주 도식 모음 (catalog/admin_views.py chart_gallery): the palettes by family, and one diagram in all of them */
.chart-palettes { display: grid; gap: 12px; margin-top: 14px; }
.chart-palettes__family { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; }
.chart-palettes__family > b { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; font-size: 13px; color: var(--body-loud-color); }
.chart-palettes__family > b small { font-size: 11px; font-weight: 500; color: var(--body-quiet-color, #6b7280); }
.chart-palettes__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) {
  .chart-palettes__family { grid-template-columns: 1fr; }
  .chart-palettes__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.chart-gallery__phone { border-width: 6px; border-radius: 22px; }
.chart-gallery__phone.is-dark { --phone-bg: #121614; --phone-heading: #eef3f1; --phone-text: #c9d3cf; }
.chart-compare { margin: 22px 0 8px; }
.chart-compare h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 15px; }
.chart-compare h3 small { font-size: 12px; font-weight: 500; color: var(--body-quiet-color, #6b7280); }
.chart-compare__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1280px) { .chart-compare__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* a family in one row: the phones drawn at four fifths, so each diagram keeps the width it is made for */
.chart-compare__cell .studio-phone { zoom: .8; }
.chart-compare__cell .studio-phone .screen { padding: 12px 10px; }
.chart-compare__cell p { margin: 8px 2px 0; font-size: 12px; line-height: 1.5; color: var(--body-quiet-color, #6b7280); }
.chart-compare__cell p b { font-size: 13px; color: var(--body-loud-color); }

/* 글꼴 page: the gallery above the list of added fonts */
.font-gallery { margin-bottom: 16px; }
.font-gallery__tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin: 4px 0 12px; }
.font-gallery__field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--body-quiet-color, #6b7280); }
.font-gallery__field--text { flex: 1 1 260px; }
.font-gallery__field--text input { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--border-color, #ccc); border-radius: 10px; font-size: 15px; }
.font-gallery__field input[type="range"] { width: 160px; accent-color: var(--studio-accent); }
.font-gallery__field--check { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 6px; }
.font-gallery__seg { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--studio-line); border-radius: 999px; }
.font-gallery__seg button { padding: 5px 12px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.font-gallery__seg button.is-on { background: var(--studio-accent); color: #fff; }
.font-gallery__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.font-gallery__grid { --font-size: 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.font-card { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 108px; padding: 16px 16px 12px; border: 1px solid var(--studio-line); border-radius: 14px; background: #fff; color: #1e2b28; }
.font-card[hidden] { display: none; }
.font-gallery__grid.is-dark .font-card { background: #16201d; border-color: #26302c; color: #eef3f1; }
.font-card__text { margin: 0; font-size: var(--font-size); line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.font-gallery__grid.is-bold .font-card__text { font-weight: 700; }
.font-card__name { margin: 0; font-size: 12px; font-weight: 600; opacity: .6; }
.font-sample { font-size: 22px; }

/* a floated block on the editor's phone can be dragged */
.fe-phone .block.is-float { cursor: move; outline: 1px dashed color-mix(in srgb, var(--studio-accent) 70%, transparent); outline-offset: 2px; }
.fe-list { display: flex; flex-direction: column; gap: 6px; }
.fe-list__row { display: flex; align-items: flex-start; gap: 6px; }
.fe-row-tools { display: inline-flex; flex: none; }
.fe-objects { display: flex; flex-direction: column; gap: 8px; }
.fe-sub { border: 1px solid var(--studio-line); border-radius: 10px; padding: 8px 10px 10px; }
.fe-sub__head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; }
.fe-rules { display: flex; flex-direction: column; gap: 8px; }
.fe-rule { border: 1px solid var(--studio-line); border-radius: 10px; padding: 8px 10px; background: var(--body-bg, #fff); }
.fe-rule__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.fe-rule__values { max-height: 160px; overflow: auto; padding: 4px 0; }
.fe-multi--values { max-height: 150px; overflow: auto; padding: 2px 0; }
.fe-objects__add { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fe-details { border: 1px dashed var(--studio-line); border-radius: 10px; padding: 8px 10px; }
.fe-details > summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--body-quiet-color, #6b7280); }
.fe-details[open] > summary { margin-bottom: 8px; }
.fe-snippets { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.fe-helper-link { font-size: 12px; }
.fe-media { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px; border: 1px dashed var(--studio-line); border-radius: 10px; }
.fe-media__thumb img, .fe-media__thumb video { display: block; max-width: 160px; max-height: 110px; border-radius: 8px; object-fit: cover; }
.fe-media__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fe-media__tools .button, .fe-pe__toolbar .button { margin: 0; cursor: pointer; }
.fe-thumbs { display: grid; gap: 8px; padding: 8px; border: 1px dashed var(--studio-line); border-radius: 10px; }
.fe-thumbs__scroll { max-height: 252px; overflow-y: auto; }
.fe-thumbs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
.fe-thumbs__item { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--darkened-bg, #f3f4f6); }
.fe-thumbs__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fe-thumbs__remove { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0;
  border: 0; border-radius: 50%; background: rgb(0 0 0 / .58); color: #fff; font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .15s ease; }
.fe-thumbs__item:hover .fe-thumbs__remove, .fe-thumbs__remove:focus-visible { opacity: 1; }
@media (hover: none) { .fe-thumbs__remove { opacity: 1; } }
.fe-thumbs__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fe-thumbs__bar .button { margin: 0; cursor: pointer; }
.fe-thumbs__borrow { width: auto; max-width: 220px; }

.fe-picker { position: absolute; z-index: 1000; box-sizing: border-box; max-height: 70vh; overflow: auto; padding: 12px; background: var(--body-bg, #fff); border: 1px solid var(--studio-line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
.fe-picker__head { display: flex; align-items: center; margin-bottom: 6px; }
.fe-picker__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.fe-picker__label { font-size: 11px; font-weight: 700; color: var(--body-quiet-color, #6b7280); margin: 4px 0; }
.fe-picker__item { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 6px 8px; text-align: left; border: 0; border-radius: 8px; background: none; color: var(--body-fg, #333); cursor: pointer; }
.fe-picker__item:hover, .fe-picker__item:focus-visible { background: var(--darkened-bg, #f3f4f6); }
.fe-picker__icon { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--darkened-bg, #f1f2f4); color: var(--body-medium-color, #3b4148); font-size: 18px; transition: background .15s ease, color .15s ease; }
.fe-picker__item:hover .fe-picker__icon { background: var(--jade-tint, #e9f4f0); color: var(--jade-ink, #0d5e4d); }
.fe-picker__split i { margin-right: 6px; }
.fe-theme .fe-card + .fe-card { margin-top: 16px; }
.fe-picker__text { display: flex; flex-direction: column; }
.fe-picker__text small { font-size: 11px; color: var(--body-quiet-color, #6b7280); }
.fe-picker__split { width: 100%; margin-top: 10px; padding: 8px; border: 1px dashed var(--studio-accent); border-radius: 8px; background: none; color: var(--studio-accent); font-weight: 600; cursor: pointer; }

.fe-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 24px - var(--fe-bottom-bar, 0px)); }
.fe-side__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fe-side__status { font-size: 12px; color: var(--body-quiet-color, #6b7280); }
.fe-pane { flex: 1; min-height: 240px; overflow: auto; border-radius: 36px; }
/* the frame stays inside the column (a bare phone is as wide as its screen plus the frame): 392px of screen, as in
   체험하기, and 380px on smaller displays */
.fe-phone { max-width: 100%; box-sizing: border-box; }
.fe-phone [data-at] { cursor: pointer; }
.fe-phone .fe-hl { outline: 2px solid var(--studio-accent); outline-offset: 3px; border-radius: 6px; }
.fe-side-toggle { display: none; }
@media (max-width: 1200px) {
  .fe { grid-template-columns: minmax(0, 1fr); }
  .fe-side { display: none; }
  .fe-tree { display: none; }
  .fe.is-tree-open .fe-tree { display: block; position: fixed; top: 12px; left: 12px; bottom: 12px; z-index: 900; width: min(280px, calc(100vw - 24px)); max-height: none; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
  .fe-tree-toggle { display: inline-flex; align-items: center; gap: 6px; position: fixed; left: 16px; bottom: calc(16px + var(--fe-bottom-bar, 0px)); z-index: 950; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--body-fg, #111827); color: var(--body-bg, #fff); font-weight: 700; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); cursor: pointer; }
  .fe.is-side-open .fe-side { display: flex; position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 900; width: min(400px, calc(100vw - 24px)); max-height: none; padding: 12px; box-sizing: border-box; background: var(--body-bg, #fff); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
  .fe-side-toggle { display: block; position: fixed; right: 16px; bottom: calc(16px + var(--fe-bottom-bar, 0px)); z-index: 950; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--studio-accent); color: var(--on-jade, #fff); font-weight: 700; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); cursor: pointer; }
}

/* webtoon cut inside its block card */
.fe-pe__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.fe-pe { display: grid; grid-template-columns: auto minmax(240px, 1fr); gap: 16px; align-items: start; }
@container (max-width: 760px) { .fe-pe { grid-template-columns: minmax(0, 1fr); } }
.fe-pe__canvas { overflow: auto; padding: 12px; border-radius: 10px; background: var(--darkened-bg, #f1f3f5); }
.fe-pe__stage { width: 420px; max-width: 100%; margin: 0 auto; min-height: 140px; background: #fff; user-select: none; outline: none; }
.fe-pe__stage:focus-visible { box-shadow: 0 0 0 2px var(--studio-accent); }
.fe-pe__empty { margin: 0; padding: 48px 16px; text-align: center; color: #6b7280; }
.fe-pe__layer { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.fe-pe__layer .panel-region { cursor: move; outline: 1px dashed rgba(20, 128, 106, .85); }
.fe-pe__layer .panel-region.is-selected { outline: 2px solid var(--studio-accent); }
.fe-pe__layer .panel-region.is-overflowing { outline: 2px solid var(--studio-error); }
.fe-pe__handle { position: absolute; right: -7px; bottom: -7px; z-index: 2; width: 12px; height: 12px; background: var(--studio-accent); border: 2px solid #fff; border-radius: 3px; cursor: nwse-resize; }
.fe-pe__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fe-pe__list { margin: 4px 0 0; padding-left: 20px; }
.fe-pe__list li { padding: 2px 0; cursor: pointer; }
.fe-pe__list li.is-selected { font-weight: 700; color: var(--studio-accent); }
.fe-pe__list li.is-overflowing::after { content: " · 글이 영역보다 커요"; color: var(--studio-error); font-weight: 400; }
.fe-pe__props { padding: 10px 12px; border: 1px solid var(--studio-line); border-radius: 10px; }
.fe-pe__props .fe-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.fe-pe__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.fe-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.fe-modal__box { display: flex; flex-direction: column; box-sizing: border-box; width: min(860px, 100%); max-height: 86vh; padding: 14px; background: var(--body-bg, #fff); border-radius: 14px; }
.fe-modal__head { display: flex; align-items: center; margin-bottom: 10px; }
.fe-modal__foot { margin-top: 10px; text-align: center; }
.fe-library__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; overflow: auto; }
.fe-library__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--studio-line); border-radius: 10px; background: var(--body-bg, #fff); color: var(--body-fg, #333); cursor: pointer; }
.fe-library__item:hover { border-color: var(--studio-accent); }
.fe-library__item img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; }
.fe-library__item small { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.fe-library__icon { display: flex; align-items: center; justify-content: center; height: 90px; font-size: 28px; }

.fe-toast { position: fixed; left: 50%; bottom: 24px; z-index: 3000; display: flex; align-items: center; gap: 12px; padding: 10px 16px; transform: translateX(-50%); background: #111827; color: #fff; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.fe-toast .fe-link { color: #8fe3c6; }

/* ---- Diagrams (catalog/templatetags/studio_charts.py) ------------------------------------------------
   One system for every diagram, coloured by a palette (.pal-*, catalog/blocks.py PALETTE_INFO: 25 in five
   families): the product picks one in 상품 전체 꾸미기 and a chart block may pick another. Each palette sets the
   card (bg, ink, lines, accent) and, per element, the mark colour (bars, stacks), the tile colour, the character
   on the tile and the tile edge. catalog/test_palettes.py holds every palette to the same rules: ink 7:1, second
   ink 4.5:1 and muted 3:1 on the card; text on the accent and every tile's character 4.5:1; accent, harmony and
   clash 3:1 on the card; every element's mark 2:1 on the bar track (목·화·수 3:1 on the card); and the four hued
   elements apart for protanopia, deuteranopia and tritanopia. Elements always show their character too, so
   colour is never the only cue. --sd-accent-ink and --sd-clash-ink are those colours as text on their own tint. */
.studio-phone .sd {
  --sd-bg: #fff; --sd-ink: #1f2937; --sd-ink-2: #4b5563; --sd-muted: #8b929c; --sd-line: #eceef1; --sd-wash: #f4f5f6;
  --sd-accent: #14806a; --sd-on-accent: #fff; --sd-harmony: #14806a; --sd-clash: #c23f2e;
  --sd-accent-ink: color-mix(in oklab, var(--sd-accent) 65%, var(--sd-ink)); --sd-clash-ink: color-mix(in oklab, var(--sd-clash) 65%, var(--sd-ink));
  --sd-tile-font: inherit; --sd-tile-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .22);
  --sd-border: rgba(17, 24, 39, .06); --sd-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 10px 28px -18px rgba(17, 24, 39, .22);
  margin: 0; padding: 16px 14px 14px; border-radius: 18px; background: var(--sd-bg); color: var(--sd-ink);
  border: 1px solid var(--sd-border); box-shadow: var(--sd-shadow);
  font-family: "Wanted Sans Variable", "Apple SD Gothic Neo", sans-serif; font-size: 13px; line-height: 1.45;
}
.studio-phone .sd .el-wood  { --el-mark: var(--wood);  --el-tile: var(--wood-tile, var(--wood));   --el-on: var(--wood-on, #fff);  --el-edge: var(--wood-edge, transparent); }
.studio-phone .sd .el-fire  { --el-mark: var(--fire);  --el-tile: var(--fire-tile, var(--fire));   --el-on: var(--fire-on, #fff);  --el-edge: var(--fire-edge, transparent); }
.studio-phone .sd .el-earth { --el-mark: var(--earth); --el-tile: var(--earth-tile, var(--earth)); --el-on: var(--earth-on, #fff); --el-edge: var(--earth-edge, transparent); }
.studio-phone .sd .el-metal { --el-mark: var(--metal); --el-tile: var(--metal-tile, var(--metal)); --el-on: var(--metal-on, #fff); --el-edge: var(--metal-edge, transparent); }
.studio-phone .sd .el-water { --el-mark: var(--water); --el-tile: var(--water-tile, var(--water)); --el-on: var(--water-on, #fff); --el-edge: var(--water-edge, transparent); }

/* -- 기본: 어느 상품에나 -- */
/* 맑은 색 (default): clear traditional hues on white, solid tiles */
.studio-phone .sd.pal-clear {
  --wood: #2b9a6b; --fire: #c23f2e; --earth: #d6a42a; --metal: #a3abb6; --water: #3a62b8;
  --wood-tile: #1f8259;
  --earth-on: #2a2410; --metal-on: #1f2937;
}
/* 파스텔: soft tinted tiles, the character in the deep tone */
.studio-phone .sd.pal-pastel {
  --sd-accent: #2a8065; --sd-harmony: #2a8065;
  --wood: #3fa37a; --fire: #d9604a; --earth: #d4a53a; --metal: #a6aebb; --water: #4f78c4;
  --wood-tile: #e3f3ea; --fire-tile: #fbe6e1; --earth-tile: #f8efd7; --metal-tile: #eef0f3; --water-tile: #e4ebf7;
  --wood-on: #1e6b4b; --fire-on: #a23a27; --earth-on: #7a570c; --metal-on: #4b5563; --water-on: #2e4f94;
  --sd-tile-shadow: none;
}
/* 선명한 색: saturated, glossy tiles for lively products */
.studio-phone .sd.pal-vivid {
  --sd-ink: #14161c;
  --sd-accent: #6d3ae0; --sd-harmony: #6d3ae0; --sd-clash: #e0352a;
  --wood: #0e9f6e; --fire: #f04a2a; --earth: #e6a000; --metal: #9aa6ba; --water: #1e5fe0;
  --wood-tile: #08784f; --fire-tile: #cc3416; --metal-tile: #8e9ab0;
  --earth-on: #3d2c00; --metal-on: #121826;
  --sd-tile-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), inset 0 2px 0 rgba(255, 255, 255, .3);
}
/* 흑백: black, white and grey; the characters tell the elements apart */
.studio-phone .sd.pal-mono {
  --sd-ink: #17191d; --sd-ink-2: #4a4e57; --sd-muted: #83878f; --sd-line: #e7e8ea; --sd-wash: #f2f3f4; --sd-border: #e2e3e6; --sd-shadow: none;
  --sd-accent: #202328; --sd-harmony: #202328; --sd-clash: #a33a2c;
  --wood: #2a2d33; --fire: #2a2d33; --earth: #2a2d33; --metal: #2a2d33; --water: #2a2d33;
  --wood-tile: #202328; --fire-tile: #202328; --earth-tile: #202328; --metal-tile: #202328; --water-tile: #202328;
  --sd-tile-shadow: none;
}
/* 상품 색 한 가지: the product's own colour (its 도식 강조색, else its 강조 색) for everything */
.studio-phone .sd.pal-accent {
  --sd-accent: var(--phone-accent, #14806a); --sd-on-accent: var(--phone-on-accent, #fff); --sd-harmony: var(--sd-accent);
  --wood: var(--sd-accent); --fire: var(--sd-accent); --earth: var(--sd-accent); --metal: var(--sd-accent); --water: var(--sd-accent);
  --wood-tile: color-mix(in oklab, var(--sd-accent) 15%, #fff); --fire-tile: color-mix(in oklab, var(--sd-accent) 15%, #fff); --earth-tile: color-mix(in oklab, var(--sd-accent) 15%, #fff); --metal-tile: color-mix(in oklab, var(--sd-accent) 15%, #fff); --water-tile: color-mix(in oklab, var(--sd-accent) 15%, #fff);
  --wood-on: color-mix(in oklab, var(--sd-accent) 55%, #000); --fire-on: color-mix(in oklab, var(--sd-accent) 55%, #000); --earth-on: color-mix(in oklab, var(--sd-accent) 55%, #000); --metal-on: color-mix(in oklab, var(--sd-accent) 55%, #000); --water-on: color-mix(in oklab, var(--sd-accent) 55%, #000);
  --sd-tile-shadow: none;
}
/* -- 전통: 한국의 색과 재료 -- */
/* 오방색: the five traditional colours, 청 적 황 백 흑 */
.studio-phone .sd.pal-obang {
  --sd-bg: #fbf7ee; --sd-muted: #857d70; --sd-line: #ebe3d3; --sd-wash: #f2ecdf; --sd-border: #ebe3d3;
  --sd-accent: #1f6f8b; --sd-harmony: #1f6f8b; --sd-clash: #c8352b;
  --wood: #1f6f8b; --fire: #c8352b; --earth: #d29b17; --metal: #b2a68e; --water: #1e1e1e;
  --earth-tile: #e2b43a; --metal-tile: #f6f2e9;
  --earth-on: #3a2d0a; --metal-on: #3a352c;
  --metal-edge: #cfc6b3;
}
/* 수묵: ink on paper, outlined tiles and a serif face for the characters */
.studio-phone .sd.pal-ink {
  --sd-bg: #f6f3ec; --sd-ink: #2b2620; --sd-ink-2: #5a5249; --sd-muted: #8c8275; --sd-line: #e4ddd0; --sd-wash: #ece6da; --sd-border: #e4ddd0;
  --sd-accent: #a53a2c; --sd-harmony: #3f8a63; --sd-clash: #a53a2c;
  --wood: #4a9a70; --fire: #a53a2c; --earth: #c59a3a; --metal: #9c988e; --water: #2d5c9e;
  --wood-tile: #fbf8f1; --fire-tile: #fbf8f1; --earth-tile: #fbf8f1; --metal-tile: #fbf8f1; --water-tile: #fbf8f1;
  --wood-on: #3b7e5b; --fire-on: #a53a2c; --earth-on: #83621a; --metal-on: #6e6a62; --water-on: #2d5c9e;
  --wood-edge: #4a9a70; --fire-edge: #a53a2c; --earth-edge: #c59a3a; --metal-edge: #9c988e; --water-edge: #2d5c9e;
  --sd-tile-font: "Nanum Myeongjo", "Gowun Batang", serif; --sd-tile-shadow: none;
}
/* 단청: the painted eaves, vivid tiles with a white rule on the deep 뇌록 green */
.studio-phone .sd.pal-dancheong {
  --sd-bg: #1f3f37; --sd-ink: #f3efe4; --sd-ink-2: #cdd8d0; --sd-muted: #93ab9f; --sd-line: #2f5449; --sd-wash: #28493f; --sd-border: #2f5449; --sd-shadow: 0 12px 30px -18px rgba(8, 24, 20, .7);
  --sd-accent: #f2c443; --sd-on-accent: #2a2208; --sd-harmony: #f2c443; --sd-clash: #ff8a73;
  --wood: #4cc38a; --fire: #f0644b; --earth: #f2c443; --metal: #efe9dc; --water: #6e9cf2;
  --wood-tile: #22784f; --fire-tile: #d2412c; --earth-tile: #f2c443; --metal-tile: #f3efe4; --water-tile: #3768c9;
  --earth-on: #2a2208; --metal-on: #1f3f37;
  --wood-edge: rgba(255, 255, 255, .7); --fire-edge: rgba(255, 255, 255, .7); --earth-edge: rgba(255, 255, 255, .75); --metal-edge: rgba(31, 63, 55, .35); --water-edge: rgba(255, 255, 255, .7);
  --sd-tile-shadow: inset 0 0 0 3px rgba(255, 255, 255, .0), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
/* 한지 물들임: natural dyes on paper, 쑥 홍화 치자 먹 쪽, with a serif face */
.studio-phone .sd.pal-hanji {
  --sd-bg: #f8f4ec; --sd-ink: #2e2a25; --sd-ink-2: #5c554c; --sd-muted: #8e8578; --sd-line: #e8e0d2; --sd-wash: #efe8dc; --sd-border: #e8e0d2;
  --sd-accent: #355d9c; --sd-harmony: #355d9c; --sd-clash: #c0466a;
  --wood: #537441; --fire: #cb6186; --earth: #cf9a28; --metal: #9c968c; --water: #355d9c;
  --wood-tile: #e6eedd; --fire-tile: #f8e1e7; --earth-tile: #f7ebcf; --metal-tile: #ece8e1; --water-tile: #dfe6f2;
  --wood-on: #3c5a2d; --fire-on: #8f2a4d; --earth-on: #664808; --metal-on: #48433c; --water-on: #223f70;
  --sd-tile-font: "Gowun Batang", "Nanum Myeongjo", serif; --sd-tile-shadow: none;
  background-image: var(--grain);
}
/* 나전칠기: mother-of-pearl on black lacquer, pearly tiles that shimmer */
.studio-phone .sd.pal-najeon {
  --sd-bg: #151112; --sd-ink: #f1ece6; --sd-ink-2: #c9c0b8; --sd-muted: #8f857e; --sd-line: #2b2324; --sd-wash: #211a1b; --sd-border: #2b2324; --sd-shadow: 0 14px 32px -16px rgba(0, 0, 0, .7);
  --sd-accent: #e7c97c; --sd-on-accent: #1a1410; --sd-harmony: #8fe0c2; --sd-clash: #ff8fa3;
  --wood: #3f9e93; --fire: #ffac9c; --earth: #f9eda7; --metal: #f0f2f7; --water: #7e7bcc;
  --wood-tile: #bdeedd; --fire-tile: #fbd3c9; --earth-tile: #f4eab8; --metal-tile: #f1f2f7; --water-tile: #d6d5f7;
  --wood-on: #163a2e; --fire-on: #4a1c12; --earth-on: #3a2d0b; --metal-on: #26232a; --water-on: #25235c;
  --sd-tile-font: "Gowun Batang", "Nanum Myeongjo", serif; --sd-tile-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -8px 14px -8px rgba(110, 90, 200, .35);
  background-image: radial-gradient(120% 75% at 0% 0%, rgba(150, 130, 255, .12), transparent 55%),
    radial-gradient(110% 70% at 100% 100%, rgba(70, 210, 190, .10), transparent 60%);
}
/* -- 돌과 보석: 사주돌의 돌 -- */
/* 옥빛: one jade colour; the elements are told apart by their characters */
.studio-phone .sd.pal-jade {
  --sd-accent: #14806a; --sd-harmony: #14806a; --sd-clash: #8a5a2b;
  --wood: #14806a; --fire: #14806a; --earth: #14806a; --metal: #14806a; --water: #14806a;
  --wood-tile: #e3f1eb; --fire-tile: #e3f1eb; --earth-tile: #e3f1eb; --metal-tile: #e3f1eb; --water-tile: #e3f1eb;
  --wood-on: #0e4d40; --fire-on: #0e4d40; --earth-on: #0e4d40; --metal-on: #0e4d40; --water-on: #0e4d40;
  --sd-tile-shadow: none;
}
/* 대리석: polished stones on veined white, 공작석 홍옥수 호안석 진주 청금석 */
.studio-phone .sd.pal-marble {
  --sd-bg: #fbfbfa; --sd-ink: #23262b; --sd-ink-2: #50555e; --sd-muted: #868b93; --sd-line: #e9e9e7; --sd-wash: #f1f1ef; --sd-border: #e6e6e3;
  --sd-accent: #3e5f73; --sd-harmony: #3e5f73; --sd-clash: #a4473a;
  --wood: #3e7a62; --fire: #a4473a; --earth: #b0832d; --metal: #a2a7b0; --water: #33508a;
  --earth-tile: #8f6a20; --metal-tile: #d9dbe0;
  --metal-on: #2c3038;
  --sd-tile-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .35);
  background-image: linear-gradient(118deg, transparent 0 34%, rgba(110, 116, 126, .07) 35.5%, transparent 38% 64%,
    rgba(110, 116, 126, .05) 65%, transparent 67%), linear-gradient(62deg, transparent 0 72%, rgba(110, 116, 126, .05) 73%, transparent 75%);
}
/* 오색 보석: 에메랄드 루비 토파즈 다이아몬드 사파이어, faceted glossy tiles */
.studio-phone .sd.pal-gem {
  --sd-ink: #151a24;
  --sd-accent: #8a1f4f; --sd-harmony: #0f8a5f; --sd-clash: #c4153f;
  --wood: #0f8a5f; --fire: #c4153f; --earth: #e39a12; --metal: #9fadbe; --water: #1f4fc0;
  --wood-tile: #0c7a53; --earth-tile: #e39a12; --metal-tile: #dfe6ee;
  --earth-on: #2f1d00; --metal-on: #253041;
  --metal-edge: #b9c5d3;
  --sd-tile-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .25);
}
/* 월장석: pale silver-blue sheen, pearly tiles, calm and dreamy */
.studio-phone .sd.pal-moonstone {
  --sd-bg: #f7f8fc; --sd-ink: #1f2433; --sd-ink-2: #4c5368; --sd-muted: #858ba0; --sd-line: #e6e8f1; --sd-wash: #eef0f7; --sd-border: #e4e7f2;
  --sd-accent: #5568c8; --sd-harmony: #4b9384; --sd-clash: #c0506d;
  --wood: #2b7161; --fire: #c86483; --earth: #bb9442; --metal: #a3a9be; --water: #6671c6;
  --wood-tile: #e2f0ec; --fire-tile: #f6e3e8; --earth-tile: #f4ecda; --metal-tile: #ebedf4; --water-tile: #e4e8fa;
  --wood-on: #2e6b5e; --fire-on: #9c3c56; --earth-on: #76571a; --metal-on: #4c5368; --water-on: #3647a3;
  --sd-tile-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -6px 12px -8px rgba(85, 104, 200, .3);
}
/* 흑요석: black volcanic glass, bright solid stones and a molten gold accent */
.studio-phone .sd.pal-obsidian {
  --sd-bg: #0f1112; --sd-ink: #f0f2f3; --sd-ink-2: #b9bfc5; --sd-muted: #7e868d; --sd-line: #23282b; --sd-wash: #1a1e20; --sd-border: #23282b; --sd-shadow: 0 14px 32px -16px rgba(0, 0, 0, .75);
  --sd-accent: #f2b84b; --sd-on-accent: #1f1503; --sd-harmony: #3ccf8e; --sd-clash: #ff6b57;
  --wood: #3ccf8e; --fire: #ff6b57; --earth: #f7c64a; --metal: #d7dde6; --water: #6aa6ff;
  --wood-on: #06261a; --fire-on: #2d0a05; --earth-on: #2c2005; --metal-on: #1b2027; --water-on: #071a3a;
  --sd-tile-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .45);
  background-image: linear-gradient(155deg, rgba(255, 255, 255, .07), transparent 38%);
}
/* -- 사랑과 인연: 연애·궁합·재회 -- */
/* 벚꽃: pale pink paper, soft tiles, a rose accent */
.studio-phone .sd.pal-blossom {
  --sd-bg: #fff7f9; --sd-ink: #2a1f26; --sd-ink-2: #5a4a54; --sd-muted: #93808b; --sd-line: #f6e4ea; --sd-wash: #fbedf1; --sd-border: #f6e4ea;
  --sd-accent: #c43d64; --sd-harmony: #c43d64; --sd-clash: #b5452f;
  --wood: #26795f; --fire: #dc5979; --earth: #c9923a; --metal: #a3949e; --water: #5d6fc7;
  --wood-tile: #e6f2ea; --fire-tile: #fce3ea; --earth-tile: #f8ecd8; --metal-tile: #f2ecef; --water-tile: #e6e9f8;
  --wood-on: #24684f; --fire-on: #a8304f; --earth-on: #7a5617; --metal-on: #5a4a54; --water-on: #3d4c9e;
  --sd-tile-shadow: none;
}
/* 장미: deep rose and burgundy, solid tiles, for couples and marriage */
.studio-phone .sd.pal-rose {
  --sd-bg: #fffbfb; --sd-ink: #2b1820; --sd-ink-2: #5e4651; --sd-muted: #957d87; --sd-line: #f2e3e7; --sd-wash: #f8eef1; --sd-border: #f0e1e5;
  --sd-accent: #a3174a; --sd-harmony: #a3174a; --sd-clash: #c0392b;
  --wood: #255940; --fire: #b51f4c; --earth: #c58a3c; --metal: #b9a2aa; --water: #4a4f9c;
  --earth-tile: #9a6726; --metal-tile: #ead9de;
  --metal-on: #4a2f39;
  --metal-edge: #dcc6cd;
  --sd-tile-shadow: inset 0 -3px 0 rgba(60, 0, 20, .16), inset 0 1px 0 rgba(255, 255, 255, .3);
}
/* 붉은 실: quiet tones and one red thread for what ties two people */
.studio-phone .sd.pal-thread {
  --sd-bg: #fcfbf9; --sd-ink: #24211e; --sd-ink-2: #57524c; --sd-muted: #8b857d; --sd-line: #ece8e2; --sd-wash: #f3f0eb; --sd-border: #ebe7e1;
  --sd-accent: #c8102e; --sd-harmony: #c8102e; --sd-clash: #5a524a;
  --wood: #5d7d6c; --fire: #c8102e; --earth: #b08d52; --metal: #b0aba2; --water: #4a5872;
  --wood-tile: #fff; --fire-tile: #c8102e; --earth-tile: #fff; --metal-tile: #fff; --water-tile: #fff;
  --wood-on: #4a6656; --fire-on: #fff; --earth-on: #7c6233; --metal-on: #6b665f; --water-on: #3f4b63;
  --wood-edge: #c9d3cd; --earth-edge: #ddd0b8; --metal-edge: #dcd8d2; --water-edge: #cdd1da;
  --sd-tile-shadow: none;
  background-image: linear-gradient(90deg, transparent 6%, rgba(200, 16, 46, .7) 30%, rgba(200, 16, 46, .7) 70%, transparent 94%);
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 0;
}
/* 라벤더: soft violet, tinted tiles, a lilac evening */
.studio-phone .sd.pal-lavender {
  --sd-bg: #faf8fe; --sd-ink: #241f33; --sd-ink-2: #544c69; --sd-muted: #8a83a0; --sd-line: #ebe6f6; --sd-wash: #f2eefb; --sd-border: #e9e3f6;
  --sd-accent: #7047c2; --sd-harmony: #7047c2; --sd-clash: #c4466d;
  --wood: #2e7864; --fire: #d05d82; --earth: #c99a45; --metal: #b0a7c6; --water: #5b67c9;
  --wood-tile: #e3f1ec; --fire-tile: #f9e3eb; --earth-tile: #f6edda; --metal-tile: #eeebf5; --water-tile: #e6e8fa;
  --wood-on: #33705d; --fire-on: #a3375a; --earth-on: #76571a; --metal-on: #544c69; --water-on: #3a45a0;
  --sd-tile-shadow: none;
}
/* 와인: a plum night card, soft element tints with their characters in serif, the accent a dusty rose */
.studio-phone .sd.pal-wine {
  --sd-bg: #1a1316; --sd-ink: #fff8f1; --sd-ink-2: #cdbcc1; --sd-muted: #94848a; --sd-line: #2c2226; --sd-wash: #261d21; --sd-border: #33282d; --sd-shadow: 0 22px 50px -24px rgba(0, 0, 0, .55);
  --sd-accent: #d4919d; --sd-on-accent: #251318; --sd-harmony: #a8c3be; --sd-clash: #e8a07c;
  --wood: #76b49f; --fire: #c8797b; --earth: #bd9c62; --metal: #9e9e9e; --water: #718eaf;
  --wood-tile: rgba(104, 160, 130, .15); --fire-tile: rgba(195, 100, 106, .15); --earth-tile: rgba(184, 145, 88, .15); --metal-tile: rgba(145, 152, 166, .15); --water-tile: rgba(105, 137, 171, .17);
  --wood-on: #8fc3a5; --fire-on: #e09299; --earth-on: #d0ae79; --metal-on: #b0b8c8; --water-on: #96b3cf;
  --wood-edge: rgba(143, 195, 165, .35); --fire-edge: rgba(224, 146, 153, .35); --earth-edge: rgba(208, 174, 121, .35); --metal-edge: rgba(176, 184, 200, .3); --water-edge: rgba(150, 179, 207, .35);
  --sd-tile-font: var(--phone-title-font, "Nanum Myeongjo", serif); --sd-tile-shadow: none;
  border: 1px solid rgba(255, 255, 255, .11); border-radius: 0;
  background-image: linear-gradient(145deg, rgba(212, 145, 157, .05), transparent 45%);
}
/* -- 계절과 하늘: 신년·계절 기획 -- */
/* 봄: new leaves, azalea and forsythia, a fresh start */
.studio-phone .sd.pal-spring {
  --sd-bg: #f9fcf5; --sd-ink: #1d2a1f; --sd-ink-2: #4a5a4c; --sd-muted: #808f82; --sd-line: #e6eee0; --sd-wash: #eef5e8; --sd-border: #e3ecdc;
  --sd-accent: #277a3a; --sd-harmony: #277a3a; --sd-clash: #c9475b;
  --wood: #327036; --fire: #d85969; --earth: #d8a420; --metal: #9faa9d; --water: #3e8cc9;
  --wood-tile: #e2f2e2; --fire-tile: #fce4e7; --earth-tile: #fbf0cf; --metal-tile: #edf0ec; --water-tile: #e1edf9;
  --wood-on: #256b33; --fire-on: #a8364a; --earth-on: #765707; --metal-on: #4a5a4c; --water-on: #235f99;
  --sd-tile-shadow: none;
}
/* 여름 바다: sea-green, coral, sand and deep blue on a bright card */
.studio-phone .sd.pal-sea {
  --sd-bg: #f6fbfc; --sd-ink: #13232b; --sd-ink-2: #435761; --sd-muted: #7b8d96; --sd-line: #e0edf0; --sd-wash: #e9f3f5; --sd-border: #dcebee;
  --sd-accent: #0b7285; --sd-harmony: #0b7285; --sd-clash: #d9480f;
  --wood: #16967a; --fire: #d64938; --earth: #d9a23a; --metal: #9dacb8; --water: #1d5aa6;
  --wood-tile: #0f7f67; --fire-tile: #c93d26; --metal-tile: #cfd9e0;
  --earth-on: #3a2a05; --metal-on: #22343d;
  --sd-tile-shadow: inset 0 -3px 0 rgba(0, 30, 40, .14), inset 0 1px 0 rgba(255, 255, 255, .3);
}
/* 가을 단풍: pine, maple, harvest amber and dusk blue */
.studio-phone .sd.pal-autumn {
  --sd-bg: #fcf8f3; --sd-ink: #2a2119; --sd-ink-2: #5c4f42; --sd-muted: #8f8274; --sd-line: #eee5da; --sd-wash: #f4ece2; --sd-border: #ece2d5;
  --sd-accent: #b4441d; --sd-harmony: #5b7f3a; --sd-clash: #b4441d;
  --wood: #2b5139; --fire: #d05418; --earth: #d09a21; --metal: #ada18a; --water: #4c759f;
  --wood-tile: #2b5139; --fire-tile: #b93917; --earth-tile: #d09a21; --metal-tile: #e3dccd; --water-tile: #4c759f;
  --earth-on: #2e1d05; --metal-on: #4a3f33;
  --sd-tile-shadow: inset 0 -3px 0 rgba(60, 30, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .25);
}
/* 겨울 눈: frost white, pine and berry, icy tiles with deep navy characters */
.studio-phone .sd.pal-winter {
  --sd-bg: #f6f9fc; --sd-ink: #162033; --sd-ink-2: #46526a; --sd-muted: #7f8aa0; --sd-line: #e3e9f2; --sd-wash: #ecf1f8; --sd-border: #e0e7f1;
  --sd-accent: #2b5fa8; --sd-harmony: #2b5fa8; --sd-clash: #c0465a;
  --wood: #3a8a78; --fire: #cc4a5f; --earth: #c29a4b; --metal: #97a4b5; --water: #2b4a8f;
  --wood-tile: #e0f0ec; --fire-tile: #f8e2e6; --earth-tile: #f5ecda; --metal-tile: #eaeef4; --water-tile: #e1e8f6;
  --wood-on: #286656; --fire-on: #9e3346; --earth-on: #74581b; --metal-on: #46526a; --water-on: #233d77;
  --wood-edge: #c3e1d9; --fire-edge: #f0c6cf; --earth-edge: #e8d6b2; --metal-edge: #d3dbe6; --water-edge: #c5d2ec;
  --sd-tile-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
/* 밤: a dark card, glowing tiles */
.studio-phone .sd.pal-night {
  --sd-bg: #141a1f; --sd-ink: #e8edf0; --sd-ink-2: #b6c0c8; --sd-muted: #7f8b96; --sd-line: #26303a; --sd-wash: #1d252c; --sd-border: #222c35; --sd-shadow: 0 12px 30px -16px rgba(0, 0, 0, .6);
  --sd-accent: #5ed1b9; --sd-on-accent: #0b1714; --sd-harmony: #5ed1b9; --sd-clash: #ff8fa0;
  --wood: #26a08e; --fire: #e2586e; --earth: #a9922f; --metal: #b8c0cc; --water: #7f86f0;
  --wood-tile: #163a37; --fire-tile: #3d1e27; --earth-tile: #33301b; --metal-tile: #2b3138; --water-tile: #24264a;
  --wood-on: #5ed1b9; --fire-on: #ff8fa0; --earth-on: #e3c462; --metal-on: #e1e6ee; --water-on: #aeb3ff;
  --wood-edge: rgba(35, 153, 136, .55); --fire-edge: rgba(226, 88, 110, .55); --earth-edge: rgba(169, 146, 47, .6); --metal-edge: rgba(184, 192, 204, .45); --water-edge: rgba(127, 134, 240, .55);
  --sd-tile-shadow: none;
}
/* one colour throughout: every other part of a stacked bar steps back so the parts stay apart */
.studio-phone .sd:is(.pal-mono, .pal-accent, .pal-jade) .sd-stack span:nth-child(even) { opacity: .55; }

.studio-phone .sd figcaption { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--sd-line); }
.studio-phone .sd-svg { display: block; width: 100%; height: auto; font-family: inherit; overflow: visible; }
.studio-phone .sd-sub { margin: 0; font-size: 12px; color: var(--sd-muted); line-height: 1.55; }
.studio-phone .sd .sd-grid { stroke: var(--sd-line); }
.studio-phone .sd .sd-gen { stroke: var(--sd-muted); }
.studio-phone .sd .sd-ctl { stroke: var(--sd-clash); stroke-opacity: .45; }
.studio-phone .sd .sd-t1 { fill: var(--sd-ink); }
.studio-phone .sd .sd-t2 { fill: var(--sd-ink-2); }
.studio-phone .sd .sd-t3 { fill: var(--sd-muted); }
.studio-phone .sd .sd-surface { fill: var(--sd-bg); }
.studio-phone .sd .sd-on-accent { fill: var(--sd-on-accent); }
.studio-phone .sd .sd-edge--harmony { stroke: var(--sd-harmony); }
.studio-phone .sd .sd-edge--clash { stroke: var(--sd-clash); }
.studio-phone .sd .sd-edge--other { stroke: var(--sd-muted); }
.studio-phone .sd .sd-node circle, .studio-phone .sd .sd-node rect { fill: var(--el-tile); stroke: var(--el-edge); }
.studio-phone .sd .sd-node text { fill: var(--el-on); font-family: var(--sd-tile-font); }
.studio-phone .sd .sd-node.is-empty circle { fill: var(--sd-bg); stroke: var(--el-mark); }
.studio-phone .sd .sd-node.is-empty text { fill: var(--sd-ink-2); }
.studio-phone .sd .sd-me-badge circle { fill: var(--sd-ink); stroke: var(--sd-bg); }
.studio-phone .sd .sd-me-badge text { fill: var(--sd-bg); }

/* element tile: the character on its element's tile */
.studio-phone .sd-tile {
  position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 24px; height: 24px; border-radius: 7px; background: var(--el-tile); color: var(--el-on);
  box-shadow: inset 0 0 0 1.5px var(--el-edge);
  font-family: var(--sd-tile-font); font-size: 12px; font-weight: 700; line-height: 1; vertical-align: middle;
}
.studio-phone .sd-tile em { display: none; }
.studio-phone .sd-tile--xs { width: 16px; height: 16px; border-radius: 5px; font-size: 9px; }
.studio-phone .sd-tile--sm { width: 26px; height: 26px; font-size: 13px; }
.studio-phone .sd-tile--xl {
  width: 100%; max-width: 66px; aspect-ratio: 1; height: auto; border-radius: 16px; font-size: 30px; font-weight: 800;
  box-shadow: inset 0 0 0 1.5px var(--el-edge), var(--sd-tile-shadow);
  transition: opacity .2s, filter .2s;
}
.studio-phone .sd-tile--xl em { display: block; position: absolute; right: 7px; bottom: 5px; font-style: normal; font-size: 11px; font-weight: 600; opacity: .78; }
.studio-phone .sd-tile.is-ring { box-shadow: 0 0 0 2px var(--sd-bg), 0 0 0 4.5px var(--sd-accent), inset 0 0 0 1.5px var(--el-edge); }
.studio-phone .sd-tile.is-unknown { background: transparent; color: var(--sd-muted); border: 1.5px dashed var(--sd-line); box-shadow: none; }
.studio-phone .sd-tile.is-unknown em { right: 0; left: 0; text-align: center; }

/* 사주팔자 표 */
.studio-phone .sd-pc { position: relative; display: grid; grid-template-columns: 30px repeat(4, minmax(0, 1fr)); column-gap: 6px; row-gap: 4px; align-items: center; text-align: center; }
/* a whole pillar picked out: one ring round its two characters (two rings of their own would run into each other) */
.studio-phone .sd-pc-ring {
  position: absolute; top: 3px; bottom: 3px; left: 50%; width: min(100%, 66px); translate: -50% 0; border-radius: 18px;
  box-shadow: 0 0 0 2px var(--sd-bg), 0 0 0 4.5px var(--sd-accent); pointer-events: none;
}
.studio-phone .sd-pc-label { font-size: 10px; font-weight: 600; color: var(--sd-muted); text-align: left; line-height: 1.2; word-break: keep-all; }
.studio-phone .sd-pc-label--main { color: var(--sd-ink-2); font-size: 11px; font-weight: 700; }
.studio-phone .sd-pc-head { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0 6px; border-radius: 10px; transition: opacity .2s; }
.studio-phone .sd-pc-head b { font-size: 13px; color: var(--sd-ink); }
.studio-phone .sd-pc-head small { font-size: 10px; color: var(--sd-muted); }
.studio-phone .sd-pc-head.is-lit { background: color-mix(in srgb, var(--sd-accent) 12%, transparent); }
.studio-phone .sd-pc-head.is-lit b { color: var(--sd-accent-ink); }
.studio-phone .sd-pc-cell { position: relative; display: flex; justify-content: center; padding: 3px 0; }
.studio-phone .sd-pc-info { font-size: 11px; color: var(--sd-ink-2); line-height: 1.3; word-break: keep-all; min-height: 14px; transition: opacity .2s; }
.studio-phone .sd-pc-info.is-strong { font-weight: 700; color: var(--sd-ink); font-size: 11.5px; }
.studio-phone .sd-me { position: absolute; top: -3px; right: calc(50% - 38px); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sd-ink); color: var(--sd-bg); font-size: 10px; font-style: normal; font-weight: 700; border: 2px solid var(--sd-bg); }
.studio-phone .sd .is-dim { opacity: .28; filter: saturate(.15); }
.studio-phone .sd-callout { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--sd-accent) 12%, var(--sd-bg)); color: var(--sd-ink); font-size: 13px; font-weight: 600; }
.studio-phone .sd-callout i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sd-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sd-accent) 25%, transparent); }
.studio-phone .sd-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--sd-ink-2); }
.studio-phone .sd-legend span { display: inline-flex; align-items: center; gap: 5px; }

/* rows of bars: 오행 분포, 십성 분포 */
.studio-phone .sd-row { display: grid; grid-template-columns: 26px 54px 1fr 40px; align-items: center; gap: 8px; padding: 5px 0; }
.studio-phone .sd-row:has(.sd-verdict) { grid-template-columns: 26px 44px 1fr 34px 38px; }
.studio-phone .sd-verdict { justify-self: end; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--sd-wash); color: var(--sd-ink-2); }
.studio-phone .sd-verdict.is-과다, .studio-phone .sd-verdict.is-결핍 { background: color-mix(in srgb, var(--sd-clash) 14%, var(--sd-bg)); color: var(--sd-clash-ink); }
.studio-phone .sd-verdict.is-적정 { background: color-mix(in srgb, var(--sd-accent) 14%, var(--sd-bg)); color: var(--sd-accent-ink); }
.studio-phone .sd-row--wide { grid-template-columns: 56px 1fr 40px; }
.studio-phone .sd-row__label { font-size: 12px; color: var(--sd-ink-2); display: flex; flex-direction: column; line-height: 1.25; }
.studio-phone .sd-row__label b { font-size: 13px; color: var(--sd-ink); }
.studio-phone .sd-row__value { text-align: right; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sd-ink); }
.studio-phone .sd-row__value small { margin-left: 1px; font-size: 10px; font-weight: 500; color: var(--sd-muted); }
.studio-phone .sd-track { position: relative; height: 10px; border-radius: 5px; background: var(--sd-wash); overflow: hidden; }
.studio-phone .sd-bar { display: block; height: 100%; min-width: 0; border-radius: 0 5px 5px 0; background: var(--el-mark, var(--sd-accent)); }
.studio-phone .sd-bar--accent { background: var(--sd-accent); opacity: .45; }
.studio-phone .sd-row.is-lead .sd-bar--accent { opacity: 1; }
/* picked out by the writer (도식 옵션 '강조할 …'): the rest steps back */
.studio-phone .sd-row.is-dim, .studio-phone .sd-stack span.is-dim, .studio-phone .sd .sd-node.is-dim { opacity: .28; }
.studio-phone .sd-row.is-lit { margin: 0 -8px; padding-inline: 8px; border-radius: 10px; background: color-mix(in srgb, var(--sd-accent) 9%, transparent); }
.studio-phone .sd-row.is-lit .sd-row__label, .studio-phone .sd-row.is-lit .sd-row__label b { color: var(--sd-ink); font-weight: 800; }
.studio-phone .sd-row.is-lit .sd-bar--accent { opacity: 1; }
.studio-phone .sd-stack { display: flex; gap: 2px; height: 14px; margin-bottom: 10px; border-radius: 7px; overflow: hidden; }
.studio-phone .sd-stack span { background: var(--el-mark); min-width: 6px; }
.studio-phone .sd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.studio-phone .sd-stats > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border-radius: 12px; background: var(--sd-wash); }
.studio-phone .sd-stats small { font-size: 10.5px; color: var(--sd-muted); line-height: 1.3; }
.studio-phone .sd-stats b { font-size: 14px; color: var(--sd-ink); }
.studio-phone .sd-stats__tiles { display: flex; flex-wrap: wrap; gap: 4px; } /* elements tied for the place sit side by side */
.studio-phone .sd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-phone .sd-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--sd-wash); font-size: 12px; color: var(--sd-ink-2); }
.studio-phone .sd-chips b { color: var(--sd-ink); }

/* keys and lists under a diagram */
.studio-phone .sd-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--sd-ink-2); }
.studio-phone .sd-keys span { display: inline-flex; align-items: center; gap: 6px; }
.studio-phone .sd-key { flex: none; display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--sd-muted); }
.studio-phone .sd-key--gen { border-top-color: var(--sd-muted); }
.studio-phone .sd-key--ctl { border-top: 1.5px dashed color-mix(in srgb, var(--sd-clash) 60%, transparent); }
.studio-phone .sd-key--harmony { border-top-color: var(--sd-harmony); }
.studio-phone .sd-key--clash { border-top: 2px dashed var(--sd-clash); }
.studio-phone .sd-key--other { border-top-color: var(--sd-muted); }
.studio-phone .sd-key--me { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--sd-ink); color: var(--sd-bg); font-size: 9px; font-style: normal; font-weight: 700; display: inline-grid; place-items: center; }
.studio-phone .sd-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.studio-phone .sd-list li { list-style: none; display: flex; gap: 6px; align-items: baseline; font-size: 12.5px; line-height: 1.5; color: var(--sd-ink-2); }
.studio-phone .sd-list li .sd-key { transform: translateY(-3px); }
.studio-phone .sd-list b { color: var(--sd-ink); }

/* 신강·신약 */
.studio-phone .sd-hero { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.studio-phone .sd-hero__value { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--sd-ink); }
.studio-phone .sd-hero__value small { font-size: 18px; font-weight: 600; margin-left: 2px; color: var(--sd-ink-2); }
.studio-phone .sd-pill { padding: 4px 12px; border-radius: 999px; background: var(--sd-accent); color: var(--sd-on-accent); font-size: 13px; font-weight: 700; }
.studio-phone .sd-scale { position: relative; height: 10px; border-radius: 5px; background: var(--sd-wash); }
.studio-phone .sd-scale__mid { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 1px; background: var(--sd-muted); opacity: .5; }
.studio-phone .sd-scale__fill { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in srgb, var(--sd-accent) 45%, transparent); }
.studio-phone .sd-scale__dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--sd-accent); box-shadow: 0 0 0 3px var(--sd-bg), 0 1px 6px rgba(17, 24, 39, .25); }
.studio-phone .sd-scale__labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--sd-muted); }
/* the seven steps from 극약 to 극왕: dots on a line, deeper toward 극왕, this chart's step in bold */
.studio-phone .sd-steps { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); margin: 18px 0 0; padding: 0; position: relative; }
.studio-phone .sd-steps::before { content: ""; position: absolute; left: 7%; right: 7%; top: 7px; height: 2px; background: color-mix(in srgb, var(--sd-accent) 30%, var(--sd-wash)); }
.studio-phone .sd-steps li { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--sd-muted); }
.studio-phone .sd-steps i { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--sd-accent); box-shadow: 0 0 0 3px var(--sd-bg); }
.studio-phone .sd-steps li:nth-child(1) i { opacity: .2; } .studio-phone .sd-steps li:nth-child(2) i { opacity: .32; }
.studio-phone .sd-steps li:nth-child(3) i { opacity: .45; } .studio-phone .sd-steps li:nth-child(4) i { opacity: .58; }
.studio-phone .sd-steps li:nth-child(5) i { opacity: .72; } .studio-phone .sd-steps li:nth-child(6) i { opacity: .86; }
.studio-phone .sd-steps li.is-on { color: var(--sd-ink); font-weight: 800; }
.studio-phone .sd-steps li.is-on i { opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 3px var(--sd-bg), 0 0 0 5px var(--sd-accent); }

/* 대운표: ten-year pillars written out, the current decade ringed */
.studio-phone .sd-dw { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; margin-bottom: 14px; }
.studio-phone .sd-dw-col { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border-radius: 10px; }
.studio-phone .sd-dw-col.is-now { background: color-mix(in srgb, var(--sd-accent) 10%, transparent); }
.studio-phone .sd-dw-col small { font-size: 10.5px; color: var(--sd-muted); font-variant-numeric: tabular-nums; }
.studio-phone .sd-dw-col.is-now small { color: var(--sd-accent-ink); font-weight: 800; }
.studio-phone .sd-dw-pair { display: flex; flex-direction: column; gap: 4px; padding: 3px; border-radius: 11px; }
.studio-phone .sd-dw-col.is-now .sd-dw-pair { box-shadow: 0 0 0 2px var(--sd-accent); background: var(--sd-bg); }
.studio-phone .sd-dw-col em { font-style: normal; font-size: 9.5px; line-height: 1.2; color: var(--sd-ink-2); }

/* 용신·행운 */
.studio-phone .sd-yong { display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: center; }
.studio-phone .sd-yong small, .studio-phone .sd-pair small { display: block; font-size: 11px; color: var(--sd-muted); }
.studio-phone .sd-yong b { display: block; margin: 2px 0; font-size: 20px; color: var(--sd-ink); }
.studio-phone .sd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.studio-phone .sd-pair > div { padding: 10px; border-radius: 12px; border: 1px solid var(--sd-line); }
.studio-phone .sd-pair span { display: flex; gap: 4px; margin-top: 6px; }

/* 궁합 */
.studio-phone .sd-compat { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 14px; }
.studio-phone .sd-person { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.studio-phone .sd-person b { font-size: 13px; color: var(--sd-ink); }
.studio-phone .sd-person small { font-size: 10.5px; color: var(--sd-muted); }
.studio-phone .sd-avatar { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 14px; background: var(--sd-wash); font-size: 16px; font-weight: 700; color: var(--sd-ink-2); }
.studio-phone .sd-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.studio-phone .sd-score span { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--sd-ink); }
.studio-phone .sd-score small { font-size: 14px; font-weight: 600; color: var(--sd-ink-2); margin-left: 1px; }
.studio-phone .sd-score em { font-style: normal; padding: 3px 10px; border-radius: 999px; background: var(--sd-accent); color: var(--sd-on-accent); font-size: 11px; font-weight: 700; }
.studio-phone .sd-fly-head { display: grid; grid-template-columns: 1fr 26px 1fr; gap: 8px; margin-bottom: 4px; font-size: 10.5px; color: var(--sd-muted); text-align: center; }
.studio-phone .sd-fly { display: grid; grid-template-columns: 16px 1fr 26px 1fr 16px; align-items: center; gap: 6px; padding: 4px 0; }
.studio-phone .sd-fly__value { font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; color: var(--sd-ink); }
.studio-phone .sd-fly__track { height: 10px; border-radius: 5px; background: var(--sd-wash); overflow: hidden; display: flex; }
.studio-phone .sd-fly__track.is-left { justify-content: flex-end; }
.studio-phone .sd-fly__track.is-left .sd-bar { border-radius: 5px 0 0 5px; }
/* 궁합 유형 · 다섯 갈래 · 서로에게 어떤 별 */
.studio-phone .sd-ctype { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: -2px 0 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--sd-accent) 8%, var(--sd-bg)); text-align: center; }
.studio-phone .sd-ctype small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--sd-accent-ink); }
.studio-phone .sd-ctype b { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; color: var(--sd-ink); text-wrap: balance; }
.studio-phone .sd-ctype span { font-size: 12px; line-height: 1.5; color: var(--sd-ink-2); text-wrap: pretty; }
.studio-phone .sd-facets { display: grid; gap: 9px; margin-bottom: 14px; }
.studio-phone .sd-facet { display: grid; grid-template-columns: 32px 1fr 26px; align-items: center; column-gap: 8px; row-gap: 3px; }
.studio-phone .sd-facet__label { font-size: 12px; font-weight: 700; color: var(--sd-ink); }
.studio-phone .sd-facet__track { height: 8px; border-radius: 4px; background: var(--sd-wash); overflow: hidden; }
.studio-phone .sd-facet__bar { display: block; height: 100%; border-radius: 4px; background: var(--sd-accent); }
.studio-phone .sd-facet__value { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; color: var(--sd-ink); }
.studio-phone .sd-facet__why { grid-column: 2 / 4; font-size: 11px; line-height: 1.45; color: var(--sd-muted); text-wrap: pretty; }
.studio-phone .sd-stars { display: grid; gap: 4px; margin-bottom: 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sd-line); font-size: 12px; line-height: 1.5; color: var(--sd-ink-2); }
.studio-phone .sd-stars b { color: var(--sd-accent-ink); }
/* 두 사람의 흐름: the customer's line in the accent, the partner's dashed in ink */
.studio-phone .sd .sd-line--partner { stroke: var(--sd-ink-2); }
.studio-phone .sd .sd-dot--partner { fill: var(--sd-ink-2); stroke: var(--sd-bg); }
.studio-phone .sd .sd-dot--partner.is-none { fill: var(--sd-bg); stroke: var(--sd-ink-2); }
.studio-phone .sd-legend--couple { margin-bottom: 6px; }
.studio-phone .sd-ckey { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.studio-phone .sd-ckey i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--sd-accent); }
.studio-phone .sd-ckey.is-partner i { height: 0; border-top: 2px dashed var(--sd-ink-2); background: none; }
.studio-phone .sd-ckey.is-good i, .studio-phone .sd-ckey.is-hard i { width: 12px; height: 12px; border-radius: 4px; background: color-mix(in srgb, var(--sd-accent) 18%, transparent); }
.studio-phone .sd-ckey.is-hard i { background: color-mix(in srgb, var(--sd-clash) 16%, transparent); }

/* -- shapes for every kind of story: radars, rings, a wheel, a ribbon, a calendar, a compass, badges. The same
   card, inks, accent and element colours as above, so every palette dresses them the same way. -- */
.studio-phone .sd .sd-track { stroke: var(--sd-wash); }
.studio-phone .sd .sd-arc { stroke: var(--el-mark, var(--sd-accent)); }
.studio-phone .sd .sd-arc.is-dim { opacity: .2; }
.studio-phone .sd .sd-arc--yang { stroke: var(--sd-accent); }
.studio-phone .sd .sd-arc--yin { stroke: var(--sd-ink); stroke-opacity: .82; }
.studio-phone .sd .sd-surface-line { stroke: var(--sd-bg); }
.studio-phone .sd .sd-pill--soft rect { fill: color-mix(in srgb, var(--sd-clash) 12%, var(--sd-bg)); stroke: color-mix(in srgb, var(--sd-clash) 40%, transparent); }
.studio-phone .sd .sd-pill--soft text { fill: var(--sd-clash-ink); }
.studio-phone .sd .sd-num { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.studio-phone .sd .sd-accent-ink { fill: var(--sd-accent-ink); }
.studio-phone .sd .sd-clash-ink { fill: var(--sd-clash-ink); }
.studio-phone .sd .sd-corner.is-dim { opacity: .3; }
.studio-phone .sd .sd-level { fill: var(--sd-muted); }
.studio-phone .sd .sd-level.is-strong { fill: var(--sd-accent-ink); font-weight: 800; }
.studio-phone .sd .sd-level.is-weak { fill: var(--sd-muted); }
.studio-phone .sd-stats--two { grid-template-columns: repeat(2, 1fr); }
.studio-phone .sd-stats--two b { font-size: 13.5px; line-height: 1.35; word-break: keep-all; }

/* 일간 카드: the day master's character large on its element's tile, a halo of the element round it */
.studio-phone .sd-dm { display: flex; align-items: center; gap: 14px; padding: 2px 2px 0; }
.studio-phone .sd-dm__halo {
  position: relative; flex: none; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--el-mark) 28%, transparent), color-mix(in srgb, var(--el-mark) 9%, transparent) 72%, transparent);
}
.studio-phone .sd-dm__halo::before, .studio-phone .sd-dm__halo::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--el-mark) 38%, transparent); }
.studio-phone .sd-dm__halo::before { inset: 4px; border-style: dashed; }
.studio-phone .sd-dm__halo::after { inset: -4px; opacity: .45; }
.studio-phone .sd-tile.sd-dm__seal { width: 70px; height: 70px; border-radius: 22px; font-size: 36px; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--el-edge), var(--sd-tile-shadow), 0 10px 22px -12px color-mix(in srgb, var(--el-mark) 80%, #000); }
.studio-phone .sd-tile.sd-dm__seal em { display: block; position: absolute; right: 8px; bottom: 6px; font-style: normal; font-size: 11px; font-weight: 700; opacity: .8; }
.studio-phone .sd-dm__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.studio-phone .sd-dm__text small { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--sd-accent-ink); }
.studio-phone .sd-dm__text strong { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--sd-ink); word-break: keep-all; }
.studio-phone .sd-dm__text span { font-size: 12px; color: var(--sd-ink-2); }
.studio-phone .sd-dm__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.studio-phone .sd-dm__chips span { padding: 5px 11px; border-radius: 999px; background: var(--sd-wash); color: var(--sd-ink); font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--sd-line); }
.studio-phone .sd-dm__chips span::before { content: "#"; margin-right: 2px; color: var(--sd-accent-ink); }
.studio-phone .sd-dm__foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--sd-muted); }
.studio-phone .sd-dm__foot b { color: var(--sd-ink-2); }

/* 음양 균형: a ring of the two (양 in the accent, 음 in ink) round their old sign, the characters sorted by side */
.studio-phone .sd-yy { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: 12px; }
.studio-phone .sd .sd-taiji__yang { fill: var(--sd-accent); }
.studio-phone .sd .sd-taiji__yin { fill: var(--sd-ink); fill-opacity: .82; }
.studio-phone .sd-yy__side { display: grid; gap: 9px; }
.studio-phone .sd-yy__verdict { font-size: 15px; line-height: 1.35; color: var(--sd-ink); word-break: keep-all; }
.studio-phone .sd-yy__row { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 6px; }
.studio-phone .sd-yy__key { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--sd-ink-2); }
.studio-phone .sd-yy__key i { width: 9px; height: 9px; border-radius: 50%; background: var(--sd-accent); }
.studio-phone .sd-yy__row.is-yin .sd-yy__key i { background: var(--sd-ink); opacity: .82; }
.studio-phone .sd-yy__key b { margin-left: auto; font-size: 13px; color: var(--sd-ink); font-variant-numeric: tabular-nums; }
.studio-phone .sd-yy__chars { display: flex; flex-wrap: wrap; gap: 4px; }
.studio-phone .sd-yy__chars small { font-size: 11px; color: var(--sd-muted); }

/* 오행 도넛: the ring and a short list beside it */
.studio-phone .sd-donut { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: center; gap: 14px; }
.studio-phone .sd-donut__list { list-style: none; display: grid; gap: 7px; margin: 0; padding: 0; }
.studio-phone .sd-donut__row { list-style: none; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 7px; font-size: 12px; color: var(--sd-ink-2); transition: opacity .2s; }
.studio-phone .sd-donut__row b { font-size: 15px; color: var(--sd-ink); font-variant-numeric: tabular-nums; }
.studio-phone .sd-donut__row b small { margin-left: 1px; font-size: 10px; font-weight: 600; color: var(--sd-muted); }
.studio-phone .sd-donut__row em { grid-column: 2 / 4; justify-self: start; margin-top: -4px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 10px; font-weight: 700; background: var(--sd-wash); color: var(--sd-ink-2); }
.studio-phone .sd-donut__row em.is-accent { background: var(--sd-accent); color: var(--sd-on-accent); }
.studio-phone .sd-donut__row.is-dim { opacity: .3; }
.studio-phone .sd-donut__row.is-none > :not(em) { opacity: .5; } /* none of it: no slice, the row stays to say so (its tag too) */
.studio-phone .sd-donut__note { display: block; margin-top: 10px; font-size: 11px; color: var(--sd-muted); text-align: center; }

/* 행운 키트: the needed element, then colour swatches, a compass and the numbers side by side */
.studio-phone .sd-lk__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.studio-phone .sd-lk__head .sd-tile--xl { width: 54px; flex: none; }
.studio-phone .sd-lk__head div { display: flex; flex-direction: column; gap: 3px; }
.studio-phone .sd-lk__head small { font-size: 11px; color: var(--sd-muted); }
.studio-phone .sd-lk__head b { font-size: 20px; color: var(--sd-ink); letter-spacing: -.01em; }
.studio-phone .sd-lk__helpers { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--sd-ink-2); }
.studio-phone .sd-lk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.studio-phone .sd-lk__cell { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; min-height: 132px; padding: 10px 6px 11px; border-radius: 14px; background: var(--sd-wash); text-align: center; }
.studio-phone .sd-lk__cell small { font-size: 10.5px; font-weight: 700; color: var(--sd-muted); }
.studio-phone .sd-lk__cell > b { font-size: 12px; line-height: 1.35; color: var(--sd-ink); word-break: keep-all; }
.studio-phone .sd-lk__swatches { display: flex; align-items: center; }
.studio-phone .sd-swatch { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sd-ink) 22%, transparent), 0 0 0 2px var(--sd-wash); }
.studio-phone .sd-swatch + .sd-swatch { margin-left: -10px; }
.studio-phone .sd-lk__compass { width: 66px; }
.studio-phone .sd .sd-needle { fill: var(--sd-line); }
.studio-phone .sd .sd-needle.is-on { fill: var(--sd-accent); }
.studio-phone .sd-lk__numbers { display: flex; gap: 6px; }
.studio-phone .sd-lk__numbers b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sd-bg); color: var(--sd-accent-ink); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sd-accent) 55%, transparent); }

/* 신살·귀인 배지: the stars of the chart as round badges, in three kinds */
.studio-phone .sd-bdg + .sd-bdg { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sd-line); }
.studio-phone .sd-bdg__head { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; font-size: 12.5px; color: var(--sd-ink); }
.studio-phone .sd-bdg__head span { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--sd-wash); color: var(--sd-ink-2); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.studio-phone .sd-bdg__grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 4px; margin: 0; padding: 0; }
.studio-phone .sd-badge { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.studio-phone .sd-badge i {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: -.02em;
  background: var(--sd-wash); color: var(--sd-ink); box-shadow: inset 0 0 0 1px var(--sd-line);
}
.studio-phone .sd-badge.is-good i {
  background: radial-gradient(80% 80% at 30% 25%, color-mix(in srgb, #fff 28%, var(--sd-accent)), var(--sd-accent));
  color: var(--sd-on-accent); box-shadow: 0 0 0 3px var(--sd-bg), 0 0 0 4.5px color-mix(in srgb, var(--sd-accent) 45%, transparent), 0 8px 14px -8px var(--sd-accent);
}
.studio-phone .sd-badge.is-caution i { background: var(--sd-bg); color: var(--sd-clash-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sd-clash) 70%, transparent); }
.studio-phone .sd-badge b { font-size: 11px; line-height: 1.25; color: var(--sd-ink); word-break: keep-all; }
.studio-phone .sd-badge small { margin-top: -2px; font-size: 9.5px; color: var(--sd-muted); }
.studio-phone .sd-bdg__none { margin: 0; font-size: 12px; color: var(--sd-muted); }

/* 12운성 생애 바퀴: twelve petals, longer for more energy; the ones a pillar sits in filled with the accent */
.studio-phone .sd .sd-petal { fill: var(--sd-accent); fill-opacity: var(--o, .3); }
.studio-phone .sd .sd-petal.is-lived { fill-opacity: 1; }
.studio-phone .sd-key--petal { width: 12px; height: 12px; border: 0; border-radius: 3px; background: var(--sd-accent); opacity: .35; }
.studio-phone .sd-key--lived { width: 12px; height: 12px; border: 0; border-radius: 3px; background: var(--sd-accent); }

/* 대운 리본: one band of decades, coloured by how the decade flows, a pin over the one we are in */
.studio-phone .sd-rb { list-style: none; display: grid; grid-template-columns: repeat(var(--count), minmax(0, 1fr)); gap: 3px; margin: 22px 0 4px; padding: 0; }
.studio-phone .sd-rb__seg { list-style: none; position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.studio-phone .sd-rb__band {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; padding: 9px 0;
  background: color-mix(in srgb, var(--sd-accent) 26%, var(--sd-bg)); color: var(--sd-ink);
}
.studio-phone .sd-rb__seg:first-child .sd-rb__band { border-radius: 12px 4px 4px 12px; }
.studio-phone .sd-rb__seg:last-child .sd-rb__band { border-radius: 4px 12px 12px 4px; }
.studio-phone .sd-rb__seg.is-good .sd-rb__band { background: var(--sd-accent); color: var(--sd-on-accent); }
.studio-phone .sd-rb__seg.is-hard .sd-rb__band { background: color-mix(in srgb, var(--sd-clash) 20%, var(--sd-bg)); color: var(--sd-clash-ink); }
.studio-phone .sd-rb__band b { font-family: var(--sd-tile-font); font-size: 14px; font-weight: 800; line-height: 1; }
.studio-phone .sd-rb__seg small { font-size: 10px; color: var(--sd-muted); font-variant-numeric: tabular-nums; }
.studio-phone .sd-rb__seg.is-now small { color: var(--sd-accent-ink); font-weight: 800; }
.studio-phone .sd-rb__seg.is-now .sd-rb__band { box-shadow: 0 0 0 2px var(--sd-bg), 0 0 0 4px var(--sd-ink); position: relative; z-index: 1; }
.studio-phone .sd-rb__seg.is-past .sd-rb__band { opacity: .45; } /* the decades already lived step back */
.studio-phone .sd-rb__pin { position: absolute; bottom: calc(100% + 5px); left: var(--at, 50%); translate: -50% 0; padding: 2px 7px; border-radius: 999px; background: var(--sd-ink); color: var(--sd-bg); font-style: normal; font-size: 10px; font-weight: 800; white-space: nowrap; }
.studio-phone .sd-rb__pin::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0; border: 4px solid transparent; border-top-color: var(--sd-ink); }
.studio-phone .sd-key--good, .studio-phone .sd-key--mid, .studio-phone .sd-key--hard { width: 12px; height: 12px; border: 0; border-radius: 3px; background: var(--sd-accent); }
.studio-phone .sd-key--mid { background: color-mix(in srgb, var(--sd-accent) 26%, var(--sd-bg)); box-shadow: inset 0 0 0 1px var(--sd-line); }
.studio-phone .sd-key--hard { background: color-mix(in srgb, var(--sd-clash) 20%, var(--sd-bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sd-clash) 40%, transparent); }

/* 올해의 흐름 게이지: the year on a dial, its pillar and what it brings, last and next year beside it */
.studio-phone .sd-yg__year { display: flex; align-items: center; gap: 5px; margin-top: 2px; padding: 10px 12px; border-radius: 14px; background: var(--sd-wash); }
.studio-phone .sd-yg__year div { display: flex; flex-direction: column; gap: 1px; margin-left: 4px; min-width: 0; }
.studio-phone .sd-yg__year b { font-size: 13px; color: var(--sd-ink); }
.studio-phone .sd-yg__year small { font-size: 11px; color: var(--sd-ink-2); }
.studio-phone .sd-yg__theme { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--sd-accent); color: var(--sd-on-accent); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.studio-phone .sd-yg__around { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 0; padding: 0; }
.studio-phone .sd-yg__around li { list-style: none; display: grid; grid-template-columns: 10px auto 1fr; align-items: end; gap: 6px; padding: 8px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--sd-line); }
.studio-phone .sd-yg__around li.is-now { box-shadow: inset 0 0 0 1.5px var(--sd-accent); }
.studio-phone .sd-yg__bar { position: relative; display: block; height: 30px; border-radius: 4px; background: var(--sd-wash); overflow: hidden; }
.studio-phone .sd-yg__bar i { position: absolute; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--sd-accent) 55%, transparent); }
.studio-phone .sd-yg__around li.is-now .sd-yg__bar i { background: var(--sd-accent); }
.studio-phone .sd-yg__around b { font-size: 16px; line-height: 1; color: var(--sd-ink); font-variant-numeric: tabular-nums; }
.studio-phone .sd-yg__around small { justify-self: end; font-size: 10.5px; color: var(--sd-muted); }
.studio-phone .sd-yg__around li.is-now small { color: var(--sd-accent-ink); font-weight: 800; }

/* 열두 달 달력: each month a tile, deeper in the accent the better it flows */
.studio-phone .sd-cal { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 0; }
.studio-phone .sd-cell {
  list-style: none; position: relative; display: flex; flex-direction: column; gap: 1px; min-height: 62px; padding: 8px 8px 7px; border-radius: 12px;
  background: color-mix(in srgb, var(--sd-accent) calc(var(--v, .3) * 100%), var(--sd-bg)); color: var(--sd-ink);
}
.studio-phone .sd-cell b { font-size: 13px; font-weight: 800; }
.studio-phone .sd-cell small { font-size: 10px; opacity: .72; }
.studio-phone .sd-cell span { margin-top: auto; align-self: flex-end; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .85; }
.studio-phone .sd-cell.is-deep { color: var(--sd-on-accent); }
.studio-phone .sd-cell.is-now { box-shadow: 0 0 0 2px var(--sd-bg), 0 0 0 4px var(--sd-ink); z-index: 1; }
.studio-phone .sd-cell.is-now::before { content: "지금"; position: absolute; top: -8px; right: 6px; padding: 0 6px; border-radius: 999px; background: var(--sd-ink); color: var(--sd-bg); font-size: 9.5px; font-weight: 800; line-height: 16px; }
.studio-phone .sd-cell.is-worst { box-shadow: inset 0 0 0 1.5px var(--sd-clash); }
.studio-phone .sd-cell__tag { position: absolute; left: 6px; bottom: 6px; padding: 0 5px; border-radius: 999px; background: var(--sd-bg); color: var(--sd-accent-ink); font-style: normal; font-size: 9.5px; font-weight: 800; line-height: 15px; }
.studio-phone .sd-cell.is-worst .sd-cell__tag { color: var(--sd-clash-ink); }
/* 연애 도식 (engine/love.py): the stars a chart lacks step back; ten years fill two rows of five */
.studio-phone .sd-badge.is-off { opacity: .4; }
.studio-phone .sd-badge.is-off i { background: var(--sd-bg); color: var(--sd-muted); box-shadow: inset 0 0 0 1px var(--sd-line); }
.studio-phone .sd--lstars .sd-badge b { font-size: 10.5px; }
.studio-phone .sd-cal--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.studio-phone .sd-cal--five .sd-cell { min-height: 56px; padding: 7px 6px 6px; }
.studio-phone .sd-cal--five .sd-cell b { font-size: 12px; }
.studio-phone .sd-le__parts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 0; padding: 0; }
.studio-phone .sd-le__parts li { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--sd-line); text-align: center; }
.studio-phone .sd-le__parts small { font-size: 9.5px; line-height: 1.25; color: var(--sd-muted); word-break: keep-all; }
.studio-phone .sd-le__parts b { font-size: 13px; color: var(--sd-ink); }
.studio-phone .sd-cal__legend { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--sd-muted); }
.studio-phone .sd-cal__steps { display: flex; flex: 1; gap: 3px; }
.studio-phone .sd-cal__steps i { flex: 1; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--sd-accent) calc(var(--v) * 100%), var(--sd-bg)); box-shadow: inset 0 0 0 1px var(--sd-line); }
.studio-phone .sd-cell.is-past { opacity: .7; } /* the months gone by step back; their numbers stay readable */
.studio-phone .sd-cal__legend + .sd-sub { margin-top: 6px; }

/* 신년 도식 (engine/newyear.py): the year on one card (its two characters, its word, what it touches), and twelve months
   with a small mark for each thing that moves in the month */
.studio-phone .sd-ny__head { display: flex; align-items: center; gap: 14px; }
.studio-phone .sd-ny__tiles { display: flex; gap: 5px; flex: none; }
.studio-phone .sd-ny__tiles .sd-tile--xl { width: 52px; }
.studio-phone .sd-ny__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.studio-phone .sd-ny__name small { font-size: 11px; color: var(--sd-muted); }
.studio-phone .sd-ny__name b { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.04em; color: var(--sd-accent-ink); }
.studio-phone .sd-ny__name span { font-size: 12.5px; line-height: 1.45; color: var(--sd-ink); word-break: keep-all; }
.studio-phone .sd-ny__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 0; }
.studio-phone .sd-ny__facts div { padding: 9px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--sd-line); }
.studio-phone .sd-ny__facts dt { font-size: 10px; color: var(--sd-muted); }
.studio-phone .sd-ny__facts dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 700; color: var(--sd-ink); }
.studio-phone .sd-ny__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; padding: 0; }
.studio-phone .sd-ny__chips li { padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--sd-ink); box-shadow: inset 0 0 0 1px var(--sd-line); }
.studio-phone .sd-ny__chips li.is-care { color: var(--sd-clash-ink); box-shadow: inset 0 0 0 1px var(--sd-clash); }
.studio-phone .sd-ny__chips li.is-good { color: var(--sd-accent-ink); box-shadow: inset 0 0 0 1px var(--sd-accent); }
.studio-phone .sd-cell--ny { min-height: 70px; }
.studio-phone .sd-cell .sd-ny__marks { display: flex; gap: 2px; margin-top: 3px; align-self: flex-start; opacity: 1; font-size: 9px; }
.studio-phone .sd-ny__marks i, .studio-phone .sd-ny__key i {
  display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; font-style: normal; font-size: 8.5px; font-weight: 800; line-height: 1;
  background: var(--sd-bg); color: var(--sd-ink); box-shadow: inset 0 0 0 1px var(--sd-line);
}
.studio-phone .sd-ny__key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 9px; font-size: 10.5px; color: var(--sd-muted); }
.studio-phone .sd-ny__key span { display: inline-flex; align-items: center; gap: 4px; }

/* 삼재 시계: twelve years round a dial by their animal, the three 삼재 years in the warning colour */
.studio-phone .sd .sd-yr { fill: var(--sd-wash); stroke: var(--sd-bg); stroke-width: 1; }
/* three soft tints, deepest in the middle year; at most 22% so the dark red words keep 4.5:1 on every palette */
.studio-phone .sd .sd-yr.is-in { fill: color-mix(in srgb, var(--sd-clash) 12%, var(--sd-bg)); }
.studio-phone .sd .sd-yr.is-mid { fill: color-mix(in srgb, var(--sd-clash) 22%, var(--sd-bg)); }
.studio-phone .sd .sd-yr.is-out { fill: color-mix(in srgb, var(--sd-clash) 16%, var(--sd-bg)); }
.studio-phone .sd .sd-yr__band { stroke: color-mix(in srgb, var(--sd-clash) 55%, transparent); }
.studio-phone .sd .sd-yr.is-now { stroke: var(--sd-ink); stroke-width: 2.5; }
.studio-phone .sd-key--samjae { width: 12px; height: 12px; border: 0; border-radius: 3px; background: color-mix(in srgb, var(--sd-clash) 22%, var(--sd-bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sd-clash) 35%, transparent); }
.studio-phone .sd-key--samjae.is-in { background: color-mix(in srgb, var(--sd-clash) 12%, var(--sd-bg)); }
.studio-phone .sd-key--samjae.is-out { background: color-mix(in srgb, var(--sd-clash) 16%, var(--sd-bg)); }
.studio-phone .sd-keys + .sd-sub { margin-top: 6px; }

/* 궁합 점수 고리: the two joined by a thread through the score ring, the five sides as small columns */
.studio-phone .sd .sd-thread { stroke: var(--sd-accent); stroke-opacity: .5; }
.studio-phone .sd .sd-person-dot circle { fill: var(--sd-wash); stroke: color-mix(in srgb, var(--sd-accent) 55%, transparent); }
.studio-phone .sd .sd-person-dot text { fill: var(--sd-ink); }
.studio-phone .sd-cf { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; padding: 0; }
.studio-phone .sd-cf li { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.studio-phone .sd-cf li > b { font-size: 13px; color: var(--sd-ink); font-variant-numeric: tabular-nums; }
.studio-phone .sd-cf__bar { position: relative; display: block; width: 14px; height: 56px; border-radius: 7px; background: var(--sd-wash); overflow: hidden; }
.studio-phone .sd-cf__bar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 7px; background: color-mix(in srgb, var(--sd-accent) 38%, var(--sd-wash)); }
.studio-phone .sd-cf li.is-top .sd-cf__bar i { background: var(--sd-accent); }
.studio-phone .sd-cf li.is-top > b { color: var(--sd-accent-ink); }
.studio-phone .sd-cf small { font-size: 11px; font-weight: 700; color: var(--sd-ink-2); }
.studio-phone .sd-cf li { position: relative; }
.studio-phone .sd-cf li em { position: absolute; top: -15px; left: 50%; translate: -50% 0; padding: 0 6px; border-radius: 999px; font-style: normal; font-size: 9.5px; font-weight: 800; line-height: 15px; white-space: nowrap; background: var(--sd-accent); color: var(--sd-on-accent); }
.studio-phone .sd-cf li.is-low em { background: color-mix(in srgb, var(--sd-clash) 14%, var(--sd-bg)); color: var(--sd-clash-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sd-clash) 35%, transparent); }
.studio-phone .sd-cf { margin-top: 22px; }
.studio-phone .sd-cf__band { width: fit-content; margin: -4px auto 0; padding: 4px 12px; border-radius: 999px; background: var(--sd-accent); color: var(--sd-on-accent); font-size: 12px; font-weight: 800; }
/* 잘 맞는 부분 · 조심할 부분: never a verdict, both sides of every match */
.studio-phone .sd-sides { display: grid; gap: 8px; margin: 0 0 14px; }
.studio-phone .sd-cf__type + .sd-sides { margin: 12px 0 0; }
.studio-phone .sd-sides__col { padding: 10px 12px 11px; border-radius: 12px; background: color-mix(in srgb, var(--sd-accent) 8%, var(--sd-bg)); }
.studio-phone .sd-sides__col.is-care { background: color-mix(in srgb, var(--sd-clash) 7%, var(--sd-bg)); }
.studio-phone .sd-sides__col b { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 12px; color: var(--sd-accent-ink); }
.studio-phone .sd-sides__col.is-care b { color: var(--sd-clash-ink); }
.studio-phone .sd-sides__col b i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.studio-phone .sd-sides__col ul { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.studio-phone .sd-sides__col li { list-style: none; position: relative; padding-left: 10px; font-size: 12px; line-height: 1.5; color: var(--sd-ink-2); word-break: keep-all; }
.studio-phone .sd-sides__col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--sd-muted); }
.studio-phone .sd-cf__type { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--sd-accent) 8%, var(--sd-bg)); text-align: center; }
.studio-phone .sd-cf__type small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--sd-accent-ink); }
.studio-phone .sd-cf__type b { font-size: 15px; color: var(--sd-ink); text-wrap: balance; }

/* 오행 여덟 칸: the eight characters as eight cells in their element's colours, grouped by element */
.studio-phone .sd-eight { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 4px 0 0; padding: 0; }
.studio-phone .sd-eight__cell {
  list-style: none; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  aspect-ratio: 1; border-radius: 16px; background: var(--el-tile); color: var(--el-on); font-family: var(--sd-tile-font);
  box-shadow: inset 0 0 0 1.5px var(--el-edge), var(--sd-tile-shadow); transition: opacity .2s, filter .2s;
}
.studio-phone .sd-eight__cell b { font-size: 26px; font-weight: 800; line-height: 1; }
.studio-phone .sd-eight__cell small { font-size: 11px; font-weight: 600; line-height: 1; opacity: .8; }
.studio-phone .sd-eight__cell i { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sd-ink); color: var(--sd-bg); box-shadow: 0 0 0 2px var(--sd-bg); font-style: normal; font-size: 10px; font-weight: 800; }
.studio-phone .sd-eight__cell.is-unknown { background: transparent; color: var(--sd-muted); box-shadow: none; border: 1.5px dashed var(--sd-line); text-align: center; }
.studio-phone .sd-eight__cell.is-unknown small { line-height: 1.35; opacity: 1; }
.studio-phone .sd-eight__key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 13px; margin-top: 14px; font-size: 12px; color: var(--sd-ink-2); }
.studio-phone .sd-eight__key span { display: inline-flex; align-items: center; gap: 5px; }
.studio-phone .sd-eight__key i { width: 10px; height: 10px; border-radius: 3px; background: var(--el-mark); }
.studio-phone .sd-eight__key b { color: var(--sd-ink); font-variant-numeric: tabular-nums; }
.studio-phone .sd-eight__key em { padding: 0 6px; border-radius: 999px; background: var(--sd-accent); color: var(--sd-on-accent); font-style: normal; font-size: 10px; font-weight: 800; line-height: 16px; }
.studio-phone .sd-eight__key .is-none > :not(em) { opacity: .45; }

/* 두 사람 오행 견주기: a filled dot for me, an empty ring for the partner, the stretch between them */
.studio-phone .sd .sd-span { stroke: color-mix(in srgb, var(--sd-ink-2) 26%, transparent); }
.studio-phone .sd .sd-span__partner { stroke: var(--sd-ink-2); }
.studio-phone .sd-dkey { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.studio-phone .sd-dkey i { width: 10px; height: 10px; border-radius: 50%; background: var(--sd-accent); }
.studio-phone .sd-dkey.is-partner i { box-sizing: border-box; background: var(--sd-bg); border: 2px solid var(--sd-ink-2); }

/* 두 사람 오행 레이더: who fills in what the other lacks */
.studio-phone .sd-fills { list-style: none; display: grid; gap: 6px; margin: 4px 0 0; padding: 0; }
.studio-phone .sd-fills li { list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--sd-wash); font-size: 12.5px; color: var(--sd-ink-2); }
.studio-phone .sd-fills b { color: var(--sd-ink); }
/* the admin form gives every label its own width and padding; the colour swatch is a label too */
#content .fe label.fe-swatch { display: block; width: 30px; height: 30px; padding: 0; }

/* ---- 체험하기 (player.js): the product played one screen at a time in a phone-sized frame ---------------- */
.play { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.play-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--body-bg, #fff); border: 1px solid var(--studio-line); }
.play-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--body-loud-color); }
.play-sub, .play-help { margin: 0; font-size: 12px; color: var(--body-quiet-color, #6b7280); line-height: 1.5; }
.play-label { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--body-loud-color); }
.play-group { display: flex; flex-wrap: wrap; gap: 6px; }
.play-select { width: 100%; }
#content .play-screens { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; display: grid; gap: 2px; }
.play-screens li button { width: 100%; display: flex; align-items: baseline; gap: 8px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; color: var(--body-fg); text-align: left; cursor: pointer; }
.play-screens li button small { flex: none; font-size: 11px; color: var(--body-quiet-color, #6b7280); }
.play-screens li button:hover { background: var(--darkened-bg, #f3f4f6); }
.play-screens li.is-on button { background: color-mix(in srgb, var(--studio-accent) 12%, transparent); color: var(--studio-accent); font-weight: 700; }
.play-screens li.is-locked button { opacity: .55; }
.play-note { display: flex; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--darkened-bg, #f3f4f6); font-size: 12px; line-height: 1.5; color: var(--body-fg); }
.play-note .ph { color: var(--studio-accent); font-size: 15px; }
.play-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }

.play-stage { position: relative; display: flex; justify-content: center; padding: 8px 0 40px; }
.play-device { position: relative; width: 392px; padding: 12px; border-radius: 52px; background: #0f1513; box-shadow: 0 30px 60px -30px rgba(6, 20, 16, .55), inset 0 0 0 2px #26302c; }
.play-notch { position: absolute; z-index: 5; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #0f1513; }
.studio-phone.play-phone { --fit-height: 820px; max-width: none; width: 100%; height: 820px; overflow-y: auto; overflow-x: hidden; border: 0; border-radius: 40px; scrollbar-width: none; }
.studio-phone.play-phone::-webkit-scrollbar { display: none; }
.play-phone .screen { border-bottom: 0; min-height: 100%; box-sizing: border-box; padding-top: 52px; }
/* only the current screen shows; this must beat the one-screen layout's own display: flex */
.studio-phone.play-phone .screen:not(.is-current) { display: none; }
.play-phone .screen-label { display: none; }
/* entering a screen: blocks rise in one after another; text on webtoon cuts appears as set */
.play-phone .screen.is-entering .block:not(.has-appear) { animation: play-rise .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes play-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes play-fade { from { opacity: 0; } to { opacity: 1; } }

/* Entrances of their own (appear.js): such a block waits unseen until its moment, then comes in as a whole or
   letter by letter (.fx-ch: one letter, .fx-wd: one word, numbered --c). Typing shows a caret on the newest letter. */
.play-phone .block.has-appear:not(.fx-on) { visibility: hidden; }
.studio-phone .block.fx-gone { visibility: hidden; pointer-events: none; }
.studio-phone .fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.studio-phone .fx-on.fx-letters:not(.fx-done) .fx-ch, .studio-phone .fx-on.fx-type:not(.fx-done) .fx-ch, .studio-phone .fx-on.fx-words:not(.fx-done) .fx-wd {
  animation-delay: calc(var(--fx-delay, 0s) + var(--c, 0) * var(--fx-speed, .05s));
}
.studio-phone .fx-on.fx-letters:not(.fx-done) .fx-ch { animation-name: fx-letter; animation-duration: var(--fx-dur, .6s); animation-timing-function: ease; animation-fill-mode: both; }
/* a typed letter appears in a blink; linear, not steps(): a step ends at 0 when its last moment rounds to 0.99999 */
.studio-phone .fx-on.fx-type:not(.fx-done) .fx-ch { animation-name: fx-key; animation-duration: 20ms; animation-timing-function: linear; animation-fill-mode: both; }
.studio-phone .fx-on.fx-type.fx-cursor:not(.fx-done) .fx-ch {
  animation-name: fx-key, fx-caret; animation-duration: 20ms, var(--fx-speed, .05s); animation-timing-function: linear; animation-fill-mode: both, none;
}
.studio-phone .fx-on.fx-type.fx-cursor .fx-ch.is-last { animation-name: fx-key, fx-caret-blink; animation-duration: 20ms, 1s; animation-timing-function: linear; animation-iteration-count: 1, infinite; animation-fill-mode: both, none; }
.studio-phone .fx-on.fx-words:not(.fx-done) .fx-wd { display: inline-block; animation-name: fx-word; animation-duration: var(--fx-dur, .6s); animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-fill-mode: both; }
@keyframes fx-letter { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }
@keyframes fx-key { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-caret { from { box-shadow: 2px 0 0 currentColor; } to { box-shadow: 2px 0 0 currentColor; } }
@keyframes fx-caret-blink { 0%, 49% { box-shadow: 2px 0 0 currentColor; } 50%, 100% { box-shadow: none; } }
@keyframes fx-word { from { opacity: 0; translate: 0 .5em; } to { opacity: 1; translate: 0 0; } }
/* the studio marks a block that has its own entrance; customers and 체험하기 never see the tag */
.studio-phone .block.has-appear { position: relative; }
.studio-phone .block.is-float.has-appear { position: absolute; }
.studio-phone .appear-tag {
  position: absolute; z-index: 4; top: -8px; right: 4px; padding: 1px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--phone-accent, #14806a) 88%, #000); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 1.6;
  letter-spacing: 0; pointer-events: none;
}
.play-phone .appear-tag { display: none; }

/* Tap to go on: the whole screen moves on; a soft line at the bottom says so */
.play-phone .screen.tap-next { cursor: pointer; }
.studio-phone .tap-hint { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; font-size: 12.5px; text-align: center; opacity: .72; pointer-events: none; }
.play-phone .tap-hint { animation: tap-breathe 2.2s ease-in-out infinite; }
@keyframes tap-breathe { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
.studio-phone .tap-next-key { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.studio-phone .tap-next-key:focus-visible { width: auto; height: auto; left: 50%; bottom: 40px; translate: -50% 0; padding: 8px 16px; clip-path: none; border-radius: 999px; background: var(--phone-accent, #14806a); color: var(--phone-on-accent, #fff); font-size: 13px; font-weight: 700; }

/* A screen that continues the one before: the background stays; its blur and veil ease to this screen's own. */
.play-phone .screen.is-current.bg-carry::before { animation: bg-carry .8s ease both; }
@keyframes bg-carry {
  from { -webkit-backdrop-filter: var(--carry-filter, none); backdrop-filter: var(--carry-filter, none); background-color: var(--carry-veil, transparent); }
}
.studio-phone[data-motion] .panel-region.is-shown:is(.appear-type, .appear-letters) { animation: sd-fade .3s ease both; animation-delay: var(--reveal-delay, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .studio-phone .fx-on :is(.fx-ch, .fx-wd), .play-phone .screen.bg-carry::before { animation: none !important; }
}

/* Borders and light (blocks.EFFECT_PROPS, presenter._fx, fx_layers.html, effects.js). A border goes round the block
   (.fx-at-block), its picture (.fx-frame, a webtoon cut, a scroll video's stage) or its button, drawn by .fx-ring laid
   over that box: a line, dashes, a glow, a bright arc running round (.fx-ring__light, a conic gradient turned through
   --fx-angle) or a glow that comes and goes. .fx-shine is a streak of light crossing the box; effects.js moves it with
   its pause. Letters get a stroke painted under their fill, so it only adds, and a glow or a streak of light. What
   moves starts once the block is in view (.fx-live), so a set number of times is seen in full. */
@property --fx-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.studio-phone .fx-at-block:is(.has-ring, .has-shine):not(.is-float) { position: relative; }
.studio-phone .fx-at-block.has-ring:not(.boxed, .glass) { border-radius: 14px; }
.studio-phone .fx-at-block.ring-r, .studio-phone .fx-at-block.ring-r > .card { border-radius: var(--ring-r); }
/* words standing bare on the screen get room between them and their border */
.studio-phone .fx-at-block.has-ring:not(.boxed, .glass):has(> :is(.text-plain, .text-cover, .text-pullquote, .chat, .proof, .countdown)) { padding: 14px 16px; }
.studio-phone .fx-frame { position: relative; overflow: hidden; border-radius: var(--ring-r, 12px); }
.studio-phone .fx-frame.full { margin-left: -18px; margin-right: -18px; border-radius: var(--ring-r, 0); }
.studio-phone .fx-frame > :is(.media, .media-blur) { border-radius: 0; }
.studio-phone .fx-at-media.ring-r :is(.panel, .scrub-stage), .studio-phone .fx-at-media.ring-r .panel > img { border-radius: var(--ring-r); }
.studio-phone .fx-at-button .btn { position: relative; isolation: isolate; }
.studio-phone .fx-at-button.ring-r .btn { border-radius: var(--ring-r); }

.studio-phone :is(.fx-ring, .fx-shine) { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; }
.studio-phone .fx-ring { --ring: var(--ring-c, var(--phone-accent, #14806a)); border: var(--ring-w, 2px) solid var(--ring); }
.studio-phone .ring-dashed .fx-ring { inset: 6px; border-style: dashed; } /* a ticket's cut line, a little way in */
.studio-phone .ring-glow .fx-ring { box-shadow: 0 0 calc(var(--ring-w, 2px) * 4) var(--ring), inset 0 0 calc(var(--ring-w, 2px) * 3) color-mix(in srgb, var(--ring) 45%, transparent); }
.studio-phone .fx-ring__light { position: absolute; inset: calc(-1 * var(--ring-w, 2px)); border-radius: inherit; }
/* a light running round: a faint line, and over it a bright arc turning round the box (masked to the line) */
.studio-phone .ring-shimmer .fx-ring { border-color: color-mix(in srgb, var(--ring) 36%, transparent); filter: drop-shadow(0 0 calc(var(--ring-w, 2px) * 1.6) color-mix(in srgb, var(--ring) 70%, transparent)); }
.studio-phone .ring-shimmer .fx-ring__light {
  padding: var(--ring-w, 2px);
  background: conic-gradient(from var(--fx-angle), transparent 0turn .56turn, var(--ring) .74turn, #fff .8turn, var(--ring) .86turn, transparent 1turn);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity .5s ease;
}
.studio-phone .fx-live.ring-shimmer .fx-ring__light { animation: fx-ring-turn var(--ring-speed, 2.4s) linear var(--ring-count, infinite); }
/* the border glows and fades: a faint line stays, a bright one with its glow comes and goes over it */
.studio-phone .ring-pulse .fx-ring { border-color: color-mix(in srgb, var(--ring) 42%, transparent); }
.studio-phone .ring-pulse .fx-ring__light {
  border: var(--ring-w, 2px) solid var(--ring); opacity: 0;
  box-shadow: 0 0 calc(var(--ring-w, 2px) * 5) var(--ring), inset 0 0 calc(var(--ring-w, 2px) * 3) color-mix(in srgb, var(--ring) 50%, transparent);
}
.studio-phone .fx-live.ring-pulse .fx-ring__light { animation: fx-ring-pulse var(--ring-speed, 2.4s) ease-in-out var(--ring-count, infinite); }
.studio-phone .fx-ring__light.is-done { opacity: 0; }
@keyframes fx-ring-turn { from { --fx-angle: 0deg; } to { --fx-angle: 360deg; } }
@keyframes fx-ring-pulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* a streak of light crossing the box; effects.js moves .fx-shine__streak from off the left edge to off the right */
.studio-phone .fx-shine { overflow: hidden; }
.studio-phone .fx-shine__streak {
  position: absolute; top: -30%; bottom: -30%; left: 0; width: 34%; translate: -140% 0; rotate: 16deg;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34) 50%, transparent);
}
.studio-phone .shine-bright .fx-shine__streak { width: 26%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .78) 50%, transparent); }

/* letters: a stroke painted under the fill (twice the width, so the outer half shows), a glow, or a streak of light */
.studio-phone .has-stroke { -webkit-text-stroke: calc(var(--stroke-w, 1px) * 2) var(--stroke-c, var(--phone-accent, #14806a)); paint-order: stroke fill; }
.studio-phone :is(.tglow-glow, .tglow-pulse) { --glow: var(--glow-c, var(--phone-accent, #14806a)); }
.studio-phone .tglow-glow { text-shadow: 0 0 .28em var(--glow), 0 0 .8em color-mix(in srgb, var(--glow) 55%, transparent); }
/* the glow comes and goes on what the block holds (its own animation belongs to its entrance) */
.studio-phone .fx-live.tglow-pulse > :not(.fx-ring, .fx-shine, .box-tex, .box-video, .appear-tag) { animation: fx-text-pulse var(--glow-speed, 2.6s) ease-in-out var(--glow-count, infinite); }
@keyframes fx-text-pulse { 0%, 100% { text-shadow: 0 0 0 transparent; } 50% { text-shadow: 0 0 .3em var(--glow), 0 0 .9em color-mix(in srgb, var(--glow) 60%, transparent); } }
/* a streak over titles and paragraphs: their own colour with a band of light painted through the letters; not on
   words that come in letter by letter (split into pieces of their own) */
.studio-phone .tglow-shimmer:not([data-fx-split]) :is(.block-title, .cover-kicker, .md > p, .md > blockquote, .caption) {
  background: linear-gradient(105deg, currentColor 0 42%, var(--glow-c, color-mix(in srgb, var(--phone-accent, #14806a) 45%, #fff)) 50%, currentColor 58% 100%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.studio-phone .tglow-shimmer .marker-ink { -webkit-text-fill-color: currentColor; }
.studio-phone .fx-live.tglow-shimmer:not([data-fx-split]) :is(.block-title, .cover-kicker, .md > p, .md > blockquote, .caption) {
  animation: fx-text-sweep var(--glow-speed, 2.6s) ease-in-out var(--glow-count, infinite);
}
@keyframes fx-text-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .studio-phone .fx-live :is(.fx-ring__light, .fx-ring__light *), .studio-phone .fx-live.tglow-pulse > *, .studio-phone .fx-live.tglow-shimmer * { animation: none !important; }
}

/* 스크롤 안내 (blocks._scroll_hint, scroll-hint.js). In the editor and 화면 확인 the pill sits at its spot under a note;
   in 체험하기 and for customers the spot is only a mark, and the pill floats over the bottom of the screen in a layer
   of its own (.play-hint-layer: over the phone in the studio, over the window for customers). */
.studio-phone .block-scroll_hint { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.studio-phone .block-scroll_hint .appear-tag { position: static; }
.play-phone .block-scroll_hint { height: 0; margin: 0; padding: 0; overflow: hidden; }
.scroll-hint {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px 9px 16px; border-radius: 999px;
  font-family: var(--box-body-font, var(--phone-body-font, inherit)); font-size: 13px; font-weight: 650; line-height: 1;
  letter-spacing: -.01em; white-space: nowrap; pointer-events: none;
}
.scroll-hint:not(:has(.scroll-hint__text)) { padding: 10px; }
.scroll-hint.look-dark { background: rgba(15, 21, 19, .6); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 26px -12px rgba(6, 12, 10, .55), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.scroll-hint.look-light { background: rgba(255, 255, 255, .72); color: #1e2b28; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 26px -14px rgba(6, 12, 10, .4), inset 0 0 0 1px rgba(255, 255, 255, .6); }
.scroll-hint.look-accent { background: var(--phone-accent, #14806a); color: var(--phone-on-accent, #fff); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--phone-accent, #14806a) 75%, #000); }
.scroll-hint:is(.look-white, .look-ink) { padding-inline: 6px; }
.scroll-hint.look-white { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.scroll-hint.look-ink { color: #1e2b28; text-shadow: 0 1px 8px rgba(255, 255, 255, .8); }
.scroll-hint__arrow { font-size: 16px; }
.scroll-hint:is(.look-white, .look-ink) .scroll-hint__arrow { font-size: 20px; }
.studio-phone:not(.play-phone) .scroll-hint__arrow, .play-hint-layer .scroll-hint__arrow { animation: hint-nudge 1.4s ease-in-out infinite; }
@keyframes hint-nudge { 0%, 100% { translate: 0 -1px; } 50% { translate: 0 3px; } }
.play-hint-layer {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; display: flex; justify-content: center;
  padding-bottom: calc(26px + var(--hint-lift, 0px)); pointer-events: none;
}
.play-hint-layer.is-window { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding-bottom: calc(22px + var(--hint-lift, 0px) + env(safe-area-inset-bottom)); }
.play-hint-layer:empty { display: none; }
/* 소리 단추 (sound.js): a small round glass button in the top corner of the phone (of the page's column for
   customers, under the site bar), only on pages with sound */
.play-sound {
  position: absolute; top: 12px; right: 12px; z-index: 30; display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(20, 12, 16, .42); color: #fff; font-size: 18px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.play-sound[hidden] { display: none; }
.play-sound[aria-pressed="false"] { opacity: .72; }
.play-sound.is-window { position: fixed; top: calc(var(--top-h, 52px) + 12px); right: max(12px, calc(50% - var(--col, 480px) / 2 + 12px)); }
@media (prefers-reduced-motion: reduce) { .scroll-hint__arrow { animation: none !important; } }

/* Scroll motion (reveal.js): text on cuts and diagrams wait until they scroll into view, then come in.
   `scale` and `translate` (not `transform`) so a sound effect keeps its tilt. */
.studio-phone[data-motion] .panel-region:not(.is-shown), .studio-phone[data-motion] figure.sd:not(.is-shown) { opacity: 0; }
.studio-phone[data-motion] .panel-region.is-shown.appear-pop { animation: sd-pop .36s cubic-bezier(.3, 1.45, .5, 1) both; animation-delay: var(--reveal-delay, 0ms); }
.studio-phone[data-motion] .panel-region.is-shown.appear-fade { animation: sd-fade .35s ease both; animation-delay: var(--reveal-delay, 0ms); }
.studio-phone[data-motion] figure.sd.is-shown { animation: sd-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.studio-phone[data-motion] figure.sd.is-shown :is(.sd-bar, .sd-stack span) { transform-origin: left center; animation: sd-grow .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.08s + var(--n, 0) * 40ms); }
.studio-phone[data-motion] figure.sd.is-shown :is(.sd-tile, .sd-steps li, .sd-dw-col, .sd-chips span) { animation: sd-pop .35s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(.05s + var(--n, 0) * 25ms); }
.studio-phone[data-motion] figure.sd.is-shown :is(.sd-node, .sd-dot) { transform-box: fill-box; transform-origin: center; animation: sd-pop .35s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(.1s + var(--n, 0) * 50ms); }
.studio-phone[data-motion] figure.sd.is-shown .sd-pc-info { animation: sd-fade .35s ease both; animation-delay: calc(.12s + var(--n, 0) * 10ms); }
.studio-phone[data-motion] figure.sd.is-shown .sd-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sd-draw .8s ease-out .08s forwards; }
.studio-phone[data-motion] figure.sd.is-shown .sd-area { animation: sd-fade .5s ease .45s both; }
.studio-phone[data-motion] figure.sd.is-shown .sd-scale__fill { transform-origin: left center; animation: sd-grow .6s cubic-bezier(.2, .7, .2, 1) .1s both; }
/* rings draw themselves round; petals and years open out from the middle of their wheel; tiles of a grid pop in turn */
.studio-phone[data-motion] figure.sd.is-shown .sd-arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sd-draw .6s ease-out both; animation-delay: calc(.06s + var(--n, 0) * 70ms); }
.studio-phone[data-motion] figure.sd.is-shown .sd-petal { transform-box: view-box; transform-origin: 160px 150px; animation: sd-pop .4s cubic-bezier(.3, 1.3, .5, 1) both; animation-delay: calc(.05s + var(--n, 0) * 30ms); }
.studio-phone[data-motion] figure.sd.is-shown .sd-yr { transform-box: view-box; transform-origin: 160px 148px; animation: sd-pop .4s cubic-bezier(.3, 1.3, .5, 1) both; animation-delay: calc(.05s + var(--n, 0) * 25ms); }
.studio-phone[data-motion] figure.sd.is-shown :is(.sd-cell, .sd-badge, .sd-rb__seg, .sd-cf li, .sd-lk__cell, .sd-yg__around li, .sd-donut__row, .sd-dm__chips span, .sd-eight__cell) {
  animation: sd-pop .35s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(.05s + var(--n, 0) * 25ms);
}
/* only where they start: each part ends at its own look, so what is dimmed (강조 옵션, 지난 달) stays dimmed once it is in */
@keyframes sd-pop { from { opacity: 0; scale: .6; } }
@keyframes sd-fade { from { opacity: 0; } }
@keyframes sd-rise { from { opacity: 0; translate: 0 16px; } }
@keyframes sd-grow { from { scale: 0 1; } }
@keyframes sd-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .studio-phone[data-motion] * { animation: none !important; } }

/* A scroll video: the box is a few screens tall and the video stays at the top of the view while it scrolls by. */
.studio-phone { --scrub-view: var(--fit-height, 760px); }
.studio-phone .scrub { position: relative; display: flex; flex-direction: column; height: calc(var(--scrub-len, 1.5) * var(--scrub-view)); }
.studio-phone .scrub-stage { position: sticky; top: 0; }
.studio-phone .scrub-stage video { display: block; width: 100%; }
.studio-phone .scrub.full { margin-left: -18px; margin-right: -18px; }
/* 내려 보라는 안내: the box's last thing, held at the bottom of the screen while the box scrolls by, so the empty space
   under the video says there is more. With motion on it shows only while the video is held and goes before the
   end (reveal.js .is-on); its line fills with how far the video has run (--p). */
.studio-phone .scrub-cue {
  position: sticky; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 2; margin-top: auto; padding-top: 12px;
  display: flex; justify-content: center; pointer-events: none; transition: opacity .35s ease, translate .35s ease;
}
.studio-phone[data-motion] .scrub-cue:not(.is-on) { opacity: 0; translate: 0 6px; }
.studio-phone .scrub-cue .scroll-hint { position: relative; padding-bottom: 13px; }
.studio-phone .scrub-cue .scroll-hint::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 1px;
  background: linear-gradient(currentColor, currentColor) left / calc(var(--p, 0) * 100%) 100% no-repeat, color-mix(in srgb, currentColor 25%, transparent);
}
.studio-phone .scrub-cue .scroll-hint__arrow { animation: hint-nudge 1.4s ease-in-out infinite; }
/* the analysing moment hides the rest of its screen until it is done */
.play-phone .screen.is-loading .block:not(:has(.loading)) { visibility: hidden; }
.play-phone .loading__line { display: none; }
.play-phone .loading__line.is-on { display: block; animation: play-fade .4s ease both; }
.play-phone .loading.is-done { display: none; }
.play-phone .btn[data-action], .play-phone .chips [data-value] { cursor: pointer; transition: transform .1s, filter .15s; }
.play-phone .btn[data-action]:hover { filter: brightness(1.06); }
.play-phone .btn[data-action]:active { transform: scale(.98); }
.play-phone .chips [data-value].is-on { background: var(--phone-accent, #14806a); border-color: var(--phone-accent, #14806a); color: var(--phone-on-accent, #fff); }
@media (prefers-reduced-motion: reduce) { .play-phone .screen.is-entering * { animation: none !important; } }

.play-overlay { position: absolute; inset: 12px; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-radius: 40px; background: rgba(15, 21, 19, .72); color: #fff; font-size: 14px; text-align: center; padding: 30px; }
.play-overlay[hidden] { display: none; }
.play-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #8fe3c6; animation: play-spin .8s linear infinite; }
@keyframes play-spin { to { transform: rotate(360deg); } }
.play-toast { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); max-width: 360px; padding: 9px 16px; border-radius: 999px; background: #111827; color: #fff; font-size: 13px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.play-toast[hidden] { display: none; }

/* the input step as a working form (the shared look is in "The input step" above) */
.studio-phone .pf-progress { height: 3px; border-radius: 2px; background: color-mix(in srgb, currentColor 10%, transparent); overflow: hidden; }
.studio-phone .pf-progress i { display: block; height: 100%; background: var(--phone-accent, #14806a); transition: width .3s; }
/* The input step's controls look the same drawn in the studio (preview_input.html) and as the working form: the way
   back beside the button that goes on, the consent tick, the last look's rows. The studio's own admin styles for
   labels stay out of the phone. */
.studio-phone :is(.pf-check, .input-toggle) { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; opacity: .88; word-break: keep-all; }
.studio-phone .pf-check { cursor: pointer; }
.studio-phone .pf-check input, .studio-phone .input-toggle::before {
  content: ""; flex: none; width: 16px; height: 16px; box-sizing: border-box; margin: 2px 0 0; border: 1.5px solid currentColor; border-radius: 5px;
  background: transparent center / 78% no-repeat; opacity: .75;
}
.studio-phone .pf-check input { -webkit-appearance: none; appearance: none; cursor: pointer; }
.studio-phone :is(.pf-check input:checked, .input-toggle.is-on::before) {
  opacity: 1; border-color: var(--accent); background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.8 8.4l2.6 2.5L12.2 5.2' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.studio-phone .pf-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.studio-phone .pf-policy { display: inline-block; margin: 2px 0 6px 26px; font-size: 12px; opacity: .78; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.studio-phone .pf-error { margin-top: 6px; font-size: 12px; font-weight: 600; color: #c4321f; }
.studio-phone :is(.look-glass, .look-bare, .look-simple) .pf-error { color: #ff9a8b; }
.studio-phone .pf-nav { display: flex; align-items: center; gap: 8px; }
.studio-phone .pf-back {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; box-sizing: border-box; padding: 0;
  border: 1.5px solid var(--field-line, rgba(17, 24, 39, .14)); border-radius: 14px; background: transparent; color: inherit; font-size: 18px; cursor: pointer;
}
.studio-phone :is(.pf-next, .pf-submit) {
  flex: 1; display: grid; place-items: center; width: auto; height: 52px; box-sizing: border-box; padding: 0 16px; border: 0; border-radius: 14px;
  background: var(--phone-accent, #14806a); color: var(--phone-on-accent, #fff);
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: opacity .15s, transform .1s;
}
.studio-phone .pf-next[aria-disabled="true"] { opacity: .42; }
.studio-phone .pf-hint { flex: 1; font-size: 12px; text-align: right; opacity: .6; }
.studio-phone :is(.pf-next, .pf-submit):active { transform: scale(.98); }
.studio-phone .pf-finish { display: flex; flex-direction: column; gap: 12px; }
.studio-phone .pf-confirm dl { margin: 4px 0 0; }
.studio-phone .pf-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); font-size: 13px; }
.studio-phone .pf-row dt { opacity: .65; }
.studio-phone .pf-row dd { margin: 0; font-weight: 600; text-align: right; }
.studio-phone .pf-row dd :is(button, span) { margin-left: 8px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
/* the analysing moment fills its screen: a slow ring and one message at a time, centred */
.studio-phone.play-phone .screen.is-current.is-loading { display: flex; flex-direction: column; justify-content: center; }
.play-phone .screen.is-loading .block:not(:has(.loading)) { display: none; }
.play-phone .screen.is-loading .loading { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.play-phone .screen.is-loading .loading:not(.loading--seal)::before { content: ""; width: 54px; height: 54px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--phone-accent, #14806a) 18%, transparent); border-top-color: var(--phone-accent, #14806a); animation: play-spin 1.1s linear infinite; }
.play-phone .screen.is-loading .loading__line.is-on { font-size: 16px; font-weight: 600; color: var(--phone-heading, #1e2b28); }

/* the player's conversation */
.play-phone .chat .is-hidden { display: none; }
.play-phone .screen.is-chatting .after-chat { visibility: hidden; }
.play-phone .chat-bubble.is-shown { animation: chat-in .28s cubic-bezier(.2, .8, .3, 1.2) both; }
.play-phone .chat-run.is-me .chat-bubble.is-shown { transform-origin: right top; }
.play-phone .chat-lines .chat-bubble.is-shown { transform-origin: left top; }
@keyframes chat-in { from { opacity: 0; transform: scale(.85) translateY(6px); } to { opacity: 1; transform: none; } }
.play-phone .chat-option { cursor: pointer; transition: transform .1s, background-color .15s; }
.play-phone .chat-option:hover { background: color-mix(in srgb, var(--phone-accent, #14806a) 12%, var(--chat-reply-bg, #fff)); }
.play-phone .chat-option:active { transform: scale(.97); }
.play-phone .chat-reply.is-waiting { animation: chat-in .3s ease both; }

/* ---- Sales blocks: payment card, countdown, exit popup, counts, reviews, locked preview ---------------- */
.studio-phone .offer { display: flex; flex-direction: column; gap: 12px; }
.studio-phone .offer .block-title { margin-bottom: 0; }
.studio-phone .offer-volume { width: fit-content; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--phone-accent, #14806a) 12%, transparent); color: var(--phone-accent, #14806a); font-size: 12px; font-weight: 700; }
.studio-phone .offer-bullets { margin: 0; padding-left: 1.1em; }
.studio-phone .offer-bullets li { margin: 3px 0; }
.studio-phone .offer-price, .studio-phone .offer-compare { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(17, 24, 39, .04); }
.studio-phone .offer-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.studio-phone .offer-row s { color: #9ca3af; }
.studio-phone .offer-row.is-off b { color: #d33c2c; font-size: 15px; }
.studio-phone .offer-row.is-final { padding-top: 6px; border-top: 1px dashed rgba(17, 24, 39, .14); }
.studio-phone .offer-row.is-final strong, .studio-phone .offer-row.is-us strong { font-size: 20px; color: var(--phone-heading, #111827); }
.studio-phone .offer-row.is-us span { font-weight: 700; color: var(--phone-accent, #14806a); }
.studio-phone .offer-options { display: flex; flex-direction: column; gap: 8px; }
.studio-phone .offer-option { position: relative; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid #e5e7eb; background: #fff; cursor: pointer; }
.studio-phone .offer-option.is-on { border-color: var(--phone-accent, #14806a); background: color-mix(in srgb, var(--phone-accent, #14806a) 6%, #fff); }
.studio-phone .offer-option__radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c7ccd3; }
.studio-phone .offer-option.is-on .offer-option__radio { border-color: var(--phone-accent, #14806a); box-shadow: inset 0 0 0 4px #fff; background: var(--phone-accent, #14806a); }
.studio-phone .offer-option__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: #1f2937; }
.studio-phone .offer-option__text b { font-size: 14px; }
.studio-phone .offer-option__text small { font-size: 11.5px; color: #6b7280; }
/* studio only: a bundle or add-on card whose add-on is not on sale yet */
.studio-phone .offer-option__text small.offer-option__draft, .studio-phone .offer-draft { color: #9a5b12; }
.studio-phone .offer-draft { margin: 0 0 10px; padding: 8px 10px; border: 1px dashed #d8b27a; border-radius: 10px; background: #fff8ec; font-size: 11.5px; line-height: 1.5; }
.studio-phone .offer-badge { position: absolute; top: -9px; left: 12px; padding: 2px 8px; border-radius: 999px; background: #d33c2c; color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; }
.studio-phone .offer-option__price { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; color: #111827; }
.studio-phone .offer-option__price s { font-size: 11px; color: #9ca3af; }
.studio-phone .offer-option__price em { font-size: 11px; font-style: normal; font-weight: 700; color: #d33c2c; }
.studio-phone .offer-refund { margin: 0; font-size: 11px; line-height: 1.5; color: #8b929c; }
.studio-phone .offer-refund a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.studio-phone .offer-coupon { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; border: 1.5px dashed #d33c2c; background: #fff6f4; }
.studio-phone .offer-coupon span { font-size: 13px; font-weight: 700; color: #b42d20; }
.studio-phone .offer-coupon b { font-size: 18px; color: #d33c2c; }

.studio-phone .countdown { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 12px; background: #1f2937; color: #fff; font-size: 13px; }
.studio-phone .countdown[hidden] { display: none; }
.studio-phone .countdown .ph { color: #ffb4a8; font-size: 16px; }
.studio-phone .countdown-clock { font-variant-numeric: tabular-nums; font-size: 15px; letter-spacing: .02em; color: #ffd2c9; }
.studio-phone .countdown-where { width: 100%; text-align: center; font-size: 10.5px; opacity: .6; }
.studio-phone .countdown--bar { flex-wrap: wrap; border-radius: 12px 12px 0 0; }
.play-phone .countdown--bar { position: sticky; bottom: 0; z-index: 4; margin: 0 -18px -28px; border-radius: 0; flex-wrap: nowrap; }
.play-phone .countdown-where { display: none; }

.studio-phone .leave-offer { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; border: 1.5px dashed #c7ccd3; }
.studio-phone .leave-offer__where { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #6b7280; }
.studio-phone .leave-offer__card, .play-popup .leave-offer__card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: #fff; color: #1f2937; box-shadow: 0 10px 30px -12px rgba(17, 24, 39, .35); text-align: center; }
.studio-phone .leave-offer__card h4, .play-popup .leave-offer__card h4 { margin: 0; font-family: var(--box-title-font, var(--phone-title-font, inherit)); font-size: 17px; color: #111827; }
.studio-phone .leave-offer__card p, .play-popup .leave-offer__card p { margin: 0; font-size: 13px; color: #4b5563; }
.studio-phone .leave-offer__coupon, .play-popup .leave-offer__coupon { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed #d33c2c; background: #fff6f4; text-align: left; }
.studio-phone .leave-offer__coupon span, .play-popup .leave-offer__coupon span { font-size: 13px; font-weight: 700; color: #b42d20; }
.studio-phone .leave-offer__coupon b, .play-popup .leave-offer__coupon b { font-size: 16px; color: #d33c2c; }
.studio-phone .leave-offer__coupon small, .play-popup .leave-offer__coupon small { grid-column: 1 / -1; font-size: 11px; color: #8b5a52; }
.studio-phone .leave-offer__leave, .play-popup .leave-offer__leave { font-size: 12.5px; color: #6b7280; text-decoration: underline; cursor: pointer; }
.studio-phone .leave-offer__pair, .play-popup .leave-offer__pair { display: grid; grid-template-columns: 1fr 1.7fr; gap: 8px; }
.studio-phone .leave-offer__pair .btn--quiet, .play-popup .leave-offer__pair .btn--quiet { background: #e5e7eb; color: #6b7280; font-weight: 600; }
/* in the player the exit popup waits hidden, and opens on a layer over the whole phone */
.play-phone .leave-offer { display: none; }
.play-popup { position: absolute; inset: 12px; z-index: 7; display: grid; place-items: center; padding: 26px; border-radius: 40px; background: rgba(15, 21, 19, .55); }
.play-popup[hidden] { display: none; }
.play-popup .leave-offer__card { width: 100%; animation: chat-in .3s cubic-bezier(.2, .8, .3, 1.2) both; }

.studio-phone .proof { display: flex; flex-direction: column; gap: 6px; }
.studio-phone .proof-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.studio-phone .proof-line .ph { color: var(--phone-accent, #14806a); font-size: 17px; }
.studio-phone .proof-recent { display: flex; flex-direction: column; gap: 4px; font-size: 12px; opacity: .75; }

.studio-phone .reviews { display: flex; flex-direction: column; gap: 10px; }
.studio-phone .reviews--rolling { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px 6px; }
.studio-phone .reviews--rolling .review { flex: 0 0 82%; scroll-snap-align: start; }
.studio-phone .review { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; color: #1f2937; box-shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 0 0 1px rgba(17, 24, 39, .05); }
.studio-phone .review p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.studio-phone .review-image { display: block; width: 100%; max-height: 260px; object-fit: cover; object-position: top; border-radius: 10px; }
.studio-phone .review-stars { letter-spacing: 1px; }
.studio-phone .star { font-style: normal; color: #e5e7eb; }
.studio-phone .star.is-on { color: #f2b53b; }
.studio-phone .review-who { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6b7280; }
.studio-phone .review-who em { padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--phone-accent, #14806a) 12%, transparent); color: var(--phone-accent, #14806a); font-style: normal; font-weight: 700; }
.studio-phone .review-who span { margin-left: auto; }
.studio-phone .loading-reviews { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 12px; text-align: left; }
.play-phone .loading-reviews .review { display: none; }
.play-phone .loading-reviews .review.is-on { display: flex; animation: play-fade .4s ease both; }
/* the studio says how long the analysing moment lasts with its review cards (presenter._loading) */
.studio-phone .loading__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 11.5px; font-weight: 700; color: #6b7280; }
.play-phone .loading__note { display: none; }

.studio-phone .teaser { display: flex; flex-direction: column; gap: 10px; }
.studio-phone .teaser-image { position: relative; overflow: hidden; border-radius: 16px; }
.studio-phone .teaser-image img { display: block; width: 100%; }
.studio-phone .teaser:not(.is-open) .teaser-image img { filter: blur(10px) saturate(.8); transform: scale(1.08); }
.studio-phone .teaser-lock { position: absolute; inset: auto 12px 12px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 999px; background: rgba(15, 21, 19, .72); color: #fff; font-size: 13px; font-weight: 700; }
.studio-phone .teaser-headline { margin: 0; font-size: 17px; font-weight: 700; }
.studio-phone .teaser-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-phone .teaser-tags span { padding: 5px 10px; border-radius: 999px; background: rgba(17, 24, 39, .05); font-size: 12.5px; font-weight: 600; }
.studio-phone .teaser-tags span.is-locked { display: inline-flex; align-items: center; gap: 4px; background: #1f2937; color: #fff; }
.studio-phone .teaser-items { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.studio-phone .teaser-items li { list-style: decimal; font-size: 13.5px; }
.studio-phone .teaser-items li.is-locked { color: #9ca3af; }
.studio-phone .teaser-items li.is-locked .ph { margin-right: 4px; }
/* a locked line reads as hidden text: a blurred line of glyphs, the lock label small after it */
.studio-phone .teaser-items .teaser-blur { display: inline-block; vertical-align: middle; filter: blur(4px); color: var(--phone-text, #4b5563); opacity: .75; letter-spacing: .05em; user-select: none; }
.studio-phone .teaser-items li.is-locked small { margin-left: 6px; font-size: 11.5px; }
.play-popup .btn { display: block; padding: 13px; border-radius: 12px; background: var(--phone-accent, #14806a); color: var(--phone-on-accent, #fff); font-weight: 700; text-align: center; cursor: pointer; }

/* ---- AI 챕터 tools (prompt-tools.js): what the AI gets, the 넣기 목록, a 기본 지시문 written over, the AI 풀이 tab,
   and the chapter test page (chapter-test.js). Filled-in values are marked by kind: a 자료, a value, the customer's. */
.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-panel { grid-column: 1 / -1; margin-top: 12px; border-top: 1px solid var(--studio-line); padding-top: 8px; }
.pt-panel__toggle { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--body-loud-color); cursor: pointer; text-align: left; }
.pt-panel__toggle .ph-robot { color: var(--studio-accent); font-size: 16px; }
.pt-panel__summary { margin-left: auto; color: var(--body-quiet-color); font-size: 12px; font-weight: 500; }
.pt-panel__body { display: grid; gap: 10px; padding: 6px 0 2px; }
.pt-panel__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pt-panel__content { display: grid; gap: 10px; transition: opacity .15s ease; }
.pt-panel__content.is-loading { opacity: .55; }
.pt-people { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-section { display: grid; gap: 6px; font-size: 12.5px; }
.pt-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--body-quiet-color); }
.pt-legend .pt-mark { padding: 1px 6px; font-weight: 600; }
.pt-legend__note { margin-left: 4px; }
.pt-view { display: grid; gap: 8px; }
.pt-part { border: 1px solid var(--studio-line); border-radius: var(--radius, 8px); background: var(--surface); }
.pt-part > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; font-size: 12.5px; cursor: pointer; }
.pt-source { padding: 1px 8px; border-radius: 999px; background: var(--jade-tint); color: var(--jade-ink); font-size: 11.5px; font-weight: 600; }
.pt-count { margin-left: auto; color: var(--body-quiet-color); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pt-text { max-height: 460px; overflow: auto; margin: 0; padding: 10px 12px 12px; border-top: 1px solid var(--studio-line); white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.65; color: var(--body-fg); }
.pt-mark { padding: 0 2px; border-radius: 3px; color: var(--jade-ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pt-mark.is-data { background: var(--jade-tint); }
.pt-mark.is-value { background: var(--jade-tint-strong); }
.pt-mark.is-customer { background: var(--selected-bg); border-bottom: 2px dotted var(--studio-accent); }
.pt-mark.is-missing { background: var(--message-error-bg); color: var(--error-fg); }
.pt-warnings { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.pt-warning { display: flex; align-items: flex-start; gap: 6px; padding: 6px 8px; border-radius: var(--radius, 8px); background: var(--selected-bg); line-height: 1.5; }
.pt-warning .ph { flex: none; margin-top: 2px; }
.pt-warning.is-error { background: var(--message-error-bg); color: var(--error-fg); }
.pt-warning.is-warning { background: var(--message-warning-bg); }
.pt-warning.is-warning .ph { color: var(--studio-warning); }
.pt-data { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pt-data__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-data__row small { color: var(--body-quiet-color); }
.pt-data__row.is-empty .pt-chip { opacity: .6; }
.pt-data__also { display: inline-flex; align-items: center; gap: 3px; }
.pt-empty { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 8px 10px; border-radius: var(--radius, 8px); background: var(--message-warning-bg); font-size: 12.5px; line-height: 1.5; }
.pt-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 999px; background: var(--selected-bg); color: var(--body-medium-color); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pt-chip.is-data { background: var(--jade-tint); color: var(--jade-ink); }
.pt-chip.is-value { background: var(--jade-tint-strong); color: var(--jade-ink); }
.pt-chip.is-customer { background: var(--surface); color: var(--jade-ink); box-shadow: inset 0 0 0 1px var(--studio-accent); }
.pt-chip.is-shared { box-shadow: inset 0 0 0 1px var(--studio-accent); }
.pt-chip.is-many { background: var(--message-warning-bg); color: var(--body-loud-color); box-shadow: inset 0 0 0 1px var(--studio-warning); }
.pt-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.fe-chip.pt-put { border-color: var(--studio-accent); color: var(--studio-accent); }

/* 넣기 목록 */
.pt-pal { position: fixed; z-index: 1200; display: flex; flex-direction: column; min-height: 280px; border: 1px solid var(--border-color); border-radius: var(--radius-lg, 12px); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.pt-pal__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px 6px; }
.pt-pal__head > b { margin-right: auto; font-size: 13.5px; }
.pt-pal__search { flex: 1 1 200px; min-width: 0; }
.pt-pal__persona { width: auto; }
.pt-pal__kinds { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; border-bottom: 1px solid var(--studio-line); }
.pt-pal__body { display: grid; grid-template-columns: 168px minmax(0, 1fr); flex: 1; min-height: 0; }
.pt-pal__shelves { display: flex; flex-direction: column; gap: 2px; padding: 8px; overflow: auto; border-right: 1px solid var(--studio-line); background: var(--canvas); }
.pt-pal__shelf { padding: 7px 10px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 12.5px; text-align: left; color: var(--body-medium-color); cursor: pointer; }
.pt-pal__shelf:hover { background: var(--selected-bg); }
.pt-pal__shelf.is-on { background: var(--jade-tint); color: var(--jade-ink); font-weight: 700; }
.pt-pal__items { overflow: auto; padding: 4px 12px; }
.pt-pal__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--studio-line); }
.pt-pal__item > :not(.pt-pal__put) { grid-column: 1; }
.pt-pal__put { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
.pt-pal__item.is-locked { opacity: .6; }
.pt-pal__main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.pt-pal__in { display: inline-flex; align-items: center; gap: 2px; color: var(--studio-accent); font-weight: 700; }
.pt-pal__also { display: inline-flex; align-items: center; gap: 2px; color: var(--studio-warning); }
.pt-pal__help { margin: 0; color: var(--body-quiet-color); font-size: 12px; line-height: 1.5; }
.pt-pal__sample { color: var(--jade-ink); font-size: 12px; }
.pt-pal__peek > summary { color: var(--jade-ink); font-size: 12px; cursor: pointer; }
.pt-pal__peek pre { max-height: 220px; overflow: auto; margin: 6px 0 0; padding: 8px 10px; border-radius: 6px; background: var(--canvas); white-space: pre-wrap; font: inherit; font-size: 12px; line-height: 1.55; }
.pt-pal__none { margin: 16px 0; color: var(--body-quiet-color); font-size: 12.5px; }
.pt-pal__note { margin: 0; padding: 8px 12px; border-top: 1px solid var(--studio-line); background: var(--canvas); color: var(--body-quiet-color); font-size: 12px; transition: color .2s ease; }
.pt-pal__note.is-done { color: var(--jade-ink); font-weight: 700; }
@media (max-width: 720px) {
  .pt-pal__body { grid-template-columns: 1fr; }
  .pt-pal__shelves { flex-direction: row; flex-wrap: nowrap; border-right: 0; border-bottom: 1px solid var(--studio-line); }
  .pt-pal__shelf { white-space: nowrap; }
}

/* a 기본 지시문 written over the one it inherits */
.pt-override { display: grid; gap: 6px; }
.pt-override__from { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--body-quiet-color); font-size: 12.5px; }
.pt-override__from.is-own { color: var(--jade-ink); font-weight: 600; }
.pt-override__text { max-height: 200px; overflow: auto; margin: 0; padding: 10px 12px; border: 1px dashed var(--border-color); border-radius: var(--radius, 8px); background: var(--canvas); color: var(--body-medium-color); white-space: pre-wrap; font: inherit; font-size: 12.5px; line-height: 1.6; }
.pt-override__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* the AI 풀이 tab */
.pt-overview { display: grid; gap: 12px; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pt-table th { padding: 6px 8px; border-bottom: 1px solid var(--border-color); color: var(--body-quiet-color); font-weight: 600; text-align: left; white-space: nowrap; }
.pt-table td { padding: 8px; border-bottom: 1px solid var(--studio-line); vertical-align: top; }
.pt-table tr.is-off td { opacity: .55; }
.pt-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--link-fg); cursor: pointer; text-align: left; }
.pt-link:hover { text-decoration: underline; }
.pt-off { margin-left: 6px; color: var(--body-quiet-color); }
.pt-focus { margin-top: 2px; color: var(--body-medium-color); }
.pt-focus.is-missing { color: var(--studio-warning); }
.pt-shared { padding: 10px 12px; border-radius: var(--radius, 8px); background: var(--canvas); font-size: 12.5px; }
.pt-shared ul { margin: 6px 0 0; padding-left: 18px; }
.pt-shared li.is-many { color: var(--body-loud-color); font-weight: 600; }
.pt-all__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-all__tools select, .pt-all__tools .fe-input { width: auto; max-width: 360px; }
.pt-all { display: grid; gap: 8px; }
.pt-all__total { margin: 0; font-weight: 700; font-size: 13px; }
.pt-all__chapter { border: 1px solid var(--studio-line); border-radius: var(--radius, 8px); background: var(--surface); }
.pt-all__chapter > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 13px; }
.pt-all__chapter > .pt-view { padding: 0 12px 12px; }

/* the chapter test page */
.ct { display: grid; gap: 14px; }
.ct-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ct-bar select { width: auto; }
.ct-source { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--jade-tint); color: var(--jade-ink); font-size: 12px; font-weight: 600; }
.ct-source.is-saved { background: var(--selected-bg); color: var(--body-medium-color); }
.ct-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 960px) { .ct-layout { grid-template-columns: 1fr; } }
.ct-form { position: sticky; top: 12px; display: grid; gap: 10px; }
.ct-group { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--studio-line); border-radius: var(--radius-lg, 12px); background: var(--surface); }
.ct-group > b { font-size: 13px; }
.ct-field { display: grid; gap: 4px; font-size: 12.5px; }
.ct-field > span { color: var(--body-medium-color); font-weight: 600; }
.ct-field .fe-input { width: 100%; box-sizing: border-box; }
.ct-field__row { display: flex; align-items: center; gap: 8px; }
.ct-field__row label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ct-field__row input[type=time] { flex: 1; min-width: 0; }
.ct-field__error { color: var(--error-fg); font-size: 12px; }
.ct-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--studio-line); }
.ct-tab { padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--body-quiet-color); cursor: pointer; }
.ct-tab.is-on { border-bottom-color: var(--studio-accent); color: var(--body-loud-color); }
.ct-pane { display: grid; gap: 12px; padding-top: 4px; }
.ct-pane.is-loading { opacity: .6; transition: opacity .15s ease; }
.ct-draft { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.ct-models { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-models label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--studio-line); border-radius: 999px; font-size: 12.5px; cursor: pointer; }
.ct-models label:has(input:checked) { border-color: var(--studio-accent); background: var(--jade-tint); color: var(--jade-ink); }
.ct-run { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ct-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ct-card { display: grid; gap: 8px; align-content: start; padding: 12px; border: 1px solid var(--studio-line); border-radius: var(--radius-lg, 12px); background: var(--surface); }
.ct-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.ct-card__head b { font-size: 13px; }
.ct-card__meta { color: var(--body-quiet-color); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ct-card__text { max-height: 520px; overflow: auto; margin: 0; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
.ct-card__image { width: 100%; border-radius: var(--radius, 8px); }
.ct-card.is-failed { border-color: var(--error-fg); }
.ct-wait { display: inline-flex; align-items: center; gap: 6px; color: var(--body-quiet-color); font-size: 12.5px; }
.ct-wait .ph { animation: ct-spin 1s linear infinite; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ct-wait .ph { animation: none; } }
.ct-history { display: grid; gap: 12px; }
.ct-history__label { margin: 0; color: var(--body-quiet-color); font-size: 12px; font-weight: 600; }

/* 빈칸 카드 (teaser look "blanks"): a card of name tags whose values are partly blurred, a stand-in for words never
   sent (presenter _blank_parts); the masked picture and its tags above, the lock at the foot; a tap goes to the payment
   card. Colours from the theme like the other editorial shapes. */
.studio-phone .teaser--blanks {
  gap: .7em; padding: 1.2em 1.15em 1em; border: 1px solid var(--ed-line); border-radius: 14px; cursor: pointer;
  background: linear-gradient(160deg, color-mix(in srgb, var(--ed-accent) 7%, transparent), transparent 46%), var(--ed-surface);
  -webkit-tap-highlight-color: transparent;
}
.studio-phone .teaser--blanks:active { scale: .995; }
.studio-phone .teaser--blanks .teaser-kicker { display: block; font-size: .56em; font-weight: 900; letter-spacing: .17em; color: var(--ed-accent); }
.studio-phone .teaser--blanks > .block-title {
  margin: 0; font-family: var(--ed-serif); font-size: 1.12em; font-weight: var(--phone-title-weight, 700); line-height: 1.5;
  letter-spacing: -.03em; text-align: left; color: var(--ed-heading);
}
.studio-phone .teaser--blanks .teaser-lead { margin: -.2em 0 0; font-size: .74em; line-height: 1.7; color: var(--ed-muted); }
.studio-phone .teaser--blanks .teaser-image { border-radius: 12px; }
.studio-phone .teaser--blanks .teaser-image img { filter: blur(9px) saturate(.75); }
.studio-phone .teaser--blanks .teaser-image::after { /* a mist over the face, clearer toward the middle */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 52% at 50% 42%, transparent 20%, color-mix(in srgb, var(--phone-bg, #fff) 55%, transparent) 100%);
}
.studio-phone .teaser--blanks .teaser-tags span { border: 1px solid var(--ed-line); background: transparent; color: var(--ed-heading); font-weight: 600; }
.studio-phone .teaser--blanks .teaser-tags span.is-locked { border-color: transparent; background: color-mix(in srgb, var(--ed-accent) 22%, transparent); color: var(--ed-heading); }
.studio-phone .teaser-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.studio-phone .teaser-rows li {
  display: grid; grid-template-columns: 6.6em 1fr; gap: .9em; align-items: baseline; padding: .72em 0;
  border-top: 1px solid var(--ed-line); font-size: .84em; line-height: 1.6;
}
.studio-phone .teaser-row__label { font-size: .9em; color: var(--ed-muted); }
.studio-phone .teaser-row__value { font-weight: 600; color: var(--ed-heading); }
.studio-phone .teaser-blank {
  display: inline-block; margin: 0 .12em; padding: 0 .2em; border-radius: 4px; color: var(--ed-glow); filter: blur(4.5px);
  background: color-mix(in srgb, var(--ed-accent) 16%, transparent); user-select: none; pointer-events: none;
}
.studio-phone .teaser-items .teaser-blank { filter: blur(4px); }
.studio-phone .teaser-foot {
  display: flex; align-items: center; justify-content: center; gap: .4em; padding-top: .75em; border-top: 1px solid var(--ed-line);
  font-size: .72em; font-weight: 700; color: var(--ed-glow);
}
.studio-phone .teaser-foot::after { content: "→"; }

/* ---- Editorial night: 이야기 장면·상태 배지·갈림길·동그라미 숫자 (text shapes), 큰 글자 무늬, 카드 묶음, 목차, 봉인 카드,
   봉인 분석 중 연출, 따라오는 버튼, 가는 선 스크롤 안내, 움직이는 웹툰 컷. Made for a product that reads like a night
   story in serif type, they take every colour from the theme (heading, text, accent) and mix the faint ones from the
   text colour itself, so the same shapes sit as well on a light page. ------------------------------------------------ */
/* declared again on every block: a block's own text box (--box-heading, --box-text, its fonts) is set on the block, and a
   custom property is worked out where it is declared, so declared on the phone alone it would never see the box */
.studio-phone, .studio-phone .block {
  --ed-heading: var(--box-heading, var(--phone-heading, #1e2b28));
  --ed-text: var(--box-text, var(--phone-text, #3b4744));
  --ed-accent: var(--phone-accent, #14806a);
  /* the accent lifted toward the heading colour: a soft pink on a dark page, a deeper rose on a light one */
  --ed-glow: color-mix(in srgb, var(--ed-accent) 62%, var(--ed-heading));
  --ed-muted: color-mix(in srgb, var(--ed-text) 70%, transparent);
  --ed-line: color-mix(in srgb, currentColor 13%, transparent);
  --ed-surface: color-mix(in srgb, currentColor 4.5%, transparent);
  --ed-serif: var(--box-title-font, var(--phone-title-font, inherit));
}

/* 큰 글자 무늬: one or two characters very large and faint behind the block, clipped to it */
.studio-phone .block.has-mark { position: relative; isolation: isolate; overflow: clip; }
.studio-phone .block-mark {
  position: absolute; z-index: -1; font-family: var(--ed-serif); font-size: clamp(96px, 34cqi, 168px); font-weight: 400; line-height: 1;
  color: currentColor; opacity: .065; pointer-events: none; user-select: none; white-space: nowrap;
}
.studio-phone .block-mark.mark-top_right { top: -.06em; right: -.04em; }
.studio-phone .block-mark.mark-bottom_right { bottom: -.12em; right: -.04em; }
.studio-phone .block-mark.mark-top_left { top: -.06em; left: -.04em; }
.studio-phone .block-mark.mark-bottom_left { bottom: -.12em; left: -.04em; }
.studio-phone .block-mark.mark-center { top: 50%; left: 50%; translate: -50% -50%; }

/* 이야기 장면: a spark over a small spaced kicker, a few big serif lines with the **bold** words in the lifted accent,
   then a small muted note; a faint ring sits behind */
.studio-phone .text-beat { position: relative; isolation: isolate; padding: 2.1em .3em 2em; text-align: center; }
.studio-phone .text-beat::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(80%, 300px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.studio-phone .text-beat .block-title {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1em; margin: 0 0 1.5em;
  font-family: var(--box-body-font, var(--phone-body-font, inherit)); font-size: .64em; font-weight: 700; line-height: 1.5;
  letter-spacing: .16em; color: var(--ed-glow);
}
.studio-phone .text-beat .block-title::before {
  content: "\2726"; font-size: 1.85em; line-height: 1; letter-spacing: 0; color: var(--ed-glow);
  animation: ed-spark 2.8s ease-in-out infinite;
}
.studio-phone .text-beat .block-title::after {
  content: ""; position: absolute; left: 50%; top: .92em; width: 3.2em; height: 3.2em; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ed-accent) 42%, transparent), transparent 68%);
  animation: ed-halo 2.8s ease-in-out infinite; pointer-events: none;
}
.studio-phone .text-beat .md { font-family: var(--ed-serif); color: var(--ed-heading); }
.studio-phone .text-beat .md > :first-child { font-size: 1.3em; font-weight: 400; line-height: 1.78; letter-spacing: -.01em; text-wrap: balance; }
.studio-phone .text-beat .md strong { font-weight: inherit; color: var(--ed-glow); }
.studio-phone .text-beat .md > * + * {
  margin-top: 1.7em; font-family: var(--box-body-font, var(--phone-body-font, inherit)); font-size: .8em; line-height: 1.9; color: var(--ed-muted);
}
.studio-phone .text-beat .md > * + * strong { color: var(--ed-heading); font-weight: 700; }
@keyframes ed-spark {
  0%, 100% { opacity: .55; transform: scale(.92) rotate(-4deg); }
  48% { opacity: 1; transform: scale(1.08) rotate(2deg); text-shadow: 0 0 .5em color-mix(in srgb, var(--ed-accent) 60%, transparent); }
}
@keyframes ed-halo { 0%, 100% { opacity: 0; scale: .72; } 48% { opacity: 1; scale: 1.14; } }

/* 상태 배지: one line in a pill, a dot breathing before it */
.studio-phone .text-badge { text-align: center; }
.studio-phone .text-badge .block-title { margin-bottom: .6em; font-size: .7em; font-weight: 700; letter-spacing: .14em; color: var(--ed-glow); }
.studio-phone .text-badge .md {
  display: inline-flex; align-items: center; gap: .6em; padding: .55em 1.05em; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ed-accent) 45%, transparent); background: color-mix(in srgb, var(--ed-accent) 12%, transparent);
  font-size: .74em; font-weight: 700; line-height: 1.3; color: var(--ed-glow);
}
.studio-phone .text-badge .md::before {
  content: ""; flex: none; width: .5em; height: .5em; border-radius: 50%; background: var(--ed-accent);
  animation: ed-dot 1.8s ease-out infinite;
}
.studio-phone .text-badge .md > * { margin: 0; }
@keyframes ed-dot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ed-accent) 60%, transparent); } 100% { box-shadow: 0 0 0 .7em transparent; } }

/* 갈림길: two roads (the body's two lines) with a lit dot crossing to the second */
.studio-phone .text-crossroad .block-title { text-align: center; }
.studio-phone .text-crossroad .md-lines {
  display: grid; grid-template-columns: auto minmax(3.5em, 1fr) auto; align-items: center; gap: .9em; margin: .4em 0; padding: 0; list-style: none;
}
.studio-phone .text-crossroad .md-lines li { font-size: .74em; color: var(--ed-muted); white-space: nowrap; }
.studio-phone .text-crossroad .md-lines li:first-child { order: 1; }
.studio-phone .text-crossroad .md-lines li:last-child { order: 3; color: var(--ed-glow); font-weight: 700; }
.studio-phone .text-crossroad .md-lines::before {
  content: ""; order: 2; height: 16px;
  background:
    radial-gradient(circle, #fff 0 2.5px, var(--ed-accent) 3.5px, color-mix(in srgb, var(--ed-accent) 35%, transparent) 5px, transparent 8px) no-repeat,
    linear-gradient(to right, color-mix(in srgb, currentColor 14%, transparent), color-mix(in srgb, var(--ed-accent) 75%, transparent)) center / 100% 1px no-repeat;
  background-size: 16px 16px, 100% 1px; background-position: 18% 50%, center;
  animation: ed-cross 3.6s cubic-bezier(.45, 0, .2, 1) infinite;
}
@keyframes ed-cross { 0%, 12% { background-position: 18% 50%, center; } 62%, 100% { background-position: 96% 50%, center; } }

/* 동그라미 숫자: rings side by side, a big figure (the **bold** part) over a small line, + between them */
.studio-phone .text-rings .md-lines { display: flex; justify-content: center; align-items: center; margin: .3em 0; padding: 0; list-style: none; }
.studio-phone .text-rings .md-lines li {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 1 8.6em; aspect-ratio: 1;
  padding: .8em; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ed-accent) 42%, transparent); text-align: center;
  font-size: .72em; line-height: 1.45; color: color-mix(in srgb, var(--ed-text) 88%, transparent);
}
.studio-phone .text-rings .md-lines li + li { margin-left: 2.1em; }
.studio-phone .text-rings .md-lines li + li::before {
  content: "+"; position: absolute; left: -1.45em; top: 50%; translate: 0 -50%; font-size: 1.5em; color: var(--ed-glow);
}
.studio-phone .text-rings .md-lines strong { display: block; margin-bottom: .3em; font-family: var(--ed-serif); font-size: 2.2em; font-weight: 400; line-height: 1.1; color: var(--ed-accent); }

/* 카드 묶음 */
.studio-phone .cards { display: grid; gap: .6em; }
.studio-phone .cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.studio-phone .cards__item {
  position: relative; isolation: isolate; overflow: hidden; padding: 1.05em 1em 1.15em; border: 1px solid var(--ed-line); border-radius: 3px;
  background: var(--ed-surface); text-align: left;
}
.studio-phone .cards__kicker { display: block; margin-bottom: .95em; font-size: .62em; font-weight: 700; letter-spacing: .08em; color: var(--ed-glow); }
.studio-phone .cards__title { display: block; margin-bottom: .5em; font-family: var(--ed-serif); font-size: 1.42em; font-weight: 400; line-height: 1.3; color: var(--ed-heading); }
.studio-phone .cards__text { font-size: .76em; line-height: 1.75; color: var(--ed-muted); }
.studio-phone .cards__text p { margin: 0; }
.studio-phone .cards__text p + p { margin-top: .5em; }
.studio-phone .cards--grid .cards__mark {
  position: absolute; z-index: -1; top: .2em; right: .3em; font-family: var(--ed-serif); font-size: 2.7em; line-height: 1; color: currentColor; opacity: .16;
}
.studio-phone .cards__ring {
  display: grid; place-items: center; width: 2.5em; height: 2.5em; margin-bottom: .8em; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ed-accent) 50%, transparent); color: var(--ed-glow); font-size: 1em;
}
.studio-phone .cards--list .cards__item { display: flex; align-items: flex-start; gap: 1em; padding: 1.15em 1.1em; }
.studio-phone .cards--list :is(.cards__mark, .cards__ring) {
  flex: none; display: grid; place-items: center; width: 2.6em; height: 2.6em; margin: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ed-accent) 50%, transparent); font-family: var(--ed-serif); font-size: 1em; color: var(--ed-glow);
}
.studio-phone .cards--list .cards__words { min-width: 0; }
.studio-phone .cards--list .cards__kicker { margin-bottom: .35em; }
.studio-phone .cards--list .cards__title { margin-bottom: .35em; font-size: 1.06em; font-weight: 700; font-family: inherit; }
/* scrolled into view (reveal.js), the cards rise one after another */
.studio-phone[data-motion] .cards:not(.is-shown) .cards__item { opacity: 0; }
.studio-phone[data-motion] .cards.is-shown .cards__item { animation: sd-rise .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--n, 0) * 70ms); }

/* 목차: a sheet of paper on any page, the groups under a numeral, chapters numbered on, the character's word in a
   bubble that sits left and right in turn */
.studio-phone .contents {
  --ct-ink: #2a1f24; --ct-text: #4b3c42; --ct-quiet: #9a868d; --ct-line: rgba(90, 60, 70, .16);
  position: relative; padding: 1.7em 1.3em 1.35em; background: color-mix(in srgb, var(--ed-accent) 7%, #f5eee8); color: var(--ct-text);
  box-shadow: inset 0 0 0 .45em color-mix(in srgb, var(--ed-accent) 7%, #f5eee8), inset 0 0 0 calc(.45em + 1px) var(--ct-line);
}
.studio-phone .contents::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 2.6em; height: 3px; translate: -50% 0; border-radius: 0 0 2px 2px; background: var(--ed-accent);
}
.studio-phone .contents__kicker { display: block; font-size: .6em; font-weight: 800; letter-spacing: .2em; color: var(--ed-accent); }
.studio-phone .contents__title { margin: .5em 0 1.1em; padding-bottom: 1em; border-bottom: 1px solid var(--ct-line); font-family: var(--ed-serif); font-size: 1.6em; font-weight: 400; line-height: 1.4; color: var(--ct-ink); text-align: left; }
.studio-phone .contents__part + .contents__part { margin-top: 1.2em; padding-top: 1.2em; border-top: 1px solid var(--ct-line); }
.studio-phone .contents__head { display: flex; align-items: center; gap: .55em; margin: 0 0 .8em; font-family: var(--ed-serif); font-size: 1.02em; font-weight: 400; color: var(--ed-accent); }
.studio-phone .contents__head span::after { content: " \00B7"; }
.studio-phone .contents__list { display: grid; gap: .7em; margin: 0; padding: 0; list-style: none; }
.studio-phone .contents__list li { display: flex; gap: 1.2em; font-family: var(--ed-serif); font-size: .9em; color: var(--ct-text); }
.studio-phone .contents__list li span { flex: none; font-family: var(--box-body-font, var(--phone-body-font, inherit)); font-size: .72em; line-height: 1.9; color: var(--ct-quiet); font-variant-numeric: tabular-nums; }
.studio-phone .contents__word { display: flex; align-items: flex-start; gap: .75em; margin: 1.1em 0 0; }
.studio-phone .contents__word.is-right { flex-direction: row-reverse; }
.studio-phone .contents__word img, .studio-phone .contents__face {
  flex: none; width: 2.9em; height: 2.9em; border-radius: 50%; object-fit: cover; object-position: center 18%;
  border: 2px solid #fff; box-shadow: 0 2px 10px rgba(60, 30, 40, .14); background: var(--ct-line);
}
.studio-phone .contents__word figcaption {
  flex: 1; padding: .8em 1em; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px -14px rgba(60, 30, 40, .35);
  font-size: .78em; line-height: 1.7; color: var(--ct-text);
}
.studio-phone .contents__word figcaption small { display: block; margin-bottom: .2em; font-size: .82em; font-weight: 700; color: var(--ed-accent); }
.studio-phone .contents__word figcaption p { margin: 0; }
.studio-phone .contents__note { margin: 1.4em 0 0; padding: .9em 1em; border: 1px solid var(--ct-line); font-size: .7em; line-height: 1.6; text-align: center; color: var(--ct-quiet); }

/* 봉인 카드: free items as slips, then the sample's diagram blurred under fine lines with the seal on top */
.studio-phone .teaser--seal { gap: .7em; }
.studio-phone .teaser--seal .teaser-tags span { border: 1px solid var(--ed-line); background: var(--ed-surface); color: var(--ed-heading); }
.studio-phone .teaser-free { display: grid; gap: .5em; margin: 0; padding: 0; list-style: none; }
.studio-phone .teaser-free li { padding: .85em 1em; border: 1px solid var(--ed-line); border-left: 2px solid var(--ed-accent); background: var(--ed-surface); font-size: .82em; line-height: 1.65; }
.studio-phone .teaser-free li p { margin: 0; }
.studio-phone .teaser-free li strong { color: var(--ed-heading); }
.studio-phone .teaser-vault {
  position: relative; isolation: isolate; overflow: hidden; min-height: 15.5em; border: 1px solid var(--ed-line);
  background: var(--ed-surface); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.studio-phone .teaser-vault__under { position: absolute; inset: 0; z-index: -2; padding: .6em; filter: blur(6px) saturate(.85); opacity: .6; scale: 1.04; pointer-events: none; }
.studio-phone .teaser-vault__under figure.sd { margin: 0; opacity: 1 !important; animation: none !important; }
.studio-phone .teaser-vault__under img { width: 100%; height: 100%; object-fit: cover; }
.studio-phone .teaser-vault::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--phone-bg, #fff) 35%, transparent) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--phone-bg, #fff) 55%, transparent), color-mix(in srgb, var(--phone-bg, #fff) 20%, transparent) 75%);
}
.studio-phone .teaser-vault__seal {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em; min-height: 15.5em; padding: 1.6em 1em; text-align: center;
}
.studio-phone .teaser-vault__mark {
  display: grid; place-items: center; width: 2.35em; height: 2.35em; margin-bottom: .35em; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ed-accent) 65%, transparent); background: color-mix(in srgb, var(--phone-bg, #fff) 75%, transparent);
  font-family: var(--ed-serif); font-size: 1.3em; color: var(--ed-glow); animation: ed-seal 3.4s ease-in-out infinite;
}
.studio-phone .teaser-vault__title { margin: 0; font-family: var(--ed-serif); font-size: 1.12em; line-height: 1.6; color: var(--ed-heading); }
.studio-phone .teaser-vault__note { margin: 0; font-size: .66em; color: var(--ed-muted); }
.studio-phone .teaser-vault__go { margin-top: .4em; font-size: .7em; font-weight: 700; color: var(--ed-glow); }
.studio-phone .teaser-vault:active { scale: .995; }
@keyframes ed-seal {
  0%, 100% { box-shadow: 0 0 0 .3em color-mix(in srgb, var(--ed-accent) 8%, transparent); }
  50% { box-shadow: 0 0 0 .55em color-mix(in srgb, var(--ed-accent) 14%, transparent), 0 0 1.4em color-mix(in srgb, var(--ed-accent) 30%, transparent); }
}

/* 분석 중 연출 · 봉인: the character in a ring, two rings turning round it */
.studio-phone .loading--seal { display: flex; flex-direction: column; align-items: center; padding: 2.4em 0 1.6em; color: var(--ed-muted); }
.studio-phone .loading-seal {
  position: relative; display: grid; place-items: center; width: 6.2em; height: 6.2em; margin-bottom: 2em; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ed-accent) 40%, transparent);
}
.studio-phone .loading-seal::before, .studio-phone .loading-seal::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid transparent; }
.studio-phone .loading-seal::before { inset: -.85em; border-top-color: var(--ed-accent); animation: ed-spin 5s linear infinite; }
.studio-phone .loading-seal::after { inset: .62em; border-right-color: color-mix(in srgb, var(--ed-heading) 55%, transparent); animation: ed-spin 3s linear infinite reverse; }
.studio-phone .loading-seal span { font-family: var(--ed-serif); font-size: 2.3em; color: var(--ed-glow); }
.studio-phone .loading__kicker { margin: 0 0 .9em; font-size: .78em; font-weight: 800; letter-spacing: .2em; color: var(--ed-glow); }
.studio-phone .loading--seal .loading__line {
  margin: 0; font-family: var(--ed-serif); font-size: 1.5em; line-height: 1.55; color: var(--ed-heading); word-break: keep-all; text-wrap: balance;
}
.studio-phone .loading__steps { margin: 1.3em 0 0; font-size: .88em; letter-spacing: .02em; color: var(--ed-muted); }
@keyframes ed-spin { to { rotate: 360deg; } }

/* 따라오는 버튼: drawn at its spot in the studio; customers get it at the bottom of the screen (flow-player.js) */
.sticky-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 16px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--phone-accent, #14806a) 88%, #fff), var(--phone-accent, #14806a));
  color: var(--phone-on-accent, #fff); box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--phone-accent, #14806a) 80%, #000);
  font-family: var(--phone-body-font, inherit); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.sticky-cta span { display: grid; gap: 2px; text-align: left; }
.sticky-cta b { font-size: 15px; font-weight: 750; }
.sticky-cta small { font-size: 11.5px; opacity: .82; }
.sticky-cta .ph { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 17px; }
.play-phone .block-sticky_cta { height: 0; margin: 0; padding: 0; overflow: hidden; }
.sticky-cta-layer {
  position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 456px);
  translate: -50% 140%; transition: translate .45s cubic-bezier(.2, .7, .2, 1); pointer-events: none;
}
.sticky-cta-layer.is-on { translate: -50% 0; pointer-events: auto; }
.sticky-cta-layer.is-studio { position: absolute; width: calc(100% - 24px); }

/* 스크롤 안내 · 가는 선: a small spaced word over a hairline that light runs down */
.scroll-hint.look-line { flex-direction: column; gap: 9px; padding: 0; background: none; color: rgba(255, 255, 255, .86); font-size: 10px; font-weight: 600; letter-spacing: .24em; }
.scroll-hint.look-line .scroll-hint__arrow { display: none; }
.scroll-hint.look-line::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(currentColor, currentColor) 0 -10px / 1px 10px no-repeat, color-mix(in srgb, currentColor 28%, transparent);
  animation: ed-line 1.8s ease-in-out infinite;
}
@keyframes ed-line { to { background-position: 0 34px, 0 0; } }

/* 웹툰 컷 · 글 뒤 어둡게: a dark veil that deepens toward the edge, softly blurring the picture there, so white words read on a
   bright picture; it sits over the picture and under the text areas */
.panel .panel-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.panel .panel-shade.shade-bottom {
  background: linear-gradient(to top, rgba(12, 7, 9, .86), rgba(12, 7, 9, .62) 22%, rgba(12, 7, 9, .26) 44%, transparent 62%);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  -webkit-mask: linear-gradient(to top, #000 30%, transparent 64%); mask: linear-gradient(to top, #000 30%, transparent 64%);
}
.panel .panel-shade.shade-top {
  background: linear-gradient(to bottom, rgba(12, 7, 9, .8), rgba(12, 7, 9, .4) 24%, transparent 48%);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  -webkit-mask: linear-gradient(to bottom, #000 22%, transparent 50%); mask: linear-gradient(to bottom, #000 22%, transparent 50%);
}
.panel .panel-shade.shade-both {
  background: linear-gradient(to bottom, rgba(12, 7, 9, .72), transparent 34%, transparent 58%, rgba(12, 7, 9, .84));
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  -webkit-mask: linear-gradient(to bottom, #000 16%, transparent 38%, transparent 56%, #000 82%); mask: linear-gradient(to bottom, #000 16%, transparent 38%, transparent 56%, #000 82%);
}
.panel.frame-slant .panel-shade, .panel:is(.frame-inset, .frame-sticker) .panel-shade { display: none; }

/* 웹툰 컷 · 움직이는 그림: the video over its first frame, the words on top */
.panel .panel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.panel.frame-slant .panel-video, .panel:is(.frame-inset, .frame-sticker) .panel-video { display: none; }

@media (prefers-reduced-motion: reduce) {
  .studio-phone .text-beat .block-title::before, .studio-phone .text-beat .block-title::after,
  .studio-phone .text-badge .md::before, .studio-phone .text-crossroad .md-lines::before, .studio-phone .teaser-vault__mark,
  .studio-phone .loading-seal::before, .studio-phone .loading-seal::after, .scroll-hint.look-line::after { animation: none; }
}
/* a theme with regular-weight titles (제목 굵기 · 보통) keeps the words it stresses in a headline regular too, in the accent */
.studio-phone .text-headline .md strong { font-weight: var(--phone-title-weight, 700); }
/* 큰따옴표 on an editorial page: the stressed words in the lifted accent, at the theme's title weight */
.studio-phone .text-pullquote .md { font-weight: var(--phone-title-weight, 600); }
.studio-phone .text-pullquote .md strong { color: var(--ed-glow); font-weight: inherit; }

/* ---- Editorial night II: the pieces of a night story's result page. A diagram on a card with its head and a free
   badge, the eight characters on tinted cards, the five elements as bars, a score ring, a reading meter, sealed results
   over mosaic glass, cards in a timeline or as one feature card, a payment card with a check list, and the opening
   lines that take turns on one screen. Colours come from the theme as in Editorial night; the few fixed ones (the calm
   green of a free badge, the gold of a feature card) are mixed with the heading colour so they read on any page. --- */
.studio-phone, .studio-phone .block {
  --ed-calm: color-mix(in srgb, #8fb8b0 78%, var(--ed-heading));
  --ed-gold: color-mix(in srgb, #c4a37c 80%, var(--ed-heading));
  --ed-quiet: color-mix(in srgb, var(--ed-text) 52%, transparent);
}

/* 구역 머리: a small spaced kicker, one big serif line (its **bold** words lifted), small notes under it */
.studio-phone .text-section .block-title {
  margin: 0 0 1.05em; font-family: var(--box-body-font, var(--phone-body-font, inherit)); font-size: .58em; font-weight: 800;
  letter-spacing: .17em; line-height: 1.5; color: var(--ed-glow);
}
.studio-phone .text-section .md > :first-child {
  font-family: var(--ed-serif); font-size: 1.62em; font-weight: var(--phone-title-weight, 700); line-height: 1.55; letter-spacing: -.05em;
  color: var(--ed-heading); text-wrap: balance;
}
.studio-phone .text-section .md > :first-child strong { color: var(--ed-glow); font-weight: inherit; }
.studio-phone .text-section .md > * + * { margin-top: .95em; font-family: var(--ed-serif); font-size: .74em; line-height: 1.85; color: var(--ed-muted); }
.studio-phone .text-section .md > * + * strong { color: var(--ed-heading); font-weight: 400; }

/* 선 태그: plain hairline pills, no dot */
.studio-phone .text-tags .md-lines { display: flex; flex-wrap: wrap; gap: .45em; margin: 0; padding: 0; list-style: none; }
.studio-phone .block.align-center .text-tags .md-lines { justify-content: center; }
.studio-phone .text-tags .md-lines li {
  padding: .62em .95em; border: 1px solid color-mix(in srgb, currentColor 11%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--phone-bg, #000) 28%, transparent); font-size: .6em; line-height: 1.3; color: var(--ed-quiet);
}

/* 빛 흐르는 선: a short line of small words over a hairline that light runs down (a scroll cue) */
.studio-phone .text-cue { display: flex; flex-direction: column; align-items: center; gap: .9em; text-align: center; }
.studio-phone .text-cue .block-title { margin: 0; font-size: .6em; font-weight: 800; letter-spacing: .2em; color: var(--ed-glow); }
.studio-phone .text-cue .md { font-family: var(--ed-serif); font-size: .72em; line-height: 1.7; letter-spacing: .03em; color: color-mix(in srgb, var(--ed-heading) 74%, transparent); }
.studio-phone .text-cue .md p { margin: 0; }
.studio-phone .text-cue .md strong { margin: 0 .5em; font-weight: 400; color: var(--ed-glow); }
.studio-phone .text-cue::after {
  content: ""; width: 1px; height: 30px; color: var(--ed-heading);
  background: linear-gradient(transparent, currentColor) 0 -10px / 1px 10px no-repeat, color-mix(in srgb, currentColor 34%, transparent);
  animation: ed-line 1.8s ease-in-out infinite;
}

/* 진행 막대: '2 / 10장 미리보기' and '전체의 20%' over a hairline filled that far */
.studio-phone .text-meter .meter__copy { display: flex; align-items: center; justify-content: space-between; gap: 1em; font-size: .6em; color: var(--ed-quiet); }
.studio-phone .text-meter .meter__copy b { color: color-mix(in srgb, var(--ed-text) 92%, transparent); font-weight: 700; }
.studio-phone .text-meter .meter__track { height: 3px; margin-top: .75em; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, currentColor 7%, transparent); }
.studio-phone .text-meter .meter__track i {
  display: block; width: var(--meter-share, 0%); height: 100%; border-radius: inherit; transform-origin: left center;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ed-accent) 55%, #3a0a1a), var(--ed-glow));
  animation: sd-grow 1.2s cubic-bezier(.2, .7, .2, 1) .3s both;
}

/* 점수 고리: the score fills a ring in the accent, the type's name beside it, a note and a foot line under hairlines */
@property --ring-at { syntax: "<number>"; inherits: true; initial-value: 0; }
.studio-phone .text-ring {
  padding: 1.9em 1.45em; border: 1px solid color-mix(in srgb, var(--ed-glow) 20%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--ed-accent) 13%, transparent), color-mix(in srgb, currentColor 2.5%, transparent) 58%);
}
.studio-phone .ring__kicker { display: block; font-size: .56em; font-weight: 900; letter-spacing: .16em; color: var(--ed-accent); }
.studio-phone .ring__main { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); align-items: center; gap: 1.1em; margin-top: 1.4em; }
.studio-phone .ring__dial {
  --ring-at: var(--score, 0); position: relative; display: grid; place-items: center; width: 6.5em; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--ed-accent) calc(var(--ring-at) * 1%), color-mix(in srgb, currentColor 7%, transparent) 0);
}
.studio-phone .ring__dial::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--phone-bg, #181013);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--ed-accent) 8%, transparent);
}
.studio-phone .ring__dial span { position: relative; display: flex; align-items: baseline; }
.studio-phone .ring__dial b { font-family: var(--ed-serif); font-size: 2.2em; font-weight: 400; line-height: 1; color: var(--ed-heading); font-variant-numeric: tabular-nums; }
.studio-phone .ring__dial small { margin-left: 2px; font-size: .56em; font-weight: 800; color: var(--ed-accent); }
.studio-phone .ring__copy b { display: block; font-family: var(--ed-serif); font-size: 1.18em; font-weight: 400; line-height: 1.45; color: var(--ed-glow); }
.studio-phone .ring__copy p { margin: .6em 0 0; font-family: var(--ed-serif); font-size: .64em; line-height: 1.75; color: var(--ed-muted); }
.studio-phone .ring__note { margin: 1.4em 0 0; padding-top: 1.15em; border-top: 1px solid var(--ed-line); font-family: var(--ed-serif); font-size: .76em; line-height: 1.85; color: color-mix(in srgb, var(--ed-text) 92%, transparent); }
.studio-phone .ring__note p { margin: 0; }
.studio-phone .ring__note strong { color: var(--ed-glow); font-weight: 400; }
.studio-phone .ring__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-top: 1.05em; padding-top: .95em;
  border-top: 1px solid var(--ed-line); font-size: .54em; color: var(--ed-quiet);
}
.studio-phone .ring__foot b { color: var(--ed-glow); font-weight: 700; }
.studio-phone[data-motion] .text-ring:not(.is-shown) .ring__dial { --ring-at: 0; }
.studio-phone[data-motion] .text-ring.is-shown .ring__dial { animation: ed-ring 1s cubic-bezier(.2, .7, .2, 1) .05s both; }
@keyframes ed-ring { from { --ring-at: 0; } }

/* 도식 카드 (chart kicker / badge / subtitle): the diagram drawn bare on a card with its head, a free badge and a note */
.studio-phone .chart-card {
  padding: 1.6em 1.3em; border: 1px solid color-mix(in srgb, currentColor 11%, transparent);
  background: color-mix(in srgb, currentColor 3.5%, transparent); box-shadow: 0 22px 50px -26px rgba(0, 0, 0, .35);
}
.studio-phone .chart-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.studio-phone .chart-card__head small { display: block; margin-bottom: .55em; font-size: .56em; letter-spacing: .11em; color: var(--ed-quiet); }
.studio-phone .chart-card__head .block-title {
  margin: 0; font-family: var(--ed-serif); font-size: 1.28em; font-weight: var(--phone-title-weight, 700); line-height: 1.45; letter-spacing: -.035em;
  text-align: left; color: var(--ed-heading);
}
.studio-phone .chart-card__badge {
  flex: none; padding: .55em .7em; border: 1px solid color-mix(in srgb, var(--ed-calm) 22%, transparent); border-radius: 999px;
  font-size: .5em; font-weight: 900; letter-spacing: .08em; color: var(--ed-calm); white-space: nowrap;
}
.studio-phone .chart-card__sub { margin: .7em 0 0; font-size: .6em; line-height: 1.65; color: var(--ed-quiet); }
.studio-phone .chart-card figure.sd { margin: 1.5em 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.studio-phone .chart-card__note {
  margin: 1.35em 0 0; padding-top: 1.15em; border-top: 1px solid var(--ed-line);
  font-family: var(--ed-serif); font-size: .72em; line-height: 1.8; color: color-mix(in srgb, var(--ed-text) 92%, transparent);
}
.studio-phone .chart-card__note p { margin: 0; }
.studio-phone .chart-card__note :is(strong, em) { color: var(--ed-glow); font-style: normal; font-weight: 400; }

/* 오행 색 카드 (pillar_look tiles): four columns, each character large on a card tinted by its element */
.studio-phone .sd-pt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.studio-phone .sd-pt__col { min-width: 0; text-align: center; }
.studio-phone .sd-pt__name { display: block; margin-bottom: 8px; font-size: 11px; color: var(--sd-muted); }
.studio-phone .sd-pt__rel { display: grid; place-items: center; min-height: 22px; font-size: 10px; color: var(--sd-muted); }
.studio-phone .sd-pt__rel:empty { display: none; }
.studio-phone .sd-pt__char {
  position: relative; display: grid; place-items: center; align-content: center; min-height: 76px; margin: 4px 0; padding: 8px 3px 7px;
  border-radius: 10px; background: var(--el-tile, var(--sd-wash)); color: var(--el-on, var(--sd-ink));
}
.studio-phone .sd-pt__char b { font-family: var(--sd-tile-font); font-size: 25px; font-weight: 400; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.studio-phone .sd-pt__char span { margin-top: 6px; font-size: 10px; opacity: .9; }
.studio-phone .sd-pt__char.is-unknown { background: var(--sd-wash); color: var(--sd-muted); }
.studio-phone .sd-pt__char.is-dim { opacity: .42; }
.studio-phone .sd-pt__char.is-lit { box-shadow: inset 0 0 0 1px var(--el-edge, var(--sd-accent)); }
.studio-phone .sd-pt .sd-me { top: -7px; right: -4px; border-color: var(--sd-bg); background: var(--sd-accent); color: var(--sd-on-accent); }
.studio-phone .chart-card .sd-pt .sd-me { border-color: var(--phone-bg, var(--sd-bg)); }
.studio-phone[data-motion] figure.sd.is-shown .sd-pt__char { animation: sd-rise .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.04s + var(--n, 0) * 45ms); }

/* 한 글자 (pillar_look glyph): the Hangul reading alone, large, on a cell barely tinted by its element; the picked pillar
   is drawn round with a soft light and its name takes the accent, the others stay clear (nothing dimmed) */
.studio-phone .sd--glyph .sd-pt__name { display: grid; place-items: center; min-height: 30px; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--sd-ink-2); }
.studio-phone .sd--glyph .sd-pt__col:has(.is-lit) .sd-pt__name { color: var(--sd-accent); }
.studio-phone .sd--glyph .sd-pt__char {
  min-height: 60px; margin: 0 0 5px; padding: 0; border-radius: 2px;
  background: color-mix(in srgb, var(--el-mark) 15%, transparent); color: color-mix(in oklab, var(--el-mark) 66%, var(--sd-ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sd-ink) 8%, transparent);
}
.studio-phone .sd--glyph .sd-pt__char b { font-size: 29px; font-weight: 600; letter-spacing: 0; }
.studio-phone .sd--glyph .sd-pt__char.is-dim { opacity: 1; }
.studio-phone .sd--glyph .sd-pt__char.is-lit {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sd-accent) 58%, transparent), inset 0 0 18px color-mix(in srgb, var(--sd-accent) 10%, transparent),
    0 0 16px color-mix(in srgb, var(--sd-accent) 12%, transparent);
}

/* 현판 (pillar_look plaque): each character alone and large on a quiet plaque, its reading and element small under
   it, a thin rule of its element's colour on top, a hairline edge and a soft light from above. Palette variables
   only, so a dark palette gives lacquer and a light one paper. */
.studio-phone .sd--plaque .sd-pt { gap: 8px; }
.studio-phone .sd--plaque .sd-pt__name { margin-bottom: 9px; font-size: 10.5px; letter-spacing: .14em; color: var(--sd-muted); }
.studio-phone .sd--plaque .sd-pt__rel { min-height: 20px; font-size: 10px; letter-spacing: .06em; color: var(--sd-muted); }
.studio-phone .sd--plaque .sd-pt__char {
  min-height: 98px; margin: 5px 0; padding: 15px 2px 12px; border-radius: 4px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--sd-ink) 7%, transparent), transparent 46%),
    color-mix(in oklab, var(--el-mark) 9%, var(--sd-wash));
  color: var(--sd-ink);
  box-shadow:
    inset 0 2px 0 color-mix(in oklab, var(--el-mark) 85%, transparent),
    inset 0 0 0 1px color-mix(in oklab, var(--sd-accent) 26%, transparent),
    0 12px 20px -16px rgba(0, 0, 0, .65);
}
.studio-phone .sd--plaque .sd-pt__char b { font-size: 34px; font-weight: 400; letter-spacing: 0; }
.studio-phone .sd--plaque .sd-pt__char span { margin-top: 10px; font-size: 10.5px; letter-spacing: .08em; opacity: 1; color: color-mix(in oklab, var(--el-mark) 62%, var(--sd-ink)); }
.studio-phone .sd--plaque .sd-pt__char.is-unknown { background: transparent; box-shadow: inset 0 0 0 1px var(--sd-line); color: var(--sd-muted); }
.studio-phone .sd--plaque .sd-pt__char.is-lit { box-shadow: inset 0 2px 0 var(--el-mark), inset 0 0 0 1px var(--sd-accent), 0 0 22px -8px var(--sd-accent); }
.studio-phone .sd--plaque .sd-pt .sd-me,
.studio-phone .chart-card .sd--plaque .sd-pt .sd-me {
  top: 6px; right: 6px; width: 17px; height: 17px; border: 0; border-radius: 3px;
  background: var(--sd-accent); color: var(--sd-on-accent); font-size: 9.5px;
}
/* with every row: 지장간, 12운성, 12신살 under the plaques, each in the pillars' columns under its name on a hairline */
.studio-phone .sd--plaque .sd-pt-rows { margin-top: 6px; }
.studio-phone .sd--plaque .sd-pt-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.studio-phone .sd--plaque .sd-pt-row small {
  display: flex; grid-column: 1 / -1; align-items: center; gap: 10px; margin: 12px 0 7px;
  font-size: 10px; letter-spacing: .14em; color: var(--sd-muted);
}
.studio-phone .sd--plaque .sd-pt-row small::before,
.studio-phone .sd--plaque .sd-pt-row small::after { content: ""; flex: 1; height: 1px; background: var(--sd-line); }
.studio-phone .sd--plaque .sd-pt-row span { min-width: 0; font-size: 12.5px; letter-spacing: .04em; color: var(--sd-ink-2); }

/* 비율 막대 (element_look bars): the element, a rounded bar of its share in its colour, the share and 강함·부족 */
.studio-phone .sd-eb__row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 46px; align-items: center; gap: 10px; min-height: 37px; }
.studio-phone .sd-eb__row > b { font-family: var(--sd-tile-font); font-size: 13px; font-weight: 400; color: var(--sd-ink-2); }
.studio-phone .sd-eb__track { height: 9px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--sd-ink) 5.5%, transparent); }
.studio-phone .sd-eb__track .sd-bar { border-radius: inherit; }
.studio-phone .sd-eb__value { text-align: right; font-size: 11px; color: var(--sd-muted); font-variant-numeric: tabular-nums; }
.studio-phone .sd-eb__value strong { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; color: var(--sd-accent); }
.studio-phone .sd-eb__row.is-dim { opacity: .5; }
/* 비율 막대 · 퍼센트만 (element_look soft): the name in its element's colour with its hanja small, the bar glowing softly */
.studio-phone .sd--soft .sd-eb__row { grid-template-columns: 52px minmax(0, 1fr) 42px; min-height: 34px; }
.studio-phone .sd--soft .sd-eb__row > b { font-family: inherit; font-size: 15px; font-weight: 800; white-space: nowrap; color: color-mix(in oklab, var(--el-mark) 72%, var(--sd-ink)); }
.studio-phone .sd--soft .sd-eb__row > b small { margin-left: 1px; font-family: var(--sd-tile-font); font-size: 10.5px; font-weight: 400; }
.studio-phone .sd--soft .sd-eb__track { height: 8px; }
.studio-phone .sd--soft .sd-eb__track .sd-bar { box-shadow: 0 0 10px color-mix(in srgb, var(--el-mark) 70%, transparent); }
.studio-phone .sd--soft .sd-eb__value { font-size: 12px; font-weight: 700; color: var(--sd-ink-2); }

/* 와인 palette: the numbers and names of every diagram in the serif of its tiles, at a regular weight */
.studio-phone .sd.pal-wine :is(.sd-hero__value, .sd-score span, .sd-dm__text strong, .sd-eight__cell b, .sd-yong b, .sd-lk__head b, .sd-tile, .sd-cell b, .sd-rb__band b) {
  font-family: var(--sd-tile-font); font-weight: 400; letter-spacing: -.03em;
}
.studio-phone .sd.pal-wine :is(.sd-row__value, .sd-hero__value small) { font-weight: 500; }

/* 봉인 카드 (seal) as a result block: its kicker, title and lead, then the example softly blurred under fine lines with
   the seal on a dark pool in the middle, so the shape of what opens shows through */
.studio-phone .block:has(> .teaser--seal) { margin-top: 2.7em; }
.studio-phone .teaser--seal .teaser-kicker { display: block; font-size: .56em; font-weight: 900; letter-spacing: .17em; color: var(--ed-accent); }
.studio-phone .teaser--seal > .block-title {
  margin: .6em 0 0; font-family: var(--ed-serif); font-size: 1.56em; font-weight: var(--phone-title-weight, 700); line-height: 1.55;
  letter-spacing: -.05em; text-align: left; color: var(--ed-heading);
}
.studio-phone .teaser--seal .teaser-lead { margin: .2em 0 .6em; font-family: var(--ed-serif); font-size: .7em; line-height: 1.8; color: var(--ed-muted); }
.studio-phone .teaser--seal .teaser-vault {
  min-height: 15em; border-color: color-mix(in srgb, currentColor 12%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ed-accent) 5.5%, transparent), transparent 38%), color-mix(in srgb, currentColor 2.5%, transparent);
}
.studio-phone .teaser--seal .teaser-vault::before {
  content: ""; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--phone-bg, #fff) 4%, transparent) 0 9px, color-mix(in srgb, currentColor 1.6%, transparent) 9px 18px),
    linear-gradient(180deg, color-mix(in srgb, var(--phone-bg, #fff) 3%, transparent), color-mix(in srgb, var(--phone-bg, #fff) 27%, transparent));
}
.studio-phone .teaser--seal .teaser-vault__under {
  position: relative; inset: auto; z-index: 0; min-height: 15em; padding: 1.95em 1.5em; filter: blur(2.2px); opacity: .74; scale: 1.012;
}
.studio-phone .teaser--seal .teaser-vault__under.preview-image { padding: 0; max-height: 24em; overflow: hidden; }
.studio-phone .teaser--seal .teaser-vault__under.preview-chart figure.sd { padding: 0; border: 0; background: none; box-shadow: none; }
.studio-phone .teaser--seal .teaser-vault__seal {
  position: absolute; inset: 0; z-index: 2; min-height: 0; padding: 1.7em;
  background: radial-gradient(circle at 50% 52%, color-mix(in srgb, var(--phone-bg, #fff) 76%, transparent) 0 25%,
    color-mix(in srgb, var(--phone-bg, #fff) 16%, transparent) 58%, transparent 78%);
}
.studio-phone .teaser--seal .teaser-vault__mark {
  width: 49px; height: 49px; margin: 0 auto .6em; border-color: color-mix(in srgb, var(--ed-glow) 28%, transparent);
  background: color-mix(in srgb, var(--phone-bg, #fff) 78%, transparent); font-size: 17px; box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.studio-phone .teaser--seal .teaser-vault__title { font-size: 1.08em; line-height: 1.55; font-weight: var(--phone-title-weight, 700); }
.studio-phone .teaser--seal .teaser-vault__note { font-size: .58em; line-height: 1.65; color: var(--ed-quiet); }
.studio-phone .teaser--seal .teaser-vault__go { margin-top: .5em; font-size: .54em; font-weight: 800; }
.studio-phone .teaser--seal .teaser-free + .teaser-vault { margin-top: .2em; }

/* 카드 묶음 · 바둑판 in the night: taller cards, each a different faint tint, the big character in the corner */
.studio-phone .cards--grid { gap: 9px; }
.studio-phone .cards--grid .cards__item { min-height: 12.3em; padding: 1.35em 1.1em; border-radius: 0; }
.studio-phone .cards--grid .cards__item:nth-child(4n + 2) { background: color-mix(in srgb, var(--ed-accent) 8%, transparent); }
.studio-phone .cards--grid .cards__item:nth-child(4n + 3) { background: color-mix(in srgb, #a8c3be 6%, transparent); }
.studio-phone .cards--grid .cards__item:nth-child(4n + 4) { background: color-mix(in srgb, #c4a37c 6%, transparent); }
.studio-phone .cards--grid .cards__mark { top: .2em; right: .3em; font-size: 2.6em; color: var(--ed-glow); opacity: .14; }
.studio-phone .cards--grid .cards__kicker { font-size: .5em; font-weight: 900; letter-spacing: .14em; color: var(--ed-accent); }
.studio-phone .cards--grid .cards__title { margin: 1.4em 0 .55em; font-size: 1.12em; line-height: 1.45; font-weight: var(--phone-title-weight, 700); }
.studio-phone .cards--grid .cards__text { font-family: var(--ed-serif); font-size: .58em; line-height: 1.75; }

/* 카드 묶음 · 타임라인: rings joined by a fading line, the last one lit */
.studio-phone .cards--timeline { position: relative; gap: 0; }
.studio-phone .cards--timeline::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 17px; width: 1px;
  background: linear-gradient(var(--ed-accent), color-mix(in srgb, var(--ed-accent) 8%, transparent));
}
.studio-phone .cards--timeline .cards__item { overflow: visible; min-height: 7.4em; padding: 0 0 1.8em 53px; border: 0; background: none; }
.studio-phone .cards--timeline .cards__item:last-child { min-height: 0; padding-bottom: 0; }
.studio-phone .cards--timeline :is(.cards__mark, .cards__ring) {
  position: absolute; z-index: 1; top: 0; left: 0; display: grid; place-items: center; width: 35px; height: 35px; margin: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ed-accent) 34%, transparent); background: var(--phone-bg, #171014);
  font-family: var(--ed-serif); font-size: 12px; color: var(--ed-glow); opacity: 1;
}
.studio-phone .cards--timeline .cards__item:last-child :is(.cards__mark, .cards__ring) {
  background: var(--ed-accent); color: var(--phone-on-accent, #251318); box-shadow: 0 0 0 7px color-mix(in srgb, var(--ed-accent) 10%, transparent);
}
.studio-phone .cards--timeline .cards__kicker { margin-bottom: .55em; font-size: .52em; font-weight: 800; letter-spacing: .12em; color: var(--ed-quiet); }
.studio-phone .cards--timeline .cards__title { margin: 0 0 .3em; font-size: 1.12em; line-height: 1.45; font-weight: var(--phone-title-weight, 700); }
.studio-phone .cards--timeline .cards__text { font-family: var(--ed-serif); font-size: .64em; line-height: 1.7; }

/* 카드 묶음 · 큰 카드 하나: the first card large in gold, the others' titles as # tags under it */
.studio-phone .cards--feature .cards__feature {
  padding: 1.75em 1.4em; border: 1px solid color-mix(in srgb, var(--ed-gold) 22%, transparent); border-radius: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--ed-gold) 10%, transparent), color-mix(in srgb, currentColor 2%, transparent));
}
.studio-phone .cards__feature .cards__kicker { margin: 0; font-size: .54em; font-weight: 900; letter-spacing: .16em; color: var(--ed-accent); }
.studio-phone .cards__feature .cards__title {
  margin: 1em 0 .55em; font-size: 1.5em; line-height: 1.45; font-weight: var(--phone-title-weight, 700);
  color: color-mix(in srgb, var(--ed-gold) 55%, var(--ed-heading));
}
.studio-phone .cards__feature .cards__text { font-family: var(--ed-serif); font-size: .7em; line-height: 1.8; }
.studio-phone .cards__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 1.2em; }
.studio-phone .cards__tags span {
  padding: .7em .9em; border: 1px solid color-mix(in srgb, var(--ed-gold) 20%, transparent); border-radius: 999px;
  font-size: .52em; line-height: 1.2; color: color-mix(in srgb, var(--ed-gold) 88%, var(--ed-heading));
}

/* 카드 묶음 · 한 줄씩: a card with no character or icon is a note set off by a line on its left */
.studio-phone .cards--list .cards__item.is-note {
  display: block; padding: 1.05em 1.15em; border: 0; border-left: 2px solid color-mix(in srgb, var(--ed-accent) 55%, #3a0a1a);
  background: color-mix(in srgb, var(--ed-accent) 8%, transparent);
}
.studio-phone .cards--list .is-note .cards__kicker { margin-bottom: .45em; font-size: .52em; font-weight: 900; letter-spacing: .14em; color: color-mix(in srgb, var(--ed-accent) 80%, var(--ed-text)); }
.studio-phone .cards--list .is-note .cards__title { font-size: .86em; }
.studio-phone .cards--list .is-note .cards__text { font-family: var(--ed-serif); font-size: .66em; }

/* 결제 카드 · 밤 카드: a spaced kicker, a check list between hairlines, quiet price rows and a lit button */
.studio-phone .offer--night {
  gap: 0; padding: 1.95em 1.45em 1.6em; border: 1px solid color-mix(in srgb, var(--ed-accent) 24%, transparent); border-radius: 0;
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--ed-accent) 12%, transparent), transparent 40%), color-mix(in srgb, currentColor 3.5%, transparent);
  box-shadow: none; color: var(--ed-text);
}
.studio-phone .offer--night .offer-kicker { font-size: .54em; font-weight: 900; letter-spacing: .16em; color: var(--ed-accent); }
.studio-phone .offer--night .block-title {
  margin: .75em 0 .4em; font-family: var(--ed-serif); font-size: 1.45em; font-weight: var(--phone-title-weight, 700); line-height: 1.5;
  letter-spacing: -.03em; text-align: left; color: var(--ed-heading);
}
.studio-phone .offer--night .offer-volume { margin: .3em 0 0; padding: .5em .8em; background: color-mix(in srgb, var(--ed-accent) 12%, transparent); color: var(--ed-glow); font-size: .62em; }
.studio-phone .offer--night .offer-bullets {
  display: grid; gap: .95em; margin: 1.5em 0; padding: 1.15em 0; list-style: none;
  border-top: 1px solid var(--ed-line); border-bottom: 1px solid var(--ed-line);
}
.studio-phone .offer--night .offer-bullets li { display: flex; gap: .75em; margin: 0; font-size: .66em; line-height: 1.55; color: color-mix(in srgb, var(--ed-text) 88%, transparent); }
.studio-phone .offer--night .offer-bullets li::before { content: "\2713"; flex: none; color: var(--ed-accent); }
.studio-phone .offer--night :is(.offer-price, .offer-compare) { padding: .2em 0 1em; border-radius: 0; background: none; }
.studio-phone .offer--night .offer-row { font-size: .72em; color: var(--ed-muted); }
.studio-phone .offer--night .offer-row s { color: var(--ed-quiet); }
.studio-phone .offer--night .offer-row.is-off b { color: var(--ed-glow); }
.studio-phone .offer--night .offer-row.is-final { border-top-color: var(--ed-line); }
.studio-phone .offer--night .offer-row.is-final strong { font-family: var(--ed-serif); font-weight: 400; color: var(--ed-heading); }
.studio-phone .offer--night .btn {
  min-height: 62px; display: grid; place-items: center; padding: 0 16px; border-radius: 18px; font-size: 15px; font-weight: 800;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ed-accent) 92%, #fff), color-mix(in srgb, var(--ed-accent) 45%, #3a0a1a));
  color: #fff; box-shadow: 0 16px 34px color-mix(in srgb, var(--ed-accent) 30%, rgba(0, 0, 0, .4));
}
.studio-phone .offer--night :is(.caption, .offer-refund) { margin-top: .9em; font-size: .56em; line-height: 1.6; text-align: center; color: var(--ed-quiet); }

/* 넘어가는 문장 (blocks._sequence): the opening lines take turns on one screen, timed here alone. Each line comes in at
   --in and leaves at --out; the dashes follow; the quiet line gives way to the button when the last line comes in. */
.studio-phone .screen.layout-fit .zone-middle > .block-sequence:only-child { flex: 1; display: flex; flex-direction: column; margin: 0; }
.studio-phone .block-sequence .block-mark { font-size: 208px; rotate: -7deg; opacity: .04; }
.studio-phone .block-sequence .block-mark.mark-bottom_right { bottom: 20%; right: -.14em; }
.studio-phone .seq { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 28em; color: #fffaf2; text-align: center; }
.play-phone .seq:not(.is-skipped) { cursor: pointer; } /* a tap brings the next line (flow-player.js) */
/* a tap anywhere on a playing screen (the next line, a tap-to-go-on screen) flashes no grey box over it on a phone */
.studio-phone.play-phone { -webkit-tap-highlight-color: transparent; }
.studio-phone .seq__skip {
  position: absolute; z-index: 2; top: -.6em; right: -.2em; padding: .7em .2em; border: 0; background: none; color: rgba(255, 246, 240, .62);
  font: inherit; font-size: 11px; letter-spacing: .04em; cursor: pointer; animation: seq-out .3s ease var(--seq-last) forwards;
}
.studio-phone .seq__stage { flex: 1; display: grid; place-items: center; padding: 3.2em .6em 2em; }
.studio-phone .seq.text-bottom .seq__stage { place-items: end center; padding-bottom: .2em; } /* the picture stays clear above */
.studio-phone .seq__slide {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; opacity: 0;
  animation: seq-in .85s cubic-bezier(.18, .72, .2, 1) var(--in) both, seq-out .52s ease var(--out) forwards;
}
.studio-phone .seq__slide.is-last { animation: seq-in .85s cubic-bezier(.18, .72, .2, 1) var(--in) both; }
.studio-phone .seq__kicker {
  display: block; margin-bottom: 18px; font-family: var(--phone-body-font, inherit); font-size: 10px; font-weight: 700; letter-spacing: .22em;
  color: var(--ed-glow); text-shadow: 0 2px 15px rgba(0, 0, 0, .45);
}
.studio-phone .seq__title {
  display: flex; flex-direction: column; align-items: center; margin: 0; font-family: var(--phone-title-font, serif); font-size: clamp(62px, 21cqi, 92px);
  font-weight: 400; line-height: .98; letter-spacing: -.08em; color: #fffaf2; text-shadow: 0 6px 32px rgba(20, 5, 10, .68);
}
.studio-phone .seq__title span:last-child:not(:first-child) { color: var(--ed-glow); }
.studio-phone .seq__line {
  margin: 0; font-family: var(--phone-title-font, serif); font-size: clamp(23px, 7cqi, 32px); font-weight: 400; line-height: 1.52;
  letter-spacing: -.05em; color: #fffaf2; text-shadow: 0 5px 24px rgba(0, 0, 0, .72);
}
.studio-phone .seq__final p { margin: 0 0 12px; font-family: var(--phone-title-font, serif); font-size: 16px; line-height: 1.4; color: rgba(255, 250, 245, .78); }
.studio-phone .seq__final h2 {
  margin: 0; font-family: var(--phone-title-font, serif); font-size: clamp(38px, 11.5cqi, 56px); font-weight: 400; line-height: 1.12;
  letter-spacing: -.075em; color: #fffaf2; text-shadow: 0 5px 28px rgba(0, 0, 0, .62);
}
.studio-phone .seq__foot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 150px; padding: 14px 0 50px; }
.studio-phone .seq__dots { display: flex; gap: 5px; height: 2px; margin-bottom: 22px; }
.studio-phone .seq__dots span {
  width: 18px; height: 2px; border-radius: 999px; background: rgba(255, 255, 255, .18);
  animation: seq-dot .35s ease var(--in) forwards, seq-dot-off .35s ease var(--out) forwards;
}
.studio-phone .seq__dots span.is-last { animation: seq-dot .35s ease var(--in) forwards; }
.studio-phone .seq__end { display: grid; width: 100%; min-height: 58px; }
.studio-phone .seq__end > * { grid-area: 1 / 1; }
.studio-phone .seq__waiting { display: grid; place-items: center; font-size: 11px; letter-spacing: .04em; color: rgba(255, 245, 239, .5); animation: seq-out .4s ease var(--seq-last) forwards; }
/* the words are light for a film or picture behind them; on a screen with neither, they take the theme's own colours
   (a bright mood's dark ink), with no shadow */
.studio-phone .screen:not(.has-media):not(.continues) .seq,
.studio-phone .screen:not(.has-media):not(.continues) .seq :is(.seq__title, .seq__line, .seq__final h2) { color: var(--phone-heading, inherit); text-shadow: none; }
.studio-phone .screen:not(.has-media):not(.continues) .seq__waiting { color: color-mix(in srgb, var(--phone-text, currentColor) 60%, transparent); }
.studio-phone .seq .btn.seq__go {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; margin: 0; padding: 0 9px 0 22px;
  border: 1px solid rgba(255, 245, 237, .28); border-radius: 999px; background: color-mix(in srgb, var(--ed-accent) 8%, #fff6f2);
  color: color-mix(in srgb, var(--ed-accent) 22%, #2a0c16); font-family: var(--phone-body-font, inherit); font-size: 14.5px; font-weight: 800;
  box-shadow: 0 16px 50px rgba(34, 7, 15, .34); animation: seq-show .7s cubic-bezier(.2, .75, .2, 1) calc(var(--seq-last) + .25s) both;
}
.studio-phone .seq__go i {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 17px; font-style: normal; color: #fff;
  background: color-mix(in srgb, var(--ed-accent) 22%, #3e1222);
}
/* 가운데 아래 빛: a hairline at the bottom centre that a small light runs down, again and again */
.studio-phone .seq__cue {
  position: absolute; left: 50%; bottom: 4px; width: 14px; height: 38px; translate: -50% 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .34), rgba(255, 255, 255, .34)) center / 1px 100% no-repeat;
  -webkit-mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.studio-phone .seq__cue::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 12px; border-radius: 2px; translate: -50% -12px;
  background: linear-gradient(transparent, #fff); box-shadow: 0 0 6px 1px rgba(255, 238, 242, .85), 0 0 14px 3px color-mix(in srgb, var(--ed-accent) 45%, transparent);
  animation: seq-cue 1.8s ease-in-out infinite;
}
.studio-phone .seq.is-skipped .seq__slide:not(.is-last), .studio-phone .seq.is-skipped :is(.seq__waiting, .seq__skip) { animation: none; opacity: 0; visibility: hidden; }
.studio-phone .seq.is-skipped .seq__slide.is-last { animation: seq-in .6s cubic-bezier(.18, .72, .2, 1) both; }
.studio-phone .seq.is-skipped .seq__dots span { animation: none; }
.studio-phone .seq.is-skipped .seq__dots span.is-last { width: 34px; background: var(--ed-glow); }
.studio-phone .seq.is-skipped .btn.seq__go { animation: seq-show .6s cubic-bezier(.2, .75, .2, 1) .15s both; }
@keyframes seq-in { from { opacity: 0; translate: 0 14px; filter: blur(7px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes seq-out { to { opacity: 0; translate: 0 -8px; visibility: hidden; } }
@keyframes seq-show { from { opacity: 0; translate: 0 12px; visibility: hidden; } to { opacity: 1; translate: 0 0; visibility: visible; } }
@keyframes seq-dot { to { width: 34px; background: var(--ed-glow); } }
@keyframes seq-dot-off { from { width: 34px; background: var(--ed-glow); } to { width: 18px; background: rgba(255, 255, 255, .18); } }
@keyframes seq-cue { from { translate: -50% -12px; } to { translate: -50% 42px; } }

@media (prefers-reduced-motion: reduce) {
  .studio-phone .seq__slide:not(.is-last), .studio-phone .seq__waiting { display: none; }
  .studio-phone .seq__slide.is-last, .studio-phone .seq .btn.seq__go, .studio-phone .seq__dots span, .studio-phone .seq__skip { animation: none; opacity: 1; visibility: visible; }
  .studio-phone .seq__skip { display: none; }
  .studio-phone .seq__cue::after, .studio-phone .text-cue::after, .studio-phone .text-meter .meter__track i { animation: none; }
}

/* ---- Editorial night III: a night story laid out in whole sections. Bands of colour that run edge to edge (one text
   box over several blocks), a soft light at the top of a band, chapter heads with a small line under the kicker,
   pills three to a row, a brand seal with its name, rows split by hairlines, cards like the prototype's, a quote
   with a serif mark, and the contents with a face for each of the character's words. -------------------------- */

/* 한 띠로 잇기 (presenter: join_prev / join_next): full-width blocks on the same text box run on as one band */
.studio-phone .boxed.pad-section { --box-pad: 78px 22px 84px; }
.studio-phone .boxed:is(.join-next, .join-prev) { display: flow-root; } /* no margin of the words inside slips out between them */
.studio-phone .boxed.join-next { margin-bottom: 0; padding-bottom: 0; }
.studio-phone .boxed.join-prev, .studio-phone .block.block-panel + .boxed.join-prev { margin-top: 0; padding-top: 36px; }
.studio-phone .boxed.rounded.join-next { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.studio-phone .boxed.rounded.join-prev { border-top-left-radius: 0; border-top-right-radius: 0; }
.studio-phone .boxed.join-prev > .box-tex:is(.tex-glow, .tex-corner, .tex-halo), .studio-phone .boxed.join-prev > .block-mark { display: none; }
/* things that fill the width edge to edge sit flush, one after another, like the sections of a long page */
.studio-phone :is(.block.boxed.full, .block:has(> .full, > .fx-frame.full, > .media-blur.full)):has(+ :is(.block.boxed.full, .block:has(> .full, > .fx-frame.full, > .media-blur.full))) { margin-bottom: 0; }
/* 위 가운데 은은한 빛 · 오른쪽 위 은은한 빛 (box textures): the accent, deepened, glowing from the band's top */
.studio-phone .box-tex:is(.tex-glow, .tex-corner, .tex-halo) { mix-blend-mode: normal; }
/* 위 가운데 큰 동그라미 무늬: a large hairline circle rising from the top edge, two soft rings round it */
.studio-phone .box-tex.tex-halo { overflow: hidden; }
.studio-phone .box-tex.tex-halo::before {
  content: ""; position: absolute; top: -200px; left: 50%; width: 430px; height: 430px; translate: -50% 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, color-mix(in srgb, var(--phone-accent, #14806a) 50%, #2a0612) 13%, transparent);
  box-shadow: 0 0 0 48px color-mix(in srgb, color-mix(in srgb, var(--phone-accent, #14806a) 50%, #2a0612) 2.5%, transparent),
    0 0 0 94px color-mix(in srgb, color-mix(in srgb, var(--phone-accent, #14806a) 50%, #2a0612) 1.8%, transparent);
}
.studio-phone .box-tex.tex-glow { background: radial-gradient(circle at 50% 0, color-mix(in srgb, color-mix(in srgb, var(--phone-accent, #14806a) 50%, #2a0612) 34%, transparent), transparent 30%); }
.studio-phone .box-tex.tex-corner { background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--phone-accent, #14806a) 16%, transparent), transparent 33%); }

/* 구역 머리 · a second line under the kicker (the title's next line) */
.studio-phone .text-section .block-title small {
  display: block; margin-top: 1.9em; font-family: var(--ed-serif); font-size: 1.12em; font-weight: 500; letter-spacing: 0; line-height: 1.7;
  color: color-mix(in srgb, var(--ed-text) 82%, transparent);
}
.studio-phone .text-section .md hr { margin: 1.6em 0 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--ed-glow) 16%, transparent); }
.studio-phone .text-section .md hr + p { margin-top: 1.3em; }

/* 알약 묶음: wide pills, three to a row, the rest centred under them */
.studio-phone .text-pills .md-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 7px; max-width: 390px; margin: 0 auto; padding: 0; list-style: none; }
.studio-phone .text-pills .md-lines li {
  flex: 0 0 calc((100% - 14px) / 3); box-sizing: border-box; display: grid; place-items: center; min-height: 44px; padding: 10px 6px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent); background: color-mix(in srgb, currentColor 3%, transparent);
  font-size: 11px; line-height: 1.2; white-space: nowrap; color: color-mix(in srgb, var(--ed-text) 84%, transparent);
}

/* 인장과 이름: the title's character in a round seal, the body a big brush name, a hairline running through both */
.studio-phone .text-brand {
  --brand-ink: color-mix(in srgb, var(--ed-accent) 42%, #2a0a14);
  position: relative; display: flex; align-items: center; justify-content: center; gap: 21px; min-height: 116px; padding: 12px 0;
  color: var(--ed-heading);
}
.studio-phone .text-brand::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand-ink) 30%, transparent) 18% 82%, transparent);
}
.studio-phone .text-brand .block-title {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 70px; height: 70px; margin: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand-ink) 65%, transparent); background: var(--box-color, var(--phone-bg, #fff)); color: var(--brand-ink);
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--brand-ink) 4%, transparent), 0 0 0 8px var(--box-color, var(--phone-bg, #fff)),
    0 0 0 9px color-mix(in srgb, var(--brand-ink) 12%, transparent);
  font-family: var(--ed-serif); font-size: 25px; font-weight: 400; line-height: 1; letter-spacing: 0;
}
.studio-phone .text-brand .md { position: relative; z-index: 1; padding: 9px 17px 12px 10px; background: var(--box-color, var(--phone-bg, #fff)); }
.studio-phone .text-brand .md p { margin: 0; font-family: var(--ed-serif); font-size: 43px; font-weight: 400; line-height: 1; letter-spacing: -.1em; white-space: nowrap; -webkit-text-stroke: .5px currentColor; }
.studio-phone .text-brand .md strong { margin-left: 5px; font-weight: inherit; color: color-mix(in srgb, var(--ed-accent) 62%, #2a0a14); }

/* 동그라미 숫자 as orbits: two hairline rings, the figure bold in the deep accent, the line small under it */
.studio-phone .text-rings .md-lines { gap: 0; }
.studio-phone .text-rings .md-lines li {
  flex: 0 0 137px; width: 137px; padding: 0 18px; border-color: color-mix(in srgb, var(--ed-heading) 26%, transparent);
  font-size: 9px; line-height: 1.55; color: color-mix(in srgb, var(--ed-text) 85%, transparent);
}
.studio-phone .text-rings .md-lines li::after { content: ""; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--ed-accent) 22%, transparent); border-radius: inherit; }
.studio-phone .text-rings .md-lines li + li { margin-left: 34px; }
.studio-phone .text-rings .md-lines li + li::before { left: -23px; font-family: var(--ed-serif); font-size: 20px; color: color-mix(in srgb, var(--ed-accent) 62%, var(--ed-heading)); }
.studio-phone .text-rings .md-lines strong {
  margin-bottom: 9px; font-family: var(--ed-serif); font-size: 27px; font-weight: 700; line-height: 1;
  color: color-mix(in srgb, var(--ed-accent) 42%, var(--ed-heading));
}
/* three or more rings share the width instead of running off the screen (two keep their full size) */
.studio-phone .text-rings .md-lines li { flex: 1 1 0; width: auto; max-width: 137px; min-width: 0; box-sizing: border-box; }

/* 동그라미 숫자 as steps (style class is-steps): filled rings close together, a short line between them, the line bold */
.studio-phone .block.is-steps .text-rings .md-lines li {
  padding: 0 6px; border-color: color-mix(in srgb, var(--ed-accent) 40%, transparent);
  background: color-mix(in srgb, var(--box-color, #fffaf7) 70%, #fff);
  box-shadow: inset 0 0 0 5px color-mix(in srgb, #fff 50%, transparent), 0 9px 22px color-mix(in srgb, var(--ed-accent) 9%, transparent);
  font-size: 12.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.04em; white-space: nowrap; color: var(--ed-heading);
}
.studio-phone .block.is-steps .text-rings .md-lines li:nth-child(2) { border-color: color-mix(in srgb, var(--ed-accent) 62%, transparent); background: color-mix(in srgb, var(--ed-accent) 8%, var(--box-color, #fffaf7)); }
.studio-phone .block.is-steps .text-rings .md-lines li::after { content: none; }
.studio-phone .block.is-steps .text-rings .md-lines li + li { margin-left: 19px; }
.studio-phone .block.is-steps .text-rings .md-lines li + li::before {
  content: ""; left: -15px; width: 11px; height: 1px; background: color-mix(in srgb, var(--ed-accent) 60%, transparent);
}
.studio-phone .block.is-steps .text-rings .md-lines strong { margin-bottom: 5px; font-family: Georgia, var(--ed-serif); font-size: 25px; color: var(--ed-accent); }

/* 한마디 카드 in a band whose titles are centred: its small kicker stays on the left with the words */
.studio-phone .text-aside .block-title { text-align: left; }

/* 카드 묶음 · 한 줄씩 as the prototype's pattern cards: a soft gradient card, the character's ring in the left margin */
.studio-phone .cards--list { gap: 11px; }
.studio-phone .cards--list .cards__item:not(.is-note) {
  display: block; padding: 24px 20px 22px 78px; border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: 0;
  background: linear-gradient(125deg, color-mix(in srgb, currentColor 7%, transparent), color-mix(in srgb, currentColor 2.5%, transparent));
}
.studio-phone .cards--list .cards__item:not(.is-note) :is(.cards__mark, .cards__ring) {
  position: absolute; top: 23px; left: 19px; width: 42px; height: 42px; border-color: color-mix(in srgb, var(--ed-glow) 40%, transparent);
  font-family: var(--ed-serif); font-size: 17px; color: var(--ed-glow);
}
.studio-phone .cards--list .cards__item:not(.is-note) .cards__kicker { margin: 0; font-size: 9px; font-weight: 900; letter-spacing: .18em; color: var(--ed-accent); }
.studio-phone .cards--list .cards__item:not(.is-note) .cards__title { margin: 8px 0 7px; font-family: var(--ed-serif); font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ed-heading); }
.studio-phone .cards--list .cards__item:not(.is-note) .cards__text { font-family: var(--ed-serif); font-size: 11.5px; line-height: 1.75; color: var(--ed-muted); }

/* 카드 묶음 · 선으로 나눈 줄: no boxes, a hairline under each row, a small ring for the icon or the character */
.studio-phone .cards--rows { gap: 0; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.studio-phone .cards--rows .cards__item {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 113px; padding: 21px 0;
  border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); border-radius: 0; background: none; overflow: visible;
}
/* a row with no ring (no icon or character): its words take the whole width */
.studio-phone .cards--rows .cards__item:not(.has-mark) { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.studio-phone .cards--rows :is(.cards__mark, .cards__ring) {
  position: static; display: grid; place-items: center; width: 34px; height: 34px; margin: 0; border-radius: 50%; opacity: 1;
  border: 1px solid color-mix(in srgb, var(--ed-glow) 30%, transparent); font-family: var(--ed-serif); font-size: 15px; color: var(--ed-glow);
}
.studio-phone .cards--rows .cards__kicker { margin-bottom: .4em; font-size: 9px; font-weight: 900; letter-spacing: .14em; color: var(--ed-accent); }
.studio-phone .cards--rows .cards__title { margin: 0; font-family: var(--ed-serif); font-size: 15px; font-weight: 400; line-height: 1.45; color: var(--ed-heading); }
.studio-phone .cards--rows .cards__text { margin-top: 8px; font-size: 11px; line-height: 1.72; color: var(--ed-muted); }

/* 카드 묶음 · 바둑판 as the prototype's reading points: taller cards, each its own faint tint, the character large in the corner */
.studio-phone .cards--grid .cards__item { min-height: 175px; padding: 20px 17px; border-color: color-mix(in srgb, currentColor 12%, transparent); background: color-mix(in srgb, currentColor 3.5%, transparent); }
.studio-phone .cards--grid .cards__item:nth-child(4n + 2) { background: color-mix(in srgb, color-mix(in srgb, var(--ed-accent) 45%, #3a0a1a) 12%, transparent); }
.studio-phone .cards--grid .cards__item:nth-child(4n + 3) { background: color-mix(in srgb, var(--ed-accent) 10%, transparent); }
.studio-phone .cards--grid .cards__item:nth-child(4n + 4) { background: color-mix(in srgb, #a8c3be 8%, transparent); }
.studio-phone .cards--grid .cards__mark { top: 10px; right: 12px; font-size: 44px; opacity: .12; }
.studio-phone .cards--grid .cards__kicker { margin: 0; font-size: 9px; font-weight: 900; letter-spacing: .18em; color: var(--ed-accent); }
.studio-phone .cards--grid .cards__title { margin: 26px 0 9px; font-size: 23px; line-height: 1.3; }
.studio-phone .cards--grid .cards__text { font-size: 11px; line-height: 1.7; }

/* 큰따옴표 as the prototype's quote: a large serif mark in the accent, the lines big and light, the source small and spaced */
.studio-phone .text-pullquote::before {
  height: auto; margin: 0 0 6px; font-family: var(--ed-serif); font-size: 54px; font-weight: 400; line-height: 1; color: var(--ed-accent);
}
.studio-phone .text-pullquote .md { font-family: var(--ed-serif); font-size: 1.44em; font-weight: var(--phone-title-weight, 600); line-height: 1.8; letter-spacing: -.05em; color: var(--ed-heading); }
.studio-phone .text-pullquote .block-title { margin: 1.5em 0 0; font-family: var(--box-body-font, var(--phone-body-font, inherit)); font-size: 9px; font-weight: 400; letter-spacing: .18em; opacity: 1; color: var(--ed-quiet); }
.studio-phone .text-pullquote .block-title::before { content: none; }

/* 목차 as the prototype's contents book: warm paper (a faint tint of the accent, so it takes the mood), an inner rule, the groups split by hairlines, a face for each word */
.studio-phone .contents {
  padding: 32px 22px 27px; border: 1px solid color-mix(in srgb, var(--ed-accent) 30%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--ed-accent) 6%, #f3ece5), color-mix(in srgb, var(--ed-accent) 11%, #e2d8d0)); box-shadow: 0 22px 55px rgba(0, 0, 0, .28), inset 0 0 0 8px transparent;
}
.studio-phone .contents::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(112, 63, 77, .2); pointer-events: none; }
.studio-phone .contents::before { width: 44px; height: 3px; border-radius: 0; background: color-mix(in srgb, var(--ed-accent) 55%, #1c1418); }
.studio-phone .contents__kicker { font-size: 9px; font-weight: 900; letter-spacing: .14em; color: color-mix(in srgb, var(--ed-accent) 55%, #1c1418); }
.studio-phone .contents__title { margin: 9px 0 4px; padding-bottom: 25px; font-size: 27px; line-height: 1.42; border-bottom-color: rgba(66, 38, 47, .2); }
.studio-phone .contents__part { padding: 25px 2px 22px; border-bottom: 1px solid rgba(66, 38, 47, .16); }
.studio-phone .contents__part + .contents__part { margin-top: 0; padding-top: 25px; border-top: 0; }
.studio-phone .contents__part:last-of-type { border-bottom: 0; }
.studio-phone .contents__head { margin: 0 0 17px; font-size: 16px; font-weight: 700; line-height: 1.45; color: color-mix(in srgb, var(--ed-accent) 50%, #1c1418); }
.studio-phone .contents__list { gap: 14px; }
.studio-phone .contents__list li { display: grid; grid-template-columns: 30px 1fr; gap: 7px; font-size: 13px; line-height: 1.6; color: #4f3e43; }
.studio-phone .contents__list li span { font-size: 10px; font-weight: 700; line-height: 1.9; color: #a77a87; }
.studio-phone .contents__word { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; margin: 22px -2px -22px; padding: 19px 2px; border-top: 1px solid rgba(66, 38, 47, .16); }
.studio-phone .contents__word.is-right { grid-template-columns: 1fr 56px; flex-direction: row; }
.studio-phone .contents__word.is-right img, .studio-phone .contents__word.is-right .contents__face { grid-column: 2; }
.studio-phone .contents__word.is-right figcaption { grid-column: 1; grid-row: 1; }
.studio-phone .contents__word img, .studio-phone .contents__face {
  width: 56px; height: 56px; border: 2px solid color-mix(in srgb, var(--ed-accent) 34%, transparent); background: #d9c9c4;
  object-position: 50% 30%; box-shadow: 0 5px 14px rgba(61, 35, 43, .13);
}
.studio-phone .contents__word figcaption {
  position: relative; padding: 14px 15px 15px; border: 1px solid rgba(90, 57, 67, .15); border-radius: 15px;
  background: rgba(255, 252, 248, .82); box-shadow: 0 7px 17px rgba(61, 35, 43, .07); font-family: var(--ed-serif); font-size: 12px; line-height: 1.65; color: #49383e;
}
.studio-phone .contents__word figcaption::before {
  content: ""; position: absolute; top: 50%; left: -6px; width: 10px; height: 10px; translate: 0 -50%; rotate: 45deg; background: #f6eee8;
  border-bottom: 1px solid rgba(90, 57, 67, .15); border-left: 1px solid rgba(90, 57, 67, .15);
}
.studio-phone .contents__word.is-right figcaption::before { left: auto; right: -6px; border: 0; border-top: 1px solid rgba(90, 57, 67, .15); border-right: 1px solid rgba(90, 57, 67, .15); }
.studio-phone .contents__word figcaption small { margin-bottom: 7px; font-family: var(--box-body-font, var(--phone-body-font, inherit)); font-size: 9px; font-weight: 900; color: color-mix(in srgb, var(--ed-accent) 55%, #1c1418); }
.studio-phone .contents__note { margin: 20px 0 0; padding: 15px 14px; border-color: color-mix(in srgb, var(--ed-accent) 22%, transparent); background: color-mix(in srgb, var(--ed-accent) 7%, transparent); font-size: 10px; line-height: 1.7; color: #765e65; }

/* 목차 · 옛 책 (look "book"): a page of an old bound book. Warm hanji with a fine grain inside a double frame (a heavy
   rule outside, a fine one inside), a seal for the word "목차", the title over a black fish-tail mark and the note
   under one turned the other way, each group's numeral in a vermilion seal, the chapters along a ruled line with
   their numbers in vermilion, and the character's word on a slip tucked into the page with her face small beside it.
   The paper and ink stay the same on any mood: it reads as a sheet laid on the page. */
.studio-phone .contents.contents--book {
  --bk-paper: #f3ede0; --bk-slip: #fbf7ee; --bk-ink: #2b2620; --bk-text: #4a4239; --bk-quiet: #8c8173; --bk-red: #a8402c;
  --bk-line: rgba(43, 38, 32, .17);
  padding: 30px 24px 26px; border: 2px solid var(--bk-ink); border-radius: 0; color: var(--bk-text);
  background: radial-gradient(130% 70% at 50% 0%, rgba(255, 255, 255, .6), transparent 62%), var(--bk-paper);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .34);
}
.studio-phone .contents.contents--book::before {
  inset: 0; top: 0; left: 0; width: auto; height: auto; translate: none; border-radius: 0; opacity: .07; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 200px;
  pointer-events: none;
}
.studio-phone .contents.contents--book::after { inset: 5px; border: 1px solid rgba(43, 38, 32, .55); }
.studio-phone .contents--book .contents__kicker {
  display: table; margin: 0 auto 14px; padding: 7px 5px; border-radius: 3px; writing-mode: vertical-rl;
  background: radial-gradient(circle at 30% 25%, #bb4c33, var(--bk-red) 70%); box-shadow: inset 0 0 0 1.5px rgba(246, 238, 224, .4);
  font-family: var(--ed-serif); font-size: 12px; font-weight: 400; letter-spacing: .14em; color: #f6eee0;
}
.studio-phone .contents--book .contents__title {
  position: relative; margin: 0 0 4px; padding: 0 0 24px; border: 0; text-align: center; font-family: var(--ed-serif);
  font-size: 25px; font-weight: 400; line-height: 1.35; letter-spacing: .05em; color: var(--bk-ink);
}
.studio-phone .contents--book .contents__title::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--bk-line) 18%, var(--bk-line) 82%, transparent);
}
.studio-phone .contents--book .contents__title::after,
.studio-phone .contents--book .contents__note::before {
  content: ""; display: block; width: 22px; height: 11px; background: var(--bk-ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 45%, 0 100%);
}
.studio-phone .contents--book .contents__title::after { position: absolute; left: 50%; bottom: 0; translate: -50% 0; }
.studio-phone .contents.contents--book .contents__part { margin: 0; padding: 20px 2px 18px; border: 0; border-top: 1px solid var(--bk-line); }
.studio-phone .contents.contents--book .contents__part:first-of-type { padding-top: 16px; border-top: 0; }
.studio-phone .contents--book .contents__head {
  display: flex; align-items: center; gap: 11px; margin: 0 0 12px; font-family: var(--ed-serif); font-size: 17px; font-weight: 700;
  line-height: 1.4; color: var(--bk-ink);
}
.studio-phone .contents--book .contents__head span {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 3px; rotate: -3deg;
  background: radial-gradient(circle at 30% 25%, #bb4c33, var(--bk-red) 70%); box-shadow: inset 0 0 0 1.5px rgba(246, 238, 224, .4);
  font-size: 15px; font-weight: 400; color: #f6eee0;
}
.studio-phone .contents--book .contents__head span::after { content: none; }
.studio-phone .contents--book .contents__list {
  display: grid; gap: 10px; padding: 2px 0; background: linear-gradient(var(--bk-line), var(--bk-line)) 40px 0 / 1px 100% no-repeat;
}
.studio-phone .contents--book .contents__list li {
  display: grid; grid-template-columns: 40px 1fr; align-items: baseline; gap: 0 12px; font-family: var(--ed-serif); font-size: 14.5px;
  line-height: 1.5; color: var(--bk-text);
}
.studio-phone .contents--book .contents__list li span {
  font-family: var(--ed-serif); font-size: 12px; font-weight: 700; line-height: inherit; letter-spacing: .02em; color: var(--bk-red);
}
.studio-phone .contents.contents--book .contents__word {
  display: flex; align-items: center; gap: 11px; margin: 16px 2px 0; padding: 10px 13px; border: 1px solid rgba(43, 38, 32, .12);
  background: var(--bk-slip); box-shadow: 0 7px 14px -10px rgba(40, 25, 10, .5); rotate: -.7deg;
}
.studio-phone .contents.contents--book .contents__word.is-right { flex-direction: row; rotate: .7deg; }
.studio-phone .contents.contents--book .contents__word :is(img, .contents__face) {
  flex: none; width: 34px; height: 34px; border: 1px solid rgba(43, 38, 32, .3); box-shadow: none; grid-column: auto;
}
.studio-phone .contents.contents--book .contents__word figcaption {
  flex: 1; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; grid-column: auto; grid-row: auto;
  font-family: var(--box-body-font, var(--phone-body-font, inherit)); font-size: 12.5px; line-height: 1.65; color: var(--bk-text);
}
.studio-phone .contents.contents--book .contents__word figcaption::before { content: none; }
.studio-phone .contents.contents--book .contents__word figcaption small {
  margin: 0 0 1px; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--bk-red);
}
.studio-phone .contents.contents--book .contents__note {
  margin: 20px 0 0; padding: 0; border: 0; background: none; text-align: center; font-size: 11px; line-height: 1.7; color: var(--bk-quiet);
}
.studio-phone .contents--book .contents__note::before { margin: 0 auto 12px; clip-path: polygon(50% 55%, 100% 0, 100% 100%, 0 100%, 0 0); }

/* 목차 · 웹툰 회차 (look "episodes"): a webtoon's episode list laid straight on the page in the theme's own colours, so
   it sits on a dark page or a light one. The title over a hairline; each group under a slim head (its numeral in a
   fine accent square, the range of its chapters at the right) with the character's word in one line beside her small
   face; then a row per chapter: a square picture, its number in the accent, its title in the serif, the line of what
   it opens and a small lock while it is unpaid. The rows rise one after another as the list comes into view. */
.studio-phone .contents.contents--episodes { padding: 2px 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ed-text); }
.studio-phone .contents.contents--episodes::before, .studio-phone .contents.contents--episodes::after { content: none; }
.studio-phone .contents--episodes .contents__kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--ed-accent); }
.studio-phone .contents--episodes .contents__title {
  margin: 8px 0 0; padding: 0 0 18px; border-bottom: 1px solid var(--ed-line); font-family: var(--ed-serif); font-size: 26px;
  line-height: 1.35; color: var(--ed-heading); text-align: left;
}
.studio-phone .contents.contents--episodes .contents__part { display: flex; flex-direction: column; margin: 0; padding: 24px 0 4px; border: 0; }
.studio-phone .contents--episodes .contents__head {
  display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--ed-serif); font-size: 16.5px; font-weight: 400;
  line-height: 1.4; color: var(--ed-heading);
}
.studio-phone .contents--episodes .contents__head span {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1px solid color-mix(in srgb, var(--ed-accent) 65%, transparent);
  font-size: 13px; line-height: 1; color: var(--ed-accent);
}
.studio-phone .contents--episodes .contents__head span::after { content: none; }
.studio-phone .contents--episodes .contents__head small {
  margin-left: auto; font-family: var(--box-body-font, var(--phone-body-font, inherit)); font-size: 11px; letter-spacing: .03em;
  color: var(--ed-muted); font-variant-numeric: tabular-nums;
}
/* her word: one line under the head beside her face (moved there by order; the markup keeps it after the list) */
.studio-phone .contents.contents--episodes .contents__word { order: 1; display: flex; align-items: center; gap: 8px; margin: 9px 0 0; padding: 0; border: 0; }
.studio-phone .contents.contents--episodes .contents__word.is-right { flex-direction: row; }
.studio-phone .contents.contents--episodes .contents__word :is(img, .contents__face) {
  flex: none; width: 22px; height: 22px; border: 1px solid var(--ed-line); border-radius: 50%; box-shadow: none; object-fit: cover; grid-column: auto;
}
.studio-phone .contents.contents--episodes .contents__word figcaption {
  flex: 1; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; grid-column: auto; grid-row: auto;
  font-family: var(--box-body-font, var(--phone-body-font, inherit)); font-size: 12px; line-height: 1.5; color: var(--ed-muted);
}
.studio-phone .contents.contents--episodes .contents__word figcaption :is(small, p) { display: inline; margin: 0; }
.studio-phone .contents.contents--episodes .contents__word figcaption small { display: none; }
.studio-phone .contents.contents--episodes .contents__word figcaption::before { content: none; }
.studio-phone .contents__episodes { order: 2; display: grid; margin: 12px 0 0; padding: 0; list-style: none; }
.studio-phone .contents__episodes li {
  display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--ed-line);
}
.studio-phone .contents__episodes li:last-child { border-bottom: 1px solid var(--ed-line); }
.studio-phone .contents__episodes :is(img, .contents__thumb) {
  display: block; width: 68px; height: 68px; border-radius: 6px; object-fit: cover; background: var(--ed-surface);
  outline: 1px solid var(--ed-line); outline-offset: -1px;
}
.studio-phone .contents__episodes span { display: grid; gap: 3px; }
.studio-phone .contents__episodes small { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--ed-accent); }
.studio-phone .contents__episodes b { font-family: var(--ed-serif); font-size: 15.5px; font-weight: 400; line-height: 1.4; color: var(--ed-heading); }
.studio-phone .contents__episodes em {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; font-style: normal;
  line-height: 1.5; color: var(--ed-muted);
}
.studio-phone .contents__episodes .ph { font-size: 15px; color: var(--ed-muted); }
.studio-phone[data-motion] .contents__episodes:not(.is-shown) li { opacity: 0; }
.studio-phone[data-motion] .contents__episodes.is-shown li { animation: sd-rise .35s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--n, 0) * 45ms); }
.studio-phone .contents.contents--episodes .contents__note {
  margin: 16px 0 0; padding: 0; border: 0; background: none; text-align: left; font-size: 12px; line-height: 1.6; color: var(--ed-muted);
}

/* ---- 별자리 도식 (studio_charts.py, astro_*): the four elements wear the palette's fire·earth·metal·water --------- */
.studio-phone .sd :is(.sd-zsign, .sd-planet, .sd-b3__card, .sd-ae__row, .sd-ap__sign) { --el-soft: color-mix(in srgb, var(--el-mark) 16%, var(--sd-bg)); --el-ink: color-mix(in oklab, var(--el-mark) 62%, var(--sd-ink)); }
.studio-phone .sd .sd-zsign path { fill: var(--el-soft); stroke: var(--sd-bg); }
.studio-phone .sd .sd-zsign text { fill: var(--el-ink); font-family: "Apple Symbols", "Noto Sans Symbols 2", "Segoe UI Symbol", sans-serif; }
.studio-phone .sd .sd-axis { stroke: var(--sd-ink-2); }
.studio-phone .sd .sd-asp--harmony { stroke: var(--sd-harmony); stroke-opacity: .75; }
.studio-phone .sd .sd-asp--clash { stroke: var(--sd-clash); stroke-opacity: .7; stroke-dasharray: 3 3; }
.studio-phone .sd .sd-planet circle { fill: var(--sd-bg); stroke: var(--el-mark); }
.studio-phone .sd .sd-planet text { fill: var(--sd-ink); font-family: "Apple Symbols", "Noto Sans Symbols 2", "Segoe UI Symbol", sans-serif; }
.studio-phone .sd-key { display: inline-block; width: 16px; height: 0; border-top: 1.6px solid var(--sd-harmony); }
.studio-phone .sd-key--clash { border-top: 1.6px dashed var(--sd-clash); }
.studio-phone[data-motion] figure.sd.is-shown .sd-planet { transform-box: fill-box; transform-origin: center; animation: sd-pop .35s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(.1s + var(--n, 0) * 35ms); }
.studio-phone[data-motion] figure.sd.is-shown .sd-asp { animation: sd-fade .5s ease .45s both; }

/* 세 별자리: three cards side by side */
.studio-phone .sd-b3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.studio-phone .sd-b3__card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 12px 6px 11px; border-radius: 14px;
  background: var(--el-soft); text-align: center;
}
.studio-phone .sd-b3__card small { font-size: 10.5px; font-weight: 600; color: var(--sd-ink-2); white-space: nowrap; }
.studio-phone .sd-b3__glyph {
  display: grid; place-items: center; width: 46px; height: 46px; margin: 4px 0 2px; border-radius: 50%; background: var(--sd-bg);
  box-shadow: inset 0 0 0 1.5px var(--el-mark); color: var(--el-ink); font-family: "Apple Symbols", "Noto Sans Symbols 2", "Segoe UI Symbol", sans-serif; font-size: 25px; line-height: 1;
}
.studio-phone .sd-b3__card b { font-size: 14px; color: var(--sd-ink); word-break: keep-all; }
.studio-phone .sd-b3__card b i { display: block; font-size: 10.5px; font-style: normal; font-weight: 500; color: var(--sd-ink-2); }
.studio-phone .sd-b3__card em { font-size: 11px; font-style: normal; color: var(--sd-ink-2); word-break: keep-all; }
.studio-phone .sd-b3__card.is-unknown { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sd-line); }
.studio-phone .sd-b3__card.is-unknown .sd-b3__glyph { box-shadow: inset 0 0 0 1.5px var(--sd-line); color: var(--sd-muted); font-family: inherit; }
.studio-phone .sd-b3__card.is-unknown b { color: var(--sd-muted); }
.studio-phone[data-motion] figure.sd.is-shown .sd-b3__card { animation: sd-rise .4s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.05s + var(--n, 0) * 70ms); }

/* 4원소: a bar per element, the count, and the planets standing there */
.studio-phone .sd-ae { display: grid; gap: 4px; }
.studio-phone .sd-ae__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 62px; grid-template-areas: "name track count" ". planets planets"; align-items: center; column-gap: 10px; padding: 4px 0; }
.studio-phone .sd-ae__row > b { grid-area: name; font-size: 13px; color: var(--el-ink); }
.studio-phone .sd-ae__row .sd-eb__track { grid-area: track; }
.studio-phone .sd-ae__row .sd-bar { background: var(--el-mark); }
.studio-phone .sd-ae__count { grid-area: count; text-align: right; font-size: 12px; font-weight: 700; color: var(--sd-ink); font-variant-numeric: tabular-nums; }
.studio-phone .sd-ae__count strong { display: block; font-size: 10px; color: var(--sd-accent-ink); }
.studio-phone .sd-ae__row.is-none .sd-ae__count strong { color: var(--sd-muted); }
.studio-phone .sd-ae__planets { grid-area: planets; display: flex; flex-wrap: wrap; gap: 4px; min-height: 2px; }
.studio-phone .sd-ae__planets i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--el-soft); color: var(--el-ink); font-family: "Apple Symbols", "Noto Sans Symbols 2", "Segoe UI Symbol", sans-serif; font-size: 12px; font-style: normal; }

/* 행성 배치표 */
.studio-phone .sd-ap { display: grid; margin: 0; padding: 0; list-style: none; }
.studio-phone .sd-ap li { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--sd-line); }
.studio-phone .sd-ap li.sd-ap__head { padding: 0 0 5px; border-top: 0; font-size: 10.5px; color: var(--sd-muted); }
.studio-phone .sd-ap__planet { display: grid; grid-template-columns: 22px auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; min-width: 0; }
.studio-phone .sd-ap__planet i { grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sd-wash); color: var(--sd-ink); font-family: "Apple Symbols", "Noto Sans Symbols 2", "Segoe UI Symbol", sans-serif; font-size: 13px; font-style: normal; }
.studio-phone .sd-ap__planet b { font-size: 13px; line-height: 1.2; }
.studio-phone .sd-ap__planet small { font-size: 10.5px; color: var(--sd-muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-phone .sd-ap__sign { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--sd-ink); }
.studio-phone .sd-ap__sign i { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--el-soft); color: var(--el-ink); font-family: "Apple Symbols", "Noto Sans Symbols 2", "Segoe UI Symbol", sans-serif; font-size: 12px; font-style: normal; }
.studio-phone .sd-ap__place { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: var(--sd-ink-2); word-break: keep-all; }
.studio-phone .sd-ap__retro { padding: 1px 6px; border-radius: 999px; background: var(--sd-wash); color: var(--sd-muted); font-size: 9.5px; font-weight: 700; }

/* 올해의 하늘: twelve months, the stretches Jupiter and Saturn walk, eclipses and Mercury's backward weeks */
.studio-phone .sd-ay { display: grid; gap: 6px; }
.studio-phone .sd-ay__row { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 6px; }
.studio-phone .sd-ay__track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; min-height: 8px; }
.studio-phone .sd-ay__months span { text-align: center; font-size: 9.5px; color: var(--sd-muted); font-variant-numeric: tabular-nums; }
.studio-phone .sd-ay__months span.is-now { color: var(--sd-accent-ink); font-weight: 800; }
.studio-phone .sd-ay__label { display: grid; grid-template-columns: 18px auto; column-gap: 4px; align-items: center; line-height: 1.2; }
.studio-phone .sd-ay__label i { grid-row: span 2; font-family: "Apple Symbols", "Noto Sans Symbols 2", "Segoe UI Symbol", sans-serif; font-size: 15px; font-style: normal; color: var(--sd-ink); }
.studio-phone .sd-ay__label b { font-size: 12px; }
.studio-phone .sd-ay__label small { font-size: 9.5px; color: var(--sd-muted); white-space: nowrap; }
.studio-phone .sd-ay__label:not(:has(i)) { grid-template-columns: auto; }
.studio-phone .sd-ay__span { display: flex; align-items: center; min-width: 0; height: 30px; padding: 0 6px; border-radius: 8px; overflow: hidden; }
.studio-phone .sd-ay__span b { overflow: hidden; font-size: 10.5px; font-weight: 700; line-height: 1.15; word-break: keep-all; }
.studio-phone .sd-ay__row--jupiter .sd-ay__span { background: color-mix(in srgb, var(--sd-accent) 16%, var(--sd-bg)); color: var(--sd-accent-ink); }
.studio-phone .sd-ay__row--saturn .sd-ay__span { background: var(--sd-wash); color: var(--sd-ink-2); box-shadow: inset 0 0 0 1px var(--sd-line); }
.studio-phone .sd-ay__mark { display: flex; justify-content: center; gap: 2px; }
.studio-phone .sd-ay__mark i, .studio-phone .sd-ay__key { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.studio-phone :is(.sd-ay__mark i.is-solar, .sd-ay__key.is-solar) { background: var(--sd-ink); }
.studio-phone :is(.sd-ay__mark i.is-lunar, .sd-ay__key.is-lunar) { box-shadow: inset 0 0 0 1.6px var(--sd-ink); }
.studio-phone .sd .sd-planet.is-unsure circle { stroke-dasharray: 3 2.5; }
.studio-phone .sd-ay__retro { height: 4px; border-radius: 999px; background: var(--sd-clash); opacity: .55; }
.studio-phone[data-motion] figure.sd.is-shown .sd-ay__span { transform-origin: left center; animation: sd-grow .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.08s + var(--n, 0) * 60ms); }

/* 토성 회귀 시계 */
.studio-phone .sd .sd-arc--accent { stroke: var(--sd-accent); }
.studio-phone .sd .sd-return { stroke: var(--sd-clash); stroke-opacity: .6; }
.studio-phone .sd--astro-saturn .sd-sub b { color: var(--sd-ink); }

/* ---- Editorial night IV: a love reading's page in sections (catalog/examples/love_coords). 한마디 카드 (text shape
   aside), 풀이 줄 · 사진 목록 · 프로필 (teaser looks notes, portraits, profile), 번호 목록 (contents look numbered), 후기 ·
   두 줄 바둑판 (reviews look grid), and the 맞춤 컴포넌트 stone_card, love_compass and love_calendar (components.js).
   Colours come from the theme and the block's text box (--ed-*), so they take any mood; the white cards stay white
   with a breath of the accent in their edges. The brush hand (연성, Yeon Sung) shows where the product's fonts load it. -- */
.studio-phone, .studio-phone .block {
  --yc-brush: "Yeon Sung", var(--ed-serif);
  --yc-card-line: color-mix(in srgb, var(--ed-accent) 24%, #ffffff);
  --yc-card-ink: #332b33;
  --yc-card-text: #5d535b;
  --yc-card-accent: color-mix(in srgb, var(--ed-accent) 82%, #3a1f2c);
}
/* the stand-in letters of words never sent (components.js blurred), and the lock beside them */
.studio-phone .yc-blur { display: inline; filter: blur(3.6px); opacity: .68; user-select: none; pointer-events: none; word-break: break-all; }

/* 한마디 카드: a quiet card with a strong accent rule on its left, the title a small kicker, the body the words */
.studio-phone .text-aside {
  position: relative; padding: 1.35em 1.4em 1.45em; border: 1px solid color-mix(in srgb, var(--ed-accent) 45%, transparent);
  border-left: 3px solid var(--ed-glow); border-radius: 3px; text-align: left;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ed-accent) 22%, transparent), color-mix(in srgb, var(--ed-accent) 9%, transparent) 58%, transparent);
  box-shadow: 0 16px 34px rgba(18, 13, 23, .18);
}
.studio-phone .text-aside .block-title { margin: 0 0 .65em; font-family: inherit; font-size: .75em; font-weight: 800; letter-spacing: .03em; color: var(--ed-glow); }
.studio-phone .text-aside .md { font-size: 1em; font-weight: 600; line-height: 1.7; color: var(--ed-heading); word-break: keep-all; }

/* 풀이 줄 (teaser look notes): a small mark in a ring, the heading, the paragraph under it; a blurred one gets a lock */
.studio-phone .teaser--notes, .studio-phone .teaser--portraits { gap: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: left; }
.studio-phone :is(.teaser--notes, .teaser--portraits, .teaser--profile) .teaser-kicker { display: block; margin-bottom: .5em; font-size: .7em; font-weight: 800; letter-spacing: .06em; color: var(--ed-glow); }
.studio-phone :is(.teaser--notes, .teaser--portraits) > .block-title { margin: 0 0 .4em; font-family: var(--ed-serif); font-size: 1.3em; font-weight: var(--phone-title-weight, 500); line-height: 1.45; color: var(--ed-heading); }
.studio-phone :is(.teaser--notes, .teaser--portraits, .teaser--profile) .teaser-lead { margin: 0 0 1em; font-size: .86em; line-height: 1.65; color: var(--ed-muted); }
.studio-phone .teaser-notes { display: grid; margin: 0; padding: 0; list-style: none; }
.studio-phone .teaser--notes .teaser-notes li {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; padding: 18px 0 20px;
  border-top: 1px solid var(--ed-line);
}
.studio-phone .teaser--notes .teaser-notes li:not(:has(.teaser-note__mark)) { grid-template-columns: minmax(0, 1fr); }
.studio-phone .teaser-note__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ed-accent); border-radius: 50%;
  font-family: var(--ed-serif); font-size: 17px; line-height: 1; color: var(--ed-accent); background: color-mix(in srgb, var(--ed-accent) 6%, transparent);
}
.studio-phone .teaser-note__words { min-width: 0; }
.studio-phone .teaser-note__head { margin: 7px 0 0; font-size: 1.04em; font-weight: 800; line-height: 1.45; letter-spacing: -.045em; color: var(--ed-heading); word-break: keep-all; }
.studio-phone .teaser-note__text { margin: 10px 0 0; font-size: .94em; font-weight: 500; line-height: 1.7; letter-spacing: -.03em; color: var(--ed-text); word-break: keep-all; }
.studio-phone .teaser-notes .teaser-blank { margin: 0; padding: 0; background: none; color: var(--ed-text); filter: blur(3.6px); opacity: .7; }
.studio-phone .teaser--notes li.is-locked .teaser-note__text { padding-right: 38px; }
.studio-phone .teaser-note__lock {
  position: absolute; right: 2px; bottom: 22px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ed-accent) 30%, transparent); background: color-mix(in srgb, var(--ed-accent) 5%, #fffdfd);
  color: var(--yc-card-accent); font-size: 15px; box-shadow: 0 3px 10px rgba(111, 66, 101, .11);
}
/* as cards (style class is-cards): each row its own white card, the mark ringed to its left, value under the heading */
.studio-phone .block.is-cards .teaser--notes .teaser-notes { gap: 10px; }
.studio-phone .block.is-cards .teaser--notes .teaser-notes li {
  grid-template-columns: 43px minmax(0, 1fr); align-items: center; min-height: 97px; padding: 16px 17px; border: 1px solid var(--yc-card-line);
  border-radius: 8px; background: #fffdfd; box-shadow: 0 10px 23px rgba(133, 101, 130, .1);
}
.studio-phone .block.is-cards .teaser-note__mark { width: 42px; height: 42px; grid-row: 1 / 3; font-size: 20px; border-color: var(--yc-card-line); color: var(--yc-card-accent); background: transparent; }
.studio-phone .block.is-cards .teaser-note__head { margin: 0 0 4px; font-size: 1em; color: #45323f; }
.studio-phone .block.is-cards .teaser-note__text { margin: 0; font-size: 1.25em; font-weight: 500; line-height: 1.3; white-space: nowrap; color: color-mix(in srgb, var(--ed-accent) 70%, #4a2d3e); }
.studio-phone .block.is-cards .teaser-note__text .teaser-blank { color: inherit; filter: blur(4px); }
.studio-phone .block.is-cards .teaser--notes li.is-locked .teaser-note__text { padding-right: 0; }
.studio-phone .block.is-cards .teaser-note__lock { display: none; }

/* 사진 목록 (teaser look portraits): a white card per row, a face in a speech-bubble frame, the question, the answer blurred */
.studio-phone .teaser--portraits .teaser-notes { gap: 11px; }
.studio-phone .teaser--portraits .teaser-notes li {
  position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 126px;
  padding: 17px 17px 19px; border: 1px solid var(--yc-card-line); border-radius: 11px; background: #fff; box-shadow: 0 7px 20px rgba(65, 39, 57, .06);
}
.studio-phone .teaser--portraits .teaser-notes li:not(.has-image) { grid-template-columns: minmax(0, 1fr); }
.studio-phone .teaser-note__face {
  position: relative; width: 82px; height: 94px; margin: 0; border: 1px solid color-mix(in srgb, var(--ed-accent) 40%, #fff);
  border-radius: 20px 20px 20px 8px; background: #f7f2f5; box-shadow: 0 6px 15px rgba(133, 79, 107, .11);
}
.studio-phone .teaser-note__face::after {
  content: ""; position: absolute; left: 11px; bottom: -6px; width: 11px; height: 11px; rotate: -32deg; background: #f7f2f5;
  border-left: 1px solid color-mix(in srgb, var(--ed-accent) 40%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--ed-accent) 40%, #fff);
}
.studio-phone .teaser-note__face img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 17px 17px 17px 5px; object-fit: cover; }
.studio-phone .teaser--portraits .teaser-note__head { margin: 0 0 10px; font-size: 1em; line-height: 1.48; color: var(--yc-card-ink); }
.studio-phone .teaser--portraits .teaser-note__text {
  display: -webkit-box; overflow: hidden; margin: 0; padding-right: 33px; font-size: .88em; line-height: 1.55; color: #776a75;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.studio-phone .teaser--portraits .teaser-notes .teaser-blank { color: #776a75; }
.studio-phone .teaser--portraits .teaser-note__lock { right: 17px; bottom: 15px; }

/* 프로필 (teaser look profile): the masked face in an arch with a glint, the lead in the serif, then a soft card of
   pill rows, two-up cells and the words at its foot */
.studio-phone .teaser--profile { gap: 0; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; }
.studio-phone .teaser--profile > .block-title { margin: 0; font-family: var(--ed-serif); font-size: 1.94em; font-weight: var(--phone-title-weight, 500); line-height: 1.45; letter-spacing: -.075em; color: var(--ed-heading); }
.studio-phone .teaser-arch { position: relative; width: min(100%, 306px); height: 385px; margin: 29px auto 0; }
.studio-phone .teaser-arch::before {
  content: ""; position: absolute; inset: 0 -25px -20px; border-radius: 50%; filter: blur(18px);
  background: radial-gradient(circle, color-mix(in srgb, var(--ed-glow) 27%, transparent), color-mix(in srgb, var(--ed-accent) 12%, transparent) 54%, transparent 76%);
}
.studio-phone .teaser-arch img {
  position: relative; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 160px 160px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--ed-glow) 65%, transparent); filter: blur(8px); clip-path: inset(0 round 160px 160px 16px 16px);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--ed-glow) 8%, transparent), 0 22px 50px rgba(16, 14, 30, .47);
}
.studio-phone .teaser-arch::after {
  content: ""; position: absolute; inset: 0; border-radius: 160px 160px 16px 16px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--ed-glow) 60%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ed-glow) 8%, transparent);
  background: linear-gradient(transparent 75%, rgba(255, 249, 243, .5));
}
.studio-phone .teaser--profile .teaser-lead { width: min(100%, 390px); margin: 36px auto 0; font-family: var(--ed-serif); font-size: 1.3em; font-weight: 600; line-height: 1.55; letter-spacing: -.055em; color: var(--ed-heading); word-break: keep-all; }
.studio-phone .teaser-profile {
  width: min(100%, 390px); margin: 36px auto 0; padding: 3px 20px 0; border: 1px solid color-mix(in srgb, var(--ed-glow) 33%, transparent);
  border-radius: 10px; text-align: left; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--ed-glow) 14%, transparent), color-mix(in srgb, #140f1d 22%, transparent));
  box-shadow: 0 14px 32px rgba(20, 15, 29, .25);
}
.studio-phone .teaser-profile h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 1em; font-weight: 800; line-height: 1.4; color: var(--ed-heading); }
.studio-phone .teaser-profile h4::before { content: "◇"; font-size: 1.15em; line-height: 1; color: var(--ed-glow); }
.studio-phone .teaser-profile__row { padding: 18px 0 20px; }
.studio-phone .teaser-profile__row + .teaser-profile__row { border-top: 1px solid color-mix(in srgb, var(--ed-glow) 27%, transparent); }
.studio-phone .teaser-profile__pills { display: flex; flex-wrap: wrap; gap: 7px; }
.studio-phone .teaser-pill {
  display: inline-flex; align-items: center; gap: 5px; min-height: 35px; padding: 7px 12px; border-radius: 999px; font-size: .75em; font-weight: 700;
  line-height: 1.2; white-space: nowrap; border: 1px solid color-mix(in srgb, var(--ed-glow) 46%, transparent);
  background: color-mix(in srgb, #fff 8%, transparent); color: var(--ed-heading);
}
.studio-phone .teaser-pill.is-picked { border-color: color-mix(in srgb, var(--ed-glow) 70%, #fff); background: color-mix(in srgb, var(--ed-glow) 18%, #fff); color: #4b3748; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ed-glow) 18%, transparent), 0 3px 11px rgba(18, 13, 27, .16); }
.studio-phone .teaser-pill.is-picked::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ed-accent); }
.studio-phone .teaser-profile .teaser-blank { margin: 0; padding: 0; background: none; color: inherit; filter: blur(3px); opacity: .72; }
.studio-phone .teaser-profile__cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid color-mix(in srgb, var(--ed-glow) 27%, transparent); }
.studio-phone .teaser-profile__cell { min-width: 0; padding: 19px 8px 21px 0; border-bottom: 1px solid color-mix(in srgb, var(--ed-glow) 27%, transparent); }
.studio-phone .teaser-profile__cell:nth-child(2n) { padding-left: 15px; border-left: 1px solid color-mix(in srgb, var(--ed-glow) 27%, transparent); }
.studio-phone .teaser-profile__cell:nth-last-child(-n+2):nth-child(odd), .studio-phone .teaser-profile__cell:last-child { border-bottom: 0; }
.studio-phone .teaser-profile__cell p { margin: 0; overflow: hidden; font-size: .88em; line-height: 1.5; white-space: nowrap; color: var(--ed-text); }
.studio-phone .teaser-profile__foot {
  margin: 0 -20px; padding: 22px 20px 0; border-top: 1px solid color-mix(in srgb, var(--ed-glow) 27%, transparent); text-align: center;
  font-size: 1em; font-weight: 800; line-height: 1.5; letter-spacing: -.04em; color: var(--ed-heading); word-break: keep-all;
  background: linear-gradient(110deg, color-mix(in srgb, var(--ed-accent) 12%, transparent), transparent);
}
.studio-phone .teaser-profile__foot.is-blurred { font-size: .82em; font-weight: 500; line-height: 1.65; color: var(--ed-text); }
.studio-phone .teaser-profile__foot + .teaser-profile__foot { border-top: 0; padding-top: 15px; }
.studio-phone .teaser-profile__foot:last-child { padding-bottom: 24px; }
.studio-phone .teaser--profile .teaser-foot { margin-top: 18px; border-top: 0; color: var(--ed-glow); }

/* 번호 목록 (contents look numbered): the paper sheet, big serif numbers, each chapter's title and its line, no group
   heads (the words between them do the parting) */
.studio-phone .contents--numbered .contents__head { display: none; }
.studio-phone .contents--numbered .contents__part { padding: 0; border: 0; }
.studio-phone .contents--numbered .contents__part + .contents__part { padding-top: 0; }
.studio-phone .contents__numbered { margin: 0; padding: 0; list-style: none; }
.studio-phone .contents__numbered li { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-top: 1px solid rgba(110, 72, 84, .2); }
.studio-phone .contents__number { padding-top: 1px; font: 700 27px/1.2 Georgia, var(--ed-serif); letter-spacing: .01em; color: color-mix(in srgb, var(--ed-accent) 75%, #5a2d3e); }
.studio-phone .contents__numbered b { display: block; margin: 0 0 7px; font-size: 19px; font-weight: 800; line-height: 1.35; letter-spacing: -.035em; color: #352a32; word-break: keep-all; }
.studio-phone .contents__numbered p { margin: 0; font-size: 15px; line-height: 1.55; letter-spacing: -.025em; color: #695c64; word-break: keep-all; text-wrap: pretty; }
.studio-phone .contents--numbered .contents__title { font-family: var(--ed-serif); }
.studio-phone .contents--numbered .contents__word { margin: 0 0 4px; padding: 6px 0 20px; border-top: 0; grid-template-columns: 76px minmax(0, 1fr); gap: 13px; }
.studio-phone .contents--numbered .contents__word.is-right { grid-template-columns: minmax(0, 1fr) 76px; }
.studio-phone .contents--numbered .contents__word img, .studio-phone .contents--numbered .contents__face {
  width: 76px; height: 76px; border: 3px solid #fffaf8; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ed-accent) 60%, #fff), 0 6px 14px rgba(84, 60, 71, .21);
}
.studio-phone .contents--numbered .contents__word figcaption { font-size: 15px; line-height: 1.6; padding: 15px 16px; }

/* 후기 · 두 줄 바둑판 (reviews look grid): two columns of tall quiet cards, the topic, the stars, the words, the name */
.studio-phone .reviews--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.studio-phone .reviews--grid .review {
  position: relative; min-height: 228px; padding: 19px 15px 16px; gap: 0; border-radius: 0; box-shadow: none; color: var(--ed-heading);
  border: 1px solid color-mix(in srgb, var(--ed-glow) 21%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, currentColor 3.5%, transparent), color-mix(in srgb, var(--ed-accent) 4%, transparent));
}
.studio-phone .reviews--grid .review:nth-child(2n) { background: linear-gradient(135deg, color-mix(in srgb, var(--ed-accent) 8%, transparent), color-mix(in srgb, currentColor 1.5%, transparent)); }
.studio-phone .review-topic { font-size: 12px; font-weight: 750; line-height: 1.45; letter-spacing: .015em; color: color-mix(in srgb, var(--ed-glow) 85%, var(--ed-heading)); }
.studio-phone .reviews--grid .review-stars { margin-top: 15px; font-size: 13px; letter-spacing: .06em; }
.studio-phone .reviews--grid .review-stars .star { color: color-mix(in srgb, var(--ed-glow) 45%, transparent); }
.studio-phone .reviews--grid .review-stars .star.is-on { color: var(--ed-glow); }
.studio-phone .reviews--grid .review p { margin: 12px 0 16px; font-size: 14px; line-height: 1.62; color: var(--ed-text); word-break: keep-all; }
.studio-phone .reviews--grid .review-who { margin-top: auto; font-size: 12px; color: var(--ed-muted); }
.studio-phone .reviews--grid .review-who span:empty { display: none; }

/* 인연석 카드 (stone_card): a keepsake card in the stone's colour, four corner marks, a small emblem, the stone in a
   ring and a diamond with a sweep of light across it once it is seen, the lead in the brush face, two traits side by side */
.studio-phone .custom.stone-card {
  --stone-accent: #a65c68;
  position: relative; display: block; width: min(100%, 382px); margin: 0 auto; padding: 32px 25px 35px; text-align: center;
  border: 1.5px solid var(--stone-accent); border-radius: 8px; color: #332c33;
  background: radial-gradient(circle at 50% 41%, #fffdfb, #faf5f3 78%);
  box-shadow: 0 0 0 4px rgba(255, 249, 249, .74), 0 17px 42px rgba(27, 21, 30, .42); transition: box-shadow .8s ease;
}
.studio-phone .stone-card::before { content: ""; position: absolute; inset: 9px; border: 1px solid #d5c8cd; border-radius: 2px; pointer-events: none; }
.studio-phone .stone-card.is-lit { box-shadow: 0 0 0 4px rgba(255, 249, 249, .74), 0 0 28px color-mix(in srgb, var(--stone-accent) 30%, transparent), 0 17px 42px rgba(27, 21, 30, .42); }
.studio-phone .stone-card__corner { position: absolute; z-index: 1; width: 26px; height: 26px; border-top: 1px solid var(--stone-accent); border-left: 1px solid var(--stone-accent); opacity: .75; pointer-events: none; }
.studio-phone .stone-card__corner::after { content: ""; position: absolute; top: 6px; left: 6px; width: 5px; height: 5px; border: 1px solid var(--stone-accent); rotate: 45deg; }
.studio-phone .stone-card__corner.is-tl { top: 17px; left: 17px; }
.studio-phone .stone-card__corner.is-tr { top: 17px; right: 17px; rotate: 90deg; }
.studio-phone .stone-card__corner.is-br { right: 17px; bottom: 17px; rotate: 180deg; }
.studio-phone .stone-card__corner.is-bl { bottom: 17px; left: 17px; rotate: 270deg; }
.studio-phone .stone-card__emblem { position: relative; width: 96px; height: 32px; margin: 0 auto 14px; color: var(--stone-accent); }
.studio-phone .stone-card__emblem svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }
.studio-phone .stone-card__kicker { position: relative; margin: 8px 0 13px; font-size: 14px; font-weight: 800; letter-spacing: -.025em; color: var(--stone-accent); }
.studio-phone .stone-card__name { position: relative; margin: 0 0 10px; font-family: var(--ed-serif); font-size: 44px; font-weight: 700; line-height: 1.25; letter-spacing: -.07em; color: #332c33; }
.studio-phone .stone-card__type { margin: 0; font-size: 17px; font-weight: 800; color: var(--stone-accent); }
.studio-phone .stone-card__stone { position: relative; display: grid; place-items: center; height: 190px; margin: 22px auto 25px; }
.studio-phone .stone-card__halo { position: absolute; width: 190px; height: 190px; fill: none; stroke: var(--stone-accent); stroke-width: .8; opacity: .4; }
.studio-phone .stone-card__stone img { position: relative; z-index: 1; width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 9px 10px rgba(103, 81, 91, .16)); }
.studio-phone .stone-card__shine {
  position: absolute; z-index: 2; width: 160px; height: 160px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .2) 44%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, .25) 56%, transparent 64%);
  background-size: 300% 100%; background-position: 100% 0; mix-blend-mode: soft-light;
}
.studio-phone .stone-card.is-lit .stone-card__shine { animation: yc-stone-shine .95s ease-out .15s both; }
@keyframes yc-stone-shine { 0% { opacity: 0; background-position: 100% 0; } 25% { opacity: 1; } 100% { opacity: 0; background-position: 0 0; } }
.studio-phone .stone-card__lead { position: relative; max-width: 300px; margin: 0 auto 29px; font-family: var(--yc-brush); font-size: 28px; font-weight: 400; line-height: 1.55; letter-spacing: -.025em; color: var(--stone-accent); word-break: keep-all; }
.studio-phone .stone-card__line { position: relative; max-width: 290px; margin: 0 auto; font-size: 15px; font-weight: 750; line-height: 1.65; letter-spacing: -.035em; color: #4d454b; word-break: keep-all; }
.studio-phone .stone-card__line + .stone-card__line { margin-top: 3px; }
.studio-phone .stone-card__traits { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; padding-top: 23px; border-top: 1px solid #dfd6d9; }
.studio-phone .stone-card__traits p { margin: 0; padding: 0 7px; }
.studio-phone .stone-card__traits p + p { border-left: 1px solid #dfd6d9; }
.studio-phone .stone-card__traits span { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 800; color: var(--stone-accent); }
.studio-phone .stone-card__traits strong { display: block; font-size: 15px; font-weight: 750; line-height: 1.55; color: #4d454b; word-break: keep-all; }

/* 연애좌표 (love_compass): a white sheet; rings, a diamond and guides, four directions in rings of their own colour
   (the picked one lit, its axis drawn strong, a halo breathing round it), the centre named, the readings under it */
.studio-phone .custom.compass {
  --compass-accent: #a65c68;
  position: relative; display: block; max-width: 430px; margin: 0 auto; padding: 40px 22px 36px; text-align: left;
  border: 1px solid #e8dce3; background: #fff; box-shadow: 0 16px 35px rgba(111, 66, 101, .1); transition: border-color .8s ease, box-shadow .8s ease;
}
.studio-phone .compass.is-lit { border-color: color-mix(in srgb, var(--compass-accent) 40%, #fff); box-shadow: 0 0 20px color-mix(in srgb, var(--compass-accent) 22%, transparent), 0 16px 35px rgba(111, 66, 101, .1); }
.studio-phone .compass__map { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; background: radial-gradient(circle at center, #faf7f9 0 21%, transparent 60%); }
.studio-phone .compass__map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.studio-phone .compass__ring { stroke: #d3cad0; stroke-width: 1.4; }
.studio-phone .compass__ring.is-inner { stroke: #d9d1d6; stroke-dasharray: 4 9; }
.studio-phone .compass__diamond { fill: rgba(215, 202, 210, .1); stroke: #cbbdc6; stroke-width: 1; }
.studio-phone .compass__guide { stroke: #b9aeb5; stroke-width: 1.1; stroke-dasharray: 5 9; }
.studio-phone .compass__axis { stroke: #b8aeb4; stroke-width: 1.4; transition: stroke .8s ease, stroke-width .8s ease; }
.studio-phone .compass.is-lit .compass__axis.is-picked { stroke: var(--compass-accent); stroke-width: 3; }
.studio-phone .compass__node {
  --node-color: #9c8c97;
  position: absolute; display: grid; place-items: center; width: clamp(62px, 19cqi, 76px); min-width: 62px; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid currentColor; background: rgba(255, 252, 253, .93); color: var(--node-color); text-align: center; font-size: 16px;
  font-weight: 800; letter-spacing: -.06em; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .66);
}
.studio-phone .compass__node.is-top { top: 1px; left: 50%; translate: -50% 0; }
.studio-phone .compass__node.is-right { top: 50%; right: 1px; translate: 0 -50%; }
.studio-phone .compass__node.is-bottom { bottom: 1px; left: 50%; translate: -50% 0; }
.studio-phone .compass__node.is-left { top: 50%; left: 1px; translate: 0 -50%; }
.studio-phone .compass__node.is-picked {
  border-width: 2px; color: color-mix(in srgb, var(--node-color) 78%, #2a1520); background: color-mix(in srgb, var(--node-color) 12%, #fff);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .51), 0 0 0 5px color-mix(in srgb, var(--node-color) 24%, transparent), 0 5px 20px color-mix(in srgb, var(--node-color) 17%, transparent);
}
.studio-phone .compass__node.is-picked::after { content: ""; position: absolute; inset: -8px; border: 2px solid currentColor; border-radius: 50%; opacity: .45; pointer-events: none; animation: yc-halo 2.8s ease-in-out infinite; }
@keyframes yc-halo { 0%, 100% { scale: 1; opacity: .45; } 50% { scale: 1.08; opacity: .15; } }
.studio-phone .compass__center {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 35%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  border: 1px solid #cbb8c4; background: rgba(255, 253, 253, .95); color: #4d3f49; text-align: center; box-shadow: 0 4px 18px rgba(107, 83, 96, .07);
  font-family: var(--ed-serif); font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -.05em;
}
.studio-phone .compass__notes { margin: 32px 0 0; padding: 0 6px; list-style: none; }
.studio-phone .compass__notes li { position: relative; padding: 18px 0 20px; border-top: 1px solid #e7dfe3; }
.studio-phone .compass__notes li:last-child { padding-bottom: 2px; }
.studio-phone .compass__notes li.is-locked { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.studio-phone .compass__note-head { display: flex; align-items: center; gap: 12px; }
.studio-phone .compass__mark {
  flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--compass-accent);
  background: #fff9fb; color: var(--compass-accent); font-family: var(--ed-serif); font-size: 17px; line-height: 1;
}
.studio-phone .compass__note-head h4 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.45; letter-spacing: -.045em; color: #383038; }
.studio-phone .compass__text, .studio-phone .compass__locked p { margin: 10px 0 0 48px; font-size: 15px; font-weight: 500; line-height: 1.7; letter-spacing: -.03em; color: #5d535b; word-break: keep-all; }
.studio-phone .compass__locked { position: relative; min-height: 52px; overflow: hidden; }
.studio-phone .compass__locked p { padding-right: 34px; }
.studio-phone .compass__locked::after { content: ""; position: absolute; inset: 0 0 0 48px; background: linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, .32) 77%, #fff 100%); pointer-events: none; }
.studio-phone .compass__lock {
  position: absolute; z-index: 2; top: 50%; right: 4px; display: grid; place-items: center; width: 29px; height: 29px; translate: 0 -50%; border-radius: 50%;
  border: 1px solid #decbd2; background: rgba(255, 253, 253, .93); color: var(--compass-accent); font-size: 15px; box-shadow: 0 3px 10px rgba(111, 66, 101, .11);
}

/* 인연의 달력 (love_calendar): a desk calendar on its rings; the year and the day blurred, the day's place in its grid ringed */
.studio-phone .custom.calendar-art {
  position: relative; display: block; width: min(100%, 350px); margin: 12px auto 0; padding: 28px 21px 20px; color: #4d3647; text-align: center;
  border: 1px solid #dfc7d5; background: linear-gradient(150deg, #fffefd, #fffafc 75%, #fbeef5); box-shadow: 0 17px 34px rgba(111, 69, 98, .17);
}
.studio-phone .calendar-art::before { content: ""; position: absolute; inset: 9px; border: 1px solid #efdfe8; pointer-events: none; }
.studio-phone .calendar-art__binding { position: absolute; top: -12px; left: 50%; display: flex; gap: 27px; translate: -50% 0; }
.studio-phone .calendar-art__binding i { width: 9px; height: 22px; border: 2px solid #b998a9; border-radius: 999px; background: linear-gradient(#f9f3f6, #fff); box-shadow: 0 2px 3px rgba(96, 67, 87, .13); }
.studio-phone .calendar-art__mark { position: absolute; top: 24px; right: 26px; font-family: var(--ed-serif); font-size: 21px; color: #ae7b97; }
.studio-phone .calendar-art__year { display: block; margin: 15px 0 14px; font: 70px/.95 Georgia, var(--ed-serif); letter-spacing: -.055em; filter: blur(4px); opacity: .78; user-select: none; }
.studio-phone .calendar-art__seasons { display: flex; justify-content: space-between; font-size: 12px; color: #a38e9d; }
.studio-phone .calendar-art__seasons span { width: 25%; padding: 9px 0; border-bottom: 1px solid #e9d8e1; }
.studio-phone .calendar-art__focus { display: grid; gap: 6px; margin: 18px 8px 0; padding: 13px 10px 14px; border: 1px solid #e9d1df; background: #f9eef4; color: #ae7393; }
.studio-phone .calendar-art__focus > span { font-size: 11px; font-weight: 750; }
.studio-phone .calendar-art__focus strong { font-family: var(--ed-serif); font-size: 25px; font-weight: 400; line-height: 1.15; user-select: none; }
.studio-phone .calendar-art__focus b { display: inline-block; font-weight: 400; filter: blur(3px); opacity: .75; }
.studio-phone .calendar-art__focus i { display: inline-block; width: 17px; height: 1px; margin: 0 6px 7px; vertical-align: middle; background: currentColor; }
.studio-phone .calendar-art__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 7px; margin: 14px 10px 0; padding-top: 11px; border-top: 1px solid #eee2e9; font: 10px/1.6 Georgia, var(--ed-serif); color: #b9a6b2; }
.studio-phone .calendar-art__days .is-hint { border: 1px solid #c995af; border-radius: 50%; color: #aa718e; filter: blur(2px); }
.studio-phone .calendar-art.is-lit .calendar-art__days .is-hint { animation: yc-hint 2.4s ease-in-out .3s 2; }
@keyframes yc-hint { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 5px rgba(201, 149, 175, .22); } }

@media (prefers-reduced-motion: reduce) {
  .studio-phone .compass__node.is-picked::after, .studio-phone .stone-card.is-lit .stone-card__shine, .studio-phone .calendar-art.is-lit .calendar-art__days .is-hint { animation: none; }
}

/* style classes for a block whose brush face is for its title alone (is-brush-title), a card whose label is small
   over words in the brush face (is-brush-quote), and a 따라오는 버튼 that shows nothing at its spot (is-spot-only) */
.studio-phone .block.is-brush-title :is(.chart-card__note, .contents__word figcaption, .contents__note) { font-family: var(--phone-title-font, serif); }
.studio-phone .block.is-brush-quote .text-card { padding: 1.7em 1.2em 1.8em; border: 1px solid color-mix(in srgb, var(--ed-accent) 32%, #fff); border-radius: 5px; background: #fffdfd; box-shadow: 0 12px 30px rgba(115, 70, 94, .07); }
.studio-phone .block.is-brush-quote .text-card .block-title { margin: 0 0 .9em; font-family: var(--phone-body-font, inherit); font-size: .82em; font-weight: 800; letter-spacing: .02em; color: color-mix(in srgb, var(--ed-accent) 80%, #5a2d3e); }
.studio-phone .block.is-brush-quote .text-card .md { font-family: var(--box-body-font, var(--yc-brush)); font-size: 1.45em; line-height: 1.6; letter-spacing: -.025em; color: #342b34; word-break: keep-all; }
.studio-phone .block.is-spot-only { position: relative; margin-block: 0; }
.studio-phone .block.is-spot-only > .sticky-cta { position: absolute; inset: 0 0 auto; height: 0; padding: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
/* the bold words of a heading as its big lit line (is-glow-em): larger, softly glowing, a fine light drawn under them */
.studio-phone .block.is-glow-em .md strong {
  position: relative; display: inline-block; margin-top: .12em; font-size: 1.5em; font-weight: inherit; line-height: 1.3;
  text-shadow: 0 0 16px color-mix(in srgb, var(--ed-glow, var(--ed-accent)) 60%, transparent), 0 4px 16px rgba(24, 13, 27, .5);
}
.studio-phone .block.is-glow-em .md strong::after {
  content: ""; position: absolute; inset: auto 3% -.2em; height: 2px; background: linear-gradient(90deg, transparent, currentColor, transparent);
  box-shadow: 0 0 12px currentColor; opacity: .7;
}
/* 큰따옴표 in a centred block: its source centred under it */
.studio-phone .block.align-center .text-pullquote .block-title { text-align: center; }

/* 돈이 드는 길과 새는 곳 (wealth_flow, engine/wealth.py): three quiet columns joined by arrows, the middle one (재물의 별)
   in the accent; under it the force that shares, and two rows of words. Colours from the palette (.sd). */
.studio-phone .sd-wf { list-style: none; display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: stretch; gap: 4px; margin: 0; padding: 0; }
.studio-phone .sd-wf__node { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 12px 4px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--sd-line); text-align: center; }
.studio-phone .sd-wf__node.is-main { box-shadow: inset 0 0 0 1.5px var(--sd-accent); background: color-mix(in srgb, var(--sd-accent) 9%, transparent); }
.studio-phone .sd-wf__node small, .studio-phone .sd-wf__share small { font-size: 10px; color: var(--sd-muted); }
.studio-phone .sd-wf__node b { font-size: 21px; line-height: 1.2; color: var(--sd-ink); }
.studio-phone .sd-wf__node.is-main b { color: var(--sd-accent); }
.studio-phone .sd-wf__node em, .studio-phone .sd-wf__share em { font-style: normal; font-size: 9.5px; line-height: 1.3; color: var(--sd-muted); word-break: keep-all; }
.studio-phone .sd-wf__arrow { align-self: center; font-size: 13px; color: var(--sd-muted); }
.studio-phone .sd-wf__share { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 8px 0 0; }
.studio-phone .sd-wf__share i { font-style: normal; color: var(--sd-muted); }
.studio-phone .sd-wf__share b { font-size: 14px; color: var(--sd-ink); }
.studio-phone .sd-wf__rows { display: grid; gap: 0; margin: 12px 0 0; border-top: 1px solid var(--sd-line); }
.studio-phone .sd-wf__rows div { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--sd-line); }
.studio-phone .sd-wf__rows dt { font-size: 11px; color: var(--sd-muted); }
.studio-phone .sd-wf__rows dd { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.5; color: var(--sd-ink); word-break: keep-all; }

/* 두 사람 사이의 끈 (match_threads, engine/match.py): two rows of four small pairs of tiles and the threads between
   them; a pull is a solid line in the harmony colour, a clash dashed in the clash colour, a sore spot dotted */
.studio-phone .sd-mt { display: grid; gap: 0; }
.studio-phone .sd-mt__row { display: grid; gap: 6px; }
.studio-phone .sd-mt__row small { font-size: 11px; font-weight: 700; color: var(--sd-ink-2); }
.studio-phone .sd-mt__row ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; }
.studio-phone .sd-mt__row li { display: grid; justify-items: center; gap: 4px; padding: 6px 0; border-radius: 10px; }
.studio-phone .sd-mt__row li.is-day { background: var(--sd-wash); box-shadow: inset 0 0 0 1px var(--sd-line); }
.studio-phone .sd-mt__pair { display: flex; gap: 4px; }
.studio-phone .sd-mt__pair i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; border: 1px dashed var(--sd-line); font-style: normal; font-size: 11px; color: var(--sd-muted); }
.studio-phone .sd-mt__row em { font-style: normal; font-size: 9.5px; color: var(--sd-muted); }
.studio-phone .sd-mt__row:last-child ol { order: -1; }
.studio-phone .sd-mt__web { display: block; width: 100%; height: 58px; overflow: visible; }
.studio-phone .sd-mt__web line { stroke-width: 1.4; vector-effect: non-scaling-stroke; fill: none; }
.studio-phone .sd-mt__web line.is-pull { stroke: var(--sd-harmony); }
.studio-phone .sd-mt__web line.is-push { stroke: var(--sd-clash); stroke-dasharray: 5 4; }
.studio-phone .sd-mt__web line.is-sore { stroke: var(--sd-muted); stroke-dasharray: 1.5 4; stroke-linecap: round; }
.studio-phone .sd-mt__web line.is-day { stroke-width: 2.6; }
.studio-phone .sd-mt__legend { display: flex; justify-content: center; gap: 14px; margin: 10px 0 0; font-size: 11px; color: var(--sd-ink-2); }
.studio-phone .sd-mt__legend span::before { content: ""; display: inline-block; width: 16px; margin-right: 5px; vertical-align: middle; border-top: 2px solid var(--sd-harmony); }
.studio-phone .sd-mt__legend span.is-push::before { border-top: 2px dashed var(--sd-clash); }
.studio-phone .sd-mt__told { list-style: none; display: grid; gap: 6px; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--sd-line); font-size: 12px; line-height: 1.6; color: var(--sd-ink-2); }
.studio-phone .sd-mt__told li { padding-left: 12px; border-left: 2px solid var(--sd-harmony); }
.studio-phone .sd-mt__told li.is-push { border-left-color: var(--sd-clash); }
.studio-phone .sd-mt__told li.is-sore { border-left-color: var(--sd-muted); }

/* 일하는 길 (career_path, engine/career.py): the two ends named over one hairline track with a mark where the chart
   leans, the word for it, then the five forces at work in a row, each a count over its plain name */
.studio-phone .sd-cp__ends { display: flex; justify-content: space-between; gap: 12px; }
.studio-phone .sd-cp__ends span { display: grid; gap: 2px; font-size: 11px; color: var(--sd-muted); }
.studio-phone .sd-cp__ends span:last-child { text-align: right; }
.studio-phone .sd-cp__ends b { font-size: 12.5px; font-weight: 600; color: var(--sd-ink-2); }
.studio-phone .sd-cp__ends .is-on b { color: var(--sd-accent-ink); font-weight: 700; }
.studio-phone .sd-cp__track { position: relative; height: 22px; margin: 10px 6px 0; }
.studio-phone .sd-cp__track::before { content: ""; position: absolute; inset: 10px 0 auto; height: 2px; border-radius: 1px; background: var(--sd-line); }
.studio-phone .sd-cp__track::after { content: ""; position: absolute; left: 50%; top: 6px; width: 1px; height: 10px; background: var(--sd-muted); opacity: .5; }
.studio-phone .sd-cp__track i { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--sd-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sd-accent) 18%, transparent); }
.studio-phone .sd-cp__words { margin: 10px 0 0; text-align: center; font-family: var(--sd-tile-font); font-size: 17px; color: var(--sd-ink); }
.studio-phone .sd-cp__forces { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--sd-line); }
.studio-phone .sd-cp__forces li { display: grid; gap: 2px; justify-items: center; text-align: center; }
.studio-phone .sd-cp__forces b { font-family: var(--sd-tile-font); font-size: 19px; font-weight: 400; line-height: 1.1; color: var(--sd-ink); }
.studio-phone .sd-cp__forces span { font-size: 10px; line-height: 1.35; color: var(--sd-ink-2); word-break: keep-all; }
.studio-phone .sd-cp__forces small { font-size: 9px; color: var(--sd-muted); }
.studio-phone .sd-cp__forces li.is-off { opacity: .45; }
.studio-phone .sd-cp__forces li.is-organisation b, .studio-phone .sd-cp__forces li.is-own b { color: var(--sd-accent-ink); }
