/* =====================================================================
   SIGNAL · AI CRM Intelligence
   editorial intelligence desk — ink & paper, one accent, 8 fixed category hues
   (category palette validated for CVD/contrast on both surfaces)
===================================================================== */
:root {
    --font: 'Pretendard Variable', Pretendard, -apple-system, 'Segoe UI', system-ui, 'Noto Sans KR', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

    --bg: #f3f4f7;
    --surface: #ffffff;
    --surface-2: #f7f8fa;
    --surface-3: #eef0f4;
    --line: #e5e7ed;
    --line-2: #d3d8e1;
    --text: #0f1422;
    --text-2: #4b5468;
    --muted: #858ea1;
    --accent: #3b5bfd;
    --accent-ink: #2a45d6;
    --accent-soft: rgba(59, 91, 253, .08);
    --accent-line: rgba(59, 91, 253, .28);
    --hero-a: rgba(59, 91, 253, .10);
    --hero-b: rgba(0, 163, 154, .08);

    /* status (reserved: always icon + label) */
    --good: #0ca30c;
    --good-ink: #006300;
    --good-soft: rgba(12, 163, 12, .09);
    --warn: #fab219;
    --warn-ink: #8a5a00;
    --warn-soft: rgba(250, 178, 25, .14);
    --bad: #d03b3b;
    --bad-ink: #b42828;
    --bad-soft: rgba(208, 59, 59, .09);

    /* category palette — slot order is fixed (crm_cx … policy) */
    --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100;
    --c5: #e87ba4; --c6: #008300; --c7: #6250d6; --c8: #e34948;

    /* sequential (blue) for heat cells */
    --seq-0: #f1f4f9; --seq-1: #cde2fb; --seq-2: #9ec5f4; --seq-3: #5598e7; --seq-4: #256abf; --seq-5: #104281;

    --grid: #eceef2;
    --axis: #c3c7d0;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .05);
    --shadow-lg: 0 18px 48px rgba(16, 24, 40, .12);
    --radius: 16px;
    --radius-sm: 10px;
    --nav-w: 244px;
}

[data-theme="dark"] {
    --bg: #090c12;
    --surface: #121620;
    --surface-2: #161b26;
    --surface-3: #1c2230;
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 255, 255, .13);
    --text: #edf0f6;
    --text-2: #a9b2c3;
    --muted: #6e7789;
    --accent: #7f9bff;
    --accent-ink: #a5b7ff;
    --accent-soft: rgba(127, 155, 255, .12);
    --accent-line: rgba(127, 155, 255, .35);
    --hero-a: rgba(127, 155, 255, .14);
    --hero-b: rgba(63, 210, 199, .08);

    --good-ink: #3fcf3f;
    --good-soft: rgba(12, 163, 12, .16);
    --warn-ink: #fab219;
    --warn-soft: rgba(250, 178, 25, .14);
    --bad-ink: #f07272;
    --bad-soft: rgba(208, 59, 59, .18);

    --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500;
    --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767;

    --seq-0: #171c28; --seq-1: #182c4c; --seq-2: #184f95; --seq-3: #2a78d6; --seq-4: #5598e7; --seq-5: #9ec5f4;

    --grid: #1f2533;
    --axis: #343b4b;
    --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 10px 28px rgba(0, 0, 0, .28);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

* { margin: 0; padding: 0; box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    word-break: keep-all;          /* 한국어는 어절 단위로 줄바꿈 */
    overflow-wrap: anywhere;       /* 긴 URL·모델명은 넘치지 않게 */
}
a { color: inherit; text-decoration: none }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer; background: none; border: 0 }
::selection { background: var(--accent-soft) }
.mono { font-family: var(--mono) }
.num { font-variant-numeric: tabular-nums }
.hidden { display: none !important }
.muted { color: var(--muted) }
.dim { color: var(--text-2) }

/* ───────────── nav ───────────── */
.nav {
    position: fixed; inset: 0 auto 0 0; width: var(--nav-w); z-index: 40;
    background: var(--surface); border-right: 1px solid var(--line);
    display: flex; flex-direction: column; padding: 20px 14px 16px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px; flex: none;
    background: linear-gradient(140deg, var(--accent), #00a39a);
    display: grid; place-items: center; box-shadow: 0 6px 18px var(--accent-soft);
}
.brand-mark svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round }
.brand-mark svg circle { fill: #fff; stroke: none }
.brand-title { display: block; font-weight: 850; font-size: 18px; letter-spacing: .14em; line-height: 1.1 }
.brand-sub { display: block; font-size: 9.5px; letter-spacing: .16em; color: var(--muted); font-weight: 600; margin-top: 3px }
.nav-close { display: none; position: absolute; top: 22px; right: 14px; width: 32px; height: 32px; border-radius: 8px; color: var(--text-2) }
.nav-list { display: flex; flex-direction: column; gap: 2px }
.nav-list a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    color: var(--text-2); font-weight: 560; font-size: 14px; transition: background .15s, color .15s;
}
.nav-list a i { width: 18px; text-align: center; font-size: 14px; color: var(--muted); transition: color .15s }
.nav-list a:hover { background: var(--surface-2); color: var(--text) }
.nav-list a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700 }
.nav-list a.active i { color: var(--accent) }
.nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px }
.pipeline { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2) }
.pl-title { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; text-transform: uppercase }
.pl-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); padding: 3px 0 }
.pl-row b { margin-left: auto; font-weight: 650; color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.pl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none }
.pl-dot.on { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft) }
.pl-dot.busy { background: var(--accent); animation: pulse 1.4s infinite }
.pl-dot.err { background: var(--bad) }
.theme-toggle {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
    color: var(--text-2); font-size: 13px; border: 1px solid var(--line);
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text) }
.nav-backdrop { display: none }

/* ───────────── shell ───────────── */
.shell { margin-left: var(--nav-w); min-height: 100vh; display: flex; flex-direction: column }
.topbar {
    position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 14px;
    padding: 0 28px; background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.nav-toggle { display: none; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); color: var(--text-2) }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--muted) }
.crumb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent) }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px }
.page { padding: 26px 28px 40px; flex: 1; width: 100%; max-width: 1560px; margin: 0 auto }
.foot { padding: 18px 28px 26px; font-size: 12px; color: var(--muted); text-align: center }

/* ───────────── primitives ───────────── */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px }
.span-3 { grid-column: span 3 } .span-4 { grid-column: span 4 } .span-5 { grid-column: span 5 }
.span-6 { grid-column: span 6 } .span-7 { grid-column: span 7 } .span-8 { grid-column: span 8 }
.span-9 { grid-column: span 9 } .span-12 { grid-column: span 12 }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow); min-width: 0;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px }
.card-head h3 { font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px }
.card-head h3 i { color: var(--accent); font-size: 14px }
.card-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px }
.link { font-size: 12.5px; color: var(--accent-ink); font-weight: 650; white-space: nowrap }
.link:hover { text-decoration: underline }
.section-title { font-size: 12px; font-weight: 750; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin: 28px 0 12px }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.25 }
.page-head p { color: var(--text-2); margin-top: 4px; font-size: 14px }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
    border-radius: 10px; font-weight: 650; font-size: 13.5px; border: 1px solid transparent; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px) }
.btn:disabled { opacity: .55; cursor: not-allowed }
.btn-primary { background: var(--accent); color: #fff }
[data-theme="dark"] .btn-primary { color: #0b1020 }
.btn-primary:hover { filter: brightness(1.06) }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: var(--surface) }
.btn-ghost:hover { background: var(--surface-2) }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px }
.btn-icon { width: 32px; padding: 0 }
.btn .spin, .spin { animation: spin 1s linear infinite }

.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--text-2);
    white-space: nowrap;
}
.status-chip i { font-size: 11px }
.status-chip.ok { color: var(--good-ink); border-color: color-mix(in srgb, var(--good) 35%, transparent); background: var(--good-soft) }
.status-chip.busy { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-soft) }
.status-chip.err { color: var(--bad-ink); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft) }

.cat {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--text-2);
    padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap;
}
.cat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--muted)); flex: none }

.badge {
    display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 8px;
    border-radius: 6px; white-space: nowrap; line-height: 18px;
}
.badge i { font-size: 10px }
.badge.opportunity { color: var(--good-ink); background: var(--good-soft) }
.badge.threat { color: var(--bad-ink); background: var(--bad-soft) }
.badge.watch { color: var(--warn-ink); background: var(--warn-soft) }
.badge.neutral { color: var(--text-2); background: var(--surface-3) }
.badge.accent { color: var(--accent-ink); background: var(--accent-soft) }
.badge.new { color: var(--accent-ink); background: var(--accent-soft); letter-spacing: .04em }
.delta-up { color: var(--good-ink); font-weight: 700 }
.delta-down { color: var(--bad-ink); font-weight: 700 }
.delta-flat { color: var(--muted); font-weight: 600 }

.tag {
    display: inline-flex; align-items: center; font-size: 12px; color: var(--text-2); padding: 1px 8px; border-radius: 6px;
    background: var(--surface-3); white-space: nowrap; cursor: pointer; transition: color .15s, background .15s;
}
.tag:hover { color: var(--accent-ink); background: var(--accent-soft) }
.tag.ent { background: transparent; border: 1px solid var(--line); }

.meter { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); white-space: nowrap }
.meter-bar { width: 54px; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden }
.meter-bar span { display: block; height: 100%; border-radius: 4px; background: var(--accent) }
.meter b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 18px }

input.input, select.select, textarea.input {
    height: 38px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 0 12px;
    outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.6 }
input.input:focus, select.select:focus, textarea.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
select.select { padding-right: 30px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; background-size: 5px 5px; background-repeat: no-repeat }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-3); gap: 2px }
.seg button { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 650; color: var(--text-2) }
.seg button:hover { color: var(--text) }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12) }

.switch { position: relative; width: 38px; height: 22px; flex: none; display: inline-block }
.switch input { opacity: 0; width: 0; height: 0 }
.switch span { position: absolute; inset: 0; border-radius: 22px; background: var(--line-2); transition: background .2s; cursor: pointer }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25) }
.switch input:checked + span { background: var(--accent) }
.switch input:checked + span::after { transform: translateX(16px) }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft) }

.empty { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13px }
.empty i { font-size: 22px; display: block; margin-bottom: 10px; opacity: .6 }
.skel { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 8px; min-height: 14px }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 55%, transparent), transparent); animation: shimmer 1.4s infinite }
.loading-soft { opacity: .55; transition: opacity .2s }

@keyframes spin { to { transform: rotate(360deg) } }
@keyframes shimmer { to { transform: translateX(100%) } }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes rise { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.rise { animation: rise .35s ease both }

/* ───────────── tooltip & toasts ───────────── */
.tip {
    position: fixed; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .12s;
    background: var(--text); color: var(--bg); font-size: 12px; padding: 7px 10px; border-radius: 8px; max-width: 320px;
    box-shadow: var(--shadow-lg); line-height: 1.45;
}
.tip.show { opacity: 1 }
.tip b { font-weight: 700 }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px }
.toast {
    display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; padding: 12px 14px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 13px; animation: rise .25s ease both;
}
.toast i { font-size: 15px }
.toast.ok i { color: var(--good) }
.toast.err i { color: var(--bad) }
.toast.info i { color: var(--accent) }

/* ───────────── dashboard: hero ───────────── */
.hero {
    position: relative; overflow: hidden; padding: 28px 30px 26px; display: flex; flex-direction: column;
    background:
        radial-gradient(700px 320px at 105% -20%, var(--hero-a), transparent 65%),
        radial-gradient(520px 300px at -10% 120%, var(--hero-b), transparent 65%),
        var(--surface);
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; color: var(--accent-ink) }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2s infinite }
.hero-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap }
.hero-title { font-size: clamp(22px, 2.3vw, 31px); font-weight: 820; letter-spacing: -.03em; line-height: 1.28; margin: 16px 0 12px; max-width: 920px; text-wrap: balance }
.hero-summary { font-size: 15px; line-height: 1.75; color: var(--text-2); max-width: 900px }
.hero-actions { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap }
.hero-progress { margin-top: 18px; max-width: 520px }
.hero-progress .bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 8px }
.hero-progress .bar span { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .4s }

.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: stretch }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px }
.kpi .k-label { font-size: 12px; font-weight: 650; color: var(--text-2); display: flex; align-items: center; gap: 7px }
.kpi .k-label i { color: var(--muted); font-size: 12px }
.kpi .k-value { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 4px }
.kpi .k-value small { font-size: 14px; font-weight: 650; color: var(--muted); margin-left: 3px; letter-spacing: 0 }
.kpi .k-sub { font-size: 11.5px; color: var(--muted) }
.kpi.wide { grid-column: span 2 }
.split { display: flex; height: 8px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 10px 0 8px; background: var(--surface) }
.split span { display: block; height: 100% }
.split-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2) }
.split-legend b { color: var(--text); font-variant-numeric: tabular-nums }
.split-legend i { font-size: 10px; margin-right: 3px }

/* trends */
.trend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
.trend {
    border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 9px;
    background: var(--surface-2); transition: border-color .15s, transform .15s; min-width: 0;
}
.trend:hover { border-color: var(--accent-line) }
.trend-top { display: flex; align-items: center; justify-content: space-between; gap: 8px }
.trend-rank { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .08em }
.trend h4 { font-size: 16px; font-weight: 780; letter-spacing: -.02em; line-height: 1.35 }
.trend p { font-size: 13px; color: var(--text-2); line-height: 1.65 }
.momentum { font-size: 11.5px; font-weight: 750; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink) }
.impact-dots { display: inline-flex; gap: 3px }
.impact-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2) }
.impact-dots span.on { background: var(--accent) }
.implication { display: flex; gap: 9px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--text) }
.implication i { color: var(--accent); margin-top: 3px; font-size: 12px }
.kw-row { display: flex; gap: 5px; flex-wrap: wrap }
.evidence { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding-top: 4px; border-top: 1px dashed var(--line) }
.evidence a { color: var(--text-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 3px }
.evidence a:hover { color: var(--accent-ink) }
.evidence a i { font-size: 10px; margin-right: 5px; color: var(--muted) }

/* must-know list */
.mk-list { list-style: none; display: flex; flex-direction: column }
.mk { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); align-items: start }
.mk:first-child { border-top: 0; padding-top: 2px }
.mk-rank { font-size: 18px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.3 }
.mk:nth-child(-n+3) .mk-rank { color: var(--accent) }
.mk-title { font-size: 14.5px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em }
.mk-title:hover { color: var(--accent-ink) }
.mk-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; font-size: 12px; color: var(--muted) }
.mk-reason { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.6 }
.mk-reason i { color: var(--accent); font-size: 11px; margin-right: 5px }
.mk-score { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end }

/* vision */
.vision-card { display: flex; flex-direction: column }
.vision-statement {
    font-size: 17px; font-weight: 750; letter-spacing: -.02em; line-height: 1.55; padding: 16px 18px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-soft), transparent 80%); border: 1px solid var(--accent-line); margin-bottom: 14px;
}
.vision-statement .q { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--accent-ink); display: block; margin-bottom: 6px }
.horizon-stack { display: flex; flex-direction: column; gap: 10px }
.hz { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line) }
.hz:first-child { border-top: 0 }
.hz-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); line-height: 1.4 }
.hz-label b { display: block; font-size: 14px; color: var(--text); letter-spacing: -.01em }
.hz-title { font-weight: 700; font-size: 13.5px }
.hz-action { font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.6 }

/* category momentum */
.cm-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 92px; align-items: center; gap: 12px; padding: 7px 0 }
.cm-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; white-space: nowrap }
.cm-label::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--dot); flex: none }
.cm-track { position: relative; height: 22px; border-radius: 4px }
.cm-bar { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 0 4px 4px 0; background: var(--dot); min-width: 2px; cursor: default; transition: width .5s ease }
.cm-prev { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); opacity: .55; border-radius: 1px }
.cm-val { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap }
.cm-val b { font-weight: 750; margin-right: 6px }
.cm-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--muted); margin-top: 10px; flex-wrap: wrap }
.cm-legend span { display: inline-flex; align-items: center; gap: 6px }
.cm-legend .lg-bar { width: 16px; height: 8px; border-radius: 2px; background: var(--muted) }
.cm-legend .lg-tick { width: 2px; height: 12px; background: var(--text); opacity: .55 }

/* keyword list */
.kw-list { display: flex; flex-direction: column }
.kw-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) 84px 64px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer }
.kw-item:first-child { border-top: 0 }
.kw-item:hover .kw-name { color: var(--accent-ink) }
.kw-rank { font-size: 12px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums }
.kw-name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.kw-name small { font-weight: 600; color: var(--muted); margin-left: 6px; font-size: 11.5px }
.kw-growth { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums }
.spark { display: block; overflow: visible }
.spark .area { fill: var(--accent); opacity: .12 }
.spark .ln { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round }
.spark .end { fill: var(--accent); stroke: var(--surface); stroke-width: 2 }

/* radar mini */
.mini-list { list-style: none; display: flex; flex-direction: column }
.mini { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line) }
.mini:first-child { border-top: 0 }
.mini .r { font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums }
.mini .n { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mini .n small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis }
.mini .m { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-2); text-align: right; white-space: nowrap }
.mv { font-size: 10.5px; font-weight: 750; margin-left: 4px }

/* community */
.pulse-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line) }
.pulse-item:first-child { border-top: 0; padding-top: 0 }
.src-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; background: var(--surface-3); color: var(--text-2); font-weight: 800 }
.pulse-item h5 { font-size: 13.5px; font-weight: 680; line-height: 1.45 }
.pulse-item h5 a:hover { color: var(--accent-ink) }
.pulse-meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; margin-top: 3px; flex-wrap: wrap }

/* entity bars */
.rank-bars { display: flex; flex-direction: column; gap: 7px }
.rb { display: grid; grid-template-columns: 116px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 12.5px; cursor: pointer }
.rb .rb-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.rb:hover .rb-name { color: var(--accent-ink) }
.rb .rb-track { height: 8px; background: var(--surface-3); border-radius: 0 4px 4px 0 }
.rb .rb-track span { display: block; height: 100%; background: var(--c1); border-radius: 0 4px 4px 0 }
.rb .rb-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2) }

/* heat matrix */
.heat { display: grid; grid-template-columns: 72px repeat(3, minmax(0, 1fr)); gap: 3px; font-size: 12px }
.heat .hh { color: var(--muted); font-weight: 650; text-align: center; padding: 4px 0; font-size: 11.5px }
.heat .hr { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12px }
.heat .hc { height: 44px; border-radius: 6px; display: grid; place-items: center; font-weight: 750; font-variant-numeric: tabular-nums; cursor: default }

/* ───────────── news ───────────── */
.filters { padding: 16px 18px; position: sticky; top: 72px; z-index: 20 }
.f-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }
.search { position: relative; flex: 1 1 260px; min-width: 200px }
.search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px }
.search input { width: 100%; padding-left: 36px }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px }
.cat-chip {
    display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
    font-size: 12.5px; font-weight: 650; color: var(--text-2); background: var(--surface); transition: all .15s;
}
.cat-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--muted)) }
.cat-chip.all::before { display: none }
.cat-chip small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums }
.cat-chip:hover { border-color: var(--text-2); color: var(--text) }
.cat-chip.on { border-color: var(--text); color: var(--text); background: var(--surface-3) }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px }
.af { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 650 }
.af button { width: 18px; height: 18px; border-radius: 5px; color: inherit; font-size: 11px }
.af button:hover { background: var(--accent-line) }
.toggle-btn { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 650; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; background: var(--surface) }
.toggle-btn.on { color: var(--warn-ink); border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: var(--warn-soft) }
.result-meta { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 12px; font-size: 13px; color: var(--text-2); gap: 10px; flex-wrap: wrap }
.result-meta b { color: var(--text) }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start }
.news-list.compact { grid-template-columns: minmax(0, 1fr) }

.news-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 16px; transition: border-color .15s }
.news-card:hover { border-color: var(--line-2) }
.nc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted) }
.nc-meta .src { color: var(--text-2); font-weight: 650 }
.nc-meta .ai-flag { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 4px }
.nc-meta .ai-flag.h { color: var(--muted) }
.news-card h3 { font-size: 16.5px; font-weight: 760; line-height: 1.45; letter-spacing: -.015em }
.news-card h3 a:hover { color: var(--accent-ink) }
.nc-orig { font-size: 12px; color: var(--muted); margin-top: -6px; line-height: 1.45 }
.nc-sum { font-size: 13.5px; color: var(--text-2); line-height: 1.7 }
.why { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; padding: 9px 12px }
.why-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--accent-ink); display: flex; align-items: center; gap: 6px; margin-bottom: 3px }
.why p { font-size: 13px; line-height: 1.65; color: var(--text) }
.nc-tags { display: flex; gap: 5px; flex-wrap: wrap }
.nc-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto }
.nc-foot .badges { display: flex; gap: 6px; flex-wrap: wrap }
.nc-foot .actions { margin-left: auto; display: flex; gap: 4px }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: all .15s }
.icon-btn:hover { background: var(--surface-3); color: var(--text) }
.icon-btn.starred { color: var(--warn) }
.news-list.compact .news-card { padding: 14px 18px; gap: 7px }
.news-list.compact .nc-sum, .news-list.compact .nc-orig, .news-list.compact .nc-tags { display: none }
.news-list.compact .why { padding: 6px 10px }
.more-wrap { display: flex; justify-content: center; margin-top: 20px }

/* ───────────── trends ───────────── */
.kt { width: 100%; border-collapse: collapse; font-size: 13px }
.kt th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap }
.kt td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle }
.kt tr:last-child td { border-bottom: 0 }
.kt tr.clickable { cursor: pointer }
.kt tr.clickable:hover td { background: var(--surface-2) }
.kt .r { text-align: right; font-variant-numeric: tabular-nums }
.kt .name { font-weight: 700 }
.kt .top-link { color: var(--text-2); font-size: 12.5px; display: block; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.kt .top-link:hover { color: var(--accent-ink) }
.inline-bar { display: flex; align-items: center; gap: 8px }
.inline-bar span.b { height: 6px; border-radius: 0 3px 3px 0; background: var(--c1); display: block }
.sm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px }
.sm { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; background: var(--surface-2) }
.sm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px }
.sm-head .cat { background: transparent; border: 0; padding: 0; font-size: 12.5px; color: var(--text) }
.sm-head .v { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap }
.sm-head .v b { color: var(--text); font-size: 17px; font-weight: 800; margin-right: 4px }
.sm canvas { width: 100% !important; height: 86px !important; margin-top: 6px }
.chart-box { position: relative; height: 380px }
.quad-list { display: flex; flex-direction: column; gap: 2px }
.quad-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; align-items: center }
.quad-item:first-child { border-top: 0 }
.quad-item a { font-weight: 650; line-height: 1.45 }
.quad-item a:hover { color: var(--accent-ink) }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 10px }
.legend-row span { display: inline-flex; align-items: center; gap: 6px }
.legend-row i.sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block }

/* ───────────── strategy ───────────── */
.st-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap }
.vision-hero {
    padding: 30px 32px; position: relative; overflow: hidden;
    background: radial-gradient(800px 360px at 100% 0%, var(--hero-a), transparent 60%), radial-gradient(600px 300px at 0% 100%, var(--hero-b), transparent 60%), var(--surface);
}
.vision-hero .eyebrow { margin-bottom: 14px }
.vision-hero h2 { font-size: clamp(21px, 2.1vw, 28px); font-weight: 820; letter-spacing: -.03em; line-height: 1.38; max-width: 1000px; text-wrap: balance }
.vh-summary { color: var(--text-2); font-size: 14.5px; line-height: 1.75; margin-top: 14px; max-width: 980px }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px }
.pillar { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 12px; padding: 14px 16px }
.pillar .pn { font-size: 11px; font-weight: 800; color: var(--accent-ink); letter-spacing: .1em }
.pillar h4 { font-size: 15px; font-weight: 760; margin: 4px 0 4px }
.pillar p { font-size: 13px; color: var(--text-2); line-height: 1.6 }
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
.rm-col { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 16px; display: flex; flex-direction: column; gap: 10px; position: relative }
.rm-col::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); opacity: var(--op, 1) }
.rm-head { display: flex; align-items: baseline; justify-content: space-between }
.rm-head h4 { font-size: 15px; font-weight: 800 }
.rm-head span { font-size: 12px; color: var(--muted); font-weight: 650 }
.rm-step { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px }
.rm-step h5 { font-size: 13.5px; font-weight: 750; line-height: 1.45 }
.rm-step p { font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin-top: 4px }
.rm-kpi { margin-top: 8px; font-size: 11.5px; color: var(--accent-ink); display: flex; gap: 6px; align-items: flex-start; font-weight: 600 }
.rm-kpi i { margin-top: 3px; font-size: 10px }
.ot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.ot ul { list-style: none; display: flex; flex-direction: column; gap: 8px }
.ot li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.6; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line) }
.ot li i { margin-top: 4px; font-size: 12px }
.ot .opp i { color: var(--good) }
.ot .thr i { color: var(--bad) }
.ot h4 { font-size: 13px; font-weight: 800; margin-bottom: 10px; display: flex; gap: 7px; align-items: center }
.comp-table { width: 100%; border-collapse: collapse; font-size: 13px }
.comp-table th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line) }
.comp-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6 }
.comp-table tr:last-child td { border-bottom: 0 }
.comp-table td:first-child { font-weight: 750; white-space: nowrap }
.pick { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line) }
.pick:first-child { border-top: 0; padding-top: 0 }
.pick-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; font-size: 13px }
.pick h5 { font-size: 13.5px; font-weight: 750 }
.pick p { font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin-top: 2px }
.gen-overlay { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); margin-bottom: 18px; font-size: 13.5px }
.gen-overlay i { color: var(--accent); font-size: 18px }
.gen-overlay b { font-weight: 750 }

/* ───────────── radar ───────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto }
.tabs button { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center }
.tabs button:hover { color: var(--text) }
.tabs button.on { color: var(--text); border-color: var(--accent) }
.lb { width: 100%; border-collapse: collapse; font-size: 13px }
.lb th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap }
.lb td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle }
.lb tr:last-child td { border-bottom: 0 }
.lb .r { text-align: right; font-variant-numeric: tabular-nums }
.lb .rank { font-weight: 800; font-variant-numeric: tabular-nums; width: 34px }
.lb .model { font-weight: 700 }
.lic { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: var(--surface-3); color: var(--text-2) }
.lic.open { background: var(--good-soft); color: var(--good-ink) }
.elo { display: flex; align-items: center; gap: 10px; min-width: 200px }
.elo-track { position: relative; flex: 1; height: 14px }
.elo-ci { position: absolute; top: 6px; height: 2px; background: var(--c1); opacity: .45 }
.elo-dot { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c1); border: 2px solid var(--surface) }
.elo b { font-variant-numeric: tabular-nums; min-width: 48px; text-align: right }
.rlist { list-style: none }
.ritem { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); align-items: start }
.ritem:first-child { border-top: 0; padding-top: 0 }
.ritem .rk { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; line-height: 1.5 }
.ritem .tt { font-weight: 700; font-size: 13.5px; word-break: break-all; line-height: 1.45 }
.ritem .tt:hover { color: var(--accent-ink) }
.ritem .ds { font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.55 }
.ritem .note { font-size: 12.5px; color: var(--text); margin-top: 4px; line-height: 1.55; display: flex; gap: 6px }
.ritem .note i { color: var(--accent); font-size: 10px; margin-top: 5px }
.ritem .mt { font-size: 12px; color: var(--muted); display: flex; gap: 10px; margin-top: 5px; flex-wrap: wrap }
.ritem .mv-col { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 750; white-space: nowrap }
.ritem .mv-col small { display: block; font-size: 11px; color: var(--muted); font-weight: 600 }
.paper { padding: 16px 0; border-top: 1px solid var(--line) }
.paper:first-child { border-top: 0; padding-top: 0 }
.paper h4 { font-size: 15px; font-weight: 750; line-height: 1.45 }
.paper h4 a:hover { color: var(--accent-ink) }
.paper .abs { font-size: 12.5px; color: var(--text-2); line-height: 1.65; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.paper .abs.open { -webkit-line-clamp: unset }

/* ───────────── sources & settings ───────────── */
.src-group { margin-bottom: 18px }
.src-group-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 750; margin-bottom: 10px }
.src-group-head i { color: var(--accent); width: 18px; text-align: center }
.src-group-head small { font-weight: 600; color: var(--muted); font-size: 12px }
.st { width: 100%; border-collapse: collapse; font-size: 13px }
.st td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: middle }
.st tr:first-child td { border-top: 0 }
.st .s-name { font-weight: 700 }
.st .s-name a:hover { color: var(--accent-ink) }
.st .s-desc { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.5 }
.st .s-err { font-size: 11.5px; color: var(--bad-ink); margin-top: 3px; line-height: 1.4; word-break: break-all }
.st .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap }
.kind { font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--text-2) }
.state-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; white-space: nowrap }
.state-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2) }
.state-dot.ok { color: var(--good-ink) } .state-dot.ok::before { background: var(--good) }
.state-dot.fail { color: var(--bad-ink) } .state-dot.fail::before { background: var(--bad) }
.state-dot.off { color: var(--muted) }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.field.full { grid-column: 1 / -1 }
.field label { font-size: 12.5px; font-weight: 700; color: var(--text-2) }
.field .hint { font-size: 11.5px; color: var(--muted); line-height: 1.5 }
.field-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2) }
.field-inline span { font-size: 13px; font-weight: 650 }
.field-inline small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500 }
.form-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; align-items: center }
.stat-rows { display: flex; flex-direction: column }
.stat-rows div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px }
.stat-rows div:first-child { border-top: 0 }
.stat-rows b { font-variant-numeric: tabular-nums }
.progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .4s }

/* ───────────── responsive ───────────── */
@media (max-width: 1280px) {
    .span-3 { grid-column: span 6 }
    .trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .sm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 1080px) {
    .span-4, .span-5, .span-7, .span-8, .span-9, .span-6 { grid-column: span 12 }
    .news-list { grid-template-columns: minmax(0, 1fr) }
    .roadmap, .pillars { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 900px) {
    .nav { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg) }
    .nav.open { transform: none }
    .nav-close { display: grid; place-items: center }
    .nav-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35 }
    .shell { margin-left: 0 }
    .nav-toggle { display: grid; place-items: center }
    .topbar { padding: 0 16px }
    .page { padding: 18px 16px 32px }
    #btnCollectNow span, .status-chip span { display: none }
    .filters { position: static }
    .ot { grid-template-columns: minmax(0, 1fr) }
    .form-grid { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 640px) {
    .span-3 { grid-column: span 12 }
    .trend-grid, .sm-grid { grid-template-columns: minmax(0, 1fr) }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .hero { padding: 22px 18px }
    .card { padding: 16px }
    .cm-row { grid-template-columns: 88px minmax(0, 1fr) 76px; gap: 8px }
    .kw-item { grid-template-columns: 20px minmax(0, 1fr) 70px }
    .kw-item .spark { display: none }
    .mk { grid-template-columns: 24px minmax(0, 1fr) }
    .mk-score { display: none }
    .lb .hide-sm, .st .hide-sm, .kt .hide-sm { display: none }
    .elo { min-width: 120px }
    .vision-hero { padding: 22px 18px }
}
@media print {
    .nav, .topbar, .foot, .no-print { display: none !important }
    .shell { margin-left: 0 }
    .card { box-shadow: none; break-inside: avoid }
}

/* =====================================================================
   AUTH · USERS · SECURITY
===================================================================== */
.nav-sep { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--muted); padding: 14px 12px 6px; text-transform: uppercase }
.nav-list a .nav-lock { margin-left: auto; width: auto; font-size: 11px; color: var(--muted) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.nowrap { white-space: nowrap }
.table-wrap { overflow-x: auto }
.form-grid > .full { grid-column: 1 / -1 }
.btn-danger { background: var(--bad); color: #fff }
.btn-danger:hover { filter: brightness(1.06) }

/* user menu */
.user-menu { position: relative }
.user-menu summary {
    list-style: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px 0 4px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 650; user-select: none;
}
.user-menu summary::-webkit-details-marker { display: none }
.user-menu summary:hover { background: var(--surface-2) }
.user-menu[open] summary { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft) }
.um-caret { font-size: 10px; color: var(--muted) }
.um-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.avatar {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; flex: none;
    color: var(--text-2); background: var(--surface-3); border: 1px solid var(--line-2);
}
.avatar.admin { color: #fff; background: linear-gradient(140deg, var(--accent), #00a39a); border-color: transparent }
[data-theme="dark"] .avatar.admin { color: #0b1020 }
.avatar.lg { width: 40px; height: 40px; font-size: 16px }
.um-pop {
    position: absolute; right: 0; top: calc(100% + 8px); width: 252px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; animation: rise .16s ease both;
}
.um-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px }
.um-head b { display: block; font-size: 14px }
.um-head small { display: block; color: var(--muted); font-size: 12px; font-family: var(--mono) }
.um-head .role-badge { margin-top: 6px }
.um-pop a, .um-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: var(--text-2); font-weight: 600; text-align: left }
.um-pop a:hover, .um-pop button:hover { background: var(--surface-2); color: var(--text) }
.um-pop a i, .um-pop button i { width: 16px; text-align: center; color: var(--muted) }
.um-pop form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px }
.role-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; line-height: 18px }
.role-badge i { font-size: 10px }
.role-badge.admin { color: var(--accent-ink); background: var(--accent-soft) }
.role-badge.user { color: var(--text-2); background: var(--surface-3) }
.role-badge.lg { font-size: 13px; padding: 6px 12px; border-radius: 9px }
.role-badge.lg i { font-size: 12px }
.role-badge.sm { font-size: 10.5px; padding: 0 6px; line-height: 17px }

.sec-banner {
    display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 11px 14px 11px 16px; border-radius: 12px;
    background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); font-size: 13.5px;
}
.sec-banner > i { color: var(--warn-ink); font-size: 15px }
.sec-banner span { flex: 1; color: var(--text) }
.sec-banner b { color: var(--warn-ink) }

/* modal */
body.modal-open { overflow: hidden }
.modal-back {
    position: fixed; inset: 0; z-index: 100; background: rgba(9, 12, 20, .48); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    display: grid; place-items: center; padding: 20px; animation: fadein .15s ease both;
}
@keyframes fadein { from { opacity: 0 } }
.modal {
    width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line);
    border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px 24px; animation: rise .2s ease both;
}
.modal.wide { max-width: 620px }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px }
.modal-head h3 { font-size: 17px; font-weight: 800; display: flex; gap: 10px; align-items: center; letter-spacing: -.01em }
.modal-head h3 i { color: var(--accent) }
.modal-msg { color: var(--text-2); font-size: 13.5px; line-height: 1.65; margin-bottom: 14px }
.modal-msg b { color: var(--text) }
.modal-err { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad-ink); font-size: 13px; line-height: 1.5 }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px }
.role-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.rp { position: relative; cursor: pointer }
.rp input { position: absolute; opacity: 0; pointer-events: none }
.rp > span { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .15s, background .15s }
.rp b { display: flex; gap: 8px; align-items: center; font-size: 13.5px }
.rp b i { color: var(--muted); font-size: 12px }
.rp small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.45 }
.rp:hover > span { border-color: var(--accent-line) }
.rp input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset }
.rp input:checked + span b i { color: var(--accent) }
.rp input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft) }
.rp input:disabled + span { opacity: .55; cursor: not-allowed }
.pw-gen { display: flex; gap: 8px }
.pw-gen .input { flex: 1 }
.cred { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 2px 14px; margin-bottom: 12px }
.cred div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px }
.cred div:first-child { border-top: 0 }
.cred span { color: var(--muted) }
.cred b { word-break: break-all; text-align: right; font-weight: 600 }
.hint-box { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 12px 0; line-height: 1.55 }
.hint-box i { color: var(--accent); margin-top: 3px }

/* password rules & strength (auth page + modals) */
.pw-rules { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 14px; font-size: 12px; color: var(--muted) }
.pw-rules li { display: flex; gap: 7px; align-items: center; line-height: 1.4 }
.pw-rules li i { font-size: 11px; width: 12px; text-align: center }
.pw-rules li:not(.ok):not(.no) i { font-size: 5px; opacity: .6 }
.pw-rules li.ok { color: var(--good-ink) }
.pw-rules li.no { color: var(--bad-ink) }
.pw-rules.sm { margin-top: 8px }
.pw-meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 6px; align-items: center; margin-top: -6px }
.pw-meter span { height: 5px; border-radius: 5px; background: var(--surface-3); transition: background .2s }
.pw-meter b { font-size: 12px; color: var(--muted); font-weight: 650; margin-left: 6px; min-width: 58px; text-align: right }
.pw-meter[data-score="0"] span:nth-child(-n+1), .pw-meter[data-score="1"] span:nth-child(-n+2) { background: var(--bad) }
.pw-meter[data-score="2"] span:nth-child(-n+3) { background: var(--warn) }
.pw-meter[data-score="3"] span:nth-child(-n+4), .pw-meter[data-score="4"] span:nth-child(-n+4) { background: var(--good) }
.match { font-size: 12px; display: flex; gap: 6px; align-items: center }
.match.ok { color: var(--good-ink) }
.match.no { color: var(--bad-ink) }

/* settings: tabs · users · security */
.tab-count { margin-left: 2px; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); line-height: 18px }
.tab-count:empty { display: none }
.tab-count.warn { background: var(--bad-soft); color: var(--bad-ink) }
.lb th.c, .lb td.c { text-align: center }
.lb th.r, .lb td.r { text-align: right }
.ut td { padding: 12px 10px }
.u-cell { display: flex; align-items: center; gap: 11px; min-width: 160px }
.u-cell b { font-weight: 700 }
.u-cell small { display: block; color: var(--muted); font-size: 11.5px }
.row-actions { display: inline-flex; gap: 2px }
.show-sm { display: none !important }
.icon-btn.warn { color: var(--warn-ink) }
.icon-btn.danger:hover { color: var(--bad-ink); background: var(--bad-soft) }
.state-dot.warn { color: var(--warn-ink) }
.state-dot.warn::before { background: var(--warn) }
.role-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px }
.role-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2) }
.role-card.admin { border-color: var(--accent-line) }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px }
.rc-head small { color: var(--muted); font-size: 11.5px; font-weight: 600 }
.role-card p { font-size: 12.5px; color: var(--text-2); margin-top: 8px; line-height: 1.6 }
.perm td { font-size: 12.5px }
.perm .yes { color: var(--good-ink) }
.perm .no { color: var(--muted) }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px }
.sec-kpi.bad .k-label i { color: var(--bad) }
.sec-kpi.warn .k-label i { color: var(--warn-ink) }
.li-group { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin: 4px 0 2px; text-transform: uppercase }
.li-group small { font-size: 11px; color: var(--text-2); margin-left: 4px }
.lock-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line) }
.li-group + .lock-item { border-top: 0 }
.lock-item + .li-group { margin-top: 14px }
.li-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none }
.li-icon.bad { background: var(--bad-soft); color: var(--bad-ink) }
.li-icon.warn { background: var(--warn-soft); color: var(--warn-ink) }
.li-main { flex: 1; min-width: 0 }
.li-main small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px }
.defense { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px }
.df { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2) }
.df-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none }
.df b { font-size: 13.5px }
.df p { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.55 }
.ev-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap }
.ev-badge i { font-size: 11px }
.ev-badge.ok { color: var(--good-ink); background: var(--good-soft) }
.ev-badge.fail { color: var(--bad-ink); background: var(--bad-soft) }
.ev-badge.block { color: var(--warn-ink); background: var(--warn-soft) }
.ev-badge.admin { color: var(--accent-ink); background: var(--accent-soft) }
.ev-badge.neutral { color: var(--text-2); background: var(--surface-3) }
.ev td { font-size: 12.5px }
.err-page { max-width: 560px; margin: 40px auto; text-align: center; padding: 40px 32px }
.err-code { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px }
.err-page h1 { font-size: 22px; margin: 16px 0 8px; letter-spacing: -.02em }
.err-page .btn { margin-top: 22px }

/* auth pages */
.auth-body { min-height: 100vh }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh }
.auth-side {
    position: relative; overflow: hidden; padding: 44px 56px; display: flex; flex-direction: column; color: #fff;
    background: radial-gradient(900px 520px at -10% -12%, rgba(98, 125, 255, .9) 0%, transparent 62%),
                radial-gradient(700px 500px at 110% 110%, rgba(0, 163, 154, .55) 0%, transparent 60%),
                linear-gradient(155deg, #1b2b93 0%, #0c1547 52%, #071d2c 100%);
}
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1 }
.auth-side .brand-mark { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); box-shadow: none }
.auth-side .brand-title { color: #fff }
.auth-side .brand-sub { color: rgba(255, 255, 255, .6) }
.auth-pitch { margin: auto 0; max-width: 520px; position: relative; z-index: 1; padding: 40px 0 }
.auth-pitch h1 { font-size: 40px; line-height: 1.22; font-weight: 850; letter-spacing: -.035em }
.auth-pitch p { margin-top: 16px; color: rgba(255, 255, 255, .76); font-size: 15.5px; line-height: 1.75 }
.auth-pitch ul { list-style: none; margin-top: 34px; display: flex; flex-direction: column; gap: 16px }
.auth-pitch li { display: flex; gap: 14px; align-items: flex-start }
.auth-pitch li i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); flex: none; font-size: 15px }
.auth-pitch li span { color: rgba(255, 255, 255, .66); font-size: 13px; line-height: 1.55 }
.auth-pitch li b { display: block; color: #fff; font-weight: 750; font-size: 14.5px; margin-bottom: 1px }
.auth-side-foot { font-size: 12px; color: rgba(255, 255, 255, .55); position: relative; z-index: 1; display: flex; gap: 8px; align-items: center }
.auth-waves { position: absolute; right: -60px; bottom: -60px; width: 560px; height: 560px; fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1.2 }
.auth-waves circle { animation: wave 6s ease-in-out infinite }
.auth-waves circle:nth-child(2) { animation-delay: .6s }
.auth-waves circle:nth-child(3) { animation-delay: 1.2s }
.auth-waves circle:nth-child(4) { animation-delay: 1.8s }
@keyframes wave { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .auth-waves circle { animation: none } }
.auth-main { position: relative; display: grid; place-items: center; padding: 48px 24px; background: var(--bg) }
.auth-theme { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); color: var(--text-2); background: var(--surface) }
.auth-theme:hover { color: var(--text) }
.auth-card { width: 100%; max-width: 400px }
.mobile-only { display: none }
.auth-title { font-size: 28px; font-weight: 850; letter-spacing: -.03em; line-height: 1.25 }
.auth-sub { color: var(--text-2); margin-top: 6px; font-size: 14px; line-height: 1.6 }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; margin-top: 18px; border: 1px solid transparent }
.alert > i { margin-top: 3px }
.alert.err { color: var(--bad-ink); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 28%, transparent) }
.alert.lock { color: var(--warn-ink); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 42%, transparent) }
.alert.info { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line) }
.alert .countdown { font-variant-numeric: tabular-nums; white-space: nowrap }
.auth-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px }
.auth-field { display: flex; flex-direction: column; gap: 7px }
.auth-field > span:first-child { font-size: 13px; font-weight: 700; color: var(--text-2) }
.auth-input { position: relative; display: flex; align-items: center }
.auth-input > i { position: absolute; left: 15px; color: var(--muted); font-size: 14px; pointer-events: none }
.auth-input input {
    width: 100%; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--text);
    padding: 0 48px 0 42px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft) }
.pw-eye { position: absolute; right: 6px; width: 36px; height: 36px; border-radius: 9px; color: var(--muted) }
.pw-eye:hover { color: var(--text); background: var(--surface-3) }
.caps { font-size: 12px; color: var(--warn-ink); display: flex; gap: 6px; align-items: center }
.auth-submit { height: 48px; font-size: 15px; border-radius: 12px; margin-top: 4px; width: 100% }
.auth-submit i { transition: transform .15s }
.auth-submit:hover:not(:disabled) i.fa-arrow-right { transform: translateX(3px) }
.auth-note { display: flex; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.6 }
.auth-note i { color: var(--good); margin-top: 3px }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0 }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 13px; gap: 12px }
.auth-links form { margin-left: auto }
.auth-links a, .auth-links button { color: var(--text-2); display: inline-flex; gap: 7px; align-items: center; font-weight: 600 }
.auth-links a:hover, .auth-links button:hover { color: var(--accent-ink) }
.auth-done { text-align: center }
.done-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--good-soft); color: var(--good); font-size: 26px }
.auth-done .auth-submit { margin-top: 26px }

@media (max-width: 1280px) { .defense { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 960px) {
    .auth-wrap { grid-template-columns: minmax(0, 1fr) }
    .auth-side { display: none }
    .mobile-only { display: flex; margin-bottom: 30px }
}
@media (max-width: 900px) {
    .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
    .um-name, .um-caret { display: none }
    .user-menu summary { padding: 0 4px }
    .sec-banner { flex-wrap: wrap }
}
@media (max-width: 640px) {
    .defense, .role-pick, .pw-rules { grid-template-columns: minmax(0, 1fr) }
    .modal { padding: 18px }
    .pw-gen { flex-wrap: wrap }
    .auth-title { font-size: 24px }
    .ut .hide-sm, .ev .hide-sm { display: none }
    .ut .show-sm { display: inline-flex !important; margin-top: 4px }
    .u-cell { min-width: 0 }
    .ut td { padding: 10px 6px }
    .row-actions .icon-btn { width: 30px; height: 30px }
}

/* ───────── SECTION FAILURE (한 카드만 실패 안내 · 나머지는 정상 표시) ───────── */
.load-fail { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 16px; margin: 4px 0; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5;
    color: var(--bad-ink); background: var(--bad-soft); border: 1px dashed color-mix(in srgb, var(--bad) 40%, transparent) }
.load-fail > i { font-size: 15px; flex: none }
.load-fail > span { flex: 1 1 220px; min-width: 0; color: var(--text) }
.load-fail .btn { flex: none }
.load-fail-li { list-style: none; padding: 0 !important; border: 0 !important }
#hero > .load-fail, #kpis > .load-fail { min-height: 120px }
#chipViews { cursor: help }

/* =====================================================================
   용어 풀이 · 보안 뉴스 · 소프트웨어 개발사 전략 · 회의 발표 스크립트 / 발표 모드
===================================================================== */
:root {
    --sev-critical: #d03b3b; --sev-critical-ink: #b42828; --sev-critical-soft: rgba(208, 59, 59, .10);
    --sev-high: #e8590c; --sev-high-ink: #b4460a; --sev-high-soft: rgba(232, 89, 12, .10);
    --sev-medium: #e0a100; --sev-medium-ink: #8a5a00; --sev-medium-soft: rgba(250, 178, 25, .15);
    --sev-low: #98a1b3; --sev-low-ink: #4b5468; --sev-low-soft: rgba(133, 142, 161, .12);
}
[data-theme="dark"] {
    --sev-critical: #e66767; --sev-critical-ink: #f58a8a; --sev-critical-soft: rgba(230, 103, 103, .16);
    --sev-high: #f08a4b; --sev-high-ink: #ffa36b; --sev-high-soft: rgba(240, 138, 75, .15);
    --sev-medium: #e8b030; --sev-medium-ink: #fab219; --sev-medium-soft: rgba(250, 178, 25, .14);
    --sev-low: #6e7789; --sev-low-ink: #a9b2c3; --sev-low-soft: rgba(169, 178, 195, .10);
}

/* ───────── nav badge ───────── */
.nav-list a .nav-badge {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
    font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sev-high-ink); background: var(--sev-high-soft);
}
.nav-list a .nav-badge.fresh { color: #fff; background: var(--sev-critical); box-shadow: 0 0 0 3px var(--sev-critical-soft); animation: pulse 1.6s infinite }
[data-theme="dark"] .nav-list a .nav-badge.fresh { color: #160606 }

/* ───────── 용어 풀이 ───────── */
.gloss-toggle { cursor: pointer; color: var(--muted) }
.gloss-toggle.on { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-soft) }
.gl { border-bottom: 1px dotted var(--accent-line); cursor: help; text-decoration: none }
.gl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px }
.gl-note { color: var(--accent-ink); font-weight: 500; font-size: .84em; letter-spacing: 0; margin-left: 1px; white-space: normal }
h1 .gl-note, h2 .gl-note, h3 .gl-note, h4 .gl-note, h5 .gl-note, .mk-title .gl-note, .st-title .gl-note, .si-title .gl-note { font-weight: 550; font-size: .72em }
.gloss-off .gl-note { display: none }
.gloss-off .gl { border-bottom: 0; cursor: inherit }

/* ───────── 보안 뉴스 ───────── */
.sec-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px }
.sec-kpis .kpi .k-value small { margin-right: 6px }
.sec-kpi-critical .k-label i { color: var(--sev-critical) }
.sec-kpi-high .k-label i { color: var(--sev-high) }
.sev { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; white-space: nowrap; line-height: 18px }
.sev i { font-size: 10px }
.sev.critical { color: var(--sev-critical-ink); background: var(--sev-critical-soft) }
.sev.high { color: var(--sev-high-ink); background: var(--sev-high-soft) }
.sev.medium { color: var(--sev-medium-ink); background: var(--sev-medium-soft) }
.sev.low { color: var(--sev-low-ink); background: var(--sev-low-soft) }
.sec-card { border-left: 4px solid var(--sev-low) }
.sec-card.sev-critical { border-left-color: var(--sev-critical) }
.sec-card.sev-high { border-left-color: var(--sev-high) }
.sec-card.sev-medium { border-left-color: var(--sev-medium) }
.sec-why { border-left-color: var(--sev-high); background: var(--sev-high-soft) }
.sec-why .why-label { color: var(--sev-high-ink) }
.cve-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center }
.cve { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); background: var(--surface) }
.cve:hover { color: var(--accent-ink); border-color: var(--accent-line) }
.kev-due { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; font-weight: 650; color: var(--sev-critical-ink) }
.sec-alert { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin-bottom: 18px;
    background: var(--sev-critical-soft); border: 1px solid color-mix(in srgb, var(--sev-critical) 45%, transparent); font-size: 14px; line-height: 1.6 }
.sec-alert .sa-icon { color: var(--sev-critical); font-size: 20px; line-height: 1.2 }
.sec-alert b { color: var(--sev-critical-ink) }
.sec-alert a { font-weight: 700 }
.sec-alert a:hover { text-decoration: underline }
.sa-act { margin-top: 4px; font-size: 13px; color: var(--text-2); display: flex; gap: 7px }
.sa-act i { margin-top: 4px; font-size: 11px; color: var(--sev-high) }
.sec-top { list-style: none; display: flex; flex-direction: column }
.st-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 0 14px 12px; border-top: 1px solid var(--line); position: relative }
.st-item:first-child { border-top: 0; padding-top: 4px }
.st-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--sev-low) }
.st-item:first-child::before { top: 4px }
.st-item.sev-critical::before { background: var(--sev-critical) }
.st-item.sev-high::before { background: var(--sev-high) }
.st-item.sev-medium::before { background: var(--sev-medium) }
.st-rank { font-size: 18px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.3 }
.st-body { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.st-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--muted) }
.st-title { font-size: 15px; font-weight: 750; line-height: 1.45; letter-spacing: -.01em }
.st-title:hover { color: var(--accent-ink) }
.st-sum { font-size: 13px; color: var(--text-2); line-height: 1.65 }
.st-act { font-size: 13px; line-height: 1.6; display: flex; gap: 8px; padding: 8px 11px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line) }
.st-act i { color: var(--sev-high); margin-top: 4px; font-size: 11px }
.st-act b { color: var(--sev-high-ink); margin-right: 4px }
.st-rel { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center }
.st-rel a { color: var(--text-2); font-weight: 650 }
.st-rel a:hover { color: var(--accent-ink) }
.sec-side { display: flex; flex-direction: column; gap: 18px }
.side-list { list-style: none; display: flex; flex-direction: column }
.side-item { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px }
.side-item:first-child { border-top: 0; padding-top: 0 }
.si-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.si-date { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap }
.si-title { font-size: 13.5px; font-weight: 680; line-height: 1.45 }
.si-title:hover { color: var(--accent-ink) }
.si-sub { font-size: 12px; color: var(--muted); line-height: 1.5 }
.mix-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 34px; gap: 10px; align-items: center; padding: 6px 0; cursor: pointer; font-size: 12.5px }
.mix-row:hover .mix-label { color: var(--accent-ink) }
.mix-label { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mix-track { display: flex; height: 10px; border-radius: 0 4px 4px 0; overflow: hidden; gap: 2px; background: var(--surface) }
.mix-n { text-align: right; font-variant-numeric: tabular-nums }
.sev-seg { display: block; height: 100% }
.sev-seg.critical, .sev-dot.critical { background: var(--sev-critical) }
.sev-seg.high, .sev-dot.high { background: var(--sev-high) }
.sev-seg.medium, .sev-dot.medium { background: var(--sev-medium) }
.sev-seg.low, .sev-dot.low { background: var(--sev-low) }
.mix-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-2); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line) }
.mix-legend span { display: inline-flex; align-items: center; gap: 6px }
.sev-dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block }
.cat-chip.sev-chip::before { background: var(--sev-low) }
.cat-chip.sev-chip.critical::before { background: var(--sev-critical) }
.cat-chip.sev-chip.high::before, .cat-chip.sev-chip.urgent::before { background: var(--sev-high) }
.cat-chip.sev-chip.medium::before { background: var(--sev-medium) }
.cat-chip.type-chip::before { background: var(--line-2) }
#typeChips { margin-top: 8px }

/* ───────── 소프트웨어 개발사 전략 ───────── */
.sw-card { display: flex; flex-direction: column; gap: 6px }
.sw-thesis { font-size: 19px; margin-bottom: 4px }
.sw-h { font-size: 13px; font-weight: 800; color: var(--text-2); display: flex; gap: 8px; align-items: center; margin: 14px 0 10px }
.sw-h i { color: var(--accent) }
.sw-shifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.shift { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px }
.shift h5 { font-size: 14.5px; font-weight: 780; line-height: 1.4 }
.sh-row { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line) }
.sh-row p { font-size: 12.5px; color: var(--text-2); line-height: 1.6 }
.sh-row.after { border-color: var(--accent-line); background: var(--accent-soft) }
.sh-row.after p { color: var(--text) }
.sh-label { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--muted) }
.sh-row.after .sh-label { color: var(--accent-ink) }
.sh-arrow { text-align: center; color: var(--muted); font-size: 11px; line-height: 1 }
.sw-moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.move { border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; display: flex; flex-direction: column; gap: 7px; background: var(--surface) }
.move .area { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 6px; color: var(--accent-ink); background: var(--accent-soft) }
.move h5 { font-size: 14.5px; font-weight: 780; line-height: 1.4 }
.mv-action { font-size: 13px; line-height: 1.65 }
.mv-why { font-size: 12.5px; color: var(--text-2); line-height: 1.6 }
.mv-why b { font-weight: 800; color: var(--text); margin-right: 6px; font-size: 11.5px }
.move .evidence { margin-top: auto }
.sw-stop { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 25%, transparent) }
.sw-stop h4 { font-size: 13px; font-weight: 800; color: var(--bad-ink); display: flex; gap: 7px; align-items: center; margin-bottom: 6px }
.sw-stop ul { list-style: none; display: flex; flex-direction: column; gap: 4px }
.sw-stop li { font-size: 13px; line-height: 1.6; padding-left: 14px; position: relative }
.sw-stop li::before { content: "–"; position: absolute; left: 0; color: var(--bad-ink) }

/* ───────── 회의 발표 스크립트 ───────── */
.script-card { padding: 22px 24px 20px }
.script-card .card-head h3 .badge { margin-left: 4px }
.script-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end }
.script-flow { display: flex; flex-direction: column; gap: 4px; max-width: 920px }
.sc-block { padding: 16px 0 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px }
.sc-block:first-child { border-top: 0; padding-top: 4px }
.sc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.sc-no { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--accent); flex: none }
[data-theme="dark"] .sc-no { color: #0b1020 }
.sc-head h4 { font-size: 16px; font-weight: 800; letter-spacing: -.01em }
.sc-time { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 650; display: inline-flex; gap: 5px; align-items: center }
.sc-point { font-size: 17px; font-weight: 780; line-height: 1.5; letter-spacing: -.015em; padding: 10px 14px; border-radius: 0 10px 10px 0;
    background: linear-gradient(135deg, var(--accent-soft), transparent 85%); border-left: 3px solid var(--accent) }
.sc-p { font-size: 15.5px; line-height: 1.95; color: var(--text) }
.sc-tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 9px; border-radius: 6px }
.sc-edge .sc-p { color: var(--text-2) }
.script-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px }
.sx-col { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface-2) }
.sx-col h4 { font-size: 13px; font-weight: 800; display: flex; gap: 8px; align-items: center; margin-bottom: 8px }
.sx-col h4 i { color: var(--accent) }
.sx-asks { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6 }
.sx-qa { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.65 }
.sx-qa:first-of-type { border-top: 0; padding-top: 0 }
.sx-qa p { color: var(--text-2); margin-top: 3px }
.term-sheet { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px }
.term-sheet summary { cursor: pointer; font-size: 13px; font-weight: 750; color: var(--text-2); display: flex; gap: 8px; align-items: center }
.term-sheet summary i { color: var(--accent) }
.term-sheet[open] summary { margin-bottom: 10px }
.term-table td { font-size: 12.5px }


@media (max-width: 1280px) {
    .sec-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)) }
    .sw-moves { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 1080px) {
    .sw-shifts { grid-template-columns: minmax(0, 1fr) }
    .script-extra { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 900px) {
    .gloss-toggle span { display: none }
}
@media (max-width: 640px) {
    .sec-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .sw-moves { grid-template-columns: minmax(0, 1fr) }
    .st-item { grid-template-columns: 22px minmax(0, 1fr); gap: 8px }
    .sc-p { font-size: 15px }
}
@media print {
    .presenter, .gloss-toggle { display: none !important }
    .sc-block { break-inside: avoid }
}

/* ───────── 우리 회사 관점(렌즈) — 카테고리 색(c1~c8)과 섞이지 않게 아이콘 + 강조색 하나로 구분 ───────── */
.lens-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px }
.lens-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.lc-head { display: flex; gap: 10px; align-items: center }
.lc-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 13px; color: var(--accent-ink); background: var(--accent-soft) }
.lc-head h4 { font-size: 13.5px; font-weight: 780; line-height: 1.3 }
.lc-kind { font-size: 11px; color: var(--muted); font-weight: 650 }
.lc-desc { font-size: 11.5px; color: var(--muted); line-height: 1.5 }
.lc-num { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap }
.lc-num b { font-size: 24px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums }
.lc-num > span { font-size: 12px; color: var(--muted) }
.lc-num small { font-size: 11.5px; color: var(--muted) }
.delta { font-size: 12px; font-weight: 750; display: inline-flex; gap: 3px; align-items: center; padding: 1px 7px; border-radius: 6px }
.delta.up { color: var(--good-ink); background: var(--good-soft) }
.delta.down { color: var(--bad-ink); background: var(--bad-soft) }
.delta.flat { color: var(--text-2); background: var(--surface-3) }
.lc-spark { width: 100%; height: 34px; display: block }
.lc-spark .line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round }
.lc-spark .area { fill: var(--accent-soft); stroke: none }
.lc-top { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; line-height: 1.5 }
.lc-top a { color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.lc-top a:hover { color: var(--accent-ink) }
.lc-empty { font-size: 12px; color: var(--muted) }
.lc-more { margin-top: auto; align-self: flex-start; white-space: normal }
.lens-chip { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; color: var(--text-2); background: var(--surface-3) }
.lens-chip i { font-size: 10px; color: var(--accent) }
.lens-chip:hover { color: var(--accent-ink); background: var(--accent-soft) }

/* ───────── 미래 비전 전략 — 우리 회사 전략 · 온프레미스 · 일하는 방식 · 객관성 점검 · 전제 ───────── */
.section-title small { text-transform: none; letter-spacing: 0; font-weight: 650; font-size: 12px; margin-left: 6px; color: var(--muted) }
[id$="Sec"] { scroll-margin-top: 76px }
.toc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px }
.toc a { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2) }
.toc a:hover { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-soft) }
.toc a i { font-size: 11px; color: var(--accent) }
.badge.good { color: var(--good-ink); background: var(--good-soft) }
.badge.bad { color: var(--bad-ink); background: var(--bad-soft) }
.badge.warn { color: var(--warn-ink); background: var(--warn-soft) }
.co-card, .adopt-card, .work-card, .basis-card { display: flex; flex-direction: column; gap: 6px }
.co-position { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin: 6px 0 8px }
.co-position b { font-size: 12px; font-weight: 800; color: var(--text-2); display: flex; gap: 7px; align-items: center; margin-bottom: 4px }
.co-position b i { color: var(--accent) }
.co-position p { font-size: 13.5px; line-height: 1.7 }
.line-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.line-card { border: 1px solid var(--line); border-top: 3px solid var(--line-2); border-radius: 12px; padding: 13px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 7px }
.line-card.ol-tailwind { border-top-color: var(--good) }
.line-card.ol-headwind { border-top-color: var(--bad) }
.line-card.ol-mixed { border-top-color: var(--warn) }
.lnc-head { display: flex; gap: 9px; align-items: center }
.lnc-head h5 { font-size: 14px; font-weight: 780; flex: 1; min-width: 0; line-height: 1.35 }
.lc-count { font-size: 11.5px; color: var(--muted); font-weight: 650 }
.lnc-signal { font-size: 13px; line-height: 1.65 }
.lnc-action { font-size: 12.5px; line-height: 1.6; color: var(--text-2) }
.lnc-action b { font-size: 11.5px; font-weight: 800; color: var(--text); margin-right: 6px }
.line-card .evidence { margin-top: auto }
.part-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; font-size: 12px }
.wind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px }
.wind { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px }
.wind.tail { background: var(--good-soft) }
.wind.head { background: var(--bad-soft) }
.wind h4 { font-size: 13px; font-weight: 800; display: flex; gap: 7px; align-items: center; margin-bottom: 8px }
.wind.tail h4 { color: var(--good-ink) }
.wind.head h4 { color: var(--bad-ink) }
.wind ul { list-style: none; display: flex; flex-direction: column; gap: 9px }
.wind li { font-size: 13px; line-height: 1.6; display: flex; flex-direction: column; gap: 2px }
.wind li .evidence { border-top: 0; padding-top: 0 }
.trig-table td:first-child { white-space: normal; width: 45%; font-weight: 650 }
.reality-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px }
.rc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; background: var(--surface-2) }
.rc h4 { font-size: 12.5px; font-weight: 800; display: flex; gap: 7px; align-items: center; margin-bottom: 8px }
.rc-good h4 { color: var(--good-ink) }
.rc-bad h4 { color: var(--bad-ink) }
.rc-warn h4 { color: var(--warn-ink) }
.rc-neutral h4 { color: var(--text-2) }
.rc ul { padding-left: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.6 }
.decision-list { display: flex; flex-direction: column; gap: 10px }
.decision { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 8px }
.dc-q { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap }
.dc-no { font-size: 11.5px; font-weight: 800; color: var(--accent-ink); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; flex: none; margin-top: 2px }
.dc-q h5 { font-size: 14.5px; font-weight: 780; line-height: 1.45; flex: 1; min-width: 200px }
.dc-answer { font-size: 14px; line-height: 1.7; font-weight: 600 }
.dc-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.dc-rows > div { padding: 9px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; display: flex; flex-direction: column; gap: 2px }
.dc-rows b { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .04em }
.dc-rows .first { background: var(--accent-soft); border-color: var(--accent-line) }
.dc-rows .first b { color: var(--accent-ink) }
.decision .evidence { border-top: 0; padding-top: 0 }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px }
.role-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px }
.role-card h5 { font-size: 14.5px; font-weight: 800 }
.rl-outlook { font-size: 13px; line-height: 1.65; color: var(--text-2) }
.rl-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px }
.rl-cols > div { padding-top: 8px; border-top: 1px dashed var(--line) }
.rl-cols > div:first-child { padding-top: 0; border-top: 0 }
.rl-cols h6 { font-size: 11.5px; font-weight: 800; color: var(--text-2); display: flex; gap: 6px; align-items: center; margin-bottom: 4px }
.rl-cols h6 i { color: var(--accent) }
.rl-cols ul { padding-left: 15px; font-size: 12.5px; line-height: 1.55; display: flex; flex-direction: column; gap: 3px }
.rl-stop, .rl-first { font-size: 12.5px; line-height: 1.6; padding: 8px 10px; border-radius: 9px }
.rl-stop { background: var(--bad-soft) }
.rl-first { background: var(--accent-soft) }
.rl-stop b, .rl-first b { font-size: 11px; font-weight: 800; margin-right: 6px }
.rl-stop b { color: var(--bad-ink) }
.rl-first b { color: var(--accent-ink) }
.role-card .evidence { margin-top: auto }
.work-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 6px }
.practice-list { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.6 }
.practice-list b { display: block; font-weight: 780 }
.practice-list small { display: block; color: var(--muted); font-size: 12px }
.basis-points { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px }
.basis-points li { display: flex; gap: 10px; font-size: 13px; line-height: 1.6 }
.basis-points i { color: var(--accent); margin-top: 4px; width: 14px; flex: none }
.basis-table td:first-child { white-space: normal }
.basis-text { white-space: pre-wrap; font-family: inherit; font-size: 12.5px; line-height: 1.7; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px; max-height: 420px; overflow: auto; color: var(--text-2) }
.basis-src { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px }
.basis-src a { color: var(--accent-ink); display: inline-flex; gap: 5px; align-items: center }
.basis-src a i { font-size: 10px }
.src-list { margin-top: 6px; font-size: 12.5px }
.src-list summary { cursor: pointer; color: var(--text-2); font-weight: 650 }
.src-list ul { padding-left: 18px; margin-top: 6px; display: flex; flex-direction: column; gap: 3px }

@media (max-width: 1280px) {
    .lens-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
    .reality-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 1080px) {
    .line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .dc-rows, .work-extra { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 900px) {
    .lens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .wind-grid, .reality-grid { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 640px) {
    .lens-grid, .line-grid, .role-grid { grid-template-columns: minmax(0, 1fr) }
}
@media print {
    .toc, .part-foot .btn { display: none !important }
    .line-card, .decision, .role-card, .rc, .lens-card, .wind { break-inside: avoid }
}

/* =====================================================================
   MAGAZINE — 기사 사진 · 링크 미리보기 · YouTube 영상
   사진은 /media 프록시(같은 출처)만 쓰고, 사진이 없거나 못 받으면 카테고리 색으로 만든 대체 커버가 보인다.
===================================================================== */
.mz-media { position: relative; display: block; overflow: hidden; background: var(--surface-3); isolation: isolate }
.mz-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; transition: transform .3s ease }
.mz-art {
    position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
    background:
        repeating-linear-gradient(135deg, transparent 0 13px, color-mix(in srgb, var(--art) 9%, transparent) 13px 14px),
        radial-gradient(120% 95% at 100% 0%, color-mix(in srgb, var(--art) 46%, transparent), transparent 62%),
        radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--art) 26%, transparent), transparent 66%),
        linear-gradient(135deg, color-mix(in srgb, var(--art) 18%, var(--surface-2)), color-mix(in srgb, var(--art) 6%, var(--surface-3)));
}
.mz-art i { font-size: 26px; color: color-mix(in srgb, var(--art) 78%, var(--text)); opacity: .5 }
.mz-art b { position: absolute; left: 12px; bottom: 9px; right: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: color-mix(in srgb, var(--art) 55%, var(--text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left }

/* ── 링크 미리보기 ── */
.lp { display: grid; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 8px;
    color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0 }
.lp:hover { border-color: var(--accent-line); transform: translateY(-1px); box-shadow: var(--shadow) }
.lp-thumb { border-radius: 8px }
.lp-body { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.lp-src { display: flex; gap: 6px; align-items: baseline; font-size: 10.5px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden }
.lp-src b { font-weight: 800; letter-spacing: .02em; color: var(--text-2); overflow: hidden; text-overflow: ellipsis }
.lp-src span { overflow: hidden; text-overflow: ellipsis }
.lp-title { font-size: 12.5px; font-weight: 720; line-height: 1.42; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.lp-desc { font-size: 12px; color: var(--text-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.lp-meta { display: flex; gap: 8px; align-items: center; font-size: 10.5px; color: var(--muted); margin-top: 1px }
.lp-go { margin-left: auto; font-size: 9.5px; opacity: .6 }
.lp-vid { display: inline-flex; gap: 4px; align-items: center; font-size: 10.5px; font-weight: 750; color: #c81e33 }
[data-theme="dark"] .lp-vid { color: #ff5a6e }
.lp-sm { grid-template-columns: 52px minmax(0, 1fr) }
.lp-sm .lp-thumb { width: 52px; height: 52px }
.lp-md { grid-template-columns: 118px minmax(0, 1fr); padding: 9px }
.lp-md .lp-thumb { width: 118px; aspect-ratio: 4 / 3 }
.lp-md .lp-title { font-size: 13.5px }
.lp-lg { grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden }
.lp-lg .lp-thumb { aspect-ratio: 16 / 9; border-radius: 0 }
.lp-lg .lp-body { padding: 0 12px 12px }
.lp-lg .lp-title { font-size: 14.5px }

/* 근거 기사 + 관련 영상 묶음 */
.mz-rel { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 7px; min-width: 0 }
.mz-rel-head { font-size: 11px; font-weight: 750; color: var(--muted); letter-spacing: .02em }
.mz-rel-list { display: grid; gap: 7px; min-width: 0 }
.mz-rel-list.lp-mds { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 9px }
.sc-text .mz-rel { margin-top: 6px }

/* ── YouTube (누르면 그 자리에서 재생) ── */
.yt { min-width: 0 }
.yt-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0; cursor: pointer;
    border-radius: 12px; overflow: hidden; background: #0b0d12; isolation: isolate }
.yt-frame:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
.yt-art { background: radial-gradient(120% 90% at 100% 0%, rgba(224, 36, 58, .35), transparent 60%), linear-gradient(135deg, #1c0a0e, #0b0d12) }
.yt-art i { color: #ff3b55; opacity: .7; font-size: 34px }
.yt-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 45%); pointer-events: none }
.yt-btn { position: absolute; left: 50%; top: 50%; z-index: 3; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; font-size: 18px; background: rgba(12, 14, 20, .62); backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    transition: transform .15s, background .15s }
.yt-btn i { margin-left: 3px }
.yt-frame:hover .yt-btn, .yt-frame:focus-visible .yt-btn { transform: scale(1.08); background: #e0243a }
.yt-badge { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; gap: 5px; align-items: center; font-size: 10.5px; font-weight: 800;
    letter-spacing: .04em; color: #fff; background: rgba(12, 14, 20, .62); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px) }
.yt-badge i { color: #ff3b55 }
.yt-iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000 }
.yt-body { display: flex; flex-direction: column; gap: 3px; padding-top: 9px; min-width: 0 }
.yt-title { font-size: 13.5px; font-weight: 740; line-height: 1.45; letter-spacing: -.01em; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.yt-title:hover { color: var(--accent-ink) }
.yt-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.yt-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line);
    border-radius: 11px; background: var(--surface) }
.yt-row .yt-frame, .yt-row .yt-iframe { border-radius: 8px }
.yt-row .yt-btn { width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: 11px }
.yt-row .yt-art i { font-size: 20px }
.yt-row .yt-body { padding-top: 0 }
.yt-row .yt-title { font-size: 12.5px }
.yt-row.playing { grid-template-columns: minmax(0, 1fr) }
.yt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px }
.video-card .card-head h3 i { color: #e0243a }
.mz-note { font-size: 12px; margin-top: 14px; line-height: 1.6 }

/* ── 트렌드 카드 — 커버 사진 / 관련 영상 / 대체 커버 ── */
.trend.mz-trend { padding: 0; overflow: hidden; gap: 0 }
.trend-cover { position: relative; aspect-ratio: 16 / 8; flex: none; background: var(--surface-3) }
.trend-cover .tc-media { position: absolute; inset: 0 }
.trend-cover .tc-media .mz-art i { font-size: 40px }
.trend-cover::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(to bottom, rgba(6, 9, 15, .42), transparent 30%, transparent 62%, rgba(6, 9, 15, .55)) }
.trend-cover .yt-cover { position: absolute; inset: 0 }
.trend-cover .yt-cover .yt-frame, .trend-cover .yt-cover .yt-iframe { height: 100%; aspect-ratio: auto; border-radius: 0 }
.trend-cover:has(.yt-iframe)::after, .trend-cover:has(.yt-iframe) .on-img, .trend-cover:has(.yt-iframe) .tc-cap { display: none }
.momentum.on-img { position: absolute; left: 12px; top: 12px; z-index: 3; color: #fff; background: rgba(10, 14, 22, .6); backdrop-filter: blur(6px) }
.impact-dots.on-img { position: absolute; right: 12px; top: 14px; z-index: 3; padding: 5px 7px; border-radius: 999px; background: rgba(10, 14, 22, .6); backdrop-filter: blur(6px) }
.impact-dots.on-img span { background: rgba(255, 255, 255, .3) }
.impact-dots.on-img span.on { background: #fff }
.tc-cap { position: absolute; left: 12px; bottom: 10px; right: 12px; z-index: 3; font-size: 11px; font-weight: 750; letter-spacing: .03em; color: rgba(255, 255, 255, .92);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tc-cap:hover { color: #fff; text-decoration: underline }
.trend-body { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px 15px; flex: 1; min-width: 0 }

/* ── 대시보드 히어로 — 커버 스토리 ── */
.hero-main { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; min-width: 0 }
.hero.has-cover .hero-main { max-width: 60% }
.hero-cover { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 1 }
.hero-cover .hc-media { position: absolute; inset: 0; background: transparent;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36%); mask-image: linear-gradient(to right, transparent 0, #000 36%) }
.hero-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none; z-index: 1;
    background: linear-gradient(to top, rgba(6, 9, 15, .9), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36%); mask-image: linear-gradient(to right, transparent 0, #000 36%) }
.hero-cover-cap { position: absolute; left: 22%; right: 22px; bottom: 20px; z-index: 2; display: flex; flex-direction: column; gap: 4px; color: #fff }
.hero-cover-cap span { font-size: 10.5px; font-weight: 800; letter-spacing: .2em; opacity: .85 }
.hero-cover-cap b { font-size: 15px; font-weight: 760; line-height: 1.42; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.hero-cover-cap em { font-style: normal; font-size: 11.5px; opacity: .75 }
.hero-cover-cap:hover b { text-decoration: underline }
.hero-reads { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 8px }
.hr-label { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted) }
.hr-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.hr-list .lp { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px) }

/* ── 꼭 알아야 할 뉴스 — 썸네일 ── */
.mk.mk-mz { grid-template-columns: 30px 78px minmax(0, 1fr) auto }
.mk-thumb { display: block; width: 78px; border-radius: 9px; overflow: hidden; margin-top: 2px }
.mk-thumb .mz-media { aspect-ratio: 4 / 3 }
.mk-thumb .mz-art i { font-size: 18px }
.mk-thumb:hover .mz-img, .nc-thumb:hover .mz-img, .lnc-cover:hover .mz-img { transform: scale(1.04) }

/* ── 뉴스 스크랩 카드 — 썸네일 ── */
.nc-main { display: block; min-width: 0 }
.nc-main.has-thumb { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: start }
.nc-text { display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.nc-thumb { display: block; border-radius: 10px; overflow: hidden }
.nc-thumb .mz-media { aspect-ratio: 4 / 3 }
.news-list.compact .nc-main.has-thumb { grid-template-columns: minmax(0, 1fr) 96px }
.nc-vids { max-width: 460px }

/* ── 전략 화면 — 표지 · 발표 원고의 사진 · 사업 라인 커버 ── */
.vision-hero.has-cover { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); gap: 30px; align-items: stretch }
.vh-main { min-width: 0 }
.vh-cover { position: relative; margin: 0; border-radius: 14px; overflow: hidden; min-height: 270px; box-shadow: var(--shadow-lg) }
.vh-cover .vc-media { position: absolute; inset: 0 }
.vh-cover figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 50px 18px 16px; display: flex; flex-direction: column; gap: 4px; color: #fff;
    background: linear-gradient(to top, rgba(6, 9, 15, .9), transparent) }
.vh-cover figcaption span { font-size: 10.5px; font-weight: 800; letter-spacing: .2em; opacity: .85 }
.vh-cover figcaption a { font-size: 15.5px; font-weight: 760; line-height: 1.42; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.vh-cover figcaption a:hover { text-decoration: underline }
.vh-cover figcaption em { font-style: normal; font-size: 11.5px; opacity: .75 }

.script-flow:has(.has-fig) { max-width: 1180px }
.sc-text { display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.sc-block.has-fig { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start }
.sc-block.has-fig.flip { grid-template-columns: 320px minmax(0, 1fr) }
.sc-block.has-fig.flip .sc-fig { order: -1 }
.sc-fig { margin: 4px 0 0; position: sticky; top: 78px; display: flex; flex-direction: column; gap: 9px }
.sc-fig .sf-media { aspect-ratio: 4 / 3; border-radius: 12px; box-shadow: var(--shadow) }
.sc-fig .sf-media .mz-art i { font-size: 40px }
.sc-fig figcaption { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--accent); padding-left: 10px }
.sc-fig figcaption a { font-size: 12.5px; font-weight: 720; line-height: 1.45; color: var(--text) }
.sc-fig figcaption a:hover { color: var(--accent-ink) }
.sc-fig figcaption span { font-size: 11px; color: var(--muted) }
.script-flow > .sc-edge:first-child .sc-p::first-letter { font-size: 2.6em; font-weight: 850; float: left; line-height: .95; margin: 6px 8px 0 0; color: var(--accent-ink) }

.line-card.has-cover { padding-top: 0; overflow: hidden }
.lnc-cover { display: block; position: relative; margin: 0 -14px 4px; aspect-ratio: 16 / 7; overflow: hidden }
.lnc-cover .mz-media { position: absolute; inset: 0 }
.op-lead.has-video { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: center }

@media (max-width: 1280px) {
    .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .hero.has-cover .hero-main { max-width: 64% }
    .hr-list { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .hr-list .lp:nth-child(3) { display: none }
}
@media (max-width: 1080px) {
    .vision-hero.has-cover { grid-template-columns: minmax(0, 1fr); gap: 18px }
    .vh-cover { order: -1; min-height: 0; aspect-ratio: 16 / 8 }
    .op-lead.has-video { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 900px) {
    .sc-block.has-fig, .sc-block.has-fig.flip { grid-template-columns: minmax(0, 1fr); gap: 14px }
    .sc-block.has-fig.flip .sc-fig { order: 0 }
    .sc-fig { position: static; max-width: 520px }
}
@media (max-width: 760px) {
    .hero.has-cover { padding: 0 18px 22px }
    .hero.has-cover .hero-main { max-width: none }
    .hero-cover { position: relative; order: -1; width: auto; height: 200px; margin: 0 -18px 16px; flex: none }
    .hero-cover .hc-media, .hero-cover::after { -webkit-mask-image: none; mask-image: none }
    .hero-cover-cap { left: 18px; right: 18px; bottom: 14px }
    .hr-list { grid-template-columns: minmax(0, 1fr) }
    .hr-list .lp:nth-child(3) { display: grid }
}
@media (max-width: 640px) {
    .yt-grid { grid-template-columns: minmax(0, 1fr) }
    .mk.mk-mz { grid-template-columns: 22px 64px minmax(0, 1fr) }
    .mk-thumb { width: 64px }
    .nc-main.has-thumb { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px }
    .mz-rel-list.lp-mds { grid-template-columns: minmax(0, 1fr) }
    .lp-md { grid-template-columns: 92px minmax(0, 1fr) }
    .lp-md .lp-thumb { width: 92px }
}
@media print {
    .yt-btn, .yt-badge, .yt-iframe, .lp-go { display: none !important }
    .sc-fig { position: static }
    .lp, .yt, .sc-fig, .trend { break-inside: avoid }
    .hero-cover .hc-media { -webkit-mask-image: none; mask-image: none }
}
.lp-sm .lp-src span { display: none }
.hero.has-cover .hero-title { font-size: clamp(21px, 1.95vw, 28px) }
.hr-list { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.hr-list .lp:nth-child(3) { display: none }
@media (max-width: 760px) { .hr-list { grid-template-columns: minmax(0, 1fr) } .hr-list .lp:nth-child(3) { display: grid } }
.trend-body .mz-rel { margin-top: 4px }

/* =====================================================================
   TECH PULSE — IT · 과학 · 하드웨어 · 게임 · 1인 개발 (주제 색 12개 · 모자이크 · 영상 플레이어)
   주제 색은 카테고리 색(c1~c8)과 따로 — 같은 화면에 섞여도 뜻이 겹치지 않게 칩에는 항상 아이콘 + 이름을 함께 쓴다.
===================================================================== */
:root {
    --tp-science: #6250d6; --tp-bio: #12a06c; --tp-maker: #e8590c; --tp-game: #d6457f; --tp-robot: #0b8f9c; --tp-chip: #2a6fd6;
    --tp-device: #c98500; --tp-net: #6b7f12; --tp-dev: #4b5a73; --tp-society: #c93838; --tp-ai: #3b5bfd; --tp-it: #6f7787;
}
[data-theme="dark"] {
    --tp-science: #9a8cf0; --tp-bio: #3ccf93; --tp-maker: #ff8a4c; --tp-game: #f07aa8; --tp-robot: #3fc4cf; --tp-chip: #6ea2f2;
    --tp-device: #f0b83a; --tp-net: #a8bd3c; --tp-dev: #95a3bd; --tp-society: #f07272; --tp-ai: #8aa2ff; --tp-it: #9aa2b2;
}
.tp-chip { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; font-weight: 780; letter-spacing: .01em; padding: 2px 8px 2px 7px; border-radius: 999px;
    color: color-mix(in srgb, var(--tp) 82%, var(--text)); background: color-mix(in srgb, var(--tp) 13%, transparent); white-space: nowrap; line-height: 1.6 }
.tp-chip i { font-size: 10px; color: var(--tp) }
.tp-chip small { font-size: 10.5px; font-weight: 700; color: var(--muted); margin-left: 2px }
a.tp-chip:hover { background: color-mix(in srgb, var(--tp) 22%, transparent) }
.tp-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 14px }
.tp-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px }
.tp-filter button { border-radius: 999px; padding: 3px; border: 1px solid transparent }
.tp-filter button.on { border-color: var(--accent-line); background: var(--accent-soft) }
.tp-filter .tp-all { font-size: 12px; font-weight: 780; padding: 4px 12px; color: var(--text-2); background: var(--surface-3) }
.tp-filter .tp-all.on { color: var(--accent-ink) }

/* 이야기 카드 */
.pc { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 14px; overflow: hidden; background: var(--surface);
    border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease, border-color .18s }
.pc:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--tp) 40%, var(--line)) }
.pc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 4; background: var(--tp); opacity: .9 }
.pc-cover { position: relative; display: block; flex: none; aspect-ratio: 16 / 9; overflow: hidden }
.pc-cover .pc-media { position: absolute; inset: 0 }
.pc:hover .pc-cover .mz-img { transform: scale(1.035) }
.pc-rank { position: absolute; left: 10px; bottom: 8px; z-index: 3; font-size: 22px; font-weight: 900; letter-spacing: -.04em; color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55); font-variant-numeric: tabular-nums }
.pc-cover::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(6, 9, 15, .5), transparent 42%) }
.pc-hasvid, .pr-tile .pc-hasvid { position: absolute; right: 9px; top: 10px; z-index: 3; display: inline-flex; gap: 5px; align-items: center; font-size: 10.5px; font-weight: 800;
    color: #fff; background: rgba(12, 14, 20, .62); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px) }
.pc-hasvid i { color: #ff3b55 }
.pc-body { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px 14px; flex: 1; min-width: 0 }
.pc-kicker { display: flex; gap: 6px; align-items: center; flex-wrap: wrap }
.pc-out { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; font-weight: 750; color: var(--text-2); padding: 2px 8px; border-radius: 999px; background: var(--surface-3) }
.pc-out i { font-size: 10px; color: var(--accent) }
.pc-title { font-size: 14px; font-weight: 780; line-height: 1.45; letter-spacing: -.015em; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.pc-title:hover { color: var(--accent-ink) }
.pc-hook { display: flex; gap: 7px; align-items: baseline; font-size: 12.5px; font-weight: 700; line-height: 1.5; color: color-mix(in srgb, var(--tp) 70%, var(--text)) }
.pc-hook i { font-size: 10.5px; color: var(--tp); flex: none }
.pc-desc { font-size: 12.5px; line-height: 1.6; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.pc-meta { display: flex; gap: 8px; align-items: baseline; font-size: 11px; color: var(--muted); margin-top: auto; min-width: 0 }
.pc-meta b { font-weight: 800; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60% }
.pc-more { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px dashed var(--line) }
.pc-more a { display: flex; gap: 7px; font-size: 11.5px; line-height: 1.45; color: var(--text-2); min-width: 0 }
.pc-more a b { flex: none; font-weight: 800; color: var(--muted); max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pc-more a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pc-more a:hover span { color: var(--accent-ink) }
.pc .yt-row { padding: 6px; grid-template-columns: 96px minmax(0, 1fr) }

/* 표지 이야기 — 사진 위에 글 */
.pc-feature { min-height: 420px; border: 0; background: #0b0e15; color: #fff }
.pc-feature .pc-cover { position: absolute; inset: 0; aspect-ratio: auto }
.pc-feature .pc-cover::after { background: linear-gradient(to top, rgba(5, 7, 12, .94) 0%, rgba(5, 7, 12, .72) 38%, rgba(5, 7, 12, .08) 72%) }
.pc-feature .pc-rank { left: 18px; top: 14px; bottom: auto; font-size: 30px }
.pc-feature .pc-body { position: relative; z-index: 3; margin-top: auto; padding: 22px 22px 20px; gap: 9px; flex: none }
.pc-feature .pc-title { font-size: 22px; line-height: 1.35; color: #fff; -webkit-line-clamp: 3 }
.pc-feature .pc-title:hover { color: #fff; text-decoration: underline }
.pc-feature .pc-desc { color: rgba(255, 255, 255, .8); font-size: 13.5px; -webkit-line-clamp: 2 }
.pc-feature .pc-hook { color: #fff; font-size: 13.5px }
.pc-feature .pc-hook i { color: color-mix(in srgb, var(--tp) 60%, #fff) }
.pc-feature .tp-chip { color: #fff; background: color-mix(in srgb, var(--tp) 55%, rgba(0, 0, 0, .3)) }
.pc-feature .tp-chip i { color: #fff }
.pc-feature .pc-out { color: #fff; background: rgba(255, 255, 255, .14) }
.pc-feature .pc-out i { color: #fff }
.pc-feature .pc-meta, .pc-feature .pc-meta b { color: rgba(255, 255, 255, .72) }
.pc-feature .pc-more { border-top-color: rgba(255, 255, 255, .18) }
.pc-feature .pc-more a, .pc-feature .pc-more a b { color: rgba(255, 255, 255, .75) }
.pc-feature .pc-more a:hover span { color: #fff }
.pc-feature .yt-row { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14) }
.pc-feature .yt-row .yt-title { color: #fff }
.pc-feature .yt-row .yt-meta { color: rgba(255, 255, 255, .65) }
.pc-feature .pc-hasvid { top: 16px; right: 16px }
.pc-tall .pc-cover { aspect-ratio: 16 / 10 }
.pc-tall .pc-title { font-size: 15px }
.pc-tile .pc-title { font-size: 13.5px }
.pc-tile .pc-body { padding: 11px 13px 12px; gap: 6px }
.pc-row { flex-direction: row; align-items: stretch }
.pc-row .pc-cover { width: 120px; aspect-ratio: auto }
.pc-row::before { width: 3px; height: auto; bottom: 0; right: auto }

/* 모자이크 */
.pmz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; grid-auto-flow: row dense }
.pmz .pc-feature { grid-column: span 2; grid-row: span 2 }
.pmz .pc-tall { grid-row: span 2 }
.pulse-card { display: flex; flex-direction: column; gap: 14px }
.pulse-h { font-size: 13px; font-weight: 800; color: var(--text-2); display: flex; gap: 8px; align-items: center; margin-top: 8px }
.pulse-h i { color: #e0243a }
.pulse-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px }
#pulseBox { display: flex; flex-direction: column; gap: 18px }
#pulseBox .section-title { margin: 6px 0 -4px }
.tp-card .card-head h3 .badge { margin-left: 6px; vertical-align: 2px }

/* 영상 플레이어 + 재생목록 */
.ytp { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 16px; align-items: start }
.ytp-main { display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.ytp-main .yt-frame, .ytp-main .yt-iframe { border-radius: 14px }
.ytp-main .yt-btn { width: 72px; height: 72px; margin: -36px 0 0 -36px; font-size: 24px }
.ytp-cap { display: flex; flex-direction: column; gap: 5px; min-width: 0 }
.ytp-kick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.ytp-title { font-size: 16px; font-weight: 800; line-height: 1.4; letter-spacing: -.015em; color: var(--text) }
.ytp-title:hover { color: var(--accent-ink) }
.ytp-sum { font-size: 13px; line-height: 1.6; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.ytp-list { list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 470px; overflow-y: auto; padding-right: 4px; min-width: 0 }
.ytp-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; text-align: left; padding: 6px;
    border-radius: 11px; border: 1px solid transparent; color: var(--text); transition: background .15s, border-color .15s }
.ytp-item:hover { background: var(--surface-2) }
.ytp-item.on { background: var(--accent-soft); border-color: var(--accent-line) }
.ytp-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0b0d12 }
.ytp-thumb .yt-art i { font-size: 16px }
.ytp-play { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: #fff; font-size: 13px; opacity: 0; transition: opacity .15s;
    background: rgba(0, 0, 0, .35) }
.ytp-item:hover .ytp-play, .ytp-item.on .ytp-play { opacity: 1 }
.ytp-text { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.ytp-text b { font-size: 12.5px; font-weight: 720; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.ytp-text small { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.ytp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tp); flex: none }

@media (max-width: 1280px) {
    .pmz { grid-template-columns: repeat(3, minmax(0, 1fr)) }
    .pulse-more { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 980px) {
    .pmz, .pulse-more { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .pmz .pc-tall { grid-row: auto }
    .ytp { grid-template-columns: minmax(0, 1fr) }
    .ytp-list { max-height: 360px }
}
@media (max-width: 640px) {
    .pmz, .pulse-more { grid-template-columns: minmax(0, 1fr) }
    .pmz .pc-feature { grid-column: auto; grid-row: auto; min-height: 380px }
    .pc-feature .pc-title { font-size: 19px }
}
@media print {
    .pc, .ytp { break-inside: avoid }
    .ytp-list { max-height: none }
}

/* =====================================================================
   PRESENTER — 잡지형 발표 덱 (어두운 무대가 기본 · '밝게'로 바꿀 수 있음)
   글자 크기는 화면 너비에 맞춰 커지고(A−/A+ 로 조절), 사진 · 영상 · 링크 카드가 슬라이드마다 다른 배치로 들어간다.
===================================================================== */
.presenter { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
    animation: fadein .15s ease both; overflow: hidden }
.presenter:not(.pr-light) {
    color-scheme: dark;
    --bg: #06080d; --surface: #10141d; --surface-2: #151a26; --surface-3: #1c2231; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
    --text: #eef1f7; --text-2: #aeb7c8; --muted: #747e92; --accent: #8aa2ff; --accent-ink: #b3c2ff; --accent-soft: rgba(138, 162, 255, .13); --accent-line: rgba(138, 162, 255, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 26px rgba(0, 0, 0, .35); --shadow-lg: 0 22px 60px rgba(0, 0, 0, .55);
    --good-ink: #3fcf3f; --good-soft: rgba(12, 163, 12, .16); --bad-ink: #f07272; --bad-soft: rgba(208, 59, 59, .18);
    --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #1a9a1a; --c7: #9085e9; --c8: #e66767;
    --tp-science: #9a8cf0; --tp-bio: #3ccf93; --tp-maker: #ff8a4c; --tp-game: #f07aa8; --tp-robot: #3fc4cf; --tp-chip: #6ea2f2;
    --tp-device: #f0b83a; --tp-net: #a8bd3c; --tp-dev: #95a3bd; --tp-society: #f07272; --tp-ai: #8aa2ff; --tp-it: #9aa2b2;
}
.presenter.pr-light {
    color-scheme: light;
    --bg: #f4f5f8; --surface: #ffffff; --surface-2: #f7f8fa; --surface-3: #eef0f4; --line: #e3e6ec; --line-2: #d0d5de;
    --text: #0f1422; --text-2: #4b5468; --muted: #7d8699; --accent: #3b5bfd; --accent-ink: #2a45d6; --accent-soft: rgba(59, 91, 253, .08); --accent-line: rgba(59, 91, 253, .3);
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .07); --shadow-lg: 0 20px 50px rgba(16, 24, 40, .14);
    --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300; --c7: #6250d6; --c8: #e34948;
    --tp-science: #6250d6; --tp-bio: #12a06c; --tp-maker: #e8590c; --tp-game: #d6457f; --tp-robot: #0b8f9c; --tp-chip: #2a6fd6;
    --tp-device: #c98500; --tp-net: #6b7f12; --tp-dev: #4b5a73; --tp-society: #c93838; --tp-ai: #3b5bfd; --tp-it: #6f7787;
}

/* 위 · 아래 막대 */
.pr-top { display: flex; align-items: center; gap: 14px; padding: 9px 20px; flex: none; position: relative; z-index: 6;
    background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line) }
.pr-brand { font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--accent-ink); display: inline-flex; gap: 8px; align-items: center }
.pr-brand em { font-style: normal; font-weight: 700; letter-spacing: .02em; color: var(--muted) }
.pr-prog { font-size: 15px; font-weight: 850; font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: .02em }
.pr-prog small { font-size: 12px; color: var(--muted); font-weight: 700; margin-left: 4px }
.pr-kind { font-size: 11.5px; font-weight: 800; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--surface-3) }
.pr-kind i { color: var(--accent); font-size: 10.5px }
.pr-timer { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; display: inline-flex; gap: 6px; align-items: center }
.pr-timer span { margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line-2) }
.pr-timer.over { color: var(--sev-high, #e8590c) }
.pr-tools { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap }
.pr-tools button, .pr-foot button {
    height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 750;
    color: var(--text-2); display: inline-flex; gap: 7px; align-items: center; white-space: nowrap }
.pr-tools button:hover, .pr-foot button:hover:not(:disabled) { color: var(--text); background: var(--surface-2) }
.pr-tools button.on { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-soft) }
.pr-tools .pr-exit { color: var(--text); border-color: var(--text-2) }
.pr-foot button:disabled { opacity: .35; cursor: default }
.pr-bar { display: flex; gap: 3px; padding: 0 20px; height: 14px; align-items: center; flex: none; position: relative; z-index: 6;
    background: color-mix(in srgb, var(--bg) 88%, transparent) }
.pr-bar button { flex: 1; height: 4px; border-radius: 3px; background: var(--surface-3); transition: height .15s, background .2s; padding: 0 }
.pr-bar button:hover { height: 8px; background: var(--line-2) }
.pr-bar button.done { background: color-mix(in srgb, var(--accent) 45%, var(--surface-3)) }
.pr-bar button.cur { background: var(--accent); height: 6px }
.pr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; flex: none; border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent); position: relative; z-index: 6 }
.pr-hint { font-size: 11.5px; color: var(--muted); text-align: center }
.pr-next { max-width: 46% }
.pr-next .pr-next-title { font-weight: 650; color: var(--muted); max-width: 26ch; overflow: hidden; text-overflow: ellipsis }
.pr-next .pr-next-title::after { content: "·"; margin-left: 7px }
.pr-foot .pr-next:not(:disabled) { color: var(--text); border-color: var(--accent-line) }

/* 무대 · 슬라이드 */
.pr-stage { flex: 1; position: relative; overflow: hidden; min-height: 0 }
.pr-slide { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: clamp(18px, 3.4vh, 46px) clamp(18px, 4.2vw, 80px);
    font-size: calc(clamp(15px, 0.95vw + 5px, 26px) * var(--pf, 1)); line-height: 1.6; scrollbar-width: thin }
.pr-slide.in-next { animation: prIn .4s cubic-bezier(.2, .75, .25, 1) both }
.pr-slide.in-prev { animation: prInBack .4s cubic-bezier(.2, .75, .25, 1) both }
@keyframes prIn { from { opacity: 0; transform: translateX(34px) } to { opacity: 1; transform: none } }
@keyframes prInBack { from { opacity: 0; transform: translateX(-34px) } to { opacity: 1; transform: none } }
@keyframes prUp { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
@keyframes prKB { from { transform: scale(1.12) translate(1.5%, 1%) } to { transform: scale(1) translate(0, 0) } }
.pr-slide h1, .pr-slide h2 { outline: none }
.pr-eyebrow { display: inline-flex; gap: 9px; align-items: center; font-size: .6em; font-weight: 900; letter-spacing: .2em; color: var(--accent-ink); text-transform: uppercase }
.pr-slide .gl-note { font-size: .72em }
.pr-shead { display: flex; flex-direction: column; gap: .2em; width: 100%; max-width: 1760px; margin: 0 auto 1em }
.pr-shead h2 { font-size: 1.7em; font-weight: 870; letter-spacing: -.035em; line-height: 1.2 }
.pr-shead p { font-size: .72em; color: var(--muted); line-height: 1.55; max-width: 70em }
.pr-legend { display: flex; gap: 6px; flex-wrap: wrap; margin-top: .4em }

/* 원고 */
.pr-notes { font-size: .86em; line-height: 1.8; color: var(--text-2); display: flex; flex-direction: column; gap: .55em }
.pr-notes-label { font-size: .7em; font-weight: 900; letter-spacing: .16em; color: var(--muted); display: inline-flex; gap: 7px; align-items: center; text-transform: uppercase }
.pr-notes p { margin: 0 }
.notes-off .pr-notes { display: none }

/* 표지 — 사진 전면 + 제목 + 오늘의 순서 */
.pr-slide.pr-cover, .pr-slide.pr-closing { padding: 0; color: #fff }
.pr-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #05070c }
.pr-bg .pr-bg-media { position: absolute; inset: 0; background: transparent }
.pr-bg .mz-img { animation: prKB 24s ease-out both }
.pr-bg::after { content: ""; position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(90deg, rgba(4, 6, 10, .94) 0%, rgba(4, 6, 10, .78) 42%, rgba(4, 6, 10, .3) 100%),
                linear-gradient(to top, rgba(4, 6, 10, .85), transparent 45%) }
.pr-bg.dim::after { background: linear-gradient(90deg, rgba(4, 6, 10, .95), rgba(4, 6, 10, .82)) }
.pr-bg-art { background: radial-gradient(90% 80% at 85% 10%, rgba(59, 91, 253, .45), transparent 60%),
    radial-gradient(70% 70% at 10% 100%, rgba(0, 163, 154, .3), transparent 60%), #05070c }
.pr-cover-grid { position: relative; z-index: 3; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: clamp(20px, 4vw, 70px);
    align-items: end; padding: clamp(24px, 5vh, 64px) clamp(20px, 4.6vw, 88px) clamp(40px, 7vh, 84px) }
.pr-cover-main { display: flex; flex-direction: column; gap: .7em; min-width: 0 }
.pr-cover .pr-eyebrow { color: rgba(255, 255, 255, .86) }
.pr-cover h1 { font-size: 2.45em; font-weight: 880; letter-spacing: -.04em; line-height: 1.16; text-wrap: balance; max-width: 17em; text-shadow: 0 2px 24px rgba(0, 0, 0, .4) }
.pr-lead { font-size: 1.02em; line-height: 1.6; color: rgba(255, 255, 255, .84); max-width: 40em }
.pr-stats { display: flex; gap: 8px; flex-wrap: wrap }
.pr-stats span { display: inline-flex; gap: 7px; align-items: center; font-size: .62em; font-weight: 750; padding: .45em .9em; border-radius: 999px;
    color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px) }
.pr-stats i { opacity: .85 }
.pr-cover .pr-notes, .pr-closing .pr-notes { color: rgba(255, 255, 255, .82); padding: .8em 1em; border-radius: 14px; background: rgba(8, 11, 18, .5);
    border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); max-width: 44em }
.pr-cover .pr-notes-label, .pr-closing .pr-notes-label { color: rgba(255, 255, 255, .55) }
.pr-agenda { align-self: end; display: flex; flex-direction: column; gap: .5em; padding: 1em 1.1em; border-radius: 18px; background: rgba(8, 11, 18, .55);
    border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(14px); min-width: 0 }
.pr-agenda > b { font-size: .58em; font-weight: 900; letter-spacing: .2em; color: rgba(255, 255, 255, .6) }
.pr-agenda ol { list-style: none; display: flex; flex-direction: column; gap: 2px }
.pr-agenda button { display: flex; gap: .7em; align-items: baseline; width: 100%; text-align: left; padding: .38em .5em; border-radius: 9px; color: #fff;
    font-size: .7em; font-weight: 700; line-height: 1.4 }
.pr-agenda button:hover { background: rgba(255, 255, 255, .1) }
.pr-agenda button > span { flex: none; min-width: 1.8em; font-weight: 900; color: #9fb2ff; font-variant-numeric: tabular-nums }
.pr-agenda button > span i { font-size: .85em }
.pr-credit { position: absolute; right: clamp(16px, 2vw, 32px); bottom: 14px; z-index: 3; font-size: .5em; color: rgba(255, 255, 255, .6); max-width: 46%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.pr-credit b { font-weight: 900; letter-spacing: .16em; margin-right: 8px }
.pr-credit:hover { color: #fff }

/* 발표 섹션 — 글 + 사진 · 영상 · 근거 기사 (좌우 번갈아) */
.pr-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 3.6vw, 68px); align-items: start; max-width: 1760px; margin: 0 auto }
.pr-split.flip .pr-media { order: -1 }
.pr-split.solo { grid-template-columns: minmax(0, 1fr); max-width: 50em }
.pr-copy { display: flex; flex-direction: column; gap: .7em; min-width: 0 }
.pr-kicker { display: flex; gap: .5em; align-items: baseline; font-variant-numeric: tabular-nums }
.pr-no { font-size: 2.3em; font-weight: 900; line-height: 1; letter-spacing: -.05em; color: var(--accent) }
.pr-kicker > span:nth-child(2) { font-size: .8em; font-weight: 800; color: var(--muted) }
.pr-dur { margin-left: .6em; font-size: .6em; font-weight: 750; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; padding: .2em .7em;
    border-radius: 999px; background: var(--surface-3) }
.pr-copy h2 { font-size: 1.7em; font-weight: 870; line-height: 1.24; letter-spacing: -.035em; text-wrap: balance }
.pr-point { font-size: 1.1em; font-weight: 760; line-height: 1.5; padding: .6em .9em; border-left: 5px solid var(--accent); border-radius: 0 14px 14px 0;
    background: var(--accent-soft); margin: 0 }
.pr-media { display: flex; flex-direction: column; gap: .8em; min-width: 0; position: sticky; top: 0 }
.pr-photo { margin: 0; display: flex; flex-direction: column; gap: .5em }
.pr-photo > a { display: block; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg) }
.pr-photo .pr-photo-media { aspect-ratio: 16 / 9 }
.pr-photo .mz-art i { font-size: 3em }
.pr-photo figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .62em; line-height: 1.45; border-left: 3px solid var(--accent); padding-left: .7em }
.pr-photo figcaption b { font-weight: 900; letter-spacing: .06em; color: var(--muted); text-transform: uppercase }
.pr-photo figcaption a { color: var(--text-2); font-weight: 650 }
.pr-photo figcaption a:hover { color: var(--accent-ink) }
.pr-video .yt-title { font-size: .72em }
.pr-video .yt-meta { font-size: .55em }
.pr-refs { display: flex; flex-direction: column; gap: 8px }
.pr-refs-head { font-size: .55em; font-weight: 900; letter-spacing: .16em; color: var(--muted); text-transform: uppercase }

/* 트렌드 한눈에 */
.pr-tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 24px); max-width: 1760px; margin: 0 auto }
.pr-tgrid.n1 { grid-template-columns: minmax(0, 1fr); max-width: 900px }
.pr-tgrid.n2, .pr-tgrid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.pr-tgrid.n4 .pr-tile-cover, .pr-tgrid.n2 .pr-tile-cover, .pr-tgrid.n5 .pr-tile-cover, .pr-tgrid.n6 .pr-tile-cover { aspect-ratio: 16 / 5.6 }
.pr-tile { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
    animation: prUp .5s cubic-bezier(.2, .75, .25, 1) both; min-width: 0 }
.pr-tile-cover { position: relative; aspect-ratio: 16 / 6.4; flex: none }
.pr-tile-cover .pr-tile-media { position: absolute; inset: 0 }
.pr-tile-cover::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(to bottom, rgba(6, 9, 15, .45), transparent 34%, transparent 66%, rgba(6, 9, 15, .4)) }
.pr-tile-cover .pc-hasvid { top: auto; bottom: 10px }
.pr-tile-body { display: flex; flex-direction: column; gap: .35em; padding: .8em 1em 1em; min-width: 0 }
.pr-tile-no { font-size: .62em; font-weight: 900; letter-spacing: .1em; color: var(--accent) }
.pr-tile h4 { font-size: .95em; font-weight: 820; line-height: 1.35; letter-spacing: -.02em }
.pr-tile p { font-size: .7em; line-height: 1.6; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }

/* 테크 펄스 — 표지 1 + 4 */
.pr-pmz.pmz { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr));
    height: min(68vh, 860px); min-height: 440px; gap: clamp(10px, 1.1vw, 20px); max-width: 1760px; margin: 0 auto }
.pr-pmz .pc-feature { grid-column: 1; grid-row: 1 / span 2; min-height: 0 }
.pr-pmz .pc-tile { grid-row: auto; grid-column: auto }
.pr-pmz .pc-tile .pc-cover { flex: 1; min-height: 0; aspect-ratio: auto }
.pr-pmz .pc-tile .pc-body { flex: none }
.pr-pmz .pc-tile .pc-title { -webkit-line-clamp: 2 }

/* 영상 브리핑 */
.pr-ytp.ytp { grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr); max-width: 1760px; margin: 0 auto; gap: clamp(12px, 1.4vw, 26px) }
.pr-ytp .ytp-main { max-width: calc((68vh - 60px) * 16 / 9) }
.pr-ytp .ytp-list { max-height: min(64vh, 760px) }

/* 정리 · 결정 요청 */
.pr-close-grid { position: relative; z-index: 3; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 70px);
    align-items: center; padding: clamp(24px, 5vh, 64px) clamp(20px, 4.6vw, 88px) }
.pr-close-grid.solo { grid-template-columns: minmax(0, 1fr); max-width: 52em }
.pr-close-main { display: flex; flex-direction: column; gap: .7em }
.pr-close-main .pr-eyebrow { color: rgba(255, 255, 255, .8) }
.pr-close-main h2 { font-size: 2.1em; font-weight: 880; letter-spacing: -.04em; line-height: 1.2 }
.pr-asks { list-style: none; display: flex; flex-direction: column; gap: .7em }
.pr-asks li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: .8em; align-items: start; padding: .8em 1em; border-radius: 16px;
    background: rgba(10, 14, 22, .6); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(12px); animation: prUp .5s cubic-bezier(.2, .75, .25, 1) both }
.pr-asks li > span { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .85em; color: #0b0e15; background: #9fb2ff }
.pr-asks li > p { font-size: .9em; line-height: 1.55; font-weight: 650; color: #fff }

/* 질의응답 */
.pr-qagrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 24px); max-width: 1760px; margin: 0 auto }
.pr-qcard { padding: 1em 1.1em; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .5em }
/* 질문 · 답변 글은 .pr-qt 한 덩어리 — 용어 풀이(<span class="gl">…) 가 Q/A 배지 모양을 받거나 flex 칸으로 쪼개지지 않게 */
.pr-qq, .pr-qa-a { display: flex; gap: .6em; align-items: flex-start; min-width: 0 }
.pr-qq { font-size: .9em; font-weight: 800; line-height: 1.45 }
.pr-qa-a { font-size: .8em; line-height: 1.65; color: var(--text-2) }
.pr-qt { flex: 1; min-width: 0; overflow-wrap: anywhere }
.pr-qk { flex: none; width: 1.6em; height: 1.6em; margin-top: .05em; border-radius: 7px; display: grid; place-items: center; font-size: .78em; font-weight: 900; font-style: normal }
.pr-qq .pr-qk { color: #fff; background: var(--accent) }
.pr-qa-a .pr-qk { color: var(--accent-ink); background: var(--accent-soft) }

/* 개요 (G) */
.pr-ov { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; gap: 16px; padding: 22px clamp(16px, 3vw, 48px); overflow-y: auto;
    background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); animation: fadein .15s ease both }
.pr-ov-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap }
.pr-ov-head b { font-size: 16px; font-weight: 850; display: inline-flex; gap: 9px; align-items: center }
.pr-ov-head b i { color: var(--accent) }
.pr-ov-head span { font-size: 12.5px; color: var(--muted) }
.pr-ov-head button { margin-left: auto; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 750;
    color: var(--text); display: inline-flex; gap: 7px; align-items: center }
.pr-ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px }
.pr-ov-item { display: flex; flex-direction: column; gap: 7px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
    text-align: left; color: var(--text); transition: border-color .15s, transform .15s }
.pr-ov-item:hover { border-color: var(--accent-line); transform: translateY(-2px) }
.pr-ov-item.cur { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft) }
.pr-ov-thumb { display: block; border-radius: 9px; overflow: hidden }
.pr-ov-thumb .mz-media { aspect-ratio: 16 / 9 }
.pr-ov-meta { display: flex; gap: 7px; align-items: center; font-size: 11px; font-weight: 800; color: var(--muted) }
.pr-ov-meta b { font-size: 13px; color: var(--accent-ink); font-variant-numeric: tabular-nums }
.pr-ov-meta i { font-size: 10px }
.pr-ov-title { font-size: 12.5px; font-weight: 720; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }

/* 큰 화면 — 카드 속 작은 글(px 단위)도 무대 크기에 맞춰 키운다 */
@media (min-width: 1600px) {
    .pr-media .lp, .pr-media .yt-row, .pr-pmz .pc, .pr-ytp .ytp-cap, .pr-ytp .ytp-list { zoom: 1.18 }
    .pr-ytp .ytp-list { max-height: calc(min(64vh, 760px) / 1.18) }
}
@media (min-width: 2200px) {
    .pr-media .lp, .pr-media .yt-row, .pr-pmz .pc, .pr-ytp .ytp-cap, .pr-ytp .ytp-list { zoom: 1.45 }
    .pr-ytp .ytp-list { max-height: calc(min(64vh, 760px) / 1.45) }
}
@media (max-width: 1180px) {
    .pr-tools button span { display: none }
    .pr-hint { display: none }
}
@media (max-width: 980px) {
    .pr-split, .pr-split.flip { grid-template-columns: minmax(0, 1fr) }
    .pr-split.flip .pr-media { order: 0 }
    .pr-media { position: static }
    .pr-cover-grid, .pr-close-grid { grid-template-columns: minmax(0, 1fr); align-content: end }
    .pr-tgrid, .pr-tgrid.n2, .pr-tgrid.n4, .pr-qagrid { grid-template-columns: minmax(0, 1fr) }
    .pr-pmz.pmz { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto }
    .pr-pmz .pc-feature { grid-row: auto; min-height: 360px }
    .pr-pmz .pc-tile .pc-cover { flex: none; aspect-ratio: 16 / 9 }
    .pr-ytp.ytp { grid-template-columns: minmax(0, 1fr) }
    .pr-ytp .ytp-main { max-width: none }
    .pr-next .pr-next-title, .pr-kind, .pr-timer span { display: none }
}
@media (max-width: 640px) {
    .pr-top { padding: 8px 12px; gap: 8px }
    .pr-brand em, .pr-timer { display: none }
    .pr-foot { padding: 8px 12px }
    .pr-bar { padding: 0 12px }
    .pr-cover h1 { font-size: 1.9em }
}
@media (prefers-reduced-motion: reduce) {
    .pr-slide.in-next, .pr-slide.in-prev, .pr-tile, .pr-asks li, .pr-bg .mz-img { animation: none }
    .pc, .pc-cover .mz-img { transition: none }
}
@media (max-width: 980px) {
    .pr-credit { display: none }
}
@media (max-width: 640px) {
    .pr-top { flex-wrap: nowrap }
    .pr-brand { display: none }
    .pr-prog { white-space: nowrap }
    .pr-tools { flex-wrap: nowrap; gap: 4px }
    .pr-tools button { height: 32px; padding: 0 9px }
    .pr-tools [data-pr="font-"], .pr-tools [data-pr="font+"] { display: none }
}

/* =====================================================================
   자동 발표 — AI 내레이션(ElevenLabs) · 기사 발췌 · 영상 발췌 · 카드 강조 · 내레이션 편집
   연출 층(.pr-layer)은 #presenter 밖에 있어 장을 다시 그려도 재생 중인 영상이 끊기지 않는다. 무대(.pr-stage) 자리에 맞춰 놓인다.
===================================================================== */
.warn-ink { color: var(--warn-ink) }
.narr-box { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; padding: 12px 14px; border-radius: 12px;
    background: var(--accent-soft); border: 1px solid var(--accent-line) }
.narr-box .nb-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff }
.narr-box b { font-size: 13.5px; font-weight: 800 }
.narr-box p { font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin-top: 3px }
.narr-box p .warn-ink { display: block; margin-top: 4px; font-weight: 650 }

/* 진행 막대 — 지금 장의 내레이션 진행 */
.pr-bar button { position: relative; overflow: hidden }
.pr-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: color-mix(in srgb, #fff 62%, var(--accent));
    transition: width .25s linear; pointer-events: none }

/* 아래 막대 가운데 — 재생 단추 · 상태 */
.pr-auto { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; justify-content: center }
.pr-foot .pr-play { height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; background: var(--accent); color: #0b0e15;
    font-size: 13.5px; font-weight: 850; letter-spacing: .01em; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent) }
.presenter.pr-light .pr-foot .pr-play { color: #fff }
.pr-foot .pr-play:hover:not(:disabled) { filter: brightness(1.08); background: var(--accent); color: #0b0e15 }
.presenter.pr-light .pr-foot .pr-play:hover:not(:disabled) { color: #fff }
.pr-foot .pr-play.on { background: var(--surface); color: var(--text); border-color: var(--accent-line); box-shadow: none }
.pr-foot .pr-play i { font-size: 12px }
.pr-auto-st { font-size: 12px; color: var(--muted); font-weight: 650; display: inline-flex; gap: 7px; align-items: center; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums }
.pr-auto-st time { margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line-2) }
.pr-auto-st b { font-weight: 750 }
.pr-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f; box-shadow: 0 0 0 0 rgba(255, 77, 79, .6); animation: prLive 1.6s infinite; flex: none }
@keyframes prLive { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 79, .55) } 70% { box-shadow: 0 0 0 9px rgba(255, 77, 79, 0) } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0) } }
.presenter.pr-auto-on .pr-auto-st { color: var(--text-2) }
.pr-ov-meta em { margin-left: auto; font-style: normal; font-weight: 750; color: var(--accent-ink); display: inline-flex; gap: 4px; align-items: center }

/* 카드 강조 — 내레이션이 짚는 카드만 또렷하게 */
.pr-slide [data-focus] { transition: opacity .35s ease, filter .35s ease, transform .35s ease, box-shadow .35s ease }
.pr-slide.pr-focusing [data-focus]:not(.is-focus) { opacity: .34; filter: saturate(.45) }
.pr-slide [data-focus].is-focus { position: relative; z-index: 2; transform: translateY(-4px) scale(1.012);
    box-shadow: 0 0 0 3px var(--accent), 0 22px 60px rgba(0, 0, 0, .45) }

/* 내레이션 칸 (기본은 숨김 · C) — 지금 읽는 문장 표시 */
.pr-narr { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; width: min(1120px, calc(100% - 32px)); max-height: 31%;
    display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2);
    background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(18px); box-shadow: var(--shadow-lg); animation: prNarrIn .3s ease both }
@keyframes prNarrIn { from { opacity: 0; transform: translate(-50%, 14px) } to { opacity: 1; transform: translate(-50%, 0) } }
.pr-narr-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); flex: none }
.pr-narr-head b { font-size: 12px; font-weight: 900; letter-spacing: .12em; color: var(--accent-ink); display: inline-flex; gap: 7px; align-items: center }
.pr-narr-head span { font-size: 11.5px; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.pr-narr-head button { width: 28px; height: 28px; border-radius: 8px; color: var(--muted) }
.pr-narr-head button:hover { background: var(--surface-3); color: var(--text) }
.pr-narr-body { overflow-y: auto; padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin }
.pr-narr-body p { font-size: clamp(14px, .55vw + 8px, 19px); line-height: 1.75; color: var(--text-2); margin: 0; padding: 4px 8px; border-radius: 9px; transition: background .25s, color .25s }
.pr-narr-body p.said { color: var(--muted) }
.pr-narr-body p.cur { background: var(--accent-soft); color: var(--text) }
.pr-narr-body span[data-s] { transition: color .2s, background .2s; border-radius: 4px }
.pr-narr-body p.cur span.said { color: var(--text-2) }
.pr-narr-body p.cur span.now { color: var(--text); background: color-mix(in srgb, var(--accent) 26%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 26%, transparent) }
.pr-cue { display: inline-flex; gap: 5px; align-items: center; margin-right: 8px; padding: 1px 8px; border-radius: 999px; font-size: .68em; font-weight: 800;
    color: var(--accent-ink); background: var(--surface-3); vertical-align: 2px; max-width: 26em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

/* 연출 층 */
.pr-layer { position: fixed; z-index: 125; pointer-events: none; container-type: size; overflow: hidden;
    --ly-card: rgba(12, 16, 25, .94); --ly-line: rgba(255, 255, 255, .14); --ly-text: #f1f4fa; --ly-text-2: #b8c1d3; --ly-muted: #7f8aa0;
    --ly-accent: #8aa2ff; --ly-mark: rgba(255, 205, 77, .5) }
.pr-layer.pr-light { --ly-card: rgba(255, 255, 255, .97); --ly-line: #d6dbe4; --ly-text: #0f1422; --ly-text-2: #3d4659; --ly-muted: #7d8699;
    --ly-accent: #3b5bfd; --ly-mark: rgba(255, 200, 40, .55) }
.pr-layer > * { pointer-events: auto }

/* 기사 발췌 */
.pr-spot { position: absolute; right: clamp(12px, 2.4vw, 44px); bottom: clamp(12px, 3cqh, 36px); width: min(820px, 60cqw); max-height: 70cqh;
    opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .38s ease, transform .45s cubic-bezier(.2, .75, .25, 1) }
.pr-spot.on { opacity: 1; transform: none }
.pr-spot.off { opacity: 0; transform: translateY(14px); pointer-events: none }
.pr-layer.narr-on .pr-spot { bottom: calc(31cqh + 26px); max-height: 52cqh }
.pr-spot-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); border-radius: 18px; overflow: hidden; background: var(--ly-card);
    border: 1px solid var(--ly-line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); backdrop-filter: blur(16px); color: var(--ly-text) }
.pr-spot-photo { position: relative; min-height: 220px; overflow: hidden; display: block; background: #05070c }
.pr-spot-photo .pr-spot-media { position: absolute; inset: 0 }
.pr-spot-photo .mz-img { animation: prKB 18s ease-out both }
.pr-spot-body { display: flex; flex-direction: column; gap: 8px; padding: clamp(14px, 1.6vw, 26px); min-width: 0 }
.pr-spot-kick { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--ly-accent) }
.pr-spot-kick b { color: var(--ly-text-2); letter-spacing: .02em }
.pr-spot-kick time { color: var(--ly-muted); font-weight: 650; letter-spacing: 0 }
.pr-spot h3 { font-size: clamp(17px, .7vw + 10px, 26px); font-weight: 850; line-height: 1.35; letter-spacing: -.02em; color: var(--ly-text);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.pr-spot-body p { font-size: clamp(13.5px, .45vw + 9px, 19px); line-height: 1.7; color: var(--ly-text-2);
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden }
.pr-spot mark { color: var(--ly-text); font-weight: 700; padding: 0 2px; border-radius: 3px; background: linear-gradient(var(--ly-mark), var(--ly-mark)) no-repeat 0 85% / 0% 55%;
    animation: prMark 1.1s .45s cubic-bezier(.2, .75, .25, 1) forwards }
@keyframes prMark { to { background-size: 100% 55% } }
.pr-spot-link { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 750; color: var(--ly-accent); display: inline-flex; gap: 6px; align-items: center }

/* 영상 발췌 */
.pr-clip { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 6, 10, .78); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .35s ease }
.pr-clip.on { opacity: 1 }
.pr-clip.off { opacity: 0; pointer-events: none }
.pr-clip-card { width: min(1240px, 94cqw, calc((100cqh - 96px) * 16 / 9)); display: flex; flex-direction: column; gap: 10px;
    transform: scale(.97); transition: transform .45s cubic-bezier(.2, .75, .25, 1) }
.pr-clip.on .pr-clip-card { transform: none }
.pr-clip-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 90px rgba(0, 0, 0, .6) }
.pr-clip-frame iframe { width: 100%; height: 100%; border: 0; display: block }
.pr-clip-cap { display: flex; align-items: center; gap: 12px; color: #eef1f7; font-size: 13px; min-width: 0 }
.pr-clip-kick { flex: none; display: inline-flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 900; letter-spacing: .12em; color: #ff6b6b }
.pr-clip-cap b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }
.pr-clip-ch { color: #9aa4b8; white-space: nowrap; flex: none }
.pr-clip-left { margin-left: auto; flex: none; font-variant-numeric: tabular-nums; color: #c7cfdd; font-weight: 750 }
.pr-clip-skip { flex: none; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); color: #eef1f7; font-size: 12px; font-weight: 750;
    display: inline-flex; gap: 6px; align-items: center }
.pr-clip-skip:hover { background: rgba(255, 255, 255, .1) }
.pr-clip-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden }
.pr-clip-bar i { display: block; height: 100%; width: 0; background: #ff4d4f; transition: width .25s linear }

/* 내레이션 편집 (관리자) — 오른쪽 칸 · 무대는 왼쪽으로 줄어든다 */
.presenter.editing { padding-right: min(470px, 44vw) }
.pr-edit { position: fixed; top: 0; right: 0; bottom: 0; width: min(470px, 44vw); z-index: 8; display: flex; flex-direction: column;
    background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: -18px 0 50px rgba(0, 0, 0, .25) }
.pe-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex: none }
.pe-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 }
.pe-head b { font-size: 14px; font-weight: 850; display: inline-flex; gap: 8px; align-items: center }
.pe-head b i { color: var(--accent) }
.pe-head span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.pe-head button { width: 32px; height: 32px; border-radius: 9px; color: var(--muted) }
.pe-head button:hover { background: var(--surface-3); color: var(--text) }
.pe-meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; flex: none }
.pe-meta span { font-size: 11.5px; font-weight: 700; color: var(--text-2); background: var(--surface-3); border-radius: 999px; padding: 3px 10px;
    display: inline-flex; gap: 6px; align-items: center }
.pe-meta span.ok { color: var(--good-ink) }
.pe-meta span.warn { color: var(--warn-ink) }
.pe-meta span.bad { color: var(--bad-ink) }
.pe-warn { margin: 10px 14px 0; font-size: 12px; line-height: 1.55; color: var(--warn-ink); display: flex; gap: 7px; align-items: flex-start }
.pe-warn i { margin-top: 3px }
.pe-beats { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin }
.pe-beat { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px }
.pe-bh { display: flex; align-items: center; gap: 8px }
.pe-no { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; font-weight: 900; color: #fff; background: var(--accent) }
.pe-len { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums }
.pe-tools { margin-left: auto; display: flex; gap: 2px }
.pe-tools button { width: 28px; height: 28px; border-radius: 8px; color: var(--text-2); font-size: 12px }
.pe-tools button:hover:not(:disabled) { background: var(--surface-3); color: var(--text) }
.pe-tools button:disabled { opacity: .3 }
.pe-say { width: 100%; resize: vertical; font-size: 14px; line-height: 1.65; min-height: 64px }
.pe-cue-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.pe-cue-row .pe-cue { flex: 1 1 100%; min-width: 0; font-size: 12.5px; height: 34px }
.pe-cue-row .pe-quote { flex: 1 1 100%; font-size: 12.5px; height: 34px }
.pe-num { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text-2) }
.pe-num input { width: 74px; height: 32px; font-size: 12.5px }
.pe-add { align-self: flex-start }
.pe-hint { flex: none; margin: 0 14px; padding: 8px 10px; font-size: 11.5px; line-height: 1.55; color: var(--muted); border-top: 1px dashed var(--line) }
.pe-foot { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid var(--line) }

@media (max-width: 980px) {
    .pr-spot { width: calc(100% - 24px); right: 12px }
    .pr-spot-card { grid-template-columns: minmax(0, 1fr) }
    .pr-spot-photo { min-height: 140px; max-height: 22cqh }
    .pr-auto-st { display: none }
}
@media (max-width: 760px) {
    .presenter.editing { padding-right: 0 }
    .pr-edit { width: 100%; z-index: 9 }
}
@media (prefers-reduced-motion: reduce) {
    .pr-spot, .pr-clip, .pr-clip-card, .pr-slide [data-focus] { transition: none }
    .pr-spot-photo .mz-img, .pr-live-dot { animation: none }
    .pr-spot mark { animation: none; background-size: 100% 55% }
}
@media print { .pr-layer { display: none !important } }
/* 편집 중에는 위 막대를 줄인다 (무대가 좁아지므로 아이콘만) */
.presenter.editing .pr-brand, .presenter.editing .pr-kind, .presenter.editing .pr-timer span, .presenter.editing .pr-tools button span { display: none }
.presenter.editing .pr-tools { flex-wrap: nowrap; gap: 4px }
.presenter.editing .pr-tools button { padding: 0 9px }
.presenter.editing .pr-timer { white-space: nowrap }
/* 영문 낱말 읽는 법 (편집 화면) */
.pe-words { margin: 10px 14px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 12px }
.pe-words summary { cursor: pointer; padding: 8px 10px; font-weight: 750; color: var(--text-2); display: flex; gap: 7px; align-items: center }
.pe-words summary b { color: var(--warn-ink) }
.pe-words ul { list-style: none; max-height: 190px; overflow-y: auto; padding: 0 10px 6px; display: flex; flex-direction: column; gap: 3px; scrollbar-width: thin }
.pe-words li { display: flex; gap: 7px; align-items: center; min-width: 0 }
.pe-words li > i { font-size: 9px; color: var(--muted) }
.pw-term { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--text) }
.pw-say { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pw-src { margin-left: auto; flex: none; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted) }
.pw-src.ok { color: var(--good-ink) } .pw-src.warn { color: var(--warn-ink) } .pw-src.bad { color: var(--bad-ink) }
.pe-words li button { flex: none; width: 24px; height: 24px; border-radius: 7px; color: var(--muted); font-size: 11px }
.pe-words li button:hover { background: var(--surface-3); color: var(--text) }
.pe-words p { padding: 0 10px 8px; font-size: 11px; line-height: 1.5 }

/* 브랜드별 미래 비전 — 브랜드 카드 안 전략 과제 */
.brand-bets { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 6px }
.brand-bets li { font-size: 12.5px; line-height: 1.55; color: var(--text-2) }
.brand-bets li b { display: inline-block; min-width: 44px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--accent) }
