/* 파크로쉬 서울원 입주민 앱 프로토타입 — 디자인 컨셉 A · Aurora
 * 글자·여백은 em 단위라 .scr 의 font-size 만 바꾸면 전체가 함께 커집니다(시니어 모드). */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; background: #0b100e; color: #e8efe9; display: flex; align-items: center; justify-content: center; gap: 48px; min-height: 100vh; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.num { font-family: 'Inter', 'Noto Sans KR', sans-serif; font-feature-settings: 'tnum'; }

/* ── 바깥 조작 패널 */
.panel { width: 300px; display: flex; flex-direction: column; gap: 18px; }
.panel h1 { font-size: 22px; letter-spacing: -.4px; }
.panel p { font-size: 13px; line-height: 1.6; color: #9aa9a2; }
.panel .grp { background: #141b18; border: 1px solid #25302b; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.panel .lbl { font-size: 12px; font-weight: 700; color: #46E0A2; letter-spacing: .4px; }
.seg { display: flex; background: #0b100e; border-radius: 12px; padding: 4px; }
.seg button { flex: 1; padding: 9px 0; border-radius: 9px; font-size: 13px; color: #9aa9a2; }
.seg button.on { background: #e8efe9; color: #0b100e; font-weight: 700; }
.sw { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.tg { width: 52px; height: 30px; border-radius: 15px; background: #2a3531; position: relative; transition: background .2s; flex: none; }
.tg::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tg.on { background: #46E0A2; }
.tg.on::after { transform: translateX(22px); }
.panel a { color: #8fd9bb; font-size: 13px; }
.panel .links { display: flex; flex-direction: column; gap: 8px; }

/* ── 기기 프레임 */
.dev { width: 418px; height: 872px; border-radius: 66px; background: #0b0e0d; padding: 14px; box-shadow: inset 0 0 0 2px #2b3230, inset 0 0 0 5px #0b0e0d, inset 0 0 0 6px #1d2321, 0 40px 80px rgba(0,0,0,.5); flex: none; }
.scr { width: 390px; height: 844px; border-radius: 52px; overflow: hidden; position: relative; background: var(--bg); color: var(--text); font-size: 16px; transition: background .3s, color .3s;
  --bg: #EDF2EF; --text: #0F201B; --sub: #5C6C66; --acc: #0B8A5C; --glass: rgba(255,255,255,.66); --gl: rgba(255,255,255,.95); --b1: #8EF0C6; --b2: #A9D2FF; --b3: #D9CCFF; --bo: .85; --chip: rgba(255,255,255,.8); --line: rgba(15,32,27,.08); --warn: #D9480F; }
.scr.dark { --bg: #060D0B; --text: #EAF4EF; --sub: #91A49D; --acc: #46E0A2; --glass: rgba(255,255,255,.07); --gl: rgba(255,255,255,.14); --b1: #0E7A54; --b2: #1F4E96; --b3: #55319A; --bo: .75; --chip: rgba(255,255,255,.09); --line: rgba(255,255,255,.1); --warn: #FF8A5C; }
.island { position: absolute; top: 11px; left: 50%; margin-left: -62px; width: 124px; height: 36px; border-radius: 20px; background: #000; z-index: 90; }
.status { position: relative; z-index: 5; height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 4px 30px 0 36px; font: 600 16px 'Inter', sans-serif; }
.status .bat { width: 26px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; position: relative; display: inline-block; }
.status .bat::after { content: ''; position: absolute; left: 2px; top: 2px; bottom: 2px; width: 15px; background: currentColor; border-radius: 1px; }
.homeind { position: absolute; bottom: 8px; left: 50%; margin-left: -67px; width: 134px; height: 5px; border-radius: 3px; background: var(--text); opacity: .85; z-index: 95; pointer-events: none; }

/* ── 오로라 배경 */
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: var(--bo); z-index: 1; animation: drift 14s ease-in-out infinite alternate; }
.blob.b1 { width: 300px; height: 300px; background: var(--b1); left: -110px; top: -70px; }
.blob.b2 { width: 280px; height: 280px; background: var(--b2); right: -120px; top: 150px; animation-delay: -5s; }
.blob.b3 { width: 260px; height: 260px; background: var(--b3); left: 40px; top: 520px; animation-delay: -9s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(24px,-18px) scale(1.12); } }

/* ── 화면 본문 */
.view { position: absolute; inset: 54px 0 0 0; z-index: 5; overflow-y: auto; padding: .4em 1.25em 8.2em; display: flex; flex-direction: column; gap: .9em; scrollbar-width: none; animation: enter .28s ease; }
.view::-webkit-scrollbar { display: none; }
.view.sub { padding-bottom: 2.4em; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.row { display: flex; align-items: center; }
.sb { justify-content: space-between; }
.g8 { gap: .5em; } .g12 { gap: .75em; }
.grow { flex: 1; min-width: 0; }
.h1 { font-size: 1.75em; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.h2 { font-size: .95em; font-weight: 700; }
.sub { color: var(--sub); font-size: .82em; line-height: 1.5; }
.lab { font-size: .75em; font-weight: 700; letter-spacing: .03em; color: var(--acc); }
.big { font-size: 2.1em; font-weight: 600; letter-spacing: -.02em; }
.glass { background: var(--glass); border: 1px solid var(--gl); border-radius: 1.6em; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.card { padding: 1.1em; }
.orb { border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fff 0%, #B6FFE0 18%, #46E0A2 42%, #4A8CFF 72%, #8B6CFF 100%); box-shadow: 0 0 30px rgba(70,224,162,.55); flex: none; display: flex; align-items: center; justify-content: center; color: #05231A; }
.orb.breathe { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); box-shadow: 0 0 30px rgba(70,224,162,.55); } 50% { transform: scale(1.06); box-shadow: 0 0 46px rgba(90,168,255,.7); } }
.pill { border-radius: 99px; padding: .6em 1.05em; font-size: .82em; font-weight: 700; min-height: 2.6em; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.pp { background: linear-gradient(90deg, #46E0A2, #5AA8FF); color: #05231A; }
.pg { background: var(--chip); border: 1px solid var(--gl); color: var(--text); }
.pill.wide { flex: 1; padding: .85em; font-size: .9em; }
.pill[disabled] { opacity: .45; cursor: default; }
.badge { font-size: .7em; font-weight: 700; padding: .3em .7em; border-radius: 99px; background: color-mix(in srgb, var(--c, var(--acc)) 22%, transparent); color: var(--text); white-space: nowrap; }
.dot { width: .56em; height: .56em; border-radius: 50%; flex: none; }
.li { display: flex; align-items: center; gap: .75em; padding: .7em 0; width: 100%; text-align: left; }
.li + .li { border-top: 1px solid var(--line); }
.tm { font: 600 .95em 'Inter', sans-serif; width: 3em; }
.icb { width: 2.5em; height: 2.5em; border-radius: .9em; display: flex; align-items: center; justify-content: center; flex: none; }
.cir { width: 2.75em; height: 2.75em; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; flex: none; }
.cir .red { position: absolute; top: .55em; right: .6em; width: .5em; height: .5em; border-radius: 50%; background: #FF7A59; }
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; }
.q { display: flex; flex-direction: column; align-items: center; gap: .45em; font-size: .75em; font-weight: 600; }
.q .qi { width: 5em; height: 5em; border-radius: 1.8em; display: flex; align-items: center; justify-content: center; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.tile { padding: .9em .75em; display: flex; flex-direction: column; gap: .6em; border-radius: 1.4em; text-align: left; font-size: .85em; font-weight: 700; }
.tile .ic { color: var(--acc); }
.bar { height: .4em; border-radius: .2em; background: var(--gl); margin-top: .45em; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: .2em; background: linear-gradient(90deg, #46E0A2, #5AA8FF); }
.bar > i.hot { background: linear-gradient(90deg, #FFB36B, #FF7A59); }
.segm { display: flex; padding: .25em; border-radius: 99px; font-size: .82em; }
.segm button { flex: 1; padding: .6em 0; border-radius: 99px; color: var(--sub); }
.segm button.on { background: var(--text); color: var(--bg); font-weight: 700; }
.top { display: flex; align-items: center; gap: .6em; margin-top: .2em; }
.top .ttl { font-size: 1.15em; font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; }
.slot { padding: .7em 0; border-radius: .9em; font: 600 .85em 'Inter', sans-serif; text-align: center; }
.slot small { display: block; font: 500 .78em 'Noto Sans KR', sans-serif; color: var(--sub); margin-top: .2em; }
.slot.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.slot.on small { color: var(--bg); opacity: .8; }
.slot[disabled] { opacity: .4; cursor: default; }
.days { display: flex; gap: .5em; overflow-x: auto; scrollbar-width: none; }
.day { min-width: 3.4em; padding: .6em 0; border-radius: 1em; text-align: center; font-size: .8em; flex: none; }
.day b { display: block; font: 600 1.25em 'Inter', sans-serif; margin-top: .15em; }
.day.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.kv { display: flex; justify-content: space-between; padding: .55em 0; font-size: .88em; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv span:first-child { color: var(--sub); }
.thumb { width: 3.6em; height: 3.6em; border-radius: 1.1em; flex: none; }
.stepper { display: flex; align-items: flex-start; margin: .4em 0; }
.stepper .st { flex: 1; text-align: center; font-size: .75em; color: var(--sub); position: relative; }
.stepper .st i { display: block; width: 1.1em; height: 1.1em; border-radius: 50%; margin: 0 auto .5em; background: var(--gl); border: 2px solid var(--gl); position: relative; z-index: 2; }
.stepper .st::before { content: ''; position: absolute; top: .5em; left: -50%; right: 50%; height: 2px; background: var(--gl); }
.stepper .st:first-child::before { display: none; }
.stepper .st.done i { background: var(--acc); border-color: var(--acc); }
.stepper .st.done::before { background: var(--acc); }
.stepper .st.now { color: var(--text); font-weight: 700; }
.stepper .st.now i { background: var(--bg); border-color: var(--acc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 25%, transparent); }
.spark { width: 100%; height: 4.2em; }
.empty { text-align: center; padding: 2em 0; color: var(--sub); font-size: .88em; }

/* ── 탭 바 */
.tab { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 40; background: linear-gradient(180deg, rgba(0,0,0,0), var(--bg) 40%); pointer-events: none; }
.tabin { position: absolute; left: 16px; right: 16px; bottom: 22px; height: 64px; border-radius: 32px; display: flex; justify-content: space-around; align-items: center; padding: 0 6px; pointer-events: auto; }
.tabin .t { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--sub); width: 54px; }
.tabin .t.on { color: var(--text); font-weight: 700; }
.tabin .mic { width: 58px; height: 58px; margin-top: -26px; }

/* ── 바텀 시트 · 토스트 */
.dim { position: absolute; inset: 0; background: rgba(0,0,0,.42); z-index: 70; animation: fade .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 71; background: var(--bg); border-radius: 2em 2em 0 0; padding: 1.4em 1.25em 2.4em; display: flex; flex-direction: column; gap: .9em; animation: up .28s cubic-bezier(.2,.8,.2,1); border-top: 1px solid var(--gl); }
.sheet .grab { width: 2.6em; height: .28em; border-radius: 99px; background: var(--sub); opacity: .35; align-self: center; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toast { position: absolute; left: 50%; bottom: 7.4em; transform: translateX(-50%); z-index: 96; background: var(--text); color: var(--bg); font-size: .82em; font-weight: 600; padding: .75em 1.2em; border-radius: 99px; white-space: nowrap; animation: toast 2.2s forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 12%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* ── AI Agent */
.ai { position: absolute; inset: 0; z-index: 80; background: var(--bg); animation: fade .25s; }
.ai .blob { opacity: calc(var(--bo) + .1); transform: scale(1.25); }
.ai .view { padding-bottom: 1.6em; }
.steps { align-self: center; display: flex; gap: .15em; padding: .25em; border-radius: 99px; }
.steps span { font-size: .7em; padding: .4em .8em; border-radius: 99px; color: var(--sub); transition: all .25s; }
.steps span.on { background: var(--acc); color: #05231A; font-weight: 700; }
.bub { align-self: flex-end; max-width: 16.5em; padding: .75em 1em; border-radius: 1.4em 1.4em .4em 1.4em; background: var(--chip); border: 1px solid var(--gl); font-size: .95em; font-weight: 500; animation: enter .3s; }
.ans { display: flex; gap: .6em; align-items: flex-start; font-size: 1em; line-height: 1.5; font-weight: 500; animation: enter .3s; }
.chips { display: flex; gap: .5em; flex-wrap: wrap; }
.chips .pill { font-weight: 500; font-size: .76em; min-height: 2.4em; }
.micwrap { align-self: center; display: flex; flex-direction: column; align-items: center; gap: .6em; margin-top: auto; padding-top: 1em; }
.ring { width: 7.4em; height: 7.4em; border-radius: 50%; border: 1px solid var(--gl); display: flex; align-items: center; justify-content: center; }
.ring .orb { width: 5.25em; height: 5.25em; }
.ring.listen { animation: pulse 1.1s ease-out infinite; }
.ring.think .orb { animation: spin 1.2s linear infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(70,224,162,.5); } 100% { box-shadow: 0 0 0 26px rgba(70,224,162,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.wave { display: flex; gap: .25em; align-items: center; height: 1.6em; }
.wave i { width: .22em; border-radius: 99px; background: var(--acc); animation: wv .8s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; } .wave i:nth-child(4) { animation-delay: .3s; } .wave i:nth-child(5) { animation-delay: .4s; }
@keyframes wv { 0%,100% { height: .35em; } 50% { height: 1.5em; } }

/* ── 시니어 모드: 블러·그라데이션을 걷고 솔리드 카드 + 굵은 외곽선 + 큰 글자 */
.scr.senior { font-size: 19px; --bg: #F6F8F6; --text: #0A1612; --sub: #26332E; --acc: #0B6E49; --glass: #FFFFFF; --gl: #0A1612; --chip: #FFFFFF; --line: rgba(10,22,18,.25); --warn: #B02A00; }
.scr.senior.dark { --bg: #000000; --text: #FFFFFF; --sub: #D7E2DC; --acc: #6BF0B8; --glass: #101513; --gl: #FFFFFF; --chip: #101513; --line: rgba(255,255,255,.35); --warn: #FFB199; }
.scr.senior .blob { display: none; }
.scr.senior .glass { backdrop-filter: none; -webkit-backdrop-filter: none; border-width: 2px; }
.scr.senior .orb { background: var(--acc); box-shadow: none; color: var(--bg); animation: none; }
.scr.senior .pp { background: var(--acc); color: var(--bg); }
.scr.senior .pill { min-height: 56px; font-size: .95em; padding: .6em 1.2em; }
.scr.senior .bar > i, .scr.senior .bar > i.hot { background: var(--text); }
.scr.senior .sub { font-size: .9em; font-weight: 500; }
.scr.senior .h1 { font-weight: 800; }
.scr.senior .li { min-height: 56px; }
.scr.senior .slot, .scr.senior .day { min-height: 56px; }
.scr.senior .tabin { height: 72px; border-radius: 24px; }
.scr.senior .tabin .t { font-size: 13px; font-weight: 700; color: var(--text); width: 62px; }
.scr.senior .tabin .t.on { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.scr.senior .view, .scr.senior .sheet, .scr.senior .toast { animation: none; }
.scr.senior .ring.listen { animation: none; outline: 4px solid var(--acc); outline-offset: 6px; }
.stiles { display: grid; grid-template-columns: 1fr 1fr; gap: .65em; }
.stile { padding: .9em .8em; border-radius: 1.3em; display: flex; flex-direction: column; gap: .5em; min-height: 6.2em; text-align: left; font-size: 1.1em; font-weight: 800; letter-spacing: -.02em; }
.talk { display: flex; align-items: center; gap: .8em; background: var(--acc); color: var(--bg); border-radius: 99px; padding: .7em 1.1em; font-size: 1.15em; font-weight: 800; width: 100%; }
.talk .mc { width: 2.7em; height: 2.7em; border-radius: 50%; background: var(--bg); color: var(--acc); display: flex; align-items: center; justify-content: center; flex: none; }
.solid { background: var(--text); color: var(--bg); border-radius: 1.3em; padding: .85em 1em; font-size: 1em; font-weight: 700; line-height: 1.45; }

/* ── 좁은 화면(실제 폰)에서는 프레임 없이 전체 화면 */
@media (max-width: 820px) {
  body { gap: 0; background: #000; }
  .panel { display: none; }
  .dev { width: 100vw; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; }
  .scr { width: 100%; height: 100%; border-radius: 0; }
  .island, .status, .homeind { display: none; }
  .view { top: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 보정 */
.scr .tg { background: color-mix(in srgb, var(--sub) 45%, transparent); }
.scr .tg.on { background: var(--acc); }
.scr.senior .steps span { padding: .4em .5em; font-size: .68em; }
.scr.senior .badge { background: var(--bg); border: 2px solid var(--text); font-size: .74em; }
.scr.senior .thumb { background: var(--acc) !important; }
.scr.senior .tab { background: var(--bg); height: 104px; border-top: 2px solid var(--text); }
.scr.senior .tabin { border: 0; bottom: 18px; }

/* ════════ 페이지 헤더 · 디자인 시안 전환 */
.dsel { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; margin-top: .7em; }
.dsel button { padding: .7em .8em; border-radius: .9em; border: 1px solid var(--gl); text-align: left; font-size: .88em; font-weight: 600; display: flex; gap: .6em; align-items: center; min-height: 2.8em; }
.dsel button b { font-family: 'Inter', sans-serif; color: var(--acc); }
.dsel button.on { background: var(--text); color: var(--bg); border-color: var(--text); } .dsel button.on b { color: var(--bg); }
.wx { display: flex; align-items: stretch; flex: 1.2; }
.wx .wxm { flex: 1.1; display: flex; align-items: center; gap: .7em; padding: .7em 1em; } .wx .wxi { color: var(--acc); display: flex; }
.wx .wxt { font-size: 1.25em; font-weight: 600; } .wx b { font-size: .88em; }
.wx .wxd { flex: 1; padding: .7em 1em; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: .25em; }

/* ════════ 컨셉 B · Atelier — 종이 · 세리프 · 가는 선 */
.scr.d-atelier:not(.senior) { --bg: #F4EFE5; --text: #1C2B25; --sub: #6D6A60; --acc: #8C6A35; --glass: #FBF8F1; --gl: #D9D0BE; --chip: #FBF8F1; --line: #D9D0BE; --deep: #1F3A32; --deepT: #F4EFE5; --warn: #A4501C; }
.scr.d-atelier.dark:not(.senior) { --bg: #15130F; --text: #EFE7D8; --sub: #A69C8A; --acc: #C9A46A; --glass: #1E1B16; --gl: #3A342A; --chip: #1E1B16; --line: #3A342A; --deep: #C9A46A; --deepT: #15130F; --warn: #E8925A; }
.d-atelier:not(.senior) .blob { display: none; }
.d-atelier:not(.senior) .glass { backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 6px; border: 1px solid var(--gl); }
.d-atelier:not(.senior) .cir { border-radius: 50%; }
.d-atelier:not(.senior) .h1, .d-atelier:not(.senior) .serif { font-family: 'Noto Serif KR', 'Noto Serif CJK KR', serif; font-weight: 500; }
.d-atelier:not(.senior) .h2 { font-family: 'Noto Serif KR', 'Noto Serif CJK KR', serif; font-size: 1.12em; font-weight: 600; }
.d-atelier:not(.senior) .lab { font: 600 .66em 'Inter', 'Noto Sans KR', sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.d-atelier:not(.senior) .pill { border-radius: 3px; }
.d-atelier:not(.senior) .pp { background: var(--deep); color: var(--deepT); }
.d-atelier:not(.senior) .pg { background: transparent; border: 1px solid var(--text); }
.d-atelier:not(.senior) .orb { background: var(--deep); color: var(--deepT); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--acc); animation: none; }
.d-atelier:not(.senior) .badge { border-radius: 2px; background: transparent; border: 1px solid var(--c, var(--acc)); }
.d-atelier:not(.senior) .bar { border-radius: 0; height: .22em; background: var(--line); }
.d-atelier:not(.senior) .bar > i { background: var(--acc); border-radius: 0; } .d-atelier:not(.senior) .bar > i.hot { background: var(--warn); }
.d-atelier:not(.senior) .icb, .d-atelier:not(.senior) .q .qi, .d-atelier:not(.senior) .thumb, .d-atelier:not(.senior) .slot, .d-atelier:not(.senior) .day { border-radius: 4px; }
.d-atelier:not(.senior) .tile { border-radius: 6px; } .d-atelier:not(.senior) .tile .ic { color: var(--acc); }
.d-atelier:not(.senior) .segm { border-radius: 3px; } .d-atelier:not(.senior) .segm button { border-radius: 2px; }
.d-atelier:not(.senior) .tab { background: var(--bg); height: 92px; border-top: 1px solid var(--line); }
.d-atelier:not(.senior) .tabin { left: 0; right: 0; bottom: 14px; border: 0; background: transparent; border-radius: 0; }
.d-atelier:not(.senior) .tabin .mic { margin-top: -6px; width: 54px; height: 54px; }
.d-atelier:not(.senior) .sheet { border-radius: 10px 10px 0 0; } .d-atelier:not(.senior) .bub { border-radius: 6px; } .d-atelier:not(.senior) .toast { border-radius: 3px; }
.d-atelier:not(.senior) .steps { border-radius: 3px; } .d-atelier:not(.senior) .steps span { border-radius: 2px; } .d-atelier:not(.senior) .steps span.on { background: var(--deep); color: var(--deepT); }
.d-atelier:not(.senior) .brief { border-left: 3px solid var(--acc); }
.d-atelier:not(.senior) .qrow { display: flex; } .qrow button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5em; padding: .9em 0; font-size: .76em; font-weight: 600; } .qrow button + button { border-left: 1px solid var(--line); }
.d-atelier:not(.senior) .dsel button { border-radius: 4px; }
.d-atelier:not(.senior) .ring.listen { animation: none; box-shadow: 0 0 0 10px color-mix(in srgb, var(--acc) 22%, transparent); }

/* ════════ 컨셉 C · Terra — 흙빛 · 조약돌 · 손그림 같은 곡선 */
.scr.d-terra:not(.senior) { --bg: #EEE7DB; --text: #2D2A24; --sub: #857C6E; --acc: #5E7A55; --glass: #F8F3EA; --gl: #E3D9C8; --chip: #F8F3EA; --line: #DDD2C1; --moss: #5E7A55; --clay: #C2714A; --b1: #C9D4BC; --p1: #D9CFBF; --p2: #C9D4BC; --p3: #E3C4AE; --p4: #BFD3D0; --warmT: #7A4A30; --warn: #B4532A; --bo: .7; }
.scr.d-terra.dark:not(.senior) { --bg: #1F1C17; --text: #F1EADD; --sub: #A39A8A; --acc: #9DBB90; --glass: #2B2720; --gl: #3A352C; --chip: #2B2720; --line: #3A352C; --moss: #5B7752; --clay: #D4835B; --b1: #33402F; --p1: #443E34; --p2: #3D4A38; --p3: #59443A; --p4: #374A48; --warmT: #F0C9B2; --warn: #E8925A; }
.d-terra:not(.senior) .blob { filter: none; animation: none; display: none; }
.d-terra:not(.senior) .blob.b1 { display: block; width: 190px; height: 170px; left: auto; right: -56px; top: 96px; background: var(--b1); border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; }
.d-terra:not(.senior) .glass { backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; border-radius: 34px 40px 36px 42px / 40px 34px 42px 36px; box-shadow: 0 10px 24px -14px rgba(80,60,30,.5), inset 0 1px 0 rgba(255,255,255,.35); }
.d-terra.dark:not(.senior) .glass { box-shadow: 0 10px 24px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); }
.d-terra:not(.senior) .cir { border-radius: 55% 45% 52% 48% / 42% 58% 46% 54%; }
.d-terra:not(.senior) .h1 { font-weight: 800; }
.d-terra:not(.senior) .pill { border-radius: 26px 30px 24px 32px / 30px 24px 32px 26px; }
.d-terra:not(.senior) .pp { background: var(--moss); color: #F6F2E9; }
.d-terra:not(.senior) .pg { border: 0; }
.d-terra:not(.senior) .orb { background: var(--clay); color: #F6F2E9; box-shadow: 0 10px 20px -10px rgba(80,60,30,.6); border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; animation: none; }
.d-terra:not(.senior) .dot { border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; }
.d-terra:not(.senior) .q .qi { border-radius: 52% 48% 60% 40% / 44% 52% 48% 56%; }
.d-terra:not(.senior) .tile { border-radius: 30px 38px 32px 40px / 40px 32px 38px 30px; } .d-terra:not(.senior) .tile:nth-child(3n+1) { background: var(--p1); } .d-terra:not(.senior) .tile:nth-child(3n+2) { background: var(--p2); } .d-terra:not(.senior) .tile:nth-child(3n) { background: var(--p3); } .d-terra:not(.senior) .tile .ic { color: var(--text); }
.d-terra:not(.senior) .icb, .d-terra:not(.senior) .thumb { border-radius: 45% 55% 48% 52% / 58% 44% 56% 42%; }
.d-terra:not(.senior) .bar > i { background: var(--moss); } .d-terra:not(.senior) .bar > i.hot { background: var(--clay); }
.d-terra:not(.senior) .tab { background: var(--bg); height: 96px; }
.d-terra:not(.senior) .tabin { left: 0; right: 0; bottom: 16px; background: transparent; box-shadow: none; border-radius: 0; }
.d-terra:not(.senior) .tabin .mic { margin-top: -8px; width: 62px; height: 54px; }
.d-terra:not(.senior) .steps span.on { background: var(--moss); color: #F6F2E9; }
.d-terra:not(.senior) .segm, .d-terra:not(.senior) .steps { border-radius: 99px; }
.d-terra:not(.senior) .brief { position: relative; background: var(--moss); color: #F6F2E9; border-radius: 44px 60px 48px 64px / 56px 46px 62px 44px; padding: 1.2em 1.5em 1.1em; box-shadow: 0 10px 24px -12px rgba(80,60,30,.5); }
.d-terra:not(.senior) .brief .lab { color: #F6F2E9; opacity: .85; } .brief .leaf { width: 26px; height: 24px; border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; background: #F6F2E9; color: var(--moss); display: flex; align-items: center; justify-content: center; }
.brief .bp { background: #F6F2E9; color: #3F5E38; } .brief .bg { border: 1.5px solid rgba(246,242,233,.55); color: #F6F2E9; }
.pebs { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 2px; }
.pebs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .75em; font-weight: 700; width: 78px; height: 68px; background: var(--p1); border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; box-shadow: 0 10px 20px -12px rgba(80,60,30,.5); }
.pebs button:nth-child(2) { width: 86px; height: 74px; background: var(--p2); border-radius: 45% 55% 48% 52% / 58% 44% 56% 42%; margin-top: -6px; } .pebs button:nth-child(3) { width: 74px; height: 64px; background: var(--p3); border-radius: 52% 48% 60% 40% / 44% 52% 48% 56%; margin-top: 6px; } .pebs button:nth-child(4) { width: 82px; height: 70px; background: var(--p4); border-radius: 60% 40% 46% 54% / 50% 60% 40% 50%; }
.warm { flex: 1; text-align: left; background: var(--p3); border-radius: 30px 38px 32px 40px / 40px 32px 38px 30px; padding: .9em 1.1em; } .warm .lab { color: var(--warmT); }
.d-terra:not(.senior) .wx .wxi { width: 44px; height: 42px; border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; background: #F2C063; color: #FFF7DD; align-items: center; justify-content: center; flex: none; }
.d-terra:not(.senior) .wx .wxd { border-left: 0; padding-left: 0; }

/* ════════ 컨셉 D · Diorama — 입체 모형 · 공간 · 위치 */
.scr.d-diorama:not(.senior) { --bg: #F1EFEA; --text: #1D2330; --sub: #7B8190; --acc: #2F5BEA; --glass: #FFFFFF; --gl: #E4E1DA; --chip: #FFFFFF; --line: #E7E4DD; --tag: #FFFFFF; --soft: #E6ECFF; --warn: #E0611A; }
.scr.d-diorama.dark:not(.senior) { --bg: #151922; --text: #EEF1F7; --sub: #8E97AB; --acc: #5B82FF; --glass: #1F2530; --gl: #2B3140; --chip: #1F2530; --line: #2B3140; --tag: #2A3142; --soft: #232C45; --warn: #FF8A5C; }
.d-diorama:not(.senior) .blob { display: none; }
.d-diorama:not(.senior) .glass { backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; border-radius: 22px; }
.d-diorama:not(.senior) .cir { border-radius: 14px; }
.d-diorama:not(.senior) .h1 { font-weight: 800; }
.d-diorama:not(.senior) .lab { font: 700 .7em 'Inter', 'Noto Sans KR', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.d-diorama:not(.senior) .pill { border-radius: 13px; }
.d-diorama:not(.senior) .pp { background: var(--acc); color: #fff; }
.d-diorama:not(.senior) .orb { background: var(--acc); color: #fff; border-radius: 19px; box-shadow: 0 8px 16px -6px var(--acc); animation: none; }
.d-diorama:not(.senior) .q .qi, .d-diorama:not(.senior) .icb, .d-diorama:not(.senior) .thumb { border-radius: 16px; }
.d-diorama:not(.senior) .tile { border-radius: 18px; align-items: center; text-align: center; padding: .5em .4em .8em; gap: .2em; } .d-diorama:not(.senior) .tile svg { max-width: 100%; }
.d-diorama:not(.senior) .badge { border-radius: 8px; } .d-diorama:not(.senior) .slot, .d-diorama:not(.senior) .day { border-radius: 12px; }
.d-diorama:not(.senior) .bar > i { background: var(--acc); } .d-diorama:not(.senior) .bar > i.hot { background: #FF7A45; }
.d-diorama:not(.senior) .segm { border-radius: 14px; } .d-diorama:not(.senior) .segm button { border-radius: 11px; }
.d-diorama:not(.senior) .tab { background: var(--bg); height: 96px; }
.d-diorama:not(.senior) .tabin { left: 0; right: 0; bottom: 16px; background: transparent; border-radius: 0; }
.d-diorama:not(.senior) .tabin .mic { margin-top: -10px; width: 56px; height: 56px; }
.d-diorama:not(.senior) .steps { border-radius: 14px; } .d-diorama:not(.senior) .steps span { border-radius: 11px; } .d-diorama:not(.senior) .steps span.on { background: var(--acc); color: #fff; }
.d-diorama:not(.senior) .ring { border-radius: 34px; } .d-diorama:not(.senior) .ring .orb { border-radius: 26px; }
.d-diorama:not(.senior) .bub { border-radius: 18px 18px 6px 18px; } .d-diorama:not(.senior) .dsel button { border-radius: 12px; }
.floors { display: flex; gap: 6px; } .floors button { position: relative; padding: 7px 13px; border-radius: 12px; font: 700 12px 'Inter', 'Noto Sans KR', sans-serif; background: var(--glass); color: var(--sub); white-space: nowrap; transition: background .2s, color .2s; } .floors button.on { background: var(--text); color: var(--bg); }
.floors button i { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #FF7A45; }
.scene { margin: 6px -20px -4px; display: flex; justify-content: center; } .scene.in .stage { animation: flr .42s cubic-bezier(.2,.8,.2,1); }
@keyframes flr { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.stage { position: relative; flex: none; font-family: 'Noto Sans KR', sans-serif; }
.zones { position: absolute; inset: 0; } .zones polygon { fill: var(--acc); fill-opacity: 0; cursor: pointer; transition: fill-opacity .15s; } .zones polygon:hover { fill-opacity: .14; } .zones polygon:active { fill-opacity: .26; }
.dtag { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; --tb: var(--tag); --tf: var(--text); z-index: 2; }
.dtag span { background: var(--tb); color: var(--tf); font-size: 11.5px; font-weight: 700; padding: 6px 10px; border-radius: 11px; white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); line-height: 1.25; }
.dtag span .num { font: 800 13.5px 'Inter', sans-serif; } .dtag::after { content: ''; width: 2px; height: 10px; background: var(--tb); }
.dtag i { width: 8px; height: 8px; border-radius: 50%; background: var(--tb); margin-top: -1px; box-shadow: 0 0 0 3px rgba(255,255,255,.35); order: 3; }
.dtag.pr { --tb: var(--acc); --tf: #fff; } .dtag.rb { --tb: #FF7A45; --tf: #fff; } .dtag.rb i { display: none; } .dtag.rb::after { height: 14px; }
.dtag.pin { z-index: 3; animation: pin 1.6s ease-in-out infinite; } .dtag.pin span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tb) 35%, transparent), 0 6px 14px -6px rgba(0,0,0,.45); }
@keyframes pin { 0%, 100% { margin-top: 0; } 50% { margin-top: -5px; } }
.drobot { position: absolute; width: 88px; height: 66px; pointer-events: none; z-index: 1; }
.drobot.loop, .drobot.once { left: 0; top: 0; offset-rotate: 0deg; offset-anchor: 44px 44px; } .dtag.ride { left: 0; top: 0; offset-rotate: 0deg; offset-anchor: 50% calc(100% + 26px); transform: none; }
.loop { animation: ride 7s ease-in-out infinite alternate; } .once { animation: ride 3.2s ease-in-out both; }
@keyframes ride { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.dwx { position: absolute; left: 20px; top: -6px; background: var(--glass); border-radius: 16px; padding: 8px 12px 8px 9px; display: flex; align-items: center; gap: 9px; box-shadow: 0 8px 18px -10px rgba(0,0,0,.4); }
.dwx > span { width: 30px; height: 30px; border-radius: 10px; background: #FFE9A8; color: #E08A00; display: flex; align-items: center; justify-content: center; } .dark .dwx > span { background: #2C3654; color: #FFD98A; }
.dwx b { display: block; font-size: 12.5px; font-weight: 800; line-height: 1.2; } .dwx b .num { font-size: 14px; } .dwx em { display: flex; align-items: center; gap: 4px; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--sub); line-height: 1.3; } .dwx em i { width: 6px; height: 6px; border-radius: 50%; background: #2FA36B; }
.sug { padding: .75em .9em .75em 1em; } .sug .rb { width: 36px; height: 36px; border-radius: 12px; background: #FF7A45; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; } .pill.dk { background: var(--text); color: var(--bg); }
.sch { flex: 1; text-align: left; padding: .7em .8em; border-radius: 18px !important; } .sch .num { font-weight: 700; font-size: 1em; } .sch b { display: block; font-size: .78em; margin-top: .2em; } .sch .sub { font-size: .7em; } .sch.on { box-shadow: inset 0 0 0 2px var(--acc); } .sch.on .num { color: var(--acc); }
.qd { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: .65em 0; border-radius: 16px !important; font-size: .72em; font-weight: 700; }

/* ── 시니어 모드: 시안마다 색·형태·홈 구성이 다릅니다(공통 기준은 .scr.senior) */
.scr.senior .view { gap: .75em; }
.scr.senior .stile { flex-direction: row; align-items: center; gap: .5em; min-height: 74px; padding: 0 .65em; font-size: 1em; white-space: nowrap; border-color: var(--text); }
.scr.senior .stiles { gap: 10px; }
.swx { display: flex; align-items: center; gap: .75em; padding: .7em 1em; border-color: var(--text) !important; } .swx .t { font-size: 1.25em; font-weight: 800; } .swx .d { font-size: .95em; font-weight: 800; color: var(--acc); } .swx .sun { color: #B86A00; display: flex; }
.swx.line .d { margin-left: auto; } .swx.split { padding: 0; align-items: stretch; } .swx.split > div { flex: 1; padding: .7em .85em; display: flex; align-items: center; } .swx.split .d { border-left: 2px solid var(--text); color: var(--text); }
.sbtn { min-height: 54px; padding: 0 1em; font-size: 1.05em; font-weight: 800; border-radius: 16px; display: flex; align-items: center; justify-content: center; } .sbtn.wide { width: 100%; margin-top: .65em; } .sbtn.main { flex: 1.4; background: var(--go); color: var(--goT); } .sbtn.ghost { flex: 1; border: 2px solid currentColor; }
.scr.senior { --go: #46E0A2; --goT: #06231A; } .scr.senior .talk { justify-content: flex-start; min-height: 64px; }
.sgo .when { font-size: .9em; font-weight: 800; color: #8FB0FF; } .sgo .what { font-size: 1.25em; font-weight: 800; line-height: 1.3; margin-top: .15em; } .sgo .where { font-weight: 700; margin-top: .2em; }
/* B · Atelier */
.scr.senior.d-atelier { --bg: #FBF8F1; --text: #14201B; --sub: #3B3A34; --acc: #6B4E1F; --glass: #FFFFFF; --gl: #14201B; --chip: #FFFFFF; --deep: #1F3A32; --go: #E2C48F; --goT: #1C2B25; }
.scr.senior.dark.d-atelier { --bg: #000; --text: #FFF; --sub: #E4DCCB; --acc: #E2C48F; --glass: #14120E; --gl: #FFF; --chip: #14120E; --deep: #1F3A32; }
.senior.d-atelier .glass, .senior.d-atelier .solid, .senior.d-atelier .sheet, .senior.d-atelier .bub { border-radius: 6px; } .senior.d-atelier .pill, .senior.d-atelier .sbtn, .senior.d-atelier .badge, .senior.d-atelier .slot, .senior.d-atelier .day, .senior.d-atelier .thumb, .senior.d-atelier .icb { border-radius: 4px; }
.senior.d-atelier .h1 { font-family: 'Noto Serif KR', 'Noto Serif CJK KR', serif; font-weight: 700; } .senior.d-atelier .swx .sun { color: var(--acc); }
.senior.d-atelier .sbrief { background: var(--deep); color: #FFF; } .senior.d-atelier .talk { background: var(--text); color: var(--bg); border-radius: 6px; justify-content: center; }
.senior.d-atelier .orb, .senior.d-atelier .cir, .senior.d-atelier .tabin { border-radius: 6px; } .senior.d-atelier .orb { background: var(--deep); color: #FFF; }
/* C · Terra */
.scr.senior.d-terra { --bg: #F6F1E7; --text: #1F1C16; --sub: #4A4438; --acc: #3F5E38; --glass: #FFFFFF; --gl: #1F1C16; --chip: #FFFFFF; --clay: #A8502A; --p1: #E6DCCB; --p2: #D3DEC6; --p3: #EDCFBA; --p4: #C9DCD9; --go: #FFFFFF; --goT: #2F4A2A; }
.scr.senior.dark.d-terra { --bg: #000; --text: #FFF; --sub: #E2DACA; --acc: #B9D6AC; --glass: #15130F; --gl: #FFF; --chip: #15130F; --clay: #E08A5E; --p1: #2E2A22; --p2: #25301F; --p3: #3A2A20; --p4: #1F2E2C; }
.senior.d-terra .glass, .senior.d-terra .solid { border-radius: 30px 34px 28px 36px / 34px 28px 36px 30px; } .senior.d-terra .stile { border-radius: 26px 30px 24px 32px / 30px 24px 32px 26px; }
.senior.d-terra .stile:nth-child(1) { background: var(--p1); } .senior.d-terra .stile:nth-child(2), .senior.d-terra .stile:nth-child(5) { background: var(--p2); } .senior.d-terra .stile:nth-child(3), .senior.d-terra .stile:nth-child(6) { background: var(--p3); } .senior.d-terra .stile:nth-child(4) { background: var(--p4); }
.senior.d-terra .swx .sun { width: 50px; height: 48px; border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; background: #E9A93A; color: #FFF; align-items: center; justify-content: center; flex: none; }
.senior.d-terra .sbrief { background: var(--acc); color: var(--bg); padding: .9em 1.2em; } .senior.d-terra .sbtn { border-radius: 28px; }
.senior.d-terra .talk { background: var(--clay); color: #FFF; justify-content: center; border-radius: 40px 46px 42px 48px / 46px 40px 48px 42px; } .senior.d-terra .orb { background: var(--clay); color: #FFF; border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; }
.scr.senior.dark.d-terra .sbrief { --go: #000; --goT: #FFF; }
/* D · Diorama */
.scr.senior.d-diorama { --bg: #F7F6F2; --text: #10151F; --sub: #3A4150; --acc: #1F45C8; --glass: #FFFFFF; --gl: #10151F; --chip: #FFFFFF; --go: #5B82FF; --goT: #FFFFFF; }
.scr.senior.dark.d-diorama { --bg: #000; --text: #FFF; --sub: #D5DBEA; --acc: #9DB6FF; --glass: #10131B; --gl: #FFF; --chip: #10131B; --go: #1F45C8; }
.senior.d-diorama .glass { border-radius: 20px; } .senior.d-diorama .stile { border-radius: 18px; } .senior.d-diorama .solid { border-radius: 22px; } .senior.d-diorama .sbtn { border-radius: 14px; } .senior.d-diorama .swx .sun { color: #D98A00; }
.senior.d-diorama .talk { justify-content: center; border-radius: 20px; color: #FFF; } .scr.senior.dark.d-diorama .talk { color: #000; } .senior.d-diorama .orb { border-radius: 20px; }
.senior.d-diorama .sgo { background: #10151F; color: #FFF; padding-right: .6em; } .scr.senior.dark.d-diorama .sgo { border: 2px solid #FFF; } .sgo .sbtn { width: calc(100% - .4em); }
.sheet .glass svg { flex: none; }

.wx.tw { align-items: center; gap: .75em; padding: .75em 1em; }

.swx .t { white-space: nowrap; } .swx.split > div:first-child { flex: 1.25; padding-right: .3em; gap: .5em; } .swx.split .d { white-space: nowrap; font-size: .9em; }

.dchips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .dchips button { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 99px; border: 1px solid #2f3d37; background: #0b100e; color: #9aa9a2; font-size: 13px; font-weight: 600; } .dchips button b { width: 20px; height: 20px; border-radius: 50%; background: #25302b; color: #e8efe9; font-size: 11px; display: flex; align-items: center; justify-content: center; } .dchips button.on { background: #e8efe9; color: #0b100e; border-color: #e8efe9; font-weight: 700; } .dchips button.on b { background: #0b100e; }
.wcard { display: flex; align-items: center; gap: .75em; padding: .9em 1em; flex: 1.2; } .wcard .sunb { width: 2.6em; height: 2.6em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE9A8, #FFC44D 60%, #F5A623); box-shadow: 0 0 18px rgba(255,196,77,.55); flex: none; } .wcard .wt { font-size: 1.5em; font-weight: 700; letter-spacing: -.03em; } .wcard .ws { font-size: .8em; font-weight: 700; margin-left: .3em; }
.ccard { flex: 1; padding: .9em 1em; text-align: left; }

/* ── 마이·라이프·AI Agent: 시안별 구성 */
.leg2 { display: grid; grid-template-columns: 1fr 1fr; gap: .45em 1.4em; margin-top: .8em; font-size: .88em; }
.hint { padding: .8em 1em; font-size: .88em; color: var(--sub); text-align: left; width: 100%; border-radius: 99px; }
.pill.say { gap: .4em; background: var(--acc); color: #fff; } .pill.vo { font-size: .72em; min-height: 2.5em; padding: .5em .9em; }
.utabs { display: flex; gap: 1.3em; border-bottom: 1px solid var(--line); } .utabs button { padding: .5em 0 .6em; color: var(--sub); font-size: .92em; margin-bottom: -1px; } .utabs button.on { color: var(--text); font-weight: 700; border-bottom: 2px solid var(--text); }
.bars4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; align-items: end; margin-top: .8em; } .bars4 > div { display: flex; flex-direction: column; align-items: center; gap: .35em; } .bars4 i { width: 100%; background: var(--line); } .bars4 i.mx { background: var(--deep); } .bars4 .sub { font-size: .72em; white-space: nowrap; }
.nrow { padding: .85em 0; border-top: 1px solid var(--line); } .nrow .num { width: 1.8em; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); } .g3 > div { padding: .8em .9em; } .g3 > div + div { border-left: 1px solid var(--line); }
.tbl > div { padding: .8em 1.1em; } .tbl > div + div { border-top: 1px solid var(--line); } .tbl > .row:not(.sb) { font-size: .92em; }
.ptabs { display: flex; gap: .5em; } .ptabs button { padding: .55em 1.1em; border-radius: 99px; background: var(--glass); color: var(--sub); font-size: .86em; font-weight: 700; box-shadow: 0 6px 14px -10px rgba(80,60,30,.5); } .ptabs button.on { background: var(--text); color: var(--bg); }
.peb { padding: .8em 1.1em; border-radius: 99px !important; } .peb.warm2 { background: var(--p3); } .pill.bp { background: #F6F2E9; color: #2D2A24; } .pill.bg { border: 1.5px solid currentColor; }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: 1.1em; } .rg { display: inline-flex; width: 2.9em; height: 2.9em; border-radius: 50%; background: var(--rc); color: #fff; align-items: center; justify-content: center; box-shadow: 0 0 0 5px var(--glass), 0 0 0 6px color-mix(in srgb, var(--rc) 55%, transparent), 0 0 0 11px var(--glass), 0 0 0 12px color-mix(in srgb, var(--rc) 28%, transparent); margin: 12px 0 6px; }
.pgw { background: var(--p3); color: var(--warmT); padding: .9em 1.3em; border-radius: 40px 46px 42px 48px / 46px 40px 48px 42px; align-items: center; } .pgw .lab { color: inherit; }
.stabs { display: flex; gap: .4em; } .stabs button { padding: .55em .9em; border-radius: 12px; background: var(--glass); color: var(--sub); font-size: .82em; font-weight: 700; } .stabs button.on { background: var(--text); color: var(--bg); }
.sside { position: absolute; width: 112px; } .sside i { width: 16px; height: 2px; background: var(--sub); } .sside .lab { color: var(--sub) !important; white-space: nowrap; font-size: 10.5px !important; } .sside b { display: block; font-size: 12px; margin: 3px 0 0 22px; line-height: 1.3; } .sside.hot i { background: var(--acc); } .sside.hot .lab { color: var(--acc) !important; }
.frow { padding: .75em 1em; width: 100%; border-radius: 18px !important; } .fchip { width: 2.6em; height: 2.3em; border-radius: 10px; background: var(--soft); color: var(--text); font: 800 .8em 'Inter', sans-serif; display: flex; align-items: center; justify-content: center; flex: none; } .fchip.on { background: var(--acc); color: #fff; }
.d-diorama { --pf: #E9E3D7; --pf2: #D2CCC0; --pf3: #BDB7AB; } .d-diorama.dark { --pf: #2E3440; --pf2: #262B36; --pf3: #1F232C; }
.st2 { display: flex; gap: 6px; } .st2 > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72em; color: var(--sub); } .st2 > div.on { color: var(--text); font-weight: 800; }
.st-diorama i { width: 100%; height: 5px; border-radius: 3px; background: var(--line); } .st-diorama .past i { background: var(--acc); }
.st-atelier { border-bottom: 1px solid var(--line); padding-bottom: .9em; justify-content: center; } .st-atelier > div { flex: none; width: 3.4em; } .st-atelier i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--sub); } .st-atelier .on i { background: var(--acc); border-color: var(--acc); }
.st-terra { align-items: flex-end; } .st-terra i { border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; background: var(--p2); width: 12px; height: 10px; } .st-terra > div:nth-child(2) i { width: 17px; height: 14px; } .st-terra > div:nth-child(3) i { width: 22px; height: 18px; } .st-terra > div:nth-child(4) i { width: 28px; height: 23px; } .st-terra .on i { background: var(--clay); }
.leaf2 { width: 1.9em; height: 1.75em; border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; background: var(--moss); color: #F6F2E9; display: flex; align-items: center; justify-content: center; flex: none; }
.wv2 { display: flex; gap: 4px; align-items: center; height: 40px; } .wv2 i { width: 4px; border-radius: 2px; background: var(--acc); opacity: .8; } .ai.s1 .wv2 i { animation: wv .8s ease-in-out infinite alternate; } .ai.s1 .wv2 i:nth-child(2n) { animation-delay: .2s; } .ai.s1 .wv2 i:nth-child(3n) { animation-delay: .35s; }
.ai-atelier .wv2 i { width: 3px; } .ai-atelier .micwrap { gap: .9em; } .ai-atelier .ring, .ai-diorama .ring { width: auto; height: auto; border: 0; } .ai-atelier .ring .orb { box-shadow: none !important; width: 4.6em; height: 4.6em; }
.ai-diorama .ring .orb { width: 4.75em; height: 4.75em; }
.ai-terra .ring { box-shadow: 0 0 0 10px var(--bg), 0 0 0 11px color-mix(in srgb, var(--clay) 35%, transparent); border-color: color-mix(in srgb, var(--clay) 55%, transparent); }
.ai-terra .sug2 .pill:nth-child(1) { background: var(--p1); } .ai-terra .sug2 .pill:nth-child(2) { background: var(--p2); } .ai-terra .sug2 .pill:nth-child(3) { background: var(--p4); }
.ai-terra .bub { border: 0; box-shadow: 0 10px 24px -14px rgba(80,60,30,.5); } .sug2 .pill { font-weight: 700; }
.d-terra:not(.senior) .tile { align-items: center; text-align: center; padding: 1.3em .5em; gap: .45em; } .d-terra:not(.senior) .tile:nth-child(4) { background: var(--p4); }
.d-atelier:not(.senior) .hint { border-radius: 6px; } .d-atelier:not(.senior) .pill.vo { border: 0; }
.sside b .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-terra:not(.senior) .pill.say { background: var(--clay); }

/* ── UX 전략 반영: 모션 토큰 · 터치 반응 · 로딩 · 안내 */
:root { --m-fast: 150ms; --m-base: 250ms; --m-emph: 350ms; }
.panel { gap: 12px; } .panel .grp { padding: 13px 16px; gap: 10px; }
.scr.f1 { font-size: 17.5px; } .scr.f2 { font-size: 19px; } .scr.senior.f1 { font-size: 20.5px; } .scr.senior.f2 { font-size: 22px; }
.scr button { transition: transform var(--m-fast) ease, filter var(--m-fast) ease, background var(--m-base) ease; } .scr button:active:not([disabled]) { transform: scale(.97); filter: brightness(.94); }
.pill.busy { position: relative; overflow: hidden; pointer-events: none; } .pill.busy span { position: relative; } .pill.busy .pg2 { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(255,255,255,.28); transform-origin: left; animation: pgfill linear both; } .pill.busy.done { animation: pop var(--m-emph) ease; }
@keyframes pgfill { from { transform: scaleX(0); } to { transform: scaleX(1); } } @keyframes pop { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: none; } }
.sk { display: block; border-radius: 1.2em; background: color-mix(in srgb, var(--sub) 18%, transparent); animation: skp 1.1s ease-in-out infinite alternate; } @keyframes skp { from { opacity: .45; } to { opacity: 1; } }
.loadbox { display: flex; flex-direction: column; align-items: center; gap: .6em; padding: 1.2em 0 .6em; text-align: center; } .orbit { position: relative; width: 5.4em; height: 5.4em; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--acc) 55%, transparent); } .orbit i { position: absolute; inset: -4px; animation: spin 1.6s linear infinite; } .orbit i::after { content: ''; position: absolute; top: 0; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--acc); }
.resbox { display: flex; flex-direction: column; align-items: center; gap: .5em; text-align: center; padding: .6em 0; } .okc { width: 4em; height: 4em; border-radius: 50%; background: var(--acc); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.offbar { display: flex; align-items: center; gap: .6em; padding: .65em .9em; border-radius: .9em; background: color-mix(in srgb, var(--warn, #E0611A) 14%, var(--glass)); border: 1px solid color-mix(in srgb, var(--warn, #E0611A) 45%, transparent); font-size: .8em; line-height: 1.4; } .offbar button { font-weight: 800; text-decoration: underline; white-space: nowrap; }
.empty .pill { display: inline-flex; }
.slot.full { opacity: .45; } .altbox { border-color: color-mix(in srgb, var(--warn, #E0611A) 50%, transparent) !important; font-size: .92em; }
.resume { border-color: var(--acc) !important; } .inl { margin: .2em 0 .8em; font-size: .9em; line-height: 1.7; color: var(--sub); animation: enter var(--m-base) ease; }
.ta { width: 100%; padding: .9em 1em; font: inherit; color: var(--text); resize: none; border-radius: 1.1em; outline: 0; } .ta:focus { border-color: var(--acc); } .ferr { min-height: 1.3em; font-size: .8em; font-weight: 700; color: var(--warn, #E0611A); margin-top: -.5em; }
.pbar { gap: .8em; font-size: .78em; margin-top: -.3em; } .pbar button { font-weight: 700; color: var(--acc); display: inline-flex; align-items: center; gap: .25em; white-space: nowrap; } .pbar .sub { font-size: 1em; }
.fab { position: absolute; right: 16px; bottom: 26px; width: 52px; height: 52px; z-index: 20; }
.helpbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: 52px; display: flex; align-items: center; justify-content: center; gap: .5em; background: var(--text); color: var(--bg); font-size: 17px; font-weight: 800; padding-bottom: 6px; } .helpbar.main { bottom: 104px; height: 46px; padding: 0; } .scr.senior .view { padding-bottom: 11.5em; } .scr.senior .view.sub { padding-bottom: 5em; } .senior .fab { bottom: 66px; }
.view.sub { padding-bottom: 6em; }
.readbtn { display: inline-flex; align-items: center; gap: .35em; margin-top: .45em; min-height: 44px; padding: 0 .9em; border-radius: 99px; border: 2px solid var(--text); font-size: .85em; font-weight: 800; }
.tile.down { opacity: .6; } .tile small { font-size: .78em; font-weight: 600; color: var(--warn, #E0611A); }

/* ── 단계형 입력 · 풀모달 · 메뉴 */
.wzp { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--sub) 22%, transparent); overflow: hidden; margin-top: .3em; } .wzp i { display: block; height: 100%; background: var(--acc); transition: width var(--m-emph) ease; }
.wzo { display: flex; flex-direction: column; gap: .6em; } .wzo button { display: flex; align-items: center; justify-content: space-between; min-height: 4em; padding: 0 1.2em; font-size: 1.05em; font-weight: 700; text-align: left; } .wzo button.on { border-color: var(--acc) !important; box-shadow: inset 0 0 0 2px var(--acc); }
.scr.senior .wzo button { min-height: 4.4em; border-color: var(--text); }
.modal { position: absolute; inset: 0; z-index: 75; background: var(--bg); display: flex; flex-direction: column; animation: up var(--m-emph) cubic-bezier(.2,.8,.2,1); } .mdh { padding: 54px 1.25em .6em; } .mdb { flex: 1; padding: .8em 1.25em; display: flex; flex-direction: column; gap: .8em; overflow: auto; } .mdf { padding: .8em 1.25em 2.4em; }
.more button { flex: 1; display: flex; align-items: center; gap: .5em; padding: .8em .9em; font-size: .82em; font-weight: 700; text-align: left; border-radius: 1.1em; min-width: 0; } .more button .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-atelier:not(.senior) .more button { border-radius: 6px; } .d-diorama:not(.senior) .more button { border-radius: 16px; }
.panel .bk { padding: 9px 12px; border-radius: 10px; border: 1px solid #2f3d37; background: #0b100e; color: #e8efe9; font-size: 13px; font-weight: 600; text-align: left; } .panel .bk:active { background: #25302b; }
.kv u { text-decoration: underline; margin-left: .4em; }
.noan { animation: none !important; }
