    :root {
        --ink: #14161f;
        --dim: #73798d;
        --line: #e7eaf0;
        --deep: #1e2560;
        --navy: #3646e0;
        --soft: #ebedfc;
        --gold: #febf24;
        --kakao: #FEE500;
        --bg: #eef0f5;
        --brand-color: <?=htmlspecialchars($brand_color) ?>;
    }

    * {
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    body {
        margin: 0;
        background: var(--bg);
        color: var(--ink);
        word-break: keep-all;
        font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
    }

    button {
        font: inherit;
        color: inherit;
        border: 0;
        background: none;
        cursor: pointer;
    }

    .stage {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 26px 16px;
        background: radial-gradient(1200px 700px at 50% -10%, #f6f7fb 0%, var(--bg) 60%);
    }

    .phone {
        width: 392px;
        height: min(830px, calc(100vh - 52px));
        background: #fff;
        border-radius: 26px;
        position: relative;
        box-shadow: 0 24px 60px rgba(20, 26, 60, .16);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .side {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #fff;
        font-size: 20px;
        font-weight: 800;
        color: var(--deep);
        box-shadow: 0 6px 20px rgba(20, 26, 60, .12);
        flex: 0 0 auto;
    }

    .side:disabled {
        opacity: .28;
        box-shadow: none;
    }

    .pc-only {
        display: block;
    }

    @media(max-width:900px) {
        .pc-only {
            display: none;
        }

        .stage {
            padding: 0;
            gap: 0;
            background: var(--bg);
        }

        .phone {
            width: 100%;
            height: calc(var(--vh, 1vh) * 100);
            border-radius: 0;
            box-shadow: none;
        }
    }

    .hd {
        flex: 0 0 auto;
        padding: 34px 20px 10px;
        display: flex;
        align-items: center;
        gap: 9px;
        background: #fff;
        position: relative;
        z-index: 50;
    }

    @media(max-width:900px) {
        .hd {
            padding-top: calc(14px + env(safe-area-inset-top));
        }
    }

    .hd .logo img {
        width: 29px;
        height: 29px;
        border-radius: 9px;
        object-fit: contain;
        background: var(--deep);
    }

    .hd .logo .fallback {
        width: 29px;
        height: 29px;
        border-radius: 9px;
        background: var(--deep);
        color: var(--gold);
        display: grid;
        place-items: center;
        font-size: 14px;
        font-weight: 900;
    }

    .hd .nm {
        font-size: 14.5px;
        font-weight: 800;
        letter-spacing: -.3px;
        line-height: 1.25;
    }

    .hd .nm small {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: var(--dim);
    }

    .hd .sh {
        margin-left: auto;
        font-size: 12.5px;
        font-weight: 800;
        color: var(--deep);
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 7px 13px;
    }

    .dots {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        gap: 5px;
        padding: 4px 0 8px;
        background: #fff;
    }

    .dots i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #d7dae5;
        transition: .25s;
    }

    .dots i.on {
        width: 19px;
        border-radius: 99px;
        background: var(--deep);
    }

    .deck {
        flex: 1;
        min-height: 0;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .deck::-webkit-scrollbar {
        display: none;
    }

    .panel {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 18px 22px 26px;
    }

    .panel::-webkit-scrollbar {
        display: none;
    }

    .panel.bleed {
        padding: 0;
        position: relative;
        overflow: hidden;
    }

    h2.t {
        font-size: 25px;
        font-weight: 850;
        letter-spacing: -1px;
        line-height: 1.32;
        margin: 4px 0 8px;
    }

    p.sub {
        margin: 0 0 15px;
        font-size: 13.5px;
        color: var(--dim);
        line-height: 1.6;
    }

    .img-page {
        margin: -18px -22px -26px;
        padding: 22px;
        min-height: 100%;
        background: linear-gradient(#fbfaf8, #f2f3f7);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
    }

    .img-slot {
        width: 100%;
        aspect-ratio: 1080/1440;
        background: #e9ebf2;
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        box-shadow: 0 14px 34px rgba(20, 26, 60, .10);
    }

    .img-slot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .img-fallback {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 30px;
        background: #fff;
    }

    .img-fallback h2 {
        font-size: 24px;
        font-weight: 800;
        color: var(--deep);
        margin: 0 0 10px;
        line-height: 1.3;
    }

    .img-fallback p {
        font-size: 14px;
        color: var(--dim);
        margin: 0;
        line-height: 1.6;
    }

    .tp-thumb {
        position: relative;
        border-radius: 20px;
        aspect-ratio: 16/10;
        overflow: hidden;
        background: linear-gradient(150deg, #3b4152, #12141c);
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    .tp-thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.6;
    }

    .tp-thumb .play {
        position: relative;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .94);
        display: grid;
        place-items: center;
        font-size: 18px;
        color: #1e2560;
        padding-left: 4px;
        z-index: 2;
    }

    .testi-quote {
        margin-top: 14px;
        font-size: 13.5px;
        font-weight: 800;
    }

    .testi-quote span {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: var(--dim);
        margin-top: 3px;
    }

    .column-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 20px;
        padding: 22px 20px;
    }

    .col-readtime {
        font-size: 11.5px;
        font-weight: 800;
        color: var(--navy);
        background: var(--soft);
        display: inline-block;
        padding: 4px 10px;
        border-radius: 999px;
        margin-bottom: 13px;
    }

    .column-card blockquote {
        margin: 0 0 12px;
        font-size: 23px;
        font-weight: 850;
        letter-spacing: -.9px;
        line-height: 1.36;
    }

    .col-key {
        margin: 0 0 8px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.65;
        color: #2c3245;
    }

    .column-card small {
        font-size: 12px;
        color: var(--dim);
        font-weight: 700;
    }

    .col-body {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px dashed var(--line);
    }

    .col-body p {
        margin: 0 0 10px;
        font-size: 13.8px;
        line-height: 1.82;
        color: #3a4056;
    }

    .col-body hr {
        margin: 14px 0;
        border: 0;
        border-top: 1px solid var(--line);
    }

    .sc-page {
        position: absolute;
        inset: 0;
        background: #000;
        color: #fff;
        overflow: hidden;
    }

    .sc-media {
        position: absolute;
        inset: 0;
        background: linear-gradient(160deg, #2a3350, #0f1220);
        display: grid;
        place-items: center;
    }

    .sc-media video,
    .sc-media img,
    .sc-media iframe {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border: 0;
    }

    .sc-media video,
    .sc-media img {
        object-fit: contain;
    }

    .sc-media iframe {
        width: auto;
        max-width: 100%;
        aspect-ratio: 9 / 16;
    }

    .sc-media .play {
        width: 62px;
        height: 62px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .92);
        display: grid;
        place-items: center;
        color: #12141c;
        font-size: 20px;
        padding-left: 4px;
        z-index: 2;
    }

    .sc-top {
        position: absolute;
        inset: 0 0 auto 0;
        padding: 12px 14px 26px;
        z-index: 3;
        background: linear-gradient(rgba(0, 0, 0, .55), transparent);
        pointer-events: none;
    }

    .sc-segs {
        display: flex;
        gap: 4px;
        pointer-events: auto;
    }

    .sc-segs button {
        flex: 1;
        height: 3.5px;
        border-radius: 99px;
        background: rgba(255, 255, 255, .32);
        padding: 0;
    }

    .sc-segs button.on {
        background: #fff;
    }

    .sc-label {
        margin-top: 10px;
        font-size: 12px;
        font-weight: 800;
        color: #ffd65c;
    }


    .sc-jump {
        display: flex;
        gap: 8px;
        margin-top: 13px;
    }

    .sc-jump button {
        flex: 1;
        padding: 11px 0;
        border-radius: 11px;
        background: rgba(255, 255, 255, .14);
        font-size: 13px;
        font-weight: 800;
        color: #fff;
    }

    .sc-jump button:disabled {
        opacity: .3;
    }

    .wcard {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 14px 16px;
        margin-bottom: 9px;
    }

    .wcard small {
        font-size: 11.5px;
        font-weight: 800;
        color: var(--navy);
    }

    .wcard b {
        display: block;
        font-size: 16px;
        margin: 3px 0 1px;
    }

    .wcard span {
        font-size: 12px;
        color: var(--dim);
    }

    .map {
        height: 150px;
        border-radius: 16px;
        margin: 10px 0;
        background: repeating-linear-gradient(90deg, #eef1f6 0 24px, #e6eaf2 24px 25px), repeating-linear-gradient(0deg, #eef1f6 0 24px, #e6eaf2 24px 25px);
        display: grid;
        place-items: center;
    }

    .map .pin {
        width: 15px;
        height: 15px;
        border-radius: 50% 50% 50% 0;
        background: #ff5a3c;
        transform: rotate(-45deg);
        box-shadow: 0 4px 10px rgba(255, 90, 60, .4);
    }

    .tel {
        font-size: 12.5px;
        margin: 12px 0 0;
        color: var(--dim);
    }

    .tel a {
        color: var(--navy);
        font-weight: 800;
        text-decoration: none;
    }

    .nav {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 18px;
        border-top: 1px solid var(--line);
        background: #fff;
    }

    @media(max-width:900px) {
        .nav {
            padding-bottom: calc(10px + env(safe-area-inset-bottom));
        }
    }

    @media(min-width:901px) {
        .nav .arw {
            display: none;
        }
    }

    .nav .arw {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        background: #f2f3f8;
        font-size: 15px;
        font-weight: 800;
    }

    .nav .arw:disabled {
        opacity: .3;
    }

    .nav .ct {
        flex: 1;
        text-align: center;
        font-size: 12.5px;
        font-weight: 800;
        color: var(--dim);
        font-variant-numeric: tabular-nums;
    }

    .sheet {
        position: absolute;
        inset: 0;
        z-index: 80;
        display: none;
    }

    .sheet.on {
        display: block;
    }

    .sheet .dim {
        position: absolute;
        inset: 0;
        background: rgba(12, 16, 32, .45);
    }

    .sheet .box {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        border-radius: 22px 22px 0 0;
        padding: 20px 20px calc(22px + env(safe-area-inset-bottom));
    }

    .sheet h3 {
        margin: 0 0 4px;
        font-size: 16.5px;
        font-weight: 850;
    }

    .sheet .d {
        margin: 0 0 14px;
        font-size: 12.5px;
        color: var(--dim);
    }

    .sheet .opt {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 11px;
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 14px;
        font-size: 14px;
        font-weight: 800;
        margin-bottom: 8px;
        text-align: left;
    }

    .sheet .opt .ic {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        display: grid;
        place-items: center;
        font-size: 15px;
    }

    .sheet .opt small {
        display: block;
        font-size: 11.5px;
        font-weight: 600;
        color: var(--dim);
        margin-top: 1px;
    }

    .sheet .cl {
        width: 100%;
        padding: 13px;
        font-size: 13.5px;
        font-weight: 800;
        color: var(--dim);
        text-align: center;
    }

    .toast {
        position: absolute;
        left: 50%;
        bottom: 86px;
        transform: translate(-50%, 14px);
        z-index: 90;
        background: rgba(18, 22, 40, .93);
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        padding: 11px 17px;
        border-radius: 12px;
        opacity: 0;
        pointer-events: none;
        transition: .25s;
        white-space: nowrap;
    }

    .toast.on {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .bp-badge {
        display: inline-block;
        font-size: 11.5px;
        font-weight: 800;
        color: #6c4fd1;
        background: #f0ecfb;
        padding: 5px 11px;
        border-radius: 999px;
        margin-bottom: 14px;
    }

    .bp-cover {
        border-radius: 22px;
        aspect-ratio: 1/1;
        background: linear-gradient(150deg, #e7e1f7, #f6f2ea);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 16px;
        padding: 0 20px;
    }

    .bp-cover.has-verse {
        aspect-ratio: auto;
        min-height: 150px;
        padding: 22px 22px;
    }

    .bp-cover-icon {
        font-size: 44px;
    }

    .bp-cover.has-verse .bp-cover-icon {
        font-size: 26px;
    }

    .bp-cover-verse {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.6;
        color: var(--ink);
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: opacity 150ms ease-out;
    }

    .bp-cover-ref {
        font-size: 13px;
        font-weight: 800;
        color: var(--deep);
        opacity: .6;
    }

    .bp-title {
        font-size: 21px;
        font-weight: 850;
        letter-spacing: -.6px;
    }

    .bp-sub {
        font-size: 12.5px;
        color: var(--dim);
        margin: 4px 0 16px;
    }

    .bp-prog {
        height: 5px;
        border-radius: 99px;
        background: #e5e7f0;
        position: relative;
        cursor: pointer;
    }

    .bp-prog i {
        display: block;
        height: 100%;
        border-radius: 99px;
        background: var(--deep);
    }

    .bp-prog .hd2 {
        position: absolute;
        top: 50%;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: var(--deep);
        transform: translate(-50%, -50%);
    }

    .bp-time {
        display: flex;
        justify-content: space-between;
        font-size: 11.5px;
        color: var(--dim);
        font-variant-numeric: tabular-nums;
        margin-top: 7px;
    }

    .bp-tr {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 22px;
        margin: 14px 0 6px;
    }

    .bp-ctl {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #f2f3f8;
        font-size: 16px;
    }

    .bp-ctl.main {
        width: 60px;
        height: 60px;
        background: var(--deep);
        color: #fff;
        font-size: 20px;
    }

    .bp-extra {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin: 12px 0 4px;
    }

    .bp-speed {
        border: 1px solid var(--line);
        border-radius: 9px;
        padding: 5px 8px;
        font-size: 12px;
        font-weight: 700;
        background: #fff;
        color: var(--ink);
    }

    .bp-vol {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: var(--dim);
    }

    .bp-vol input {
        width: 66px;
    }

    .bp-note {
        font-size: 11px;
        color: #a8adba;
        margin: 10px 0 0;
        text-align: center;
    }

    .brow {
        display: flex;
        gap: 8px;
        margin-top: 9px;
    }

    .brow button,
    .brow a {
        flex: 1;
        border-radius: 13px;
        padding: 13px 0;
        font-size: 13.5px;
        font-weight: 800;
        text-align: center;
        text-decoration: none;
        display: block;
    }

    .b-naver {
        background: #03C75A;
        color: #fff;
    }

    .b-kakao {
        background: var(--kakao);
        color: #3A2E00;
    }

    .b-line {
        background: #fff;
        border: 1px solid var(--line);
        color: var(--deep);
    }