/* DearChallenge — 깊은 남색 바탕 · 파란 강조(행동) · 금빛(시간 · 순위). 시안: docs/mock-*.png */
:root {
  --bg: #07111f;
  --bg2: #0a1628;
  --panel: #12233a;
  --panel2: #172b45;
  --panel3: #1c3352;
  --line: #24405f;
  --line2: #2f5277;
  --ink: #eef3fa;
  --ink2: #a9b8cc;
  --ink3: #7387a0;
  --blue: #3d8ef5;
  --blue2: #6aa9ff;
  --blue-deep: #17406f;
  --gold: #f2c27b;
  --gold2: #e3a857;
  --red: #ef7b7b;
  --green: #6fd3a0;
  --tabs: 68px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); min-height: 100dvh; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(900px 500px at 50% -180px, rgba(61, 142, 245, .16), transparent 70%); z-index: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: var(--ink); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; border-radius: 6px; }

.shell { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--tabs) + 28px + env(safe-area-inset-bottom)); }
body[data-tabs="off"] .shell { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.main { min-height: 60vh; }

/* ── 머리 ── */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 0 12px; margin: 0 -16px 6px; padding-left: 16px; padding-right: 16px; background: linear-gradient(var(--bg) 70%, rgba(7, 17, 31, 0)); border-bottom: 1px solid rgba(36, 64, 95, .7); }
.top .grow { flex: 1; min-width: 0; }
.logo { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.logo em { font-style: normal; color: var(--blue2); }
.logo sup { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-left: 6px; vertical-align: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink2); flex: none; }
.icon-btn:hover { background: var(--panel); color: var(--ink); }
.back svg { width: 24px; height: 24px; stroke: var(--blue2); stroke-width: 2.4; }
.me-btn .uav { width: 34px !important; height: 34px !important; }

.eyebrow { margin: 14px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue2); }
.h1 { margin: 0 0 14px; font-size: 29px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.muted { color: var(--ink2); }
.quiet { color: var(--ink3); font-size: 14px; }
.tiny { font-size: 12px; color: var(--ink3); line-height: 1.5; }

/* ── 카드 · 버튼 ── */
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.card + .card, .card + .btn, .btn + .btn, .btn + .card { margin-top: 12px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 17px; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.985); }
.btn-cta { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(61, 142, 245, .25); }
.btn-cta:hover { background: #4f9bfa; }
.btn-cta:disabled { background: #2a4a72; color: #9db3cf; box-shadow: none; cursor: default; }
.btn-ghost { background: var(--panel2); border: 1px solid var(--line2); color: #d6e5f8; }
.btn-ghost:hover { background: var(--panel3); }
.btn-danger { background: #4a1c22; color: #ffd4d4; border: 1px solid #7a2e36; }
.btn-sm { min-height: 40px; font-size: 14px; width: auto; padding: 8px 14px; border-radius: 12px; }
.btn svg { width: 19px; height: 19px; }
.link-btn { color: var(--blue2); font-size: 14px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--blue-deep); color: var(--blue2); white-space: nowrap; }
.pill.gold { background: #4a3a22; color: var(--gold); }
.pill.green { background: #14402c; color: var(--green); }
.pill.red { background: #4a1c22; color: var(--red); }
.pill.gray { background: #1f2c3d; color: var(--ink2); }

/* ── Today ── */
.hero { position: relative; overflow: hidden; padding: 0; background: linear-gradient(180deg, #13263f, #102037); }
.hero .art { display: block; padding: 22px 22px 6px; }
.hero .art svg { width: 100%; height: auto; display: block; stroke: none; }
.hero .body { padding: 6px 22px 22px; }
.hero h2 { margin: 12px 0 6px; font-size: 27px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.hero p { margin: 0; color: var(--ink2); font-size: 17px; line-height: 1.5; }
.stars-bg { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(1.2px 1.2px at 12% 8%, #6b7f99 50%, transparent 51%), radial-gradient(1px 1px at 33% 4%, #5a6d86 50%, transparent 51%), radial-gradient(1.5px 1.5px at 66% 6%, #6b7f99 50%, transparent 51%), radial-gradient(1px 1px at 86% 11%, #5a6d86 50%, transparent 51%), radial-gradient(1.2px 1.2px at 94% 3%, #6b7f99 50%, transparent 51%); }
.timer-card .label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.timer { font: 700 30px/1.25 var(--mono); color: var(--gold); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.timer.sm { font-size: 24px; }
.status-card { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; background: #0f1d31; }
.status-card .k { font-size: 14px; color: var(--ink2); }
.status-card .v { font-size: 19px; font-weight: 800; }
.status-card .r { font-size: 13px; font-weight: 700; color: var(--blue2); text-align: right; }
.empty { text-align: center; padding: 44px 10px; }
.empty b { display: block; font-size: 19px; margin: 10px 0 6px; }
.empty p { color: var(--ink2); margin: 0 auto 18px; max-width: 34ch; }
.lamp { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--panel2); color: var(--gold); }

/* ── 문제 ── */
.timebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.statement { margin: 18px 2px; font-size: 18px; line-height: 1.6; }
.statement p { margin: 0 0 14px; }
.statement .quote { padding-left: 14px; border-left: 3px solid var(--line2); color: #dfe8f4; }
.rules { margin: 0 0 16px; }
.rules h3, .sec-h { margin: 22px 2px 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.rules ol { margin: 0; padding: 0 0 0 22px; color: #dbe5f2; font-size: 16px; }
.rules li { margin: 0 0 6px; padding-left: 4px; }
.mission { background: var(--panel2); border-color: var(--line2); }
.mission .label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.mission b { display: block; margin-top: 8px; font-size: 19px; line-height: 1.4; }
.mission .fmt { margin: 10px 0 0; font-size: 14px; color: var(--ink2); }
.idea { display: block; background: #0d1c30; }
.idea .k { font-size: 14px; color: var(--ink2); }
.idea .v { font-size: 15.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idea .v.none { color: var(--ink3); }
.actions { margin-top: 16px; }
.sparkle { color: var(--blue2); }
.note-ai { margin: 10px 2px 0; font-size: 13px; color: var(--ink3); text-align: center; }

/* ── AI 대화 ── */
.banner { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 10px 16px; margin-bottom: 16px; }
.banner b { color: var(--blue2); font-size: 17px; }
.banner span { display: block; color: var(--ink2); font-size: 14px; }
.chat { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 16px; font-size: 16.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.ai { align-self: flex-start; background: #182a42; border: 1px solid var(--line2); }
.msg.me { align-self: flex-end; background: #17457a; border: 1px solid #2f6bb0; }
.msg.care { background: #2a2030; border-color: #5b4166; }
.msg .t { display: block; font-size: 11px; color: var(--ink3); margin-top: 4px; }
.msg.typing { color: var(--ink2); }
.composer { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 8px; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 8px 8px 8px 16px; margin-top: 14px; box-shadow: 0 -10px 30px rgba(7, 17, 31, .9); }
.composer textarea { flex: 1; resize: none; border: 0; background: none; outline: none; font-size: 16px; line-height: 1.45; padding: 8px 0; max-height: 160px; }
.composer textarea::placeholder { color: var(--ink3); }
.send { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; flex: none; }
.send:disabled { background: #2a4a72; color: #8fa6c3; }
.send svg { width: 20px; height: 20px; stroke-width: 2.4; }
.chat-foot { margin: 10px 4px 0; font-size: 13px; color: var(--ink3); }

/* ── 기록 · 제출 ── */
.fld { display: block; margin: 0 0 16px; }
.fld > span { display: block; margin: 0 2px 6px; font-size: 14px; font-weight: 700; color: var(--ink2); }
.fld > span em { font-style: normal; font-weight: 500; color: var(--ink3); }
.fld textarea, .fld input { width: 100%; background: #0d1b2e; border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px; font-size: 16px; line-height: 1.5; outline: none; resize: vertical; }
.fld textarea:focus, .fld input:focus { border-color: var(--blue); }
.fld .cnt { display: block; text-align: right; font-size: 12px; color: var(--ink3); margin-top: 4px; }
.journal { list-style: none; margin: 0; padding: 0; position: relative; }
.journal::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.journal li { position: relative; padding: 0 0 16px 28px; }
.journal li::before { content: ''; position: absolute; left: 1px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--blue2); }
.journal li:last-child::before { background: var(--blue2); }
.journal .t { font: 600 12.5px var(--mono); color: var(--gold); }
.journal p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.journal .del { float: right; font-size: 12px; color: var(--ink3); }
.verdict { display: flex; gap: 14px; align-items: center; }
.verdict .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; background: var(--panel2); }
.verdict.solved .ic { background: #14402c; color: var(--green); }
.verdict.incorrect .ic { background: #4a1c22; color: var(--red); }
.verdict b { display: block; font-size: 17px; }
.verdict span { color: var(--ink2); font-size: 14px; }
.subbox { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; color: #dbe5f2; }
.subbox h4 { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.subbox h4 + p { margin: 0 0 12px; }
.warnbox { background: #2a2214; border: 1px solid #5d4a26; color: #f3dfb8; border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.carebox { background: #241c2c; border: 1px solid #574064; border-radius: 16px; padding: 16px; font-size: 16px; line-height: 1.6; }

/* ── 해설 ── */
.reveal .answer { background: linear-gradient(180deg, #1b3150, #142740); border-color: var(--blue2); }
.reveal .answer .label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue2); }
.reveal .answer p { margin: 8px 0 0; font-size: 17px; line-height: 1.55; }
.reveal ul, .reveal ol { margin: 0; padding-left: 20px; }
.reveal li { margin-bottom: 8px; }
.prose { font-size: 16px; line-height: 1.65; color: #dbe5f2; }
.prose p { margin: 0 0 10px; }
.recap .turns { list-style: none; padding: 0; margin: 10px 0; }
.recap .turns li { padding: 8px 0 8px 14px; border-left: 2px solid var(--gold2); margin-bottom: 6px; }

/* ── 랭킹 ── */
.seg { display: flex; padding: 4px; background: #10233b; border: 1px solid var(--line2); border-radius: 14px; margin-bottom: 16px; }
.seg button { flex: 1; padding: 10px 8px; border-radius: 10px; font-size: 17px; color: var(--ink2); font-weight: 600; position: relative; }
.seg button.on { color: var(--ink); font-weight: 800; }
.seg button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--blue); }
.seg small { font-size: 12px; color: var(--ink3); margin-left: 4px; font-weight: 600; }
.rk-head { display: grid; grid-template-columns: 54px 1fr auto; padding: 0 14px 6px; font-size: 14px; color: var(--ink2); }
.rk { list-style: none; margin: 0; padding: 0; }
.rk li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; }
.rk li:nth-child(odd) { background: #12233a; }
.rk li.top1 { background: #1f2b3a; border: 1px solid #8a6a3c; }
.rk li.me { outline: 2px solid var(--blue); }
.rk .n { font: 700 20px var(--mono); color: var(--ink2); }
.rk li:nth-child(-n+3) .n { color: var(--gold); }
.rk .who { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; font-size: 17px; }
.rk .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk .tm { font: 500 15.5px var(--mono); color: var(--ink2); }
.rk li.top1 .tm { color: var(--gold); }
.myrank { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; background: #1f3150; border-color: var(--line2); }
.myrank b { font-size: 18px; }
.myrank span { font-size: 14px; color: var(--blue2); font-weight: 700; }
.statline { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; color: var(--ink3); font-size: 13px; }

/* ── Archive ── */
.arch { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.arch a { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.arch a:hover { border-color: var(--line2); }
.arch .ico { width: 64px; height: 64px; border-radius: 12px; background: #0e1d32; display: grid; place-items: center; overflow: hidden; }
.arch .ico svg { width: 58px; height: 58px; stroke: none; }
.arch .d { font: 600 12px var(--mono); color: var(--ink3); }
.arch b { display: block; font-size: 16.5px; line-height: 1.3; }
.arch .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* ── 프로필 ── */
.pcard { display: flex; gap: 14px; align-items: center; }
.pcard b { display: block; font-size: 20px; }
.pcard span { color: var(--ink2); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stats b { display: block; font: 700 24px var(--mono); color: var(--gold); }
.stats span { font-size: 12px; color: var(--ink2); }
.links { margin-top: 18px; border-top: 1px solid var(--line); }
.link { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 16px; text-align: left; }
.link svg { width: 18px; height: 18px; color: var(--ink3); }
.link.danger { color: var(--red); }
.foot { margin: 20px 4px; font-size: 12.5px; color: var(--ink3); line-height: 1.6; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 14px; margin-bottom: 16px; }
.steps .k { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-deep); color: var(--blue2); font-weight: 800; flex: none; }
.steps b { display: block; }
.steps p { margin: 2px 0 0; color: var(--ink2); }

/* ── 아바타 (시리즈 공통 동물 그림 · 테두리 8색) ── */
.uav { display: inline-block; border-radius: 50%; overflow: hidden; flex: none; background: #22364f; border: 2px solid var(--ring, #3a5679); }
.uav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uav.ring0 { --ring: #f2c27b; } .uav.ring1 { --ring: #6aa9ff; } .uav.ring2 { --ring: #6fd3a0; } .uav.ring3 { --ring: #ef7b7b; }
.uav.ring4 { --ring: #b79cf2; } .uav.ring5 { --ring: #f29ccf; } .uav.ring6 { --ring: #7dd6e0; } .uav.ring7 { --ring: #cfd7e3; }
.uav.photo { --ring: #3a5679; }

/* ── 하단 탭 ── */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; justify-content: center; background: rgba(9, 20, 36, .96); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(10px); }
.tabs a { flex: 1; max-width: 186px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; height: var(--tabs); color: var(--ink3); font-size: 14px; }
.tabs a svg { width: 26px; height: 26px; }
.tabs a svg .fill { fill: currentColor; stroke: none; }
.tabs a.on { color: var(--blue2); font-weight: 700; }

/* ── 시트 · 게이트 · 토스트 ── */
.overlay, .modal { position: fixed; inset: 0; z-index: 120; background: rgba(3, 8, 16, .72); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
@media (min-width: 640px) { .overlay, .modal { align-items: center; } }
.sheet { position: relative; width: min(480px, 100%); max-height: 92dvh; overflow: auto; background: var(--bg2); border: 1px solid var(--line2); border-radius: 22px 22px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .sheet { border-radius: 22px; } }
.sheet h2 { margin: 0; font-size: 22px; }
.sheet .muted { margin: 0; }
.sheet .btn { margin-top: 0; }
.sheet-x { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; font-size: 24px; color: var(--ink3); }
.menu-sheet { gap: 8px; }
.dw-gate { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; padding: 20px; overflow: auto; }
.dw-gate::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 420px at 50% 0, rgba(61, 142, 245, .2), transparent 70%); }
.gate-card { position: relative; width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; text-align: center; }
.gate-card .logo { font-size: 34px; }
.gate-card p { margin: 0; color: var(--ink2); }
.gate-card .slogan { font-size: 21px; color: var(--ink); font-weight: 700; line-height: 1.35; }
.gate-card input { width: 100%; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 14px; font-size: 17px; text-align: center; outline: none; }
.err { color: var(--red); font-size: 14px; margin: 0; }
.warn { color: #f3dfb8; font-size: 14px; }
.keep { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; color: var(--ink2); }
.gbtn { min-height: 46px; display: grid; place-items: center; }
.btn-block { width: 100%; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 22px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 300; max-width: min(92vw, 460px); background: #22364f; color: var(--ink); border: 1px solid var(--line2); padding: 12px 16px; border-radius: 14px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line2); border-top-color: var(--blue2); animation: spin .8s linear infinite; display: inline-block; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }
.loading { display: grid; place-items: center; gap: 10px; padding: 50px 0; color: var(--ink3); }
.fb-stars { display: flex; gap: 6px; justify-content: center; }
.fb-stars button { font-size: 30px; color: #34506f; }
.fb-stars button.on { color: var(--gold); }
#fbText { width: 100%; background: #0d1b2e; border: 1px solid var(--line2); border-radius: 14px; padding: 12px; outline: none; resize: vertical; }
.prof-sheet .pf-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; }
.prof-sheet .pf-card b { font-size: 19px; }
.pf-own { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.pf-own .fld { margin: 0; }
.pf-photo { display: flex; gap: 10px; align-items: center; }
.pf-photo .btn { width: auto; min-height: 42px; font-size: 14px; }
.pf-final { font-size: 13px; color: var(--gold); margin: 0; text-align: center; }

/* ── 설치 팝업 (시리즈 공통 install.js) ── */
.dwi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; display: flex; justify-content: center; padding: 0 12px calc(var(--tabs) + 12px + env(safe-area-inset-bottom)); pointer-events: none; animation: fadeUp .4s ease both; }
body[data-view="write"] .dwi { display: none; }
.dwi-card { pointer-events: auto; width: min(440px, 100%); background: var(--panel2); color: var(--ink); border: 1px solid var(--line2); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 12px; }
.dwi-head { display: flex; gap: 12px; align-items: flex-start; }
.dwi-head img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.dwi-head b { display: block; font-weight: 700; font-size: 16px; }
.dwi-head p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.dwi-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.dwi-btn { padding: 9px 14px; border-radius: 999px; font-size: 13px; }
.dwi-main { background: var(--blue); color: #fff; font-weight: 650; }
.dwi-ghost { border: 1px solid var(--line2); color: var(--ink2); }
.dwi-more { font-size: 13.5px; color: var(--ink); }
.dwi-steps { margin: 0; padding-left: 20px; line-height: 1.9; list-style: decimal; }
.dwi-ico { display: inline-flex; vertical-align: -4px; padding: 2px 4px; border-radius: 6px; background: var(--bg); color: var(--blue2); }
.dwi-guide { margin: 0 0 8px; line-height: 1.6; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
