/* Hearlog 앱 화면 모형용. 디자인 캔버스 airec.css 를 .phone 안으로 한정해 옮긴 것 */
:root, [data-theme="dark"] { --glass-hi: rgba(255, 255, 255, 0.06); }
[data-theme="light"] { --glass-hi: rgba(255, 255, 255, 0.9); }
.phone.brand { background: var(--gradient-aurora), var(--bg); }
.phone.brand .appbar, .phone.brand .tabbar, .phone.brand .rec-bar { background: var(--nav-bg); backdrop-filter: blur(18px) saturate(1.3); border-color: var(--glass-border); }
.phone.brand .proc, .phone.brand .list { background: var(--glass-surface); backdrop-filter: blur(20px) saturate(1.3); border-color: var(--glass-border); box-shadow: var(--shadow-card), inset 0 1px 0 var(--glass-hi); }
.phone.brand .tabs { background: var(--glass-bg); border-color: var(--glass-border); }
.phone.brand .fab { background: var(--gradient-primary); color: var(--on-aurora); box-shadow: var(--shadow-glow); }
.phone { position: relative; width: 390px; height: 844px; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; background: var(--surface-page); color: var(--text-primary); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; word-break: keep-all; }
.phone .appbar { position: relative; }
.phone .screen { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.phone .screen > * { flex-shrink: 0; }
.phone .icon { width: 22px; height: 22px; flex: none; }
.phone .sec-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--text-tertiary); padding: 0 var(--space-1); }
.phone .meta { font-size: 13px; color: var(--text-secondary); }
.phone .mono { font-family: var(--font-mono); }
.phone a.list-item:hover { background: var(--surface-sunken); }
.phone .st { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--radius-full); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
.phone .st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.phone .st.done { color: var(--success); background: var(--success-subtle); }
.phone .st.run { color: var(--info); background: var(--info-subtle); }
.phone .st.wait { color: var(--text-secondary); background: var(--surface-sunken); border: 1px solid var(--border-subtle); }
.phone .st.fail { color: var(--danger); background: var(--danger-subtle); }
.phone .tabs .tab { height: 32px; }
.phone .tag { height: 32px; }
.phone .btn.btn-sm { height: 32px; padding: 0 var(--space-3); }
.phone .progress { height: 6px; border-radius: var(--radius-full); background: var(--surface-sunken); overflow: hidden; }
.phone .progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.phone .wordmark { flex: 1 1 auto; display: inline-flex; align-items: center; gap: 8px; padding: 0 var(--space-2); font-family: var(--font-sans); font-size: 22px; font-weight: 500; letter-spacing: -.02em; color: var(--text-primary); }
.phone .wordmark svg { flex: none; width: 22px; height: 22px; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.phone .proc { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-card); border: 1px solid var(--border-subtle); }
.phone .proc-head { display: flex; align-items: center; gap: var(--space-3); height: 44px; }
.phone .clip { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .proc-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); white-space: nowrap; gap: var(--space-1); font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); text-align: center; }
.phone .proc-steps .on { color: var(--accent-text); }
:is(.phone, .phone-anim) .mini-wave { flex: none; display: inline-flex; align-items: center; gap: 2px; width: 54px; height: 32px; }
:is(.phone, .phone-anim) .mini-wave i { flex: none; width: 2px; height: var(--h, 60%); border-radius: 1px; background: var(--accent); transform-origin: center; animation: voice var(--d, 1.2s) ease-in-out var(--o, 0s) infinite; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(1) { --h: 30%; --d: 1.30s; --o: -.20s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(2) { --h: 55%; --d: 0.95s; --o: -.70s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(3) { --h: 80%; --d: 1.15s; --o: -.35s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(4) { --h: 45%; --d: 1.45s; --o: -.90s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(5) { --h: 100%; --d: 1.05s; --o: -.15s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(6) { --h: 70%; --d: 1.35s; --o: -.55s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(7) { --h: 90%; --d: 0.90s; --o: -1.0s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(8) { --h: 60%; --d: 1.25s; --o: -.40s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(9) { --h: 100%; --d: 1.10s; --o: -.80s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(10) { --h: 50%; --d: 1.40s; --o: -.25s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(11) { --h: 75%; --d: 0.98s; --o: -.60s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(12) { --h: 40%; --d: 1.20s; --o: -.95s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(13) { --h: 55%; --d: 1.50s; --o: -.45s; }
:is(.phone, .phone-anim) .mini-wave i:nth-child(14) { --h: 25%; --d: 1.08s; --o: -.10s; }
@keyframes voice { 0%, 100% { transform: scaleY(.2); } 18% { transform: scaleY(.85); } 32% { transform: scaleY(.4); } 50% { transform: scaleY(1); } 66% { transform: scaleY(.3); } 82% { transform: scaleY(.7); } }
.phone .stage-anim { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 32px; color: var(--accent); }
.phone .stage-anim svg { width: 32px; height: 32px; overflow: visible; }
:is(.phone, .phone-anim) .a-up { animation: a-up 1.4s ease-in-out infinite; }
@keyframes a-up { 0% { transform: translateY(5px); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translateY(-7px); opacity: 0; } }
:is(.phone, .phone-anim) .a-tr { display: inline-flex; align-items: center; gap: 6px; width: 56px; }
:is(.phone, .phone-anim) .a-tr-wave { display: inline-flex; align-items: center; gap: 2px; height: 20px; }
:is(.phone, .phone-anim) .a-tr-wave i { width: 2px; height: 100%; border-radius: 1px; background: var(--accent); animation: voice 1.1s ease-in-out infinite; }
:is(.phone, .phone-anim) .a-tr-wave i:nth-child(2) { animation-delay: -.4s; }
:is(.phone, .phone-anim) .a-tr-wave i:nth-child(3) { animation-delay: -.75s; }
:is(.phone, .phone-anim) .a-tr-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
:is(.phone, .phone-anim) .a-tr-lines i { display: block; height: 3px; border-radius: 2px; background: var(--text-secondary); animation: a-type 2.4s steps(6) infinite; }
:is(.phone, .phone-anim) .a-tr-lines i:nth-child(2) { animation-delay: .4s; }
:is(.phone, .phone-anim) .a-tr-lines i:nth-child(3) { animation-delay: .8s; }
@keyframes a-type { 0% { width: 0; } 45%, 100% { width: 100%; } }
:is(.phone, .phone-anim) .a-sum { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 32px; }
:is(.phone, .phone-anim) .a-sum i { display: block; height: 3px; border-radius: 2px; background: var(--text-tertiary); }
:is(.phone, .phone-anim) .a-sum i:nth-child(odd) { animation: a-keep 2.6s ease-in-out infinite; }
:is(.phone, .phone-anim) .a-sum i:nth-child(even) { animation: a-drop 2.6s ease-in-out infinite; }
@keyframes a-keep { 0%, 20% { width: 100%; background: var(--text-tertiary); } 55%, 85% { width: 60%; background: var(--accent); } 100% { width: 100%; background: var(--text-tertiary); } }
@keyframes a-drop { 0%, 20% { width: 90%; opacity: 1; } 55%, 85% { width: 0; opacity: 0; } 100% { width: 90%; opacity: 1; } }
:is(.phone, .phone-anim) .a-tl { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 32px; }
:is(.phone, .phone-anim) .a-tl i { display: block; height: 3px; border-radius: 2px; }
:is(.phone, .phone-anim) .a-tl i:nth-child(odd) { width: 100%; background: var(--text-tertiary); }
:is(.phone, .phone-anim) .a-tl i:nth-child(even) { margin-left: 6px; background: var(--accent); animation: a-tl 2.4s ease-out infinite; }
:is(.phone, .phone-anim) .a-tl i:nth-child(4) { animation-delay: .6s; }
@keyframes a-tl { 0%, 10% { width: 0; opacity: 0; } 50%, 85% { width: calc(100% - 6px); opacity: 1; } 100% { width: calc(100% - 6px); opacity: 0; } }
:is(.phone, .phone-anim) .a-plane { animation: a-plane 1.6s ease-in-out infinite; }
@keyframes a-plane { 0% { transform: translate(-6px, 6px); opacity: 0; } 25%, 70% { opacity: 1; } 100% { transform: translate(8px, -8px); opacity: 0; } }
.phone .stage-track { height: 4px; border-radius: var(--radius-full); background: var(--surface-sunken); overflow: hidden; }
.phone .stage-track > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s cubic-bezier(.16, 1, .3, 1); }
.phone .proc-top { display: flex; align-items: center; justify-content: space-between; height: 20px; margin-bottom: calc(-1 * var(--space-1)); }
.phone .queue-link { font-size: 13px; color: var(--accent-text); text-decoration: none; }
.phone .stage-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; white-space: nowrap; font-family: var(--font-sans); font-size: 12px; line-height: 1.4; color: var(--text-tertiary); text-align: center; }
.phone .stage-steps .done { color: var(--text-secondary); }
.phone .stage-steps .cur { color: var(--accent-text); font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
:is(.phone, .phone-anim) .mini-wave i, :is(.phone, .phone-anim) .a-up, :is(.phone, .phone-anim) .a-tr-wave i, :is(.phone, .phone-anim) .a-tr-lines i, :is(.phone, .phone-anim) .a-sum i, :is(.phone, .phone-anim) .a-tl i, :is(.phone, .phone-anim) .a-plane { animation: none; }
}
.phone .fab { position: absolute; right: var(--space-4); bottom: 80px; height: 56px; padding: 0 var(--space-6); box-shadow: var(--shadow-raised); z-index: 2; }
.phone .rec-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.phone .rec-bar { flex: none; display: flex; align-items: center; gap: var(--space-1); height: 56px; box-sizing: border-box; padding: 0 var(--space-1) 0 var(--space-4); background: var(--surface-raised); border-top: 1px solid var(--border-subtle); }
.phone .rec-bar-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--space-3); height: 100%; color: var(--text-primary); text-decoration: none; }
:is(.phone, .phone-anim) .rec-bar .mini-wave { width: 44px; height: 24px; }
.phone .rec-bar-label { font-size: 14px; font-weight: 500; }
.phone .rec-bar-time { font-family: var(--font-mono); font-size: 14px; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.phone .hl { border-radius: 3px; background: var(--accent-subtle); color: var(--accent-text); }
.phone .hl.cur { background: var(--accent); color: var(--on-accent); }
.phone .player { flex: none; display: flex; align-items: center; gap: var(--space-3); height: 64px; box-sizing: border-box; padding: 0 var(--space-4); background: var(--surface-raised); border-top: 1px solid var(--border-subtle); }
.phone .player-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.phone .player-btn svg { width: 18px; height: 18px; }
.phone .player-time { flex: none; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.phone .player-track { position: relative; flex: 1 1 auto; height: 4px; border-radius: var(--radius-full); background: var(--surface-sunken); }
.phone .player-track > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--accent); }
.phone .player-track > i { position: absolute; top: -4px; width: 2px; height: 12px; border-radius: 1px; background: var(--accent-text); }
.phone .modal { position: absolute; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: var(--scrim); }
.phone .modal .dialog { width: 100%; font-family: var(--font-sans); word-break: keep-all; }
.phone .sheet-scrim { position: absolute; inset: 0; z-index: calc(var(--z-sheet) - 1); background: var(--scrim); }
.phone .sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: var(--z-sheet); display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-2) var(--space-4) var(--space-6); border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--surface-raised); border-top: 1px solid var(--border-subtle); box-shadow: var(--shadow-raised); color: var(--text-primary); font-family: var(--font-sans); word-break: keep-all; }
.phone .sheet-handle { align-self: center; width: 36px; height: 4px; border-radius: var(--radius-full); background: var(--border-control); }
.phone .q-num { flex: none; width: 20px; font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); text-align: center; }
.phone .timer { font-family: var(--font-mono); font-size: 48px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.phone .wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 120px; }
.phone .wave i { width: 4px; border-radius: 2px; background: var(--accent); }
.phone .wave i.past { background: var(--border-control); }
.phone .round-btn { width: 72px; height: 72px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.phone .round-btn svg { width: 28px; height: 28px; }
.phone .round-btn.stop { width: 88px; height: 88px; background: var(--accent); color: var(--on-accent); }
.phone .round-btn.sub { background: var(--surface-sunken); color: var(--text-primary); border: 1px solid var(--border-subtle); }
.phone .ctrl-label { font-size: 13px; color: var(--text-secondary); text-align: center; }
.phone .doc { display: flex; flex-direction: column; gap: var(--space-3); }
.phone .doc h2 { margin: 0; font-size: 13px; font-family: var(--font-mono); font-weight: 700; letter-spacing: .06em; color: var(--accent-text); }
.phone .doc h3 { margin: 0; font-size: 15px; font-weight: 700; }
.phone .doc p, .phone .doc li { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-primary); }
.phone .doc ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.phone .doc .card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-card); border: 1px solid var(--border-subtle); }
.phone .tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.phone .tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--radius-full); background: var(--surface-sunken); border: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-secondary); }
.phone .line { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-2) var(--space-3); }
.phone .line .ts { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); padding-top: 3px; }
.phone .line .who { font-size: 13px; font-weight: 700; color: var(--accent-text); }
.phone .line .who.b { color: var(--info); }
.phone .line p { margin: 0; font-size: 15px; line-height: 1.65; }
.phone .line.marked { margin: -8px; padding: 8px; border-radius: var(--radius-md); background: var(--accent-subtle); }
.phone .line .bm-ico { display: block; margin-top: 4px; color: var(--accent-text); }
.phone .line.now { position: relative; }
.phone .line.now::before { content: ""; position: absolute; left: -12px; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--accent); }
.phone .line.marked.now::before { left: -6px; }
.phone .line.now .ts { color: var(--accent-text); font-weight: 700; }
.phone .line.tappable { cursor: pointer; border-radius: var(--radius-md); }
.phone .line.tappable:not(.marked):active { background: var(--surface-sunken); margin: -8px; padding: 8px; }
.phone .follow-btn { color: var(--text-tertiary); }
.phone .follow-btn[aria-pressed="true"] { color: var(--accent-text); background: var(--accent-subtle); border-radius: 50%; }
.phone .to-now { position: absolute; left: 50%; transform: translateX(-50%); bottom: 132px; z-index: 2; box-shadow: var(--shadow-raised); }
.phone .bm-row { display: flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-md); background: var(--surface-card); border: 1px solid var(--border-subtle); color: var(--accent-text); font-size: 14px; text-decoration: none; flex: none; }
.phone .step-dots { display: flex; gap: 6px; }
.phone .step-dots i { width: 24px; height: 4px; border-radius: 2px; background: var(--border-subtle); }
.phone .step-dots i.on { background: var(--accent); }
.phone .big-title { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.phone .cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.phone .cmp > div { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-card); border: 1px solid var(--border-subtle); }
.phone .cmp b { font-size: 14px; }
.phone .cmp span { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.phone .bottom-bar { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); border-top: 1px solid var(--border-subtle); background: var(--surface-page); }
.phone .bottom-bar .btn { width: 100%; }
.phone .app-toast { position: absolute; left: 50%; bottom: 104px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 64px); box-sizing: border-box; padding: 10px 18px 10px 12px; border-radius: var(--radius-full); background: var(--surface-raised); color: var(--text-primary); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-raised); font-size: 14px; line-height: 1.45; z-index: var(--z-toast); pointer-events: none; }
.phone .app-toast::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #05070d; box-shadow: inset 0 0 0 6px #05070d, inset 0 0 0 12px var(--accent); }
/* 캔버스 EntryPoints 보드의 위젯·타일·바로가기 모형 */
.phone .home { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 22px; padding: 56px 16px 24px; background: var(--surface-sunken); overflow: hidden; font-family: var(--font-sans); color: var(--text-primary); }
.phone .home > * { flex-shrink: 0; }
.phone .cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-tertiary); margin: 0 4px -12px; }
.phone .qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 24px; background: var(--surface-raised); }
.phone .qs-tile { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 14px; border-radius: 20px; background: var(--surface-card); border: 1px solid var(--border-subtle); }
.phone .qs-tile.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.phone .qs-tile b { display: block; font-size: 14px; font-weight: 700; }
.phone .qs-tile small { display: block; font-size: 12px; opacity: .85; }
.phone .widget { display: flex; align-items: center; gap: 12px; height: 76px; padding: 0 12px 0 16px; border-radius: 24px; background: var(--surface-raised); box-shadow: var(--shadow-raised); }
.phone .widget-time { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.phone .lp { display: flex; align-items: flex-start; gap: 12px; }
.phone .lp-icon { flex: none; width: 60px; height: 60px; border-radius: 18px; background: #05070d; display: inline-flex; align-items: center; justify-content: center; }
.phone .lp-menu { flex: 1 1 auto; border-radius: 20px; background: var(--surface-raised); box-shadow: var(--shadow-raised); overflow: hidden; }
.phone .lp-menu .row { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; font-size: 15px; border-bottom: 1px solid var(--border-subtle); }
.phone .lp-menu .row:last-child { border-bottom: 0; color: var(--text-secondary); }
