/* =========================================================
 * App-specific styles. Sections for lock / gallery / memo / mail / recorder / 해솔홈
 * are kept for the modules that use them; story-data apps follow below.
 * ========================================================= */

/* ---------------- lock screen ---------------- */
.lock { position: absolute; inset: 0; color: #fff; display: flex; flex-direction: column; align-items: center; background: #000 center/cover no-repeat; overflow: hidden; }
.lock::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.1) 40%, rgba(0,0,0,.55)); }
.lock > * { position: relative; }
.lock-top { margin-top: calc(var(--sb-h) + 26px); text-align: center; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.lock-date { font-size: 17px; font-weight: 500; opacity: .95; }
.lock-time { font-size: 86px; font-weight: 600; letter-spacing: -3px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.lock-notifs { width: calc(100% - 24px); margin-top: 18px; display: flex; flex-direction: column; gap: 8px; max-height: 38%; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 22px), transparent); mask-image: linear-gradient(#000 calc(100% - 22px), transparent); }
.lock-notif { display: flex; gap: 10px; padding: 11px 13px; border-radius: 18px; background: rgba(40,40,44,.55); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: notifIn .5s cubic-bezier(.2,1.1,.3,1); }
@keyframes notifIn { from { transform: translateY(-20px) scale(.96); opacity: 0; } }
.lock-notif .ln-icon { width: 34px; height: 34px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; }
.lock-notif .ln-icon svg { width: 62%; height: 62%; }
.lock-notif .ln-main { flex: 1; min-width: 0; }
.lock-notif .ln-top { display: flex; justify-content: space-between; font-size: 12px; opacity: .7; }
.lock-notif .ln-title { font-size: 14px; font-weight: 700; }
.lock-notif .ln-body { font-size: 14px; opacity: .95; line-height: 1.35; }
.lock-bottom { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bot) + 34px); display: flex; justify-content: space-between; align-items: flex-end; padding: 0 40px; }
.lock-round { width: 52px; height: 52px; border-radius: 50%; background: rgba(40,40,44,.55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center; color: #fff; }
.lock-round svg { width: 24px; height: 24px; }
.lock-round.cam { animation: hintGlow 2.4s 6s infinite; }
.lock-swipe { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bot) + 110px); text-align: center; font-size: 14px; opacity: .8; animation: breathe 2.5s infinite; }
.lock-pin { position: absolute; inset: 0; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 30px; opacity: 0; transition: opacity .25s; }
.lock-pin.in { opacity: 1; }
.lock-hint { font-size: 13px; opacity: .8; margin: -6px 0 12px; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.08); }
.lock-pin-foot { display: flex; justify-content: space-between; width: 280px; margin-top: 18px; font-size: 15px; }
.lock-pin-foot button { color: #fff; opacity: .9; padding: 8px; }

/* ---------------- gallery ---------------- */
.gal-tabs { display: flex; gap: 6px; padding: 10px 12px 6px; }
.gal-tab { padding: 6px 14px; border-radius: 16px; background: #f0f0f2; font-size: 14px; color: #444; }
.gal-tab.on { background: #111; color: #fff; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.gal-cell { position: relative; aspect-ratio: 1; background: #222 center/cover no-repeat; }
.gal-cell .gc-badge { position: absolute; right: 5px; bottom: 4px; font-size: 11px; color: #fff; text-shadow: 0 1px 2px #000; }
.gal-day { padding: 14px 12px 8px; font-size: 14px; font-weight: 700; }
.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 12px; }
.album { text-align: left; }
.album-cover { aspect-ratio: 1; border-radius: 12px; background: #ddd center/cover; position: relative; overflow: hidden; }
.album-cover.locked { background: #1c1c1e; display: flex; align-items: center; justify-content: center; color: #8e8e93; }
.album-cover.locked svg { width: 38px; height: 38px; }
.album-name { font-size: 14.5px; font-weight: 600; margin-top: 6px; }
.album-count { font-size: 12.5px; color: var(--muted); }
.photo-view { background: #000 !important; color: #fff; }
.photo-view .sv-head { background: rgba(0,0,0,.6); border: 0; color: #fff; }
.photo-view .sv-body { padding: 0; display: flex; flex-direction: column; }
.photo-stage { flex: 1; position: relative; min-height: 0; }
.photo-tools { flex: none; display: flex; justify-content: space-around; padding: 10px 0 calc(var(--safe-bot) + 26px); background: #000; }
.photo-tools button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: #ddd; width: 64px; }
.photo-tools button svg { width: 24px; height: 24px; }
.photo-tools button.on { color: #ffd60a; }
.photo-info { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(28,28,30,.96); color: #eee; border-radius: 16px 16px 0 0; padding: 16px 18px 20px; font-size: 13.5px; line-height: 1.7; transform: translateY(100%); transition: transform .3s; z-index: 5; }
.photo-info.in { transform: none; }
.photo-info .pi-row { display: flex; justify-content: space-between; gap: 10px; border-bottom: .5px solid #333; padding: 6px 0; }
.photo-info .pi-row span:first-child { color: #8e8e93; flex: none; }
.photo-info .pi-row span:last-child { text-align: right; }
.photo-edit { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(10,10,10,.92); padding: 14px 18px 18px; z-index: 5; transform: translateY(100%); transition: transform .3s; }
.photo-edit.in { transform: none; }
.photo-edit label { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #ccc; padding: 6px 0; }
.photo-edit label span { width: 46px; flex: none; }
.photo-edit input[type=range] { flex: 1; accent-color: #ffd60a; height: 30px; }
.photo-edit .pe-val { width: 34px; text-align: right; font-variant-numeric: tabular-nums; color: #ffd60a; }

/* ---------------- memo ---------------- */
.memo-screen { background: #f7f5ef !important; }
.memo-list .lr-title { font-weight: 600; }
.memo-lock { color: #c79a00; }
.memo-doc { padding: 18px 20px 40px; font-size: 16px; line-height: 1.75; white-space: pre-wrap; color: #222; -webkit-user-select: text; user-select: text; }
.memo-doc .md-date { font-size: 12.5px; color: #999; margin-bottom: 10px; display: block; }
.memo-doc h3 { margin: 0 0 8px; font-size: 20px; }
.memo-pw { padding: 50px 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.memo-pw svg { width: 48px; height: 48px; color: #c79a00; }
.memo-pw input { width: 100%; max-width: 260px; padding: 12px 14px; border-radius: 10px; border: 1px solid #ccc; font-size: 17px; text-align: center; letter-spacing: 2px; background: #fff; color: #111; }
.memo-pw .mp-hint { font-size: 13px; color: #888; background: #fff8dc; border: 1px solid #f0e2b0; padding: 6px 12px; border-radius: 8px; }
.memo-pw .mp-err { min-height: 18px; color: #e11d48; font-size: 13px; }
.btn { padding: 12px 22px; border-radius: 12px; background: #111; color: #fff; font-size: 15px; font-weight: 600; }
.btn.accent { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.block { width: 100%; }

/* ---------------- mail ---------------- */
.mail-row .lr-title { font-size: 14.5px; }
.mail-row.unread .lr-title::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.mail-view { padding: 16px 18px 40px; }
.mail-view .mv-subj { font-size: 20px; font-weight: 700; line-height: 1.4; }
.mail-view .mv-from { font-size: 13px; color: #666; margin: 10px 0 18px; padding-bottom: 12px; border-bottom: 1px solid #eee; line-height: 1.6; }
.mail-view .mv-body { font-size: 15px; line-height: 1.75; white-space: pre-wrap; -webkit-user-select: text; user-select: text; }
.otp-big { font-size: 34px; font-weight: 800; letter-spacing: 6px; text-align: center; padding: 18px; background: #f3f6ff; border-radius: 12px; margin: 14px 0; color: #1e3a8a; font-variant-numeric: tabular-nums; }

/* ---------------- recorder ---------------- */
.rec-screen { background: #0b0b0d !important; color: #eee; }
.rec-item { padding: 14px 18px; border-bottom: .5px solid rgba(255,255,255,.08); }
.rec-item .rt { font-size: 16px; font-weight: 600; }
.rec-item .rs { font-size: 12.5px; color: #888; margin-top: 3px; display: flex; justify-content: space-between; }
.rec-item.open { background: #18181b; }
.rec-player { margin-top: 12px; }
.rec-canvas { width: 100%; height: 150px; display: block; border-radius: 10px; background: #05060a; }
.rec-ctrls { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 12px; }
.rec-ctrls button { color: #fff; display: flex; align-items: center; justify-content: center; }
.rec-play { width: 54px; height: 54px; border-radius: 50%; background: #ff453a; }
.rec-play svg { width: 24px; height: 24px; }
.rec-small { font-size: 12px; padding: 6px 10px; border-radius: 8px; background: #222; color: #ccc; }
.rec-small.on { background: #ffd60a; color: #000; }
.rec-prog { height: 3px; background: #333; border-radius: 2px; margin-top: 10px; overflow: hidden; }
.rec-prog i { display: block; height: 100%; width: 0; background: #ff453a; }
.rec-modes { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }

/* ---------------- smart home (해솔홈) ---------------- */
.hs-screen { background: #0e1620 !important; color: #e8eef5; }
.hs-screen .sv-head { background: #0e1620; border-bottom-color: rgba(255,255,255,.06); }
.hs-login { padding: 40px 26px; display: flex; flex-direction: column; gap: 12px; }
.hs-logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; margin-bottom: 18px; }
.hs-logo i { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.hs-input { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid #2a3a4b; background: #142130; color: #fff; font-size: 16px; }
.hs-btn { padding: 14px; border-radius: 12px; background: #4fd1c5; color: #062a26; font-weight: 800; font-size: 16px; }
.hs-btn.sec { background: #1d2c3c; color: #cfe; font-weight: 600; }
.hs-btn.danger { background: #ff453a; color: #fff; }
.hs-link { color: #7fb8ff; font-size: 14px; text-align: center; padding: 8px; }
.hs-err { color: #ff6b6b; font-size: 13px; min-height: 18px; }
.hs-card { margin: 12px 14px; padding: 16px; border-radius: 18px; background: #142130; }
.hs-card h4 { margin: 0 0 6px; font-size: 13px; color: #8aa2b8; font-weight: 600; }
.hs-big { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.hs-state { font-size: 13px; color: #8aa2b8; margin-top: 6px; line-height: 1.6; }
.hs-state.alert { color: #ff8a80; }
.hs-cam { position: relative; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: #000 center/cover; margin-top: 10px; }
.hs-cam img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.95); }
.hs-cam .cam-osd { position: absolute; left: 8px; top: 6px; font-size: 11px; color: #fff; font-family: ui-monospace, Menlo, monospace; text-shadow: 0 1px 2px #000; }
.hs-cam .cam-rec { position: absolute; right: 8px; top: 6px; font-size: 11px; color: #ff453a; font-family: ui-monospace, monospace; animation: breathe 1.2s infinite; }
.hs-cam .cam-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #667; font-size: 13px; background: #05080c; }
.hs-cam::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.18) 2px 3px); pointer-events: none; }
.hs-dev { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #1d2c3c; font-size: 14px; }
.hs-dev small { display: block; color: #8aa2b8; font-size: 12px; margin-top: 2px; }
.hs-dev.bad { color: #ff8a80; }


/* =========================================================
 * story-data apps (톡 · 메시지 · 전화 · 모먼트 · 인터넷 · 캘린더 · 시계 · 설정)
 * ========================================================= */
.noimg { background-image: linear-gradient(135deg, #2b2f36, #15171b) !important; position: relative; }
.noimg::after { content: ''; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; opacity: .28; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Ccircle cx='9' cy='10' r='1.8' fill='%23fff'/%3E%3Cpath d='M4 17l5-4.5 4 3 3-2.5 4 4' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E"); }

/* ---------- toggle (shared) ---------- */
.toggle { width: 51px; height: 31px; border-radius: 16px; background: #c9c9ce; position: relative; flex: none; transition: background .22s; }
[data-theme="dark"] .toggle { background: #39393d; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: transform .26s cubic-bezier(.3,1.4,.5,1); box-shadow: 0 2px 5px rgba(0,0,0,.28); }
.toggle.on { background: #34c759; }
.toggle.on::after { transform: translateX(20px); }
.toggle.nope { animation: tgNope .38s; }
.toggle.locked::before { content: ''; position: absolute; inset: -3px; border-radius: 19px; border: 1.5px dashed rgba(255,255,255,.25); }
@keyframes tgNope { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

/* =========================================================
 * 톡
 * ========================================================= */
.tk-screen { background: #fff !important; }
.tk-head { flex: none; padding: var(--sb-h) 18px 0; height: calc(var(--sb-h) + 52px); display: flex; align-items: center; }
.tk-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.tk-body { padding-bottom: 8px !important; }
.tk-tabs { flex: none; display: flex; justify-content: space-around; padding: 6px 0 calc(var(--safe-bot) + 26px); border-top: .5px solid rgba(0,0,0,.08); background: #fafafa; }
.tk-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #b3b3b8; width: 90px; min-height: 44px; justify-content: center; }
.tk-tabs button span svg { width: 25px; height: 25px; }
.tk-tabs button small { font-size: 10.5px; font-weight: 600; }
.tk-tabs button.on { color: #1d1d1f; }
.tk-dot { position: absolute; top: 2px; left: 52%; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #ff4f3b; color: #fff; font-size: 10px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; }

.chat-av { position: relative; width: 40px; height: 40px; border-radius: 38%; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 17px; align-self: flex-start; }
.chat-av .av-face { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; line-height: 1; }
.chat-av .av-face svg { width: 74%; height: 74%; margin-top: 18%; }
.chat-av .av-img { position: absolute; inset: 0; background: center/cover no-repeat; }
.chat-av .av-img.noimg { display: none; }
.chat-av-sp { width: 40px; flex: none; }

.chat-list { display: flex; flex-direction: column; }
.cl-row { display: flex; align-items: center; gap: 13px; padding: 9px 18px; min-height: 70px; text-align: left; width: 100%; }
.cl-row:active { background: rgba(0,0,0,.045); }
.cl-av { width: 48px !important; height: 48px !important; font-size: 21px !important; align-self: center !important; }
.cl-av.sms-av { border-radius: 50%; background: #c7ccd3; color: #fff; display: flex; align-items: center; justify-content: center; }
.cl-av.sms-av svg { width: 60%; height: 60%; margin-top: 10%; }
.cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cl-name { display: flex; align-items: center; gap: 5px; font-size: calc(15.5px * var(--ts)); font-weight: 700; color: #1d1d1f; min-width: 0; }
.cl-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-pin { width: 13px; height: 13px; color: #b5b5ba; flex: none; display: flex; }
.cl-pin svg { width: 100%; height: 100%; }
.cl-prev { font-size: calc(13.5px * var(--ts)); color: #8a8a90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-prev.typing { color: #3b82f6; font-style: italic; }
.cl-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; align-self: flex-start; padding-top: 4px; min-width: 52px; }
.cl-when { font-size: 11.5px; color: #a3a3a8; white-space: nowrap; }
.cl-badge { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: #ff4f3b; color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* friends tab */
.fr-me, .fr-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 8px 18px; min-height: 60px; }
.fr-me { padding: 10px 18px 14px; border-bottom: .5px solid rgba(0,0,0,.07); }
.fr-me .chat-av { width: 58px; height: 58px; font-size: 26px; align-self: center; }
.fr-row .chat-av { width: 44px; height: 44px; font-size: 19px; align-self: center; }
.fr-me div, .fr-row div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fr-me b { font-size: 17px; } .fr-row b { font-size: 15px; }
.fr-me small, .fr-row small { font-size: 12.5px; color: #8a8a90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-row:active, .fr-me:active { background: rgba(0,0,0,.045); }
.fr-sec { padding: 14px 18px 6px; font-size: 12.5px; color: #8a8a90; font-weight: 600; }

/* conversation */
.talk-screen { background: #acc0d3 !important; }
.talk-screen .sv-head { background: #acc0d3; border-bottom: 0; }
.talk-screen .sv-back, .talk-screen .sv-right button { color: #1d2733; }
.talk-screen .sv-sub { color: #44566a; }
.talk-screen.haru-room, .talk-screen.haru-room .sv-head { background: #a3b1be !important; }
.ch-call svg, .talk-screen .sv-right svg { width: 22px; height: 22px; }
.ch-call.pulse { animation: callPulse 1.1s ease-out 3; border-radius: 50%; }
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,.7); color: #1f9d48; } 100% { box-shadow: 0 0 0 16px rgba(52,199,89,0); } }
.chat-body { padding: 6px 10px 14px; display: flex; flex-direction: column; }
.chat-date { align-self: center; display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #fff; background: rgba(30,45,60,.22); padding: 4px 12px 4px 9px; border-radius: 13px; margin: 16px 0 10px; }
.chat-date span { display: flex; } .chat-date svg { width: 13px; height: 13px; }
.sms-screen .chat-date { color: #8a8a90; background: none; }
.chat-row { display: flex; align-items: flex-end; gap: 7px; max-width: 100%; margin-top: 3px; }
.chat-row.first { margin-top: 9px; }
.chat-row.me { flex-direction: row-reverse; }
.chat-col { display: flex; flex-direction: column; gap: 3px; max-width: 70%; min-width: 0; }
.chat-row.me .chat-col { align-items: flex-end; }
.chat-name { font-size: 12px; color: #33424f; margin: 1px 0 2px 2px; }
.bubble { position: relative; padding: 8px 11px; border-radius: 15px; font-size: calc(15px * var(--ts)); line-height: 1.42; white-space: pre-wrap; word-break: break-word; background: #fff; color: #161616; -webkit-user-select: text; user-select: text; }
.talk-screen .chat-row.first:not(.me) .chat-col > .bubble:first-of-type { border-top-left-radius: 4px; }
.talk-screen .chat-row.me .bubble { background: #ffe14a; }
.talk-screen .chat-row.me.first .chat-col > .bubble:first-of-type { border-top-right-radius: 4px; }
.chat-row.sending .bubble { opacity: .55; }
.chat-row.sending .chat-meta::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(0,0,0,.2); border-top-color: #555; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bubble.img { padding: 0; overflow: hidden; background: #ccd5de !important; border-radius: 14px !important; min-width: 120px; min-height: 90px; }
.bubble.img img { display: block; max-width: 210px; max-height: 280px; }
.bubble.deleted { color: #7d8790; font-size: calc(14px * var(--ts)); display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.75); }
.talk-screen .chat-row.me .bubble.deleted { background: rgba(255,225,74,.6); }
.bubble.deleted i { display: flex; width: 16px; height: 16px; } .bubble.deleted svg { width: 100%; height: 100%; }
.bubble.callb { display: flex; align-items: center; gap: 9px; padding: 9px 13px 9px 9px; }
.bubble.callb .clb-ic { width: 30px; height: 30px; border-radius: 50%; background: #eaf7ee; color: #1f9d48; display: flex; align-items: center; justify-content: center; flex: none; }
.bubble.callb .clb-ic svg { width: 16px; height: 16px; }
.bubble.callb.missed .clb-ic, .bubble.callb.declined .clb-ic, .bubble.callb.failed .clb-ic { background: #fdecea; color: #e5483a; }
.bubble.callb b { font-size: calc(14px * var(--ts)); font-weight: 600; display: block; }
.bubble.callb small { font-size: 12px; color: #888; }
.bubble.card { padding: 0; overflow: hidden; width: 236px; white-space: normal; }
.bubble.card .cd-head { background: #ffe14a; padding: 8px 12px; font-size: 12px; font-weight: 700; color: #3a2f00; }
.bubble.card .cd-title { padding: 10px 12px 6px; font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.bubble.card .cd-rows { padding: 0 12px 8px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.bubble.card .cd-rows div { display: flex; gap: 8px; } .bubble.card .cd-rows span { color: #888; flex: none; width: 50px; }
.bubble.card .cd-foot { border-top: .5px solid #eee; padding: 8px 12px; font-size: 12.5px; color: #666; }
.bubble.share { display: flex; gap: 10px; align-items: center; white-space: normal; width: 230px; }
.bubble.share .sh-ic { width: 38px; height: 38px; border-radius: 10px; background: #1e88e5; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.bubble.share .sh-ic svg { width: 22px; height: 22px; }
.bubble.share b { display: block; font-size: 13.5px; line-height: 1.35; } .bubble.share small { font-size: 11.5px; color: #6b5d00; }
.bubble.typing-b { padding: 0; }
.bubble.typing-b .typing { background: transparent; padding: 13px 14px; }
.bubble.creepy { background: #1a0a0a !important; color: #f3d6d6 !important; }
.chat-meta { font-size: 10.5px; color: #4a5a69; align-self: flex-end; flex: none; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; gap: 1px; padding-bottom: 1px; }
.chat-row.me .chat-meta { align-items: flex-end; }
.chat-meta .rc { color: #e8b400; font-weight: 800; font-size: 11px; transition: opacity .25s, transform .25s; }
.chat-meta .rc.gone, .chg-rc.gone { opacity: 0; transform: scale(.4); }
.ch-fail { width: 22px; height: 22px; border-radius: 50%; background: #ff4f3b; color: #fff; font-size: 13px; font-weight: 800; flex: none; align-self: center; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.chat-sys { align-self: center; font-size: 12px; color: #fff; background: rgba(30,45,60,.25); padding: 5px 12px; border-radius: 12px; margin: 8px 0; text-align: center; max-width: 85%; line-height: 1.4; }
.chat-grp { align-self: center; width: 86%; margin: 12px 0 6px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-align: left; display: flex; flex-direction: column; gap: 4px; transition: background .2s, transform .15s; }
.chat-grp:active { background: rgba(255,255,255,.6); transform: scale(.98); }
.chg-top { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #26323e; }
.chg-l { flex: 1; min-width: 0; }
.chg-chev { display: flex; width: 16px; height: 16px; color: #5a6a7a; } .chg-chev svg { width: 100%; height: 100%; }
.chg-rc { min-width: 22px; height: 18px; padding: 0 6px; border-radius: 9px; background: #ffe14a; color: #6b5200; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: opacity .3s, transform .3s; }
.chg-prev { font-size: 12.5px; color: #4b5b6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-grp-open { display: flex; flex-direction: column; animation: grpIn .35s ease-out; }
@keyframes grpIn { from { opacity: 0; transform: translateY(-6px); } }
.chat-newpill { position: absolute; left: 50%; bottom: 128px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 4; padding: 8px 14px; border-radius: 18px; background: rgba(30,40,52,.82); color: #fff; font-size: 13px; transition: all .25s; }
.chat-newpill.in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.chat-chips { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 0 10px; max-height: 0; transition: max-height .3s, padding .3s; background: transparent; scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips.in { max-height: 120px; padding: 8px 10px; }
.chat-chips .chip { flex: none; max-width: 280px; text-align: left; white-space: normal; padding: 9px 13px; border-radius: 16px; background: #fff; color: #1d2733; font-size: calc(13.5px * var(--ts)); line-height: 1.35; box-shadow: 0 1px 4px rgba(0,0,0,.12); border: 1px solid rgba(255,214,0,.7); }
.chat-chips .chip:active { background: #fff7c2; }
.chat-input { position: relative; flex: none; display: flex; gap: 8px; align-items: flex-end; padding: 8px 10px calc(var(--safe-bot) + 28px); background: #fff; }
.chat-input .ci-field { flex: 1; min-height: 38px; max-height: 110px; border-radius: 19px; background: #f1f2f4; padding: 9px 14px; font-size: calc(15px * var(--ts)); color: #111; display: flex; align-items: center; flex-wrap: wrap; overflow: hidden; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.chat-input .ci-field.focus { background: #fff; border-color: #d8dadf; box-shadow: none; }
.chat-input .ci-field { white-space: pre-wrap; word-break: break-all; line-height: 1.4; overflow-y: auto; }
.chat-input .ci-field .fld-caret { height: 18px; }
.chat-input .ci-field.flash { animation: fldFlash .5s; }
@keyframes fldFlash { 40% { background: #fff7c2; } }
.chat-input .ci-send { width: 38px; height: 38px; border-radius: 50%; background: #eceef1; color: #b0b4ba; display: flex; align-items: center; justify-content: center; flex: none; transition: background .2s, color .2s, transform .15s; }
.chat-input .ci-send svg { width: 20px; height: 20px; }
.chat-input .ci-send.on { background: #ffe14a; color: #2b2300; }
.chat-input .ci-send:active { transform: scale(.9); }
.chat-input.readonly { justify-content: center; padding-top: 12px; }
.chat-input .ci-note { font-size: 13px; color: #8a8a90; padding: 6px 0; }
.chat-failbar { position: absolute; left: 12px; right: 12px; top: calc(var(--sb-h) + 58px); z-index: 6; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 14px; background: rgba(28,28,30,.92); color: #fff; font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: all .3s; }
.chat-failbar.in { opacity: 1; transform: none; }
.chat-failbar b { width: 20px; height: 20px; border-radius: 50%; background: #ff4f3b; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
#screen.kb-open .talk-screen { padding-bottom: var(--kbh, 262px); transition: padding .25s cubic-bezier(.2,.9,.3,1); }
#screen.kb-open .talk-screen .chat-input { padding-bottom: 8px; }
#screen.kb-open .talk-screen.screen-view .sv-body { padding-bottom: 14px; }
.talk-screen { transition: padding .25s cubic-bezier(.2,.9,.3,1); }
.chat-row.failed .chat-col { opacity: .9; }
.sms-screen { background: #fff !important; }
.sms-screen .bubble { background: #eceef1; border-radius: 18px; }
.sms-screen .chat-col { max-width: 78%; }
.sms-banner { display: flex; align-items: center; gap: 12px; margin: 10px 14px 6px; padding: 12px 14px; border-radius: 14px; background: #fff4e5; color: #7a4a00; }
.sms-banner .sb-ic { width: 30px; height: 30px; border-radius: 50%; background: #ffb340; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.sms-banner .sb-ic svg { width: 18px; height: 18px; }
.sms-banner b { display: block; font-size: 14.5px; } .sms-banner small { font-size: 12.5px; color: #9a6a20; }

/* profile card */
.pf-wrap { position: absolute; inset: 0; z-index: 2; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .38s cubic-bezier(.2,.9,.25,1); }
.pf-wrap.in { opacity: 1; transform: none; }
.pf-wrap.out { opacity: 0; transform: translateY(30px); }
.pf-bg { position: absolute; inset: 0; background: #556 center/cover no-repeat; }
.pf-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.05) 30%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.78)); }
.pf-close { position: absolute; top: calc(var(--sb-h) + 6px); left: 10px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; z-index: 2; }
.pf-close svg { width: 24px; height: 24px; }
.pf-main { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 24px calc(var(--safe-bot) + 44px); text-align: center; }
.pf-av { width: 96px !important; height: 96px !important; font-size: 40px !important; align-self: center !important; box-shadow: 0 6px 24px rgba(0,0,0,.35); margin-bottom: 8px; }
.pf-name { font-size: 21px; font-weight: 700; }
.pf-status { font-size: 14px; opacity: .85; }
.pf-info { margin-top: 8px; font-size: 12.5px; line-height: 1.7; opacity: .82; padding: 8px 14px; border-radius: 12px; background: rgba(0,0,0,.28); }
.pf-acts { display: flex; gap: 34px; margin-top: 22px; padding-top: 18px; border-top: .5px solid rgba(255,255,255,.28); width: 100%; justify-content: center; }
.pf-act { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; color: #fff; min-width: 64px; min-height: 44px; }
.pf-act span { display: flex; } .pf-act svg { width: 26px; height: 26px; }

/* 보이스톡 screen (talk) */
.tvc { position: absolute; inset: 0; isolation: isolate; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--sb-h) + 40px) 20px calc(var(--safe-bot) + 56px); opacity: 0; transform: scale(1.04); transition: opacity .3s, transform .35s; background: #1f2226; }
.tvc.in { opacity: 1; transform: none; }
.tvc.out { opacity: 0; }
.tvc-bg { position: absolute; inset: -30px; z-index: -1; background: #333 center/cover; filter: blur(28px) brightness(.45) saturate(1.2); }
.tvc-bg.noimg { background: radial-gradient(ellipse at 50% 20%, #59606a, #1b1d21 70%) !important; filter: none; }
.tvc-bg.noimg::after { display: none; }
.tvc-top { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tvc-kind { font-size: 13px; letter-spacing: 1px; color: rgba(255,255,255,.7); padding: 4px 12px; border-radius: 12px; background: rgba(255,255,255,.12); margin-bottom: 18px; }
.tvc-av { width: 112px !important; height: 112px !important; font-size: 48px !important; border-radius: 40% !important; align-self: center !important; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.tvc.incoming .tvc-av { animation: tvRing 1.6s ease-in-out infinite; }
@keyframes tvRing { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35), 0 12px 40px rgba(0,0,0,.45); } 50% { box-shadow: 0 0 0 18px rgba(255,255,255,0), 0 12px 40px rgba(0,0,0,.45); } }
.tvc-name { font-size: 30px; font-weight: 600; margin-top: 10px; }
.tvc-status { font-size: 15px; color: rgba(255,255,255,.75); min-height: 20px; }
.tvc-status.red { color: #ff8a80; }
.tvc-sub { font-size: 13.5px; color: rgba(255,255,255,.6); min-height: 18px; text-align: center; padding: 0 20px; }
.tvc-actions { display: flex; justify-content: space-around; }
.tvc-bw { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,.85); }
.tvc-btn { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .15s, filter .15s; }
.tvc-btn svg { width: 32px; height: 32px; }
.tvc-btn.decline { background: #ff3b30; }
.tvc-btn.accept { background: #34c759; animation: ringPulse 1.2s infinite; }
.tvc-btn.pressed { transform: scale(.86); filter: brightness(.75); box-shadow: inset 0 3px 10px rgba(0,0,0,.35); }
.tvc.locked .tvc-btn { pointer-events: none; }

/* =========================================================
 * 전화
 * ========================================================= */
.dial-screen { background: #fff !important; }
.dial-screen.kp .sv-head { border-bottom: 0; }
.ph-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; overflow: hidden; }
.ph-av svg { width: 72%; height: 72%; margin-top: 18%; }
.ph-av.sm { width: 40px; height: 40px; font-size: 17px; }
.ph-av.lg { width: 56px; height: 56px; font-size: 26px; }
.ph-av.xl { width: 104px; height: 104px; font-size: 46px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.kp-wrap { display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.kp-sim { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #ff9500; background: #fff5e6; padding: 4px 10px; border-radius: 12px; }
.kp-sim svg { width: 14px; height: 14px; }
.dial-num { min-height: 70px; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 400; padding: 18px 20px 0; letter-spacing: .5px; font-variant-numeric: tabular-nums; word-break: break-all; text-align: center; color: #111; }
.dial-num.long { font-size: 28px; }
.dial-name { text-align: center; font-size: 14px; color: #1f9d48; min-height: 22px; font-weight: 600; }
.dial-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 28px; justify-content: center; margin-top: 12px; }
.dial-key { width: 76px; height: 76px; border-radius: 50%; background: #f1f2f4; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #111; transition: background .12s; }
.dial-key:active { background: #d9dbe0; }
.dial-key b { font-size: 32px; font-weight: 400; line-height: 1; }
.dial-key small { font-size: 9.5px; letter-spacing: 2px; margin-top: 3px; color: #666; min-height: 11px; }
.dial-call { display: grid; grid-template-columns: 76px 76px 76px; gap: 28px; justify-content: center; margin-top: 18px; align-items: center; justify-items: center; }
.dial-call .go { width: 72px; height: 72px; border-radius: 50%; background: #34c759; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(52,199,89,.35); }
.dial-call .go:active { transform: scale(.94); }
.dial-call .go svg { width: 32px; height: 32px; }
.dial-call .del { width: 48px; height: 48px; color: #8a8a90; display: flex; align-items: center; justify-content: center; }
.dial-call .del svg { width: 28px; height: 28px; }
.ph-tabs { flex: none; display: flex; justify-content: space-around; border-top: .5px solid var(--line); padding: 6px 0 calc(var(--safe-bot) + 24px); background: #fafafa; }
.ph-tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: #a0a0a6; min-width: 72px; min-height: 44px; justify-content: center; }
.ph-tabs button svg { width: 24px; height: 24px; }
.ph-tabs button.on { color: #1f9d48; font-weight: 700; }
.ph-banner { display: flex; align-items: center; gap: 12px; margin: 10px 14px 4px; padding: 12px 14px; border-radius: 14px; background: #f4f5f7; color: #555; }
.ph-banner > span { width: 32px; height: 32px; border-radius: 50%; background: #ff9f0a; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ph-banner svg { width: 18px; height: 18px; }
.ph-banner b { display: block; font-size: 14px; color: #222; } .ph-banner small { font-size: 12px; color: #888; }
.ph-day { padding: 16px 18px 6px; font-size: 12.5px; font-weight: 700; color: #8a8a90; }
.ph-rec { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 16px; min-height: 60px; }
.ph-rec .pr-main { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: center; }
.pr-name { font-size: 15.5px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-rec.missed .pr-name { color: #e5483a; }
.pr-sub { font-size: 12.5px; color: #8a8a90; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-type { width: 14px; height: 14px; flex: none; display: flex; color: #1f9d48; } .pr-type.missed { color: #e5483a; } .pr-type.in { color: #0a84ff; }
.pr-type svg { width: 100%; height: 100%; }
.pr-time { font-size: 12px; color: #a0a0a6; flex: none; }
.pr-info { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #0a84ff; flex: none; }
.pr-info svg { width: 22px; height: 22px; }
.ph-me { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 6px 14px; border-radius: 16px; background: #f4f5f7; }
.ph-me div { display: flex; flex-direction: column; gap: 2px; } .ph-me b { font-size: 16px; } .ph-me small { font-size: 12px; color: #8a8a90; }
.ph-sec { padding: 14px 20px 4px; font-size: 12.5px; font-weight: 700; color: #1f9d48; }
.ph-ct { display: flex; align-items: center; gap: 14px; width: 100%; padding: 7px 18px; min-height: 56px; text-align: left; font-size: 15.5px; color: #111; }
.ph-ct:active, .ph-rec:active { background: rgba(0,0,0,.04); }
.ph-count { text-align: center; font-size: 12.5px; color: #a0a0a6; padding: 18px 0 10px; }
.ct-screen { background: #f4f5f7 !important; }
.ct-screen .sv-head { border-bottom: 0; background: #f4f5f7; }
.ct-card { display: flex; flex-direction: column; align-items: center; padding: 16px 16px 30px; gap: 8px; }
.ct-name { font-size: 26px; font-weight: 700; color: #111; margin-top: 8px; text-align: center; }
.ct-num { font-size: 14px; color: #8a8a90; }
.ct-actions { display: flex; gap: 14px; margin: 14px 0 6px; }
.ct-act { width: 76px; height: 64px; border-radius: 16px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #1f9d48; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ct-act svg { width: 22px; height: 22px; } .ct-act small { font-size: 12px; color: #444; }
.ct-box { width: 100%; border-radius: 18px; background: #fff; overflow: hidden; }
.ct-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: .5px solid #eceef1; gap: 10px; }
.ct-row div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-row small { font-size: 12px; color: #8a8a90; } .ct-row b { font-size: 15.5px; font-weight: 500; color: #111; }
.ct-row-acts { display: flex; gap: 6px; }
.ct-row-acts button { width: 40px; height: 40px; border-radius: 50%; background: #eef8f1; color: #1f9d48; display: flex; align-items: center; justify-content: center; }
.ct-row-acts svg { width: 18px; height: 18px; }
.ct-meta { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ct-meta-h { font-size: 12px; color: #8a8a90; font-weight: 700; }
.ct-meta div { display: flex; justify-content: space-between; gap: 12px; } .ct-meta span { color: #8a8a90; } .ct-meta b { font-weight: 500; color: #333; text-align: right; }
.ct-meta .hl b { color: #c2410c; font-weight: 700; }
@media (max-height: 700px) { .dial-pad { grid-template-columns: repeat(3, 66px); gap: 10px 24px; } .dial-key { width: 66px; height: 66px; } .dial-call { grid-template-columns: 66px 66px 66px; } .dial-num { padding-top: 6px; min-height: 56px; } }

/* =========================================================
 * 모먼트
 * ========================================================= */
.mo-screen { background: #fff !important; }
.mo-lock { display: inline-flex; width: 15px; height: 15px; margin-right: 4px; vertical-align: -2px; } .mo-lock svg { width: 100%; height: 100%; }
.mo-av { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 700; }
.mo-av .mo-av-img { position: absolute; inset: 0; background: center/cover no-repeat; }
.mo-av.black { background: #000 !important; border-radius: 6px; }
.mo-prof > .mo-av.black { box-shadow: 0 0 0 1px #ddd; border-radius: 8px; }
.mo-prof { display: flex; align-items: center; gap: 18px; padding: 14px 16px 10px; }
.mo-prof > .mo-av { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px #e1306c; margin: 4px; }
.mo-stats { display: flex; flex: 1; justify-content: space-around; }
.mo-stat { display: flex; flex-direction: column; align-items: center; min-width: 56px; min-height: 44px; justify-content: center; }
.mo-stat b { font-size: 17px; } .mo-stat span { font-size: 12.5px; color: #333; }
.mo-bio { padding: 0 16px 10px; font-size: calc(14px * var(--ts)); line-height: 1.5; }
.mo-bio b { display: block; }
.mo-btns { display: flex; gap: 6px; padding: 0 16px 12px; }
.mo-btns button { flex: 1; min-height: 34px; border-radius: 9px; background: #efefef; font-size: 13.5px; font-weight: 600; }
.mo-btns button.primary { background: #0095f6; color: #fff; }
.mo-tabs { display: flex; border-top: .5px solid #e6e6e6; }
.mo-tabs button { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; color: #b5b5b5; border-bottom: 1.5px solid transparent; }
.mo-tabs button.on { color: #111; border-bottom-color: #111; }
.mo-tabs svg { width: 23px; height: 23px; }
.mo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.mo-cell { position: relative; aspect-ratio: 1; overflow: hidden; background: #eee; }
.mo-cell .mo-img { position: absolute; inset: 0; }
.mo-live-ic { position: absolute; right: 6px; top: 6px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); display: flex; }
.mo-live-ic svg { width: 100%; height: 100%; }
.mo-img { background: #e6e6e6; overflow: hidden; }
.mo-imgi { position: absolute; inset: 0; background: center/cover no-repeat; }
.mo-imgi.filtered { inset: -10%; }
.mo-img.feed { position: relative; width: 100%; aspect-ratio: 1; touch-action: manipulation; -webkit-touch-callout: none; cursor: pointer; overflow: hidden; }
.mo-live { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.88); color: #111; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.mo-live i { display: flex; width: 13px; height: 13px; } .mo-live svg { width: 100%; height: 100%; }
.mo-burst { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; color: #fff; filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); animation: moBurst .85s ease-out forwards; pointer-events: none; }
.mo-burst svg { width: 100%; height: 100%; }
@keyframes moBurst { 0% { transform: scale(.2); opacity: 0; } 18% { transform: scale(1.15); opacity: 1; } 35% { transform: scale(.95); } 75% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.mo-private { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 30px; text-align: center; border-top: .5px solid #e6e6e6; }
.mo-private span { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #111; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.mo-private svg { width: 30px; height: 30px; }
.mo-private b { font-size: 15px; } .mo-private small { font-size: 13px; color: #8e8e8e; }
.mo-more { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 20px 30px; font-size: 13px; color: #8e8e8e; }
.mo-more button { padding: 8px 18px; border-radius: 9px; background: #efefef; color: #111; font-size: 13px; font-weight: 600; min-height: 36px; }
.mo-feed { display: flex; flex-direction: column; }
.mo-post { padding-bottom: 14px; border-bottom: .5px solid #efefef; }
.mo-ph { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 14px; }
.mo-ph b { flex: 1; } .mo-ph-more { width: 24px; height: 24px; display: flex; color: #333; } .mo-ph-more svg { width: 100%; height: 100%; }
.mo-acts { display: flex; align-items: center; gap: 2px; padding: 4px 6px 0; }
.mo-acts .sp { flex: 1; }
.mo-act { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: #111; }
.mo-act svg { width: 25px; height: 25px; }
.mo-act.liked { color: #ed4956; }
.mo-act.pop { animation: likePop .35s; }
@keyframes likePop { 40% { transform: scale(1.3); } }
.mo-likes { padding: 0 14px; font-size: 14px; font-weight: 700; }
.mo-h { font-weight: 700; color: #111; font-size: inherit; }
.mo-cap { padding: 4px 14px 0; font-size: calc(14.5px * var(--ts)); line-height: 1.5; white-space: pre-wrap; }
.mo-cap b { font-weight: 700; }
.mo-cmts { padding: 4px 14px 0; display: flex; flex-direction: column; gap: 2px; }
.mo-cmt { font-size: calc(14px * var(--ts)); line-height: 1.5; }
.mo-date { padding: 6px 14px 0; font-size: 11.5px; color: #8e8e8e; }
.mo-follow .mo-frow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; text-align: left; min-height: 60px; }
.mo-follow .mo-frow div { display: flex; flex-direction: column; } .mo-follow small { color: #8e8e8e; font-size: 12.5px; }

/* =========================================================
 * 인터넷
 * ========================================================= */
.br-screen { background: #fff !important; }
.br-top { position: relative; flex: none; padding: calc(var(--sb-h) + 4px) 12px 8px; background: #f7f7f9; border-bottom: .5px solid rgba(0,0,0,.07); }
.br-url { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px; border-radius: 20px; background: #eceef1; color: #333; text-align: left; }
.bu-ic { width: 15px; height: 15px; display: flex; color: #8a8a90; flex: none; } .bu-ic.secure { color: #1f9d48; } .bu-ic svg { width: 100%; height: 100%; }
.bu-t { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bu-r { width: 18px; height: 18px; display: flex; color: #666; flex: none; } .bu-r svg { width: 100%; height: 100%; }
.br-prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: #0a84ff; opacity: 1; transition: width .5s ease-out, opacity .3s .1s; }
.br-prog.go { width: 85%; } .br-prog.done { width: 100%; opacity: 0; }
.br-scroll { background: #fff; }
.br-tools { flex: none; display: flex; justify-content: space-around; align-items: center; padding: 4px 6px calc(var(--safe-bot) + 24px); background: #f7f7f9; border-top: .5px solid rgba(0,0,0,.07); }
.br-tb { width: 48px; height: 44px; display: flex; align-items: center; justify-content: center; color: #222; }
.br-tb svg { width: 23px; height: 23px; }
.br-tb.dis { color: #c5c5ca; }
.br-tb.tabs span { width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 6px; font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.br-page { padding: 0 0 26px; font-size: calc(15.5px * var(--ts)); line-height: 1.72; color: #1d1d1f; }
.art-src { padding: 18px 18px 0; font-size: 12.5px; color: #2563eb; font-weight: 800; }
.art-h { padding: 6px 18px 8px; font-size: calc(21px * var(--ts)); font-weight: 800; line-height: 1.42; letter-spacing: -.3px; }
.art-meta { padding: 0 18px 14px; font-size: 12px; color: #8a8a90; border-bottom: 1px solid #f0f0f2; margin-bottom: 8px; }
.art-p { padding: 6px 18px; -webkit-user-select: text; user-select: text; }
.art-img img { width: 100%; display: block; }
.art-cap { font-size: 12px; color: #888; padding: 0 18px 10px; }
.art-rel { margin: 18px 14px 4px; padding: 12px 14px; border-radius: 14px; background: #f5f6f8; display: flex; flex-direction: column; gap: 2px; }
.art-rel b { font-size: 13px; color: #555; margin-bottom: 4px; }
.art-rel button { text-align: left; font-size: 14px; line-height: 1.5; padding: 7px 0; border-top: .5px solid #e6e7ea; color: #222; }
.art-cmh { padding: 18px 18px 8px; font-weight: 700; font-size: 14px; border-top: 6px solid #f2f3f5; margin-top: 18px; }
.br-page .comment { padding: 12px 18px; border-top: 1px solid #f2f2f4; font-size: 14px; line-height: 1.55; }
.br-page .comment .cm-top { display: flex; gap: 8px; align-items: baseline; }
.br-page .comment b { font-size: 13px; color: #333; } .br-page .comment small { color: #aaa; font-size: 11.5px; }
.br-page .comment.creepy b { color: #b91c1c; }
.dark-photo { position: relative; margin-top: 10px; width: 100%; max-width: 300px; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: #000; }
.dark-photo > div { position: absolute; inset: 0; background: #000 center/cover no-repeat; }
.dark-photo .dp-base.noimg, .dark-photo .dp-lit.noimg { background: #000 !important; }
.dark-photo .dp-base.noimg::after, .dark-photo .dp-lit.noimg::after { display: none; }
.dark-photo .dp-lit { opacity: 0; transition: opacity .25s linear, filter .25s linear; }
.dark-photo .dp-grain { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat; opacity: .08; mix-blend-mode: screen; }
.board .bd-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px 12px; }
.bd-logo { width: 46px; height: 46px; border-radius: 14px; background: #2e7d6b; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.bd-head b { display: block; font-size: 17px; } .bd-head small { font-size: 12px; color: #8a8a90; }
.bd-tabs { display: flex; gap: 18px; padding: 0 16px; border-bottom: 1px solid #eee; font-size: 14px; color: #8a8a90; }
.bd-tabs span { padding: 10px 0; } .bd-tabs .on { color: #111; font-weight: 700; border-bottom: 2px solid #2e7d6b; }
.bd-row { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 12px 16px; border-bottom: .5px solid #efefef; min-height: 56px; }
.bd-row.notice { background: #f6fbf9; }
.bd-t { font-size: 15px; line-height: 1.45; color: #1d1d1f; }
.bd-t em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #2e7d6b; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: #dff1ea; }
.bd-n { color: #e5483a; font-size: 13px; margin-left: 4px; font-weight: 700; }
.bd-m { font-size: 12px; color: #9a9aa0; }
.br-home { padding: 30px 18px; display: flex; flex-direction: column; gap: 14px; }
.bh-logo { text-align: center; font-size: 26px; font-weight: 800; color: #0a84ff; letter-spacing: -.5px; margin: 10px 0 6px; }
.bh-search { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 24px; background: #f1f2f4; color: #8a8a90; font-size: 15px; }
.bh-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0; }
.bh-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bh-tile span { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.bh-tile small { font-size: 11.5px; color: #444; }
.bh-sec { font-size: 13px; font-weight: 700; color: #8a8a90; margin-top: 6px; }
.br-hist { display: flex; flex-direction: column; }
.bh-day { padding: 16px 16px 6px; font-size: 12.5px; font-weight: 700; color: #8a8a90; }
.bh-row, .sync-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 16px; min-height: 56px; }
.bh-row:active, .sync-row:active { background: rgba(0,0,0,.04); }
.bh-fav { width: 32px; height: 32px; border-radius: 9px; background: #eef0f3; color: #7a7f87; display: flex; align-items: center; justify-content: center; flex: none; }
.bh-fav svg { width: 18px; height: 18px; } .bh-fav.star { color: #ff9f0a; background: #fff4e0; }
.bh-row.meta .bh-fav { background: #1d1d1f; color: #ff453a; font-size: 16px; }
.bh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bh-main b { font-size: 14.5px; font-weight: 600; color: #1d1d1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-main small { font-size: 12px; color: #8a8a90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-when { font-size: 11.5px; color: #a0a0a6; flex: none; }
.br-list-screen { background: #fff !important; }
.tabs-screen { background: #f2f3f5 !important; }
.tabs-view { padding: 6px 14px 20px; }
.tv-sec { font-size: 12.5px; font-weight: 700; color: #8a8a90; padding: 10px 4px 8px; }
.tab-card { display: block; width: 100%; text-align: left; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.tc-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; border-bottom: .5px solid #eee; }
.tc-head span { display: flex; width: 16px; height: 16px; color: #888; flex: none; } .tc-head svg { width: 100%; height: 100%; }
.tc-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tc-body { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 7px; }
.tc-src { font-size: 11px; font-weight: 800; color: #2563eb; } .tc-h { font-size: 15px; font-weight: 800; line-height: 1.4; }
.tc-l { height: 7px; border-radius: 4px; background: #eef0f3; } .tc-l.s { width: 60%; }
.tc-foot { padding: 8px 14px 12px; font-size: 11.5px; color: #c2410c; }
.sync-card { margin-top: 18px; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.sync-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: .5px solid #eee; }
.sync-head > span { width: 34px; height: 34px; border-radius: 10px; background: #1d1d1f; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.sync-head svg { width: 20px; height: 20px; }
.sync-head b { display: block; font-size: 15px; } .sync-head small { font-size: 12px; color: #8a8a90; }
.br-sheet-wrap { position: absolute; inset: 0; background: rgba(0,0,0,.3); opacity: 0; transition: opacity .2s; }
.br-sheet-wrap.in { opacity: 1; }
.br-sheet { position: absolute; left: 0; right: 0; top: 0; padding: calc(var(--sb-h) + 6px) 12px 14px; background: #fff; border-radius: 0 0 20px 20px; transform: translateY(-20px); transition: transform .25s; }
.br-sheet-wrap.in .br-sheet { transform: none; }
.bs-row { display: flex; gap: 8px; align-items: center; }
.bs-row .fld { flex: 1; min-height: 42px; border-radius: 21px; background: #f1f2f4; padding: 10px 14px; font-size: 15px; border-color: transparent; }
.bs-row .fld.focus { box-shadow: none; border-color: #0a84ff; }
.bs-x { font-size: 15px; color: #0a84ff; padding: 8px; min-height: 44px; }
.bs-h { font-size: 12.5px; font-weight: 700; color: #8a8a90; margin: 14px 4px 6px; }
.bs-sugg button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 6px; min-height: 44px; font-size: 14.5px; }
.bs-sugg span { width: 18px; height: 18px; display: flex; color: #ff9f0a; } .bs-sugg svg { width: 100%; height: 100%; }
.br-menu-wrap { position: absolute; inset: 0; background: rgba(0,0,0,.3); opacity: 0; transition: opacity .2s; display: flex; align-items: flex-end; }
.br-menu-wrap.in { opacity: 1; }
.br-menu { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 14px calc(var(--safe-bot) + 34px); background: #fff; border-radius: 22px 22px 0 0; transform: translateY(30px); transition: transform .28s cubic-bezier(.2,.9,.3,1); }
.br-menu-wrap.in .br-menu { transform: none; }
.bm-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; border-radius: 14px; min-height: 64px; }
.bm-item:active { background: #f2f3f5; }
.bm-item span { width: 24px; height: 24px; display: flex; color: #333; } .bm-item svg { width: 100%; height: 100%; } .bm-item small { font-size: 12px; color: #444; }
.br-offline { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 80px 30px; text-align: center; color: #555; }
.bo-ic { width: 56px; height: 56px; color: #c5c5ca; display: flex; } .bo-ic svg { width: 100%; height: 100%; }
.br-offline b { font-size: 17px; color: #222; } .br-offline span { font-size: 14px; line-height: 1.5; } .br-offline small { font-size: 11.5px; color: #aaa; font-family: ui-monospace, monospace; margin-top: 6px; }
.srp { padding: 14px 0; }
.srp-q { display: flex; align-items: center; gap: 8px; padding: 4px 18px 12px; font-size: 17px; border-bottom: 1px solid #f0f0f2; }
.srp-note { padding: 30px 24px; text-align: center; color: #8a8a90; font-size: 14px; white-space: pre-line; }
.srp-item { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 14px 18px; border-bottom: .5px solid #f0f0f2; }
.srp-item small { font-size: 12px; color: #1f9d48; } .srp-item b { font-size: 16px; color: #1a0dab; font-weight: 600; line-height: 1.4; } .srp-item span { font-size: 13.5px; color: #555; line-height: 1.5; }
.qa { padding: 16px 16px 24px; }
.qa-badge { display: inline-block; font-size: 11.5px; font-weight: 700; color: #1f9d48; background: #e8f6ed; padding: 3px 9px; border-radius: 10px; }
.qa-q { font-size: calc(17px * var(--ts)); font-weight: 700; line-height: 1.5; margin-top: 10px; }
.qa-q b, .qa-ah b { color: #1f9d48; }
.qa-meta { font-size: 12px; color: #8a8a90; margin: 6px 0 14px; }
.qa-a { border-radius: 16px; background: #f6f7f9; padding: 14px 16px; }
.qa-ah { font-size: 13px; color: #555; margin-bottom: 6px; }
.qa-a p { margin: 8px 0; font-size: calc(15px * var(--ts)); line-height: 1.7; }
.qa-more { font-size: 13px; color: #8a8a90; margin-top: 12px; }
.fac { padding: 0 0 30px; }
.fac-brand { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px; background: #1e3a5f; color: #fff; }
.fac-brand span { font-weight: 800; font-size: 15px; } .fac-brand small { font-size: 12px; opacity: .75; }
.fac-h { padding: 16px 16px 10px; font-size: calc(17px * var(--ts)); font-weight: 800; }
.fac-t { width: calc(100% - 20px); margin: 0 10px; border-collapse: collapse; font-size: 12.5px; line-height: 1.45; }
.fac-t th { background: #f2f4f7; color: #555; font-weight: 700; padding: 8px 6px; text-align: left; border-bottom: 1px solid #dde1e7; white-space: nowrap; }
.fac-t td { padding: 9px 6px; border-bottom: 1px solid #eceff3; vertical-align: top; }
.fac-t td:first-child { white-space: nowrap; color: #666; font-variant-numeric: tabular-nums; }
.fac-t td:nth-child(3) { white-space: nowrap; }
.fac-t b { font-weight: 700; white-space: nowrap; } .fac-t b.ok { color: #1f9d48; } .fac-t b.hold { color: #b7791f; } .fac-t b.bad { color: #d92d20; }
.fac-foot { margin: 16px 14px 0; padding: 12px 14px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 13px; line-height: 1.6; white-space: pre-line; }
.fac-last { margin: 18px 16px 0; min-height: 20px; font-size: 13.5px; color: #b91c1c; font-weight: 600; letter-spacing: -.2px; }
.fac-last:not(.done)::after { content: '▍'; animation: breathe 1s steps(2) infinite; }
.as-box { margin: 4px 14px; padding: 16px; border-radius: 16px; background: #f5f6f8; display: flex; flex-direction: column; gap: 10px; }
.as-box small { font-size: 13px; color: #666; }
.as-box .fld { min-height: 44px; border-radius: 10px; background: #fff; border: 1px solid #dde1e7; padding: 11px 12px; }
.as-go { min-height: 44px; border-radius: 10px; background: #1e3a5f; color: #fff; font-weight: 700; }
.as-err { min-height: 18px; font-size: 13px; color: #d92d20; }
.hs-webstub { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 30px; text-align: center; }
.hsw-logo { width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(160deg,#2c3e50,#0f1b26); color: #4fd1c5; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 10px; }
.hs-webstub b { font-size: 16px; } .hs-webstub small { color: #8a8a90; }
.hs-webstub button { margin-top: 16px; padding: 12px 22px; border-radius: 12px; background: #0f1b26; color: #4fd1c5; font-weight: 700; min-height: 44px; }

/* =========================================================
 * 캘린더
 * ========================================================= */
.cal-screen { background: #fff !important; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 2px; }
.cal-nav b { font-size: 19px; font-weight: 800; }
.cal-nav button { width: 44px; height: 44px; font-size: 26px; color: #ff3b30; display: flex; align-items: center; justify-content: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 4px; }
.cal-dow { text-align: center; font-size: 11.5px; color: #8a8a90; padding: 6px 0; font-weight: 600; }
.cal-dow.sun, .cal-day.sun b { color: #ff3b30; } .cal-dow.sat, .cal-day.sat b { color: #3b82f6; }
.cal-day { min-height: 58px; display: flex; flex-direction: column; align-items: stretch; padding: 4px 2px; font-size: 14px; border-radius: 10px; border-top: .5px solid #f0f0f2; gap: 2px; min-width: 0; }
.cal-day.empty { border-top: .5px solid #f0f0f2; }
.cal-day b { align-self: center; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 500; color: #1d1d1f; }
.cal-day.today b { background: #ff3b30; color: #fff !important; font-weight: 700; }
.cal-day.sel { background: #f3f4f6; }
.cal-bars { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-bars i { display: block; font-style: normal; font-size: 9px; line-height: 1.5; color: #fff; padding: 0 3px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.cal-day small { font-size: 9px; color: #8a8a90; text-align: center; }
.cal-agenda { padding: 12px 14px 20px; border-top: 6px solid #f4f5f7; margin-top: 6px; }
.ca-h { font-weight: 800; font-size: 15px; margin: 2px 2px 10px; }
.ca-empty { color: #a0a0a6; font-size: 14px; padding: 6px 2px; }
.cal-ev { display: flex; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: 14px; background: #f6f6f8; margin-bottom: 8px; min-height: 56px; }
.cal-ev .bar { width: 4px; border-radius: 2px; flex: none; }
.cal-ev .t { font-size: calc(15px * var(--ts)); font-weight: 700; color: #1d1d1f; }
.cal-ev .s { font-size: 12.5px; color: #7a7a80; margin-top: 3px; white-space: pre-wrap; line-height: 1.45; }
.cal-ev.creepy .s { color: #c2410c; }
.cal-list { padding: 4px 14px 20px; }
.cl-m { font-size: 13px; font-weight: 800; color: #ff3b30; padding: 14px 2px 8px; }
.cal-detail { padding: 18px 16px; }
.ce-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ce-top i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.ce-top h3 { margin: 0; font-size: 22px; line-height: 1.35; }
.ce-row { display: flex; gap: 14px; align-items: flex-start; padding: 13px 4px; border-bottom: .5px solid #eee; }
.ce-row > span { width: 22px; height: 22px; display: flex; color: #8a8a90; flex: none; } .ce-row svg { width: 100%; height: 100%; }
.ce-row div { display: flex; flex-direction: column; gap: 2px; } .ce-row b { font-size: 15px; font-weight: 500; } .ce-row small { font-size: 12.5px; color: #8a8a90; }
.ce-row.warn b, .ce-row.warn > span { color: #c2410c; }
.ce-del { margin-top: 24px; width: 100%; min-height: 46px; border-radius: 14px; background: #fdecea; color: #d92d20; font-weight: 700; }

/* =========================================================
 * 시계
 * ========================================================= */
.clk-screen { background: #000 !important; color: #f2f2f2; }
.clk-screen .sv-head { background: #000; }
.clk-tabs { flex: none; display: flex; justify-content: space-around; padding: 6px 0 calc(var(--safe-bot) + 24px); background: #0c0c0e; border-top: .5px solid rgba(255,255,255,.08); }
.clk-tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #77777d; min-width: 80px; min-height: 44px; justify-content: center; }
.clk-tabs button span { display: flex; } .clk-tabs svg { width: 24px; height: 24px; } .clk-tabs small { font-size: 10.5px; }
.clk-tabs button.on { color: #ff9f0a; }
.clk-head { padding: 26px 22px 18px; text-align: center; }
.ch-big { font-size: 21px; font-weight: 600; line-height: 1.4; }
.ch-sub { font-size: 13px; color: #8e8e93; margin-top: 6px; }
.clk-now { font-size: 13px; color: #ff9f0a; margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.clk-list { padding: 0 12px; display: flex; flex-direction: column; gap: 10px; }
.alarm-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-radius: 24px; background: #1c1c1e; transition: background .2s; -webkit-touch-callout: none; }
.alarm-card:active { background: #262629; }
.alarm-card.managed { box-shadow: inset 0 0 0 1px rgba(255,69,58,.22); }
.ac-main { min-width: 0; }
.ac-label { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #c7c7cc; }
.ac-label i { display: flex; width: 13px; height: 13px; color: #ff6961; } .ac-label svg { width: 100%; height: 100%; }
.ac-time { font-size: 46px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -1px; line-height: 1.1; }
.ac-time small { font-size: 17px; margin-right: 5px; letter-spacing: 0; font-weight: 400; }
.ac-rep { font-size: 12.5px; color: #8e8e93; }
.alarm-card.off .ac-time, .alarm-card.off .ac-label, .alarm-card.off .ac-rep { opacity: .42; }
.clk-hint { text-align: center; font-size: 12px; color: #5a5a60; padding: 18px; }
.wt-face { position: relative; width: 180px; height: 180px; margin: 30px auto 14px; border-radius: 50%; background: radial-gradient(circle, #1f1f22 0%, #111 70%); box-shadow: inset 0 0 0 2px #2c2c2e; }
.wt-face i { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 3px; background: #f2f2f2; }
.wt-face .h { width: 5px; height: 46px; margin-left: -2.5px; } .wt-face .m { width: 3.5px; height: 70px; margin-left: -1.75px; } .wt-face .s { width: 1.5px; height: 78px; margin-left: -.75px; background: #ff9f0a; }
.wt-face b { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #ff9f0a; }
.wt-big { text-align: center; font-size: 40px; font-weight: 300; font-variant-numeric: tabular-nums; }
.wt-sec { font-size: 26px; color: #ff9f0a; }
.wt-date { text-align: center; font-size: 14px; color: #8e8e93; margin-top: 4px; }
.wt-net { text-align: center; font-size: 11.5px; color: #5a5a60; margin-top: 4px; }
.wt-zones { margin: 22px 12px 0; border-radius: 22px; background: #1c1c1e; overflow: hidden; }
.wt-z { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: .5px solid rgba(255,255,255,.06); }
.wt-z div { display: flex; flex-direction: column; } .wt-z b { font-size: 17px; font-weight: 500; } .wt-z small { font-size: 12px; color: #8e8e93; }
.wt-z span { font-size: 24px; font-weight: 300; font-variant-numeric: tabular-nums; }
.sw-disp { text-align: center; font-size: 58px; font-weight: 200; font-variant-numeric: tabular-nums; padding: 70px 0 30px; letter-spacing: -1px; }
.sw-btns { display: flex; justify-content: center; gap: 30px; }
.sw-btn { width: 120px; height: 52px; border-radius: 26px; background: #2c2c2e; color: #fff; font-size: 16px; font-weight: 600; }
.sw-btn:disabled { opacity: .4; }
.sw-btn.go { background: #1f3f2a; color: #4cd964; } .sw-btn.go.stop { background: #3f1f1f; color: #ff6961; }
.sw-laps { margin: 26px 16px 0; }
.sw-lap { display: flex; justify-content: space-between; padding: 12px 6px; border-bottom: .5px solid rgba(255,255,255,.08); font-variant-numeric: tabular-nums; color: #c7c7cc; }

/* =========================================================
 * 설정 (One UI-flavored)
 * ========================================================= */
.st-screen { background: #f2f2f5 !important; }
.st-screen .sv-head { background: #f2f2f5; border-bottom: 0; }
.st-rootscr .sv-title { font-size: 19px; }
.st-search { display: flex; align-items: center; gap: 8px; margin: 6px 14px 4px; padding: 0 14px; height: 46px; border-radius: 23px; background: #e6e6ea; color: #8a8a90; }
.st-search > span { width: 19px; height: 19px; display: flex; flex: none; } .st-search > span svg { width: 100%; height: 100%; }
.st-search .fld { flex: 1; min-height: 44px; display: flex; align-items: center; font-size: 15px; color: #111; background: none; border: 0; padding: 0; }
.st-search .fld.focus { box-shadow: none; }
.st-search .fld-ph { left: 0; }
.st-root.hide { display: none; }
.st-results { display: none; } .st-results.in { display: block; }
.st-noresult { text-align: center; color: #8a8a90; padding: 40px 20px; font-size: 14px; }
.st-prof { display: flex; align-items: center; gap: 14px; width: calc(100% - 28px); margin: 10px 14px 4px; padding: 14px 16px; border-radius: 24px; background: #fff; text-align: left; }
.st-prof-av { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(160deg,#f6d7b0,#d79b5b); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.st-prof div { display: flex; flex-direction: column; gap: 2px; } .st-prof b { font-size: 17px; } .st-prof small { font-size: 12.5px; color: #8a8a90; }
.st-group-wrap { margin: 12px 14px 0; }
.st-gh { font-size: 12.5px; font-weight: 700; color: #6b6b72; padding: 8px 8px 6px; }
.st-group { border-radius: 24px; background: #fff; overflow: hidden; }
.st-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; min-height: 58px; text-align: left; position: relative; transition: background .4s; }
.st-row + .st-row::before, .st-group > * + .st-row::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; border-top: .5px solid #ececf0; }
.st-row:active:not(:disabled) { background: #f4f4f6; }
.st-row:disabled { opacity: .45; }
.st-row.hl { background: #fff4d6; }
.st-ic { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.st-ic svg { width: 19px; height: 19px; }
.st-ic.big { width: 64px; height: 64px; } .st-ic.big svg { width: 34px; height: 34px; }
.st-appic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.st-appic svg { width: 64%; height: 64%; }
.st-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-t { font-size: calc(15.5px * var(--ts)); color: #111; font-weight: 500; }
.st-s { font-size: calc(12.5px * var(--ts)); color: #3478f6; line-height: 1.4; }
.st-row.warn .st-s, .st-row.warn .st-meta { color: #c2410c; }
.st-row.danger .st-t { color: #e5483a; }
.st-meta { font-size: 13px; color: #8a8a90; flex: none; text-align: right; max-width: 55%; }
.st-chev { width: 16px; height: 16px; color: #c4c4c8; flex: none; display: flex; } .st-chev svg { width: 100%; height: 100%; }
.st-foot { padding: 12px 22px 4px; font-size: 12.5px; color: #8a8a90; line-height: 1.55; }
.st-subh { padding: 10px 16px 0; font-size: 13px; color: #555; }
.st-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px 6px; text-align: center; }
.st-hero b { font-size: 19px; } .st-hero small { font-size: 13px; color: #8a8a90; }
.st-hero .st-appic { width: 64px; height: 64px; border-radius: 18px; }
.st-slrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 58px; font-size: 15px; }
.st-slrow > span { flex: none; min-width: 42px; }
.st-slrow.bal > span { font-size: 12.5px; color: #8a8a90; min-width: 0; }
.slider { position: relative; flex: 1; height: 30px; display: flex; align-items: center; cursor: pointer; }
.sl-track { position: relative; width: 100%; height: 6px; border-radius: 3px; background: #dcdce1; overflow: hidden; }
.sl-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #3478f6; }
.sl-knob { position: absolute; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.3); transition: transform .15s; }
.slider.drag .sl-knob { transform: scale(1.15); }
.st-segrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; min-height: 56px; font-size: 15px; }
.st-screen .seg { display: flex; border-radius: 10px; background: #ececf0; padding: 2px; border: 0; }
.st-screen .seg button { padding: 8px 12px; border-radius: 8px; font-size: 13px; color: #555; min-height: 36px; background: none; }
.st-screen .seg button.on { background: #fff; color: #111; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ts-box { padding: 14px 16px 16px; }
.ts-prev { padding: 14px; border-radius: 14px; background: #f4f4f6; font-size: calc(15px * var(--ts)); margin-bottom: 12px; transition: font-size .2s; }
.ts-seg { display: flex; justify-content: space-between; gap: 6px; }
.ts-seg button { flex: 1; min-height: 56px; border-radius: 14px; background: #f4f4f6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; color: #333; }
.ts-seg button small { font-size: 11px; font-weight: 500; color: #8a8a90; }
.ts-seg button.on { background: #3478f6; color: #fff; } .ts-seg button.on small { color: #dbe7ff; }
.wf-r { display: flex; align-items: center; gap: 6px; color: #8a8a90; }
.wf-r i { display: flex; width: 13px; height: 13px; } .wf-r i svg { width: 100%; height: 100%; }
.wf-bars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 13px; }
.wf-bars i { width: 3px; background: #d0d0d5; border-radius: 1px; } .wf-bars i.on { background: #3478f6; }
.wf-bars i:nth-child(1){height:4px}.wf-bars i:nth-child(2){height:7px}.wf-bars i:nth-child(3){height:10px}.wf-bars i:nth-child(4){height:13px}
/* 화면 공유 */
.cast-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 20px 10px; text-align: center; }
.ch-ring { width: 84px; height: 84px; border-radius: 50%; background: #c7c7cc; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.ch-ring svg { width: 44px; height: 44px; }
.ch-ring.on { background: #ff9f0a; animation: castPulse 2s infinite; }
@keyframes castPulse { 0% { box-shadow: 0 0 0 0 rgba(255,159,10,.45); } 100% { box-shadow: 0 0 0 22px rgba(255,159,10,0); } }
.cast-hero b { font-size: 19px; } .cast-hero small { font-size: 13px; color: #8a8a90; line-height: 1.5; }
.cast-card { margin: 0 14px; border-radius: 24px; background: #fff; padding: 16px; }
.csc-top { display: flex; align-items: center; gap: 12px; }
.csc-ic { width: 42px; height: 42px; border-radius: 50%; background: #8e8e93; display: flex; align-items: center; justify-content: center; flex: none; }
.cast-card.on .csc-ic { background: #ff9f0a; }
.csc-ic svg { width: 22px; height: 22px; }
.csc-top b { display: block; font-size: 16px; } .csc-top small { font-size: 12.5px; color: #8a8a90; }
.cast-card.on .csc-top small { color: #ff9f0a; font-weight: 600; }
.csc-rows { margin: 14px 0 4px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.csc-rows div { display: flex; justify-content: space-between; } .csc-rows span { color: #8a8a90; } .csc-rows b { font-weight: 600; font-variant-numeric: tabular-nums; }
.csc-cut { margin-top: 14px; width: 100%; min-height: 48px; border-radius: 16px; background: #fdecea; color: #d92d20; font-size: 15.5px; font-weight: 700; }
.csc-cut:active { background: #f9d6d2; }
.csc-off { margin-top: 12px; font-size: 13px; color: #8a8a90; }
/* 알림 기록 */
.nh-head { margin: 8px 14px 0; padding: 16px; border-radius: 24px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.nh-head b { font-size: 17px; } .nh-head > span { font-size: 12.5px; color: #8a8a90; }
.nh-on { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: .5px solid #ececf0; font-size: 15px; font-weight: 600; color: #3478f6; }
.nh-list { padding: 4px 14px 10px; }
.nh-list .st-gh { padding: 14px 8px 6px; }
.nh-item { background: #fff; border-radius: 20px; padding: 12px 14px; margin-bottom: 8px; position: relative; overflow: hidden; }
.nh-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8a8a90; }
.nh-top .st-appic { width: 22px; height: 22px; border-radius: 6px; }
.nh-app { flex: 1; } .nh-t { font-variant-numeric: tabular-nums; }
.nh-title { font-size: 14.5px; font-weight: 700; margin-top: 6px; color: #111; }
.nh-body { font-size: calc(14px * var(--ts)); color: #333; line-height: 1.45; margin-top: 1px; }
.nh-item.sus .nh-body { color: #9a3412; }
.nh-item.slip { box-shadow: inset 0 0 0 1px rgba(229,72,58,.25); cursor: pointer; }
.nh-del { font-size: 11.5px; color: #e5483a; margin-top: 4px; }
.nh-img { height: 0; margin-top: 0; border-radius: 12px; background: #222 center/cover no-repeat; transition: height .35s cubic-bezier(.2,.9,.3,1), margin .35s; }
.nh-item.slip .nh-img { height: 74px; margin-top: 8px; filter: blur(1.5px) brightness(.8); }
.nh-item.slip.open .nh-img { height: 240px; filter: none; }
.nh-more { font-size: 11.5px; color: #8a8a90; margin-top: 6px; text-align: right; }
.nh-item.open .nh-more { display: none; }
/* 배터리 */
.bt-hero { margin: 10px 14px 0; padding: 22px 18px 18px; border-radius: 24px; background: #fff; text-align: center; }
.bt-big { font-size: 54px; font-weight: 300; line-height: 1; color: #e5483a; } .bt-big small { font-size: 22px; }
.bt-bar { height: 10px; border-radius: 5px; background: #ececf0; margin: 14px 20px 10px; overflow: hidden; } .bt-bar i { display: block; height: 100%; background: #e5483a; border-radius: 5px; }
.bt-hero small { font-size: 12.5px; color: #8a8a90; }
.bt-row { padding: 12px 16px; position: relative; }
.bt-row + .bt-row::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; border-top: .5px solid #ececf0; }
.bt-rt { display: flex; justify-content: space-between; font-size: 14px; } .bt-rt b { font-weight: 500; } .bt-rt span { color: #8a8a90; }
.bt-rb { height: 5px; border-radius: 3px; background: #f0f0f3; margin-top: 7px; overflow: hidden; } .bt-rb i { display: block; height: 100%; background: #30b0c7; border-radius: 3px; }
.bt-row.hot b { color: #c2410c; font-weight: 700; } .bt-row.hot .bt-rb i { background: #ff9f0a; }
/* 저장공간 */
.sg-hero { margin: 10px 14px 0; padding: 18px; border-radius: 24px; background: #fff; }
.sg-used { font-size: 14px; color: #8a8a90; } .sg-used b { font-size: 26px; color: #111; font-weight: 700; }
.sg-bar { display: flex; height: 14px; border-radius: 7px; background: #ececf0; overflow: hidden; margin: 14px 0 12px; gap: 1.5px; }
.sg-bar i { display: block; height: 100%; }
.sg-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #555; }
.sg-legend span { display: flex; align-items: center; gap: 5px; } .sg-legend i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.sg-app, .wb-app { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 12px 16px; position: relative; min-height: 60px; }
.sg-app + .sg-app::before, .wb-app + .wb-app::before { content: ''; position: absolute; left: 62px; right: 16px; top: 0; border-top: .5px solid #ececf0; }
.sg-app:active, .wb-app:active { background: #f4f4f6; }
.sg-am, .wb-am { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sg-at, .wb-at { display: flex; justify-content: space-between; font-size: 14.5px; } .sg-at b, .wb-at b { font-weight: 600; } .sg-at span, .wb-at span { color: #555; font-variant-numeric: tabular-nums; }
.sg-ab, .wb-ab { height: 5px; border-radius: 3px; background: #f0f0f3; overflow: hidden; } .sg-ab i, .wb-ab i { display: block; height: 100%; background: #b8bcc6; border-radius: 3px; }
.sg-am small { font-size: 12px; color: #8a8a90; }
.sg-app.hot .sg-ab i, .wb-app.hot .wb-ab i { background: #ff9f0a; }
.sg-app.hot .sg-at span, .sg-app.hot small, .wb-app.hot .wb-at span { color: #c2410c; font-weight: 700; }
/* 디지털 웰빙 */
.wb-hero { margin: 10px 14px 0; padding: 18px 18px 14px; border-radius: 24px; background: #fff; }
.wb-hero > small { font-size: 12.5px; color: #8a8a90; } .wb-hero > b { display: block; font-size: 28px; font-weight: 700; margin: 2px 0 12px; }
.wb-week { display: flex; justify-content: space-between; align-items: flex-end; height: 120px; gap: 8px; }
.wb-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.wb-bar { flex: 1; width: 100%; max-width: 24px; display: flex; align-items: flex-end; }
.wb-bar i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: #c3dafe; }
.wb-col.today .wb-bar i { background: #3478f6; }
.wb-col small { font-size: 11px; color: #8a8a90; }
.wb-top { margin: 10px 14px 0; padding: 14px 18px; border-radius: 20px; background: #fff7ec; display: flex; flex-direction: column; gap: 2px; }
.wb-top small { font-size: 12px; color: #9a6a20; } .wb-top b { font-size: 16px; color: #7a3d00; }
.wb-card { margin: 12px 14px 0; padding: 16px 16px 12px; border-radius: 24px; background: #fff; }
.wb-ct { font-size: 13px; font-weight: 700; color: #555; margin-bottom: 12px; }
.wb-hours { display: flex; align-items: flex-end; gap: 2px; height: 130px; padding-bottom: 18px; position: relative; border-bottom: .5px solid #e6e6ea; }
.wb-h { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.wb-h i { display: block; width: 100%; border-radius: 3px 3px 1px 1px; background: #e3e4e8; }
.wb-h.on i { background: #ff9f0a; }
.wb-h small { position: absolute; bottom: -17px; left: 0; font-size: 9.5px; color: #8a8a90; white-space: nowrap; }
.wb-cap { font-size: 12.5px; color: #c2410c; margin-top: 12px; font-weight: 600; }
.ab-phone { width: 52px; height: 92px; border-radius: 12px; background: linear-gradient(160deg,#3a3a40,#121214); box-shadow: inset 0 0 0 3px #555, 0 8px 18px rgba(0,0,0,.2); margin-bottom: 6px; }
