/* PAGES Photo — 한 장의 스타일. 차례: 바탕 · 틀(왼쪽 메뉴 · 윗줄 · 아래 탭) · 공통 조각(단추 · 칩 · 카드 · 폼 · 창) · 사진 격자 · 보기 창 · 쪽별
 * 폭 기준: 휴대폰 ~767 · 태블릿 768~1099(왼쪽 메뉴는 아이콘만) · 넓은 화면 1100~ */
:root {
  --bg: #f3f6fc; --card: #fff; --ink: #121a33; --sub: #5a6580; --mute: #8b95ab; --line: #e3e8f2; --soft: #eef2fa;
  --pri: #2f6bff; --pri2: #7a5cff; --grad: linear-gradient(135deg, #2f7bff 0%, #6a5cff 100%);
  --ok: #12a561; --warn: #d9822b; --red: #e5484d;
  --side: 208px; --top: 64px; --tabs: 0px; --r: 18px; --r-sm: 12px;
  --sh: 0 6px 24px rgba(28, 48, 104, .08); --sh-sm: 0 2px 10px rgba(28, 48, 104, .07);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 12px); }
html.lock, html.lock body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif; -webkit-font-smoothing: antialiased; padding: var(--top) 0 calc(var(--tabs) + var(--safe-b)) var(--side); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
img, video, canvas { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.ok { color: var(--ok); } .warn { color: var(--warn); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ── 왼쪽 메뉴 ── */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 14px 16px; z-index: 30; overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.logo { display: flex; flex-direction: column; gap: 10px; padding: 4px 10px 18px; }
.logo-mark { width: 62px; height: 62px; }
.logo-t { display: flex; flex-direction: column; line-height: 1.12; }
.logo-t b { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.logo-t b + b { font-weight: 700; }
.logo-t small { margin-top: 6px; color: var(--sub); font-size: 12.5px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 13px; color: #3b4660; font-weight: 600; font-size: 15px; }
.side-nav a .ic { width: 22px; height: 22px; }
.side-nav a:hover { background: var(--soft); }
.side-nav a.on { background: #e5eeff; color: var(--pri); }
.side-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 12px; }
.drivecard { background: var(--card); border-radius: 16px; box-shadow: var(--sh-sm); padding: 12px; }
.dc-link { display: flex; gap: 10px; align-items: center; }
.dc-link > .ic { width: 28px; height: 28px; color: #1a9f58; }
.dc-link b { display: block; font-size: 12.5px; font-weight: 600; color: var(--sub); }
.dc-link small { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; color: var(--ink); }
.dc-link small.ok { color: var(--ink); } .dc-link small.ok .ic { color: #fff; background: var(--ok); border-radius: 50%; padding: 2px; width: 16px; height: 16px; stroke-width: 3; }
.dc-bar { height: 5px; border-radius: 9px; background: var(--soft); margin-top: 10px; overflow: hidden; }
.dc-bar i { display: block; height: 100%; background: var(--grad); border-radius: 9px; }
.dc-num { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); margin-top: 5px; } .dc-num b { color: var(--ink); }
.sidenote { position: relative; display: block; border-radius: 16px; padding: 16px 14px 44px; background: linear-gradient(160deg, #e9f1ff, #f3e9ff 70%, #ffeef3); color: #3d4a78; font-size: 14px; line-height: 1.5; font-weight: 600; box-shadow: var(--sh-sm); overflow: hidden; }
.sidenote .ic { position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; color: #8f7bff; fill: #cfc4ff; }

/* ── 윗줄 ── */
.top { position: fixed; top: 0; left: var(--side); right: 0; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 28px; z-index: 25; background: linear-gradient(rgba(243, 246, 252, .96), rgba(243, 246, 252, .82)); backdrop-filter: blur(10px); }
.top-logo { display: none; align-items: center; gap: 8px; font-size: 17px; letter-spacing: -.02em; }
.top-logo .logo-mark { width: 30px; height: 30px; } .top-logo b { font-weight: 800; } .top-logo i { font-style: normal; font-weight: 600; }
.search { flex: 1; max-width: 580px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 99px; background: var(--card); box-shadow: var(--sh-sm); color: var(--sub); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; }
.search input::-webkit-search-cancel-button { display: none; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ib { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; color: inherit; position: relative; flex: none; }
.ib:hover { background: rgba(120, 140, 190, .14); }
.ib.round { background: var(--card); border-radius: 50%; box-shadow: var(--sh-sm); color: var(--pri); width: 44px; height: 44px; }
.ib .dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: #dfe7fb; color: var(--pri); box-shadow: var(--sh-sm); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; } .avatar.lg { width: 56px; height: 56px; }

/* ── 아래 탭(휴대폰) ── */
.tabs { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); height: calc(58px + var(--safe-b)); }
.tabs a, .tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--mute); }
.tabs .ic { width: 23px; height: 23px; }
.tabs .on { color: var(--pri); }

/* ── 본문 ── */
.main { padding: 8px 28px 48px; max-width: 1480px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 6px 0 16px; }
.pagehead h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.pagehead p { color: var(--sub); font-size: 14px; margin-top: 2px; }
.pagehead .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sec { margin-top: 26px; }
.sec-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sec-h h2 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.sec-h h2 .ic { color: #f5a623; width: 22px; height: 22px; } .sec-h h2 .ic.blue { color: var(--pri); }
.sec-h small { color: var(--mute); font-size: 13px; }
.sec-h .more { margin-left: auto; color: var(--pri); font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-sm); }
.pad { padding: 18px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--sub); font-size: 11.5px; font-weight: 700; }
.badge.blue { background: #e5eeff; color: var(--pri); } .badge.sample { background: #fff3d6; color: #9a6a00; }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: transform .1s, filter .15s; }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(60, 100, 255, .28); }
.btn.line { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.soft { background: #e5eeff; color: var(--pri); }
.btn.red { background: var(--red); color: #fff; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { height: 50px; padding: 0 26px; border-radius: 99px; font-size: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.linkbtn { color: var(--pri); font-weight: 700; font-size: 13.5px; }

/* 칩 */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 13.5px; color: #3b4660; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip i { font-style: normal; font-size: 11.5px; opacity: .65; }
.chip .ic { width: 16px; height: 16px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }

/* 폼 */
.fld { display: grid; gap: 5px; margin-top: 12px; }
.fld > span { font-size: 12.5px; font-weight: 700; color: var(--sub); }
.inp { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font-size: 14.5px; outline: 0; }
.inp:focus { border-color: var(--pri); }
textarea.inp { resize: vertical; line-height: 1.5; }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6580' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9.500 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 32px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .fld { flex: 1; min-width: 120px; margin-top: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { height: 34px; padding: 0 12px; border-radius: 10px; background: var(--soft); font-size: 13px; font-weight: 600; color: #3b4660; }
.seg button.on { background: var(--pri); color: #fff; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw i { width: 46px; height: 27px; border-radius: 99px; background: #cfd6e6; position: relative; transition: background .2s; flex: none; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.sw input:checked + i { background: var(--pri); } .sw input:checked + i::after { transform: translateX(19px); }
.sw input:focus-visible + i { outline: 2px solid var(--pri); outline-offset: 2px; }
.opts { display: grid; gap: 4px; } .opt { padding: 10px 0; display: grid; gap: 8px; } .opt + .opt { border-top: 1px solid var(--line); } .opt b { font-size: 13.5px; }
input[type="range"] { width: 100%; accent-color: var(--pri); }
input[type="color"] { width: 42px; height: 42px; padding: 2px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; }

/* 알림 줄 */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + var(--safe-b) + 22px); transform: translate(-50%, 20px); background: rgba(18, 26, 51, .94); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── 창 — 바탕은 밀리지 않고 창 안의 본문만 민다 ── */
.ov { position: fixed; inset: 0; z-index: 120; background: rgba(14, 20, 40, .5); display: flex; align-items: center; justify-content: center; padding: 20px; overflow: hidden; animation: fade .18s; }
.win { background: var(--card); border-radius: 22px; width: 100%; max-width: 520px; max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(10, 20, 50, .3); overflow: hidden; animation: rise .22s; }
.win.wide { max-width: 860px; } .win.small { max-width: 400px; } .win.tall { height: 100%; }
.win-h { display: flex; align-items: center; gap: 8px; padding: 14px 12px 12px 20px; border-bottom: 1px solid var(--line); flex: none; }
.win-t { flex: 1; font-size: 16.5px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-b { padding: 16px 20px 20px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.win-f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.ask-t { color: #3b4660; font-size: 14.5px; white-space: pre-line; }
.picks { display: grid; gap: 4px; margin-top: 4px; }
.pickrow { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px; border-radius: 13px; }
.pickrow:hover { background: var(--soft); }
.pickrow > .ic { width: 24px; height: 24px; color: var(--pri); }
.pickrow b { display: block; font-size: 14.5px; } .pickrow small { display: block; color: var(--sub); font-size: 12.5px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.menu-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; border-radius: 14px; background: var(--soft); font-size: 12.5px; font-weight: 700; color: #3b4660; text-align: center; }
.menu-grid a .ic { width: 24px; height: 24px; color: var(--pri); } .menu-grid a.on { background: #e5eeff; color: var(--pri); }
.acct { display: flex; gap: 14px; align-items: center; padding-bottom: 12px; } .acct b { display: block; } .acct small { display: block; font-size: 12.5px; color: var(--sub); }
.info { display: grid; gap: 7px; font-size: 14px; } .info > div { display: flex; gap: 12px; } .info dt { flex: none; width: 72px; color: var(--mute); font-weight: 600; } .info dd { min-width: 0; word-break: break-all; } .info a { color: var(--pri); }
.memo { margin-top: 6px; border-top: 1px solid var(--line); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ── 빈 자리 · 안내 ── */
.empty { text-align: center; padding: 44px 20px; color: var(--sub); display: grid; justify-items: center; gap: 6px; }
.empty > .ic { width: 44px; height: 44px; color: #b9c4dc; } .empty b { color: var(--ink); font-size: 16px; } .empty p { font-size: 14px; max-width: 420px; } .empty .btn { margin-top: 10px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff8e6; color: #7a5600; font-size: 13.5px; }
.notice .ic { flex: none; margin-top: 1px; } .notice a, .notice button { font-weight: 800; text-decoration: underline; color: inherit; }
.notice.blue { background: #e9f1ff; color: #23408f; }
.prog { height: 6px; border-radius: 9px; background: var(--soft); overflow: hidden; } .prog i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }

/* ── 사진 격자 ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #dfe5f2; cursor: pointer; display: block; width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ph img.broken, .ph img:not([src]), .tile-img img:not([src]) { visibility: hidden; }
@media (hover: hover) { .ph:hover img { transform: scale(1.04); } }
.ph .tagv, .ph .tagf { position: absolute; top: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); width: 18px; height: 18px; }
.ph .tagv { right: 6px; } .ph .tagf { left: 6px; fill: #ff5d7a; stroke: #ff5d7a; }
.ph .selmark { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .25); display: none; place-items: center; color: #fff; }
.ph .selmark .ic { width: 15px; height: 15px; stroke-width: 3; display: none; }
.selecting .ph .selmark { display: grid; } .selecting .ph .tagf { display: none; }
.ph.sel { outline: 3px solid var(--pri); outline-offset: -3px; } .ph.sel img { transform: scale(.9); border-radius: 8px; } .ph.sel .selmark { background: var(--pri); border-color: var(--pri); } .ph.sel .selmark .ic { display: block; }
.dayh { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; font-weight: 800; font-size: 15px; } .dayh small { color: var(--mute); font-weight: 600; font-size: 12.5px; }
.strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.strip .ph { flex: none; width: 150px; scroll-snap-align: start; border-radius: 14px; }
.strip.tall .ph { width: 190px; aspect-ratio: 4 / 3; }
.selbar { position: fixed; left: calc(var(--side) + 16px); right: 16px; bottom: calc(var(--tabs) + var(--safe-b) + 12px); z-index: 60; background: var(--ink); color: #fff; border-radius: 18px; padding: 10px 12px 10px 18px; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: 760px; margin: 0 auto; }
.selbar b { flex: 1; font-size: 14.5px; } .selbar .btn { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; } .selbar .ib:hover { background: rgba(255, 255, 255, .14); }

/* ── 모음 카드(앨범 · 연도 · 추억) ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); display: flex; flex-direction: column; text-align: left; transition: transform .15s, box-shadow .15s; cursor: pointer; }
@media (hover: hover) { .tile:hover { transform: translateY(-2px); box-shadow: var(--sh); } }
.tile-img { aspect-ratio: 16 / 10; background: #dfe5f2; position: relative; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-img .cnt { position: absolute; right: 8px; top: 8px; padding: 2px 9px; border-radius: 99px; background: rgba(10, 16, 34, .6); color: #fff; font-size: 11.500px; font-weight: 700; }
.tile-img.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; } .tile-img.quad img { aspect-ratio: auto; min-height: 0; }
.tile-b { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; }
.tile-b > .ic { width: 22px; height: 22px; color: var(--pri); }
.tile-b div { flex: 1; min-width: 0; } .tile-b b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tile-b small { color: var(--mute); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--sh-sm); color: var(--pri); flex: none; } .go .ic { width: 15px; height: 15px; stroke-width: 2.4; }

/* ── 보기 창 ── */
.viewer { position: fixed; inset: 0; z-index: 100; background: #05070c; color: #fff; overflow: hidden; outline: 0; user-select: none; -webkit-user-select: none; animation: fade .2s; }
.vstage { position: absolute; inset: 0; touch-action: none; }
.vs { position: absolute; inset: 0; opacity: 0; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.vs.on { opacity: 1; pointer-events: auto; }
.viewer[data-fx="fade"] .vs, .viewer[data-fx="zoom"] .vs { transition: opacity .7s ease; }
.viewer[data-fx="slide"] .vs { transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); transform: translateX(calc(var(--dir, 1) * 9%)); }
.viewer[data-fx="slide"] .vs.on { transform: none; }
.viewer[data-fx="zoom"].playing .vs.on .vm { animation: kb calc(var(--dur, 5s) + 1.5s) ease-out both; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.09); } }
.vbg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(34px) brightness(.45) saturate(1.2); }
.vm { position: relative; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; will-change: transform; }
.viewer.cover .vm { object-fit: cover; }
.viewer.zoomed .vm { transition: none; cursor: grab; }
.vnote { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(0, 0, 0, .55); font-size: 13px; white-space: nowrap; z-index: 2; pointer-events: auto; } .vnote .btn { background: #fff; color: #111; height: 28px; }
.vtop, .vbot { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 4px; padding: 10px 12px; z-index: 5; transition: opacity .3s, transform .3s; }
.vtop { top: 0; padding-top: calc(10px + var(--safe-t)); background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.vbot { bottom: 0; padding: 30px 18px calc(14px + var(--safe-b)); background: linear-gradient(transparent, rgba(0, 0, 0, .65)); align-items: flex-end; gap: 12px; }
.vttl { flex: 1; min-width: 0; padding-left: 4px; } .vttl b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vttl small { font-size: 12px; opacity: .75; }
.viewer .ib:hover { background: rgba(255, 255, 255, .16); } .viewer .ib.on { color: #ff6b87; } .viewer .ib.on .ic { fill: currentColor; } .viewer [data-a="shuffle"].on { color: #7fb0ff; } .viewer [data-a="shuffle"].on .ic { fill: none; }
.vcap { flex: 1; min-width: 0; } .vcap b { display: block; font-size: 17px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); } .vcap span { font-size: 13px; opacity: .85; } .vcap p { font-size: 13.5px; opacity: .9; margin-top: 4px; max-height: 4.5em; overflow: hidden; white-space: pre-line; }
.viewer.noinfo .vcap { visibility: hidden; }
.vctl { display: flex; align-items: center; gap: 6px; flex: none; }
.ib.big { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #111; } .viewer .ib.big:hover { background: #fff; } .ib.big .ic { width: 24px; height: 24px; fill: currentColor; }
.vnav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; z-index: 5; transition: opacity .3s; color: #fff; }
.vnav:hover { background: rgba(255, 255, 255, .28); } .vnav.prev { left: 14px; } .vnav.next { right: 14px; }
.vbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 6; } .vbar i { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, .85); }
.vclock { position: absolute; left: 22px; top: calc(70px + var(--safe-t)); z-index: 4; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); pointer-events: none; } .vclock b { display: block; font-size: clamp(34px, 6vw, 68px); font-weight: 300; line-height: 1; letter-spacing: -.02em; } .vclock span { font-size: clamp(13px, 1.6vw, 18px); opacity: .9; }
.viewer.bare .vtop, .viewer.bare .vnav { opacity: 0; pointer-events: none; } .viewer.bare .vctl { opacity: 0; pointer-events: none; } .viewer.bare .vbot { background: linear-gradient(transparent, rgba(0, 0, 0, .4)); }
.viewer.bare .vclock { top: calc(22px + var(--safe-t)); } .viewer.bare { cursor: none; }
.viewer.frame .vclock b { font-size: clamp(44px, 8vw, 96px); }

/* ── 작은 무대(쪽 안의 자동 감상 칸) ── */
.mini { position: relative; border-radius: 22px; overflow: hidden; background: #0a0f1c; aspect-ratio: 16 / 7; cursor: pointer; color: #fff; box-shadow: var(--sh); }
.ms { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; display: grid; place-items: center; overflow: hidden; } .ms.on { opacity: 1; }
.mbg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(28px) brightness(.5); }
.mimg { position: relative; width: 100%; height: 100%; object-fit: contain; }
.mcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); pointer-events: none; } .mcap b { display: block; font-size: 18px; } .mcap span { font-size: 13px; opacity: .85; }
.mplay { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: #111; font-weight: 800; font-size: 13.5px; } .mplay .ic { fill: currentColor; width: 18px; height: 18px; }
.mdots { position: absolute; left: 20px; top: 16px; display: flex; gap: 5px; } .mdots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .4); } .mdots i.on { background: #fff; width: 18px; border-radius: 9px; }

/* ── 태블릿: 왼쪽 메뉴는 아이콘만 ── */
@media (max-width: 1099.98px) {
  :root { --side: 76px; }
  .side { padding: 16px 10px; align-items: center; }
  .logo { padding: 0 0 12px; } .logo-mark { width: 40px; height: 40px; } .logo-t, .side-foot { display: none; }
  .side-nav a { flex-direction: column; gap: 3px; padding: 9px 2px; width: 60px; font-size: 10.5px; text-align: center; }
  .main, .top { padding-left: 20px; padding-right: 20px; }
}
/* ── 휴대폰: 아래 탭 ── */
@media (max-width: 767.98px) {
  :root { --side: 0px; --top: 54px; --tabs: 58px; }
  body { font-size: 14.5px; }
  .side { display: none; } .tabs { display: flex; }
  .top { padding: 0 12px 0 14px; gap: 8px; } .top-logo { display: flex; } .search { display: none; }
  .ib.round, .avatar { width: 38px; height: 38px; } .top-r { gap: 6px; }
  .main { padding: 6px 14px 32px; }
  .pagehead h1 { font-size: 21px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 3px; } .ph { border-radius: 4px; }
  .strip .ph { width: 118px; border-radius: 12px; } .strip.tall .ph { width: 150px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; } .tile-b { padding: 10px; } .tile-b > .ic { display: none; } .tile-b b { font-size: 14px; }
  .ov { padding: 10px; align-items: flex-end; } .win { border-radius: 20px; max-width: none; } .win.wide, .win.tall { height: 100%; }
  .ov.sheet .win, .ov.ask .win { animation: sheetup .24s; }
  .selbar { left: 10px; right: 10px; } .selbar .btn span { display: none; }
  .vnav { display: none; } .vcap b { font-size: 15.500px; }
  .mini { aspect-ratio: 4 / 3.400; border-radius: 18px; } .mplay span { display: none; } .mplay { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .sec { margin-top: 22px; } .sec-h h2 { font-size: 16.5px; }
}
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }
@media (max-height: 420px) { .win-h { padding-top: 8px; padding-bottom: 8px; } .win-b { padding-top: 10px; padding-bottom: 10px; } .win-f { padding-top: 8px; padding-bottom: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { .side, .top, .tabs, .toast, .selbar { display: none !important; } body { padding: 0; background: #fff; } }

/* ── 홈 ── */
.hero { position: relative; margin: -72px -28px 0 -28px; padding: 150px 56px 150px; min-height: 480px; background: linear-gradient(90deg, rgba(243, 246, 252, .96) 0%, rgba(243, 246, 252, .82) 30%, rgba(243, 246, 252, .1) 62%, rgba(243, 246, 252, 0) 100%), url(/img/hero.webp) center 40% / cover no-repeat; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-t { position: relative; z-index: 1; max-width: 520px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; } .hero h1 b { font-weight: 900; }
.hero-s { font-size: clamp(18px, 2vw, 25px); font-weight: 700; margin-top: 14px; letter-spacing: -.02em; }
.hero-x { color: #3b4660; margin: 16px 0 26px; font-size: 15.500px; }
.today { position: relative; z-index: 1; width: 276px; flex: none; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); box-shadow: var(--sh); }
.td-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .td-h b { font-size: 16px; flex: 1; }
.td-img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #dfe5f2; } .td-img img { width: 100%; height: 100%; object-fit: cover; }
.td-b { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 12px; } .td-b b { display: block; font-size: 15.500px; } .td-b small { color: var(--mute); font-size: 12.500px; }
.td-dots { display: flex; gap: 5px; padding-bottom: 6px; } .td-dots i { width: 6px; height: 6px; border-radius: 50%; background: #cfd6e6; } .td-dots i.on { background: var(--pri); }
.td-nav { position: absolute; top: 46%; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); display: grid; place-items: center; color: var(--pri); } .td-nav .ic { width: 15px; height: 15px; stroke-width: 2.400; } .td-nav.prev { left: -12px; } .td-nav.next { right: -12px; }
.svc { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: -84px; }
.svc a { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 20px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); box-shadow: var(--sh); min-width: 0; transition: transform .15s; }
@media (hover: hover) { .svc a:hover { transform: translateY(-3px); } }
.svc i { width: 54px; height: 54px; border-radius: 16px; flex: none; background-position: center; background-repeat: no-repeat; background-size: 30px, 100% 100%; }
.svc span { min-width: 0; } .svc b { display: block; font-size: 16.500px; letter-spacing: -.01em; } .svc small { display: block; color: var(--sub); font-size: 12.500px; line-height: 1.35; }
.svc .s1 { background-image: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(226, 238, 255, .92)); } .svc .s2 { background-image: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(238, 228, 255, .92)); } .svc .s3 { background-image: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(224, 247, 234, .92)); } .svc .s4 { background-image: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 236, 222, .92)); } .svc .s5 { background-image: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(230, 232, 255, .92)); }
.svc .s1 i { --c: linear-gradient(135deg, #3d8bff, #2f5bff); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.900' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='8.500' cy='9.500' r='1.600'/%3E%3Cpath d='m4 17 5-4.500 3.500 3 3-2.500 4.500 4'/%3E%3C/svg%3E"), var(--c); }
.svc .s2 i { --c: linear-gradient(135deg, #a66bff, #6a4cff); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.900' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.500a8.500 8.500 0 1 0 0 17c1.400 0 2-1 1.600-2.100-.500-1.300.300-2.400 1.700-2.400H17a3.500 3.500 0 0 0 3.500-3.500c0-5-3.800-9-8.500-9z'/%3E%3Ccircle cx='8' cy='11' r='1'/%3E%3Ccircle cx='11' cy='7.500' r='1'/%3E%3Ccircle cx='15.500' cy='8.500' r='1'/%3E%3C/svg%3E"), var(--c); }
.svc .s3 i { --c: linear-gradient(135deg, #27c281, #0e9c5c); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.900' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8V4h10v4'/%3E%3Crect x='3.500' y='8' width='17' height='8.500' rx='2'/%3E%3Cpath d='M7 13.500h10V20H7z'/%3E%3C/svg%3E"), var(--c); }
.svc .s4 i { --c: linear-gradient(135deg, #ff9b3d, #ff6a2b); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8.500 6v12l10-6z'/%3E%3C/svg%3E"), var(--c); }
.svc .s5 i { --c: linear-gradient(135deg, #6f8bff, #4a55f0); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.900' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18.500a4.500 4.500 0 0 1-.600-9A6 6 0 0 1 18 10.500a4 4 0 0 1-.500 8z'/%3E%3Cpath d='M12 16.500v-5M9.800 13.500 12 11.300l2.200 2.200'/%3E%3C/svg%3E"), var(--c); }
.glance { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.glance a { background: var(--card); border-radius: 16px; padding: 12px 16px; box-shadow: var(--sh-sm); min-width: 0; } .glance small { display: block; color: var(--sub); font-size: 12.500px; font-weight: 600; white-space: nowrap; } .glance b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .glance b i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--mute); margin-left: 3px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.col-main { min-width: 0; } .col-side .sec:first-child { margin-top: 26px; }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.six { grid-template-columns: repeat(3, 1fr); gap: 8px; } .grid.six .ph { border-radius: 12px; }
.five h2 { font-size: 16.500px; margin-bottom: 14px; } .five ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; } .five li { display: grid; justify-items: center; gap: 8px; font-size: 12.500px; font-weight: 600; line-height: 1.35; color: #3b4660; }
.five i { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); display: grid; place-items: center; } .five i .ic { width: 26px; height: 26px; }
.five { background: linear-gradient(140deg, #fff, #f1ecff 60%, #ffeef4); }
.reco { position: relative; } .reco-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--sh); display: grid; place-items: center; color: var(--pri); } .reco-nav.prev { left: -10px; } .reco-nav.next { right: -10px; }
.sugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.sug { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--sh-sm); min-width: 0; } .sug > .ic:first-child { width: 26px; height: 26px; color: var(--pri2); } .sug span { flex: 1; min-width: 0; } .sug b { display: block; font-size: 14.500px; } .sug small { display: block; color: var(--sub); font-size: 12.500px; } .sug > .ic:last-child { color: var(--mute); width: 16px; height: 16px; }
.empty.big { padding: 90px 20px; } .empty.big b { font-size: 22px; } .empty.big .btn { margin: 6px 4px 0; }

/* ── 웹앨범 ── */
.stage-wrap { margin-bottom: 14px; }
.tabbar { position: sticky; top: var(--top); z-index: 20; background: linear-gradient(var(--bg) 80%, transparent); padding: 8px 0 10px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
.crumbs { margin: 4px 0 8px; display: grid; gap: 8px; }
.hint { color: var(--sub); font-size: 14px; padding: 4px 0 6px; }
.tile.add .tile-img { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #eef2fa, #eef2fa 12px, #e6ecf8 12px, #e6ecf8 24px); color: var(--pri); } .tile.add .tile-img .ic { width: 34px; height: 34px; }
.srcrow { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); } .srcrow > .ic { width: 24px; height: 24px; color: var(--pri); } .srcrow div { flex: 1; min-width: 0; } .srcrow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.500px; } .srcrow small { color: var(--sub); font-size: 12.500px; }
.spin .ic { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.pk-top { position: sticky; top: -16px; z-index: 3; background: var(--card); padding: 0 0 10px; margin-top: -4px; } .pk-row { margin-top: 8px; flex-wrap: nowrap; } .pk-row .inp { flex: 1; min-width: 0; min-height: 36px; padding: 6px 12px; font-size: 13.500px; }
.pk-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } .pk-more { text-align: center; padding: 14px 0 4px; } .pk-n { margin-right: auto; align-self: center; color: var(--sub); font-size: 13.500px; font-weight: 600; }
.gp-prev { margin-top: 12px; } .gp-prev .grid { grid-template-columns: repeat(6, 1fr); } .dr-path { margin-bottom: 8px; }

@media (max-width: 1279.98px) { .cols { grid-template-columns: 1fr; } .col-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .col-side .sec, .col-side .sec:first-child { margin-top: 22px; } .svc small { display: none; } .svc a { padding: 14px 12px; gap: 10px; } .svc i { width: 44px; height: 44px; background-size: 24px, 100% 100%; } }
@media (max-width: 1099.98px) { .hero { margin: -72px -20px 0; padding: 130px 32px 140px; } .today { width: 236px; } }
@media (max-width: 767.98px) {
  .hero { margin: -60px -14px 0; padding: 92px 20px 84px; min-height: 0; flex-direction: column; background: linear-gradient(180deg, rgba(243, 246, 252, .2) 0%, rgba(243, 246, 252, .72) 34%, rgba(243, 246, 252, .9) 100%), url(/img/hero.webp) 62% top / auto 78% no-repeat, var(--bg); }
  .hero-x { margin: 10px 0 18px; font-size: 14.500px; } .today { width: 100%; } .td-img { aspect-ratio: 16 / 8.500; } .td-nav.prev { left: 6px; } .td-nav.next { right: 6px; }
  .svc { grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: -56px; } .svc a { flex-direction: column; padding: 12px 2px 10px; gap: 7px; border-radius: 16px; text-align: center; } .svc b { font-size: 12px; } .svc i { width: 42px; height: 42px; border-radius: 13px; }
  .glance { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding: 0 14px 4px; } .glance::-webkit-scrollbar { display: none; } .glance b { font-size: 19px; }
  .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .col-side { grid-template-columns: 1fr; gap: 0; }
  .five li { font-size: 11.500px; } .five i { width: 42px; height: 42px; }
  .reco-nav { display: none; } .sugs { grid-template-columns: 1fr; }
  .tabbar { margin: 0 -14px; padding-left: 14px; padding-right: 14px; } .gp-prev .grid { grid-template-columns: repeat(4, 1fr); } .pk-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 사진 제작 · 사진 인화 ── */
.cv { display: block; max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 34px rgba(28, 48, 104, .16); background: #fff; touch-action: pan-y; cursor: pointer; }
.cv.on { touch-action: none; cursor: grab; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; margin-top: 8px; }
.st-stage { position: sticky; top: calc(var(--top) + 14px); display: grid; justify-items: center; gap: 10px; min-width: 0; padding: 18px; border-radius: var(--r); background: repeating-conic-gradient(#e9edf6 0 25%, #f3f6fc 0 50%) 0 0 / 22px 22px; }
.st-stage .cv { max-height: calc(100dvh - var(--top) - 200px); width: auto; }
.st-stage.busy .cv { min-height: 240px; width: 100%; opacity: .5; }
.st-hint { margin: 0; font-size: 12.5px; color: var(--sub); text-align: center; }
.st-panel { padding: 14px 16px 18px; min-width: 0; }
.st-tabs { position: static; margin: 0 0 6px; padding: 0; background: none; }
.st-body { display: grid; gap: 4px; }
.st-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; margin: 6px 0 10px; }
.st-thumbs .ph { aspect-ratio: 1; border-radius: 10px; }
.st-thumbs .ph.sel { outline: 3px solid var(--pri); outline-offset: 1px; }
.st-thumbs .ph.sel .selmark { display: none; }
.st-add { aspect-ratio: 1; border-radius: 10px; background: var(--soft); color: var(--pri); display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); }
.st-tpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.st-tpl .card { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 18px; transition: transform .15s, box-shadow .15s; }
.st-tpl .card i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #efe9ff, #e3eeff); color: var(--pri2); margin-bottom: 6px; }
.st-tpl .card b { font-size: 16px; } .st-tpl .card small { color: var(--sub); font-size: 13px; }
@media (hover: hover) { .st-tpl .card:hover { transform: translateY(-2px); box-shadow: var(--sh); } }
.st-tray { width: 100%; text-align: left; margin-top: 10px; }
.st-proj { display: grid; gap: 8px; }
.st-proj .srcrow { background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--sh-sm); }
.st-text .inp { flex: 1; min-width: 0; }
.st-tx { display: grid; gap: 8px; flex: 1; min-width: 0; }
.rng { display: grid; grid-template-columns: 78px minmax(0, 1fr) 42px; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; padding: 5px 0; }
.rng b { text-align: right; color: var(--sub); font-variant-numeric: tabular-nums; font-weight: 600; }
.rng input { width: 100%; accent-color: var(--pri); height: 28px; margin: 0; }
.swts { display: flex; flex-wrap: wrap; gap: 8px; }
.swt { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(20, 30, 60, .14); display: grid; place-items: center; color: #5a6580; }
.swt.on { outline: 3px solid var(--pri); outline-offset: 2px; }
.swts.sm .swt { width: 30px; height: 30px; border-radius: 50%; }
.posgrid { display: grid; grid-template-columns: repeat(3, 26px); gap: 4px; flex: none; }
.posgrid button { width: 26px; height: 26px; border-radius: 7px; background: var(--soft); }
.posgrid button.on { background: var(--pri); }
.seg button small { font-weight: 500; opacity: .75; margin-left: 3px; }

.print { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; align-items: start; margin-top: 10px; }
.pr-pages { display: grid; gap: 18px; justify-items: center; min-width: 0; padding: 18px; border-radius: var(--r); background: #e6eaf3; }
.pr-page { margin: 0; display: grid; gap: 6px; justify-items: center; width: 100%; max-width: 560px; }
.pr-page .cv { width: auto; max-width: 100%; max-height: 78vh; border-radius: 3px; }
.pr-page figcaption { font-size: 12px; color: var(--sub); }
.pr-pages .empty { padding: 50px 16px; }
.pr-panel { padding: 16px; display: grid; gap: 14px; min-width: 0; position: sticky; top: calc(var(--top) + 14px); max-height: calc(100dvh - var(--top) - 28px); overflow-y: auto; scrollbar-width: thin; }
.pr-out { position: sticky; bottom: -16px; margin: 0 -16px -16px; padding: 4px 16px 16px; background: var(--card); border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
.pr-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pr-btns .btn { padding: 0 8px; }
.pr-info { display: block; }
.pr-kinds .chip .ic { width: 16px; height: 16px; }
.printout { display: none; }
@media print {
  body > *:not(.printout) { display: none !important; }
  .printout { display: block; }
  .printout img { display: block; width: 100vw; height: 100vh; object-fit: contain; page-break-after: always; break-after: page; }
  .printout img:last-child { page-break-after: auto; break-after: auto; }
}
@media (max-width: 1099.98px) {
  .studio, .print { grid-template-columns: minmax(0, 1fr); }
  .st-stage { position: static; }
  .st-stage .cv { max-height: 62dvh; }
  .pr-panel { position: static; max-height: none; overflow: visible; }
  .pr-out { position: static; }
}
@media (max-width: 767.98px) {
  .st-stage { padding: 10px; margin: 0 -4px; }
  .pr-pages { padding: 10px; margin: 0 -4px; }
  .st-tpl { grid-template-columns: 1fr 1fr; gap: 8px; } .st-tpl .card { padding: 14px; }
  .rng { grid-template-columns: 70px minmax(0, 1fr) 38px; }
}

/* 사진 보기 */
.view-body { min-width: 0; }
.sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.setc { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.setc-img { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; background: #dfe5f2; overflow: hidden; }
.setc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.setc-img img:not([src]), .setc-img img.broken, .cal-d img:not([src]), .cal-d img.broken, .oneshot-img img:not([src]) { visibility: hidden; }
.setc-n { position: absolute; right: 8px; top: 8px; padding: 2px 9px; border-radius: 99px; background: rgba(10, 16, 34, .6); color: #fff; font-size: 11.5px; font-weight: 700; font-style: normal; }
.setc-b { display: flex; align-items: center; gap: 10px; padding: 12px 14px 4px; min-width: 0; }
.setc-b > .ic { width: 22px; height: 22px; color: var(--pri); flex: none; }
.setc-b div { min-width: 0; flex: 1; } .setc-b b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setc-b small { display: block; color: var(--mute); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setc-a { display: flex; gap: 8px; padding: 8px 14px 14px; margin-top: auto; } .setc-a .btn { flex: 1; min-width: 0; padding: 0 8px; }
@media (hover: hover) { .setc-img:hover img { transform: scale(1.04); } }
.playset { padding: 6px 18px; }
.playset dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 28px; margin: 0; }
.playset dl > div { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.playset dt { flex: none; width: 92px; color: var(--mute); font-weight: 600; } .playset dd { margin: 0; font-weight: 700; min-width: 0; }
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.howto .card { padding: 16px 18px; } .howto .card > b { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; } .howto .card > b .ic { color: var(--pri); }
.howto li { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--sub); }
.howto li span { flex: none; width: 132px; font-weight: 700; color: var(--ink); }
.howto kbd { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 7px; background: var(--soft); box-shadow: inset 0 -2px 0 var(--line); font: inherit; font-size: 12.5px; font-weight: 700; text-align: center; }
.tl-jump { margin-bottom: 4px; }
.tl-year { margin-top: 22px; scroll-margin-top: calc(var(--top) + 64px); }
.tl-year > header { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.tl-year > header h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .tl-year > header small { color: var(--mute); font-size: 13px; } .tl-year > header .linkbtn { margin-left: auto; }
.tl-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tl-m { display: grid; gap: 1px; position: relative; padding-left: 14px; } .tl-m::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--pri); }
.tl-m b { font-size: 16px; font-weight: 800; } .tl-m small { color: var(--mute); font-size: 12.5px; }
.cal-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.cal-h > b { font-size: 19px; font-weight: 800; min-width: 112px; text-align: center; letter-spacing: -.01em; }
.cal-h .cal-sel { width: auto; min-height: 34px; padding: 5px 34px 5px 10px; font-size: 13px; margin-left: auto; }
.cal { padding: 12px; }
.cal-w, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-w span { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--sub); padding: 4px 0 8px; } .cal-w .sun, .cal-d.sun b { color: #e5484d; } .cal-w .sat, .cal-d.sat b { color: #2f6bff; }
.cal-d { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--soft); overflow: hidden; display: block; min-width: 0; }
.cal-d.off { background: none; }
.cal-d b { position: absolute; left: 7px; top: 5px; font-size: 13px; font-weight: 700; z-index: 1; }
.cal-d img { width: 100%; height: 100%; object-fit: cover; }
.cal-d.has { cursor: pointer; background: #dfe5f2; } .cal-d.has b { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.cal-d.has::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .28), transparent 45%, transparent 60%, rgba(0, 0, 0, .3)); pointer-events: none; }
.cal-d i { position: absolute; right: 5px; bottom: 4px; z-index: 1; padding: 0 6px; border-radius: 99px; background: rgba(10, 16, 34, .62); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; line-height: 17px; }
.cal-d.today { box-shadow: inset 0 0 0 2.5px var(--pri); }
.cal-none { margin-top: 14px; }
.oneshot { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); overflow: hidden; }
.oneshot-img { display: grid; place-items: center; background: #101728; min-height: 280px; max-height: 62vh; overflow: hidden; }
.oneshot-img img { width: 100%; height: 100%; max-height: 62vh; object-fit: contain; }
.oneshot-b { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; min-width: 0; }
.oneshot-b h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; word-break: keep-all; } .oneshot-b p { color: var(--sub); font-size: 14px; } .oneshot-b .row { margin-top: 8px; }
@media (max-width: 1099.98px) { .oneshot { grid-template-columns: 1fr; } .oneshot-b { padding: 18px; } }
@media (max-width: 767.98px) {
  .sets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .setc-b { padding: 10px 10px 2px; } .setc-b > .ic { display: none; } .setc-b b { font-size: 14px; }
  .setc-a { flex-direction: column; gap: 6px; padding: 8px 10px 10px; }
  .playset { padding: 4px 14px; } .playset dt { width: 84px; }
  .howto li span { width: 118px; }
  .tl-row { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 12px 0; } .tl-m { padding-left: 11px; } .tl-m b { font-size: 14.5px; } .tl-m::before { width: 6px; height: 6px; }
  .tl-year > header h2 { font-size: 19px; }
  .cal { padding: 8px 6px; } .cal-w, .cal-g { gap: 2px; } .cal-d { border-radius: 7px; } .cal-d b { left: 4px; top: 2px; font-size: 11.5px; } .cal-d i { right: 3px; bottom: 3px; padding: 0 4px; font-size: 10px; line-height: 15px; }
  .cal-h > b { font-size: 17px; min-width: 96px; } .cal-h .cal-sel { margin-left: 0; flex: 1; min-width: 0; }
  .oneshot-img { min-height: 220px; max-height: 52vh; } .oneshot-img img { max-height: 52vh; } .oneshot-b h2 { font-size: 19px; }
}

/* 사진 관리 */
.manage-body { min-width: 0; }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; }
.num { background: var(--card); border-radius: 16px; padding: 12px 16px; box-shadow: var(--sh-sm); min-width: 0; }
.num small { display: block; color: var(--sub); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .num b i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--mute); margin-left: 3px; }
.dday { flex: none; display: inline-grid; place-items: center; min-width: 52px; height: 30px; padding: 0 10px; border-radius: 99px; background: #e5eeff; color: var(--pri); font-style: normal; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.dday.now { background: var(--pri); color: #fff; } .dday.past { background: var(--soft); color: var(--mute); }
.mico { flex: none; width: 38px; height: 38px; border-radius: 12px; background: #e5eeff; color: var(--pri); display: grid; place-items: center; } .mico .ic { width: 21px; height: 21px; }
.kindb { flex: none; display: inline-grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font-style: normal; font-size: 12px; font-weight: 800; background: var(--soft); color: var(--sub); white-space: nowrap; }
.kindb.trip { background: #e5eeff; color: var(--pri); } .kindb.outing { background: #e6f6ee; color: #12a561; } .kindb.mine { background: #f1ecff; color: #6a4fe0; }
.mcard { padding: 16px 18px; margin-top: 12px; min-width: 0; }
.mcard-h { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.mcard-t { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 240px; } .mcard-t > div { min-width: 0; }
.mcard-t b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard-t small { display: block; color: var(--sub); font-size: 13px; }
.mcard-a { display: flex; gap: 6px; flex-wrap: wrap; }
.mcard-b { margin-top: 12px; min-width: 0; } .mcard-b > .hint { padding: 0; }
.mcard-n { color: var(--mute); font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.mrow { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 14px 16px; margin-top: 12px; }
.mrow > div:first-child { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; min-width: 0; }
.mrow > div:first-child > .ic { flex: none; width: 24px; height: 24px; color: var(--pri); } .mrow span { min-width: 0; }
.mrow b { display: block; font-size: 15px; } .mrow small { display: block; color: var(--sub); font-size: 12.5px; }
.mrow > .prog { flex: 1 1 100%; }
.morebox { display: grid; justify-items: center; margin-top: 16px; }
.gw-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 520px; margin-bottom: 14px; }
.gw-one { display: grid; gap: 2px; text-align: left; min-width: 0; }
.gw-one span { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #dfe5f2; margin-bottom: 4px; }
.gw-one img { width: 100%; height: 100%; object-fit: cover; } .gw-one img:not([src]), .simc img:not([src]), .simc img.broken { visibility: hidden; }
.gw-one b { font-size: 13.5px; } .gw-one small { color: var(--mute); font-size: 12.5px; }
.gw-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.gw-l b { display: block; font-size: 14.5px; font-weight: 800; } .gw-l small { color: var(--mute); font-size: 12.5px; }
.tagcloud { margin: 6px 0 4px; }
.simhead { margin-bottom: 4px; }
.simg { padding: 14px 16px; margin-top: 12px; min-width: 0; }
.simg header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .simg header b { font-size: 15px; } .simg header small { color: var(--mute); font-size: 12.5px; } .simg header span { flex: 1; }
.simg-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; margin-top: 10px; }
.simc { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #dfe5f2; display: block; min-width: 0; }
.simc img { width: 100%; height: 100%; object-fit: cover; }
.simc.best { box-shadow: inset 0 0 0 3px var(--pri); outline: 3px solid var(--pri); outline-offset: -3px; }
.simc em { position: absolute; left: 6px; top: 6px; padding: 1px 8px; border-radius: 99px; background: var(--pri); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; }
.simc i { position: absolute; right: 6px; bottom: 6px; padding: 0 7px; border-radius: 99px; background: rgba(10, 16, 34, .62); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; line-height: 19px; }
.statline { margin-top: 12px; }
.statg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; align-items: start; }
.statc { padding: 16px 18px; min-width: 0; } .statc h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin: 0 0 10px; } .statc h3 .ic { color: var(--pri); }
.bars li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 40px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13.5px; }
.bars span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 12px; border-radius: 99px; background: var(--soft); overflow: hidden; } .bar i { display: block; height: 100%; min-width: 2px; border-radius: 99px; background: var(--grad); }
.bars b { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; } .bars small { color: var(--mute); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.keepopt { padding: 4px 18px 12px; margin-top: 12px; }
.keepopt .sw:first-child { border-top: 0; } .keepopt .sw span b { display: block; font-size: 14.5px; } .keepopt .sw span small { display: block; color: var(--sub); font-size: 12.5px; font-weight: 500; }
.keepq { color: var(--sub); font-size: 13px; padding-top: 10px; border-top: 1px solid var(--line); } .keepq:empty { display: none; }
.keeplist { padding: 2px 16px; } .keeplist .srcrow:first-child { border-top: 0; }
.okmark { color: var(--ok); display: grid; place-items: center; } .okmark .ic { width: 22px; height: 22px; }
.keeptree { padding: 16px 18px; margin-top: 16px; } .keeptree > b { display: flex; align-items: center; gap: 8px; font-size: 15px; } .keeptree > b .ic { color: var(--pri); }
.keeptree ul { margin: 10px 0 8px; } .keeptree li { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--sub); }
.keeptree li span { flex: none; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; } .keeptree small { color: var(--mute); font-size: 12.5px; }
.hidgrid { margin-top: 12px; }
@media (max-width: 1099.98px) { .statg { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) {
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .num { padding: 10px 12px; } .num b { font-size: 19px; }
  .mcard { padding: 14px; } .mcard-t { flex-basis: 100%; } .mcard-t b { font-size: 15px; white-space: normal; }
  .mcard-a .btn { padding: 0 10px; }
  .mrow { padding: 12px 14px; }
  .gw-row { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
  .simg { padding: 12px; } .simg-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } .simg header .btn { flex: 1; }  .simg header span { flex-basis: 100%; height: 0; }
  .statc { padding: 14px; } .bars li { grid-template-columns: 62px minmax(0, 1fr) auto 34px; gap: 8px; font-size: 13px; }
  .keepopt, .keeptree { padding-left: 14px; padding-right: 14px; } .keeplist { padding: 2px 12px; }
}

/* ── 사진 공유 ── */
.sh-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.sh-cell { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--soft); }
.sh-ph { display: block; width: 100%; height: 100%; }
.sh-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-ph img:not([src]) { visibility: hidden; }
.sh-ph .tagv { position: absolute; left: 7px; bottom: 7px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.sh-x { position: absolute; right: 5px; top: 5px; width: 26px; height: 26px; border-radius: 50%; background: rgba(10, 16, 34, .62); color: #fff; display: grid; place-items: center; }
.sh-x .ic { width: 15px; height: 15px; }
.sh-size { padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sh-size b { font-size: 14px; }
.sh-size small { color: var(--sub); font-size: 12.5px; }
.sh-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sh-way { display: flex; align-items: center; gap: 12px; padding: 16px; text-align: left; transition: transform .15s, box-shadow .15s; }
.sh-way > .ic { width: 26px; height: 26px; color: var(--pri); flex: none; }
.sh-way b { display: block; font-size: 14.5px; }
.sh-way small { display: block; color: var(--sub); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.sh-way:disabled { opacity: .5; }
@media (hover: hover) { .sh-way:not(:disabled):hover { transform: translateY(-2px); box-shadow: var(--sh); } }
.sh-links { display: grid; gap: 10px; }
.sh-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.sh-link > .ic { width: 24px; height: 24px; color: var(--pri); flex: none; }
.sh-link-t { min-width: 0; flex: 1; }
.sh-link-t b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-link-t small { color: var(--sub); font-size: 12.5px; }
.sh-link-a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sh-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sh-tip { display: flex; gap: 12px; padding: 14px 16px; }
.sh-tip > .ic { width: 22px; height: 22px; color: var(--pri2); flex: none; margin-top: 2px; }
.sh-tip b { font-size: 14px; }
.sh-tip p { margin: 3px 0 0; color: var(--sub); font-size: 13px; }
.sh-sub { min-height: 1.4em; }
@media (max-width: 1099.98px) { .sh-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .sh-tray { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .sh-cell { border-radius: 11px; }
  .sh-ways, .sh-tips { grid-template-columns: 1fr; gap: 8px; }
  .sh-way { padding: 14px; }
  .sh-link { flex-wrap: wrap; }
  .sh-link-a { width: 100%; justify-content: flex-start; }
}

/* ── 사진 이야기 ── */
.gd-today { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; margin-bottom: 16px; background: linear-gradient(120deg, #eef4ff 0%, #f6efff 100%); }
.gd-today > .ic { width: 34px; height: 34px; color: var(--pri2); flex: none; margin-top: 2px; }
.gd-today small { display: block; color: var(--sub); font-size: 12.5px; font-weight: 700; }
.gd-today b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin: 2px 0 4px; }
.gd-today p { margin: 0; color: #3b4660; font-size: 14.5px; }
.gd-body { margin-top: 14px; }
.gd-lead { margin: 0 0 16px; font-size: 15.5px; color: #3b4660; max-width: 760px; }
.gd-h { margin-top: 26px; }
.gd-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gd-links .btn .ic { width: 14px; height: 14px; }
.gd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gd-card { padding: 18px; display: flex; flex-direction: column; }
.gd-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-card h3 > .ic { width: 22px; height: 22px; color: var(--pri); flex: none; }
.gd-card p { margin: 0; color: #3b4660; font-size: 14px; }
.gd-card ul, .gd-notes { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.gd-card li, .gd-notes li { position: relative; padding-left: 14px; font-size: 13.5px; color: var(--sub); }
.gd-card li::before, .gd-notes li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: #b9c4dc; }
.gd-card .gd-links { margin-top: auto; padding-top: 12px; }
.gd-card.now { box-shadow: 0 0 0 2px var(--pri), var(--sh-sm); }
.gd-m { font-style: normal; color: var(--pri); font-weight: 800; }
.gd-try { display: flex; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--soft); font-size: 13.5px; color: #3b4660; }
.gd-try > .ic { width: 17px; height: 17px; color: var(--pri); flex: none; margin-top: 2px; }
.gd-try b { display: block; font-size: 12px; color: var(--pri); }
.gd-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gd-role { padding: 20px; }
.gd-role > .ic { width: 28px; height: 28px; color: var(--pri2); }
.gd-role b { display: block; font-size: 17px; font-weight: 800; margin: 6px 0 4px; }
.gd-role p { margin: 0; color: #3b4660; font-size: 14px; }
.gd-life { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gd-life li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.gd-life li > i { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-style: normal; font-weight: 800; font-size: 12.5px; display: grid; place-items: center; flex: none; }
.gd-life li > .ic { width: 22px; height: 22px; color: var(--pri); flex: none; }
.gd-life li > div { flex: 1; min-width: 0; }
.gd-life b { font-size: 15px; }
.gd-life p { margin: 0; color: var(--sub); font-size: 13.5px; }
.gd-life .btn { flex: none; }
.gd-life .btn .ic { width: 14px; height: 14px; }
.gd-more { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-table { display: grid; gap: 6px; }
.gd-tr { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr 1fr; gap: 10px; align-items: center; padding: 11px 16px; font-size: 14px; }
.gd-tr.head { padding-top: 0; padding-bottom: 2px; color: var(--mute); font-size: 12.5px; font-weight: 700; }
.gd-tr b { font-size: 14.5px; }
.gd-tr span { color: #3b4660; font-variant-numeric: tabular-nums; }
.gd-notes { margin-top: 18px; }
.gd-find { max-width: 420px; margin-bottom: 14px; }
.gd-find .inp { width: 100%; }
.gd-terms { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gd-term { padding: 13px 16px; }
.gd-term[hidden] { display: none; }
.gd-term dt { font-weight: 800; font-size: 14.5px; }
.gd-term dd { margin: 3px 0 0; color: #3b4660; font-size: 13.5px; }
@media (max-width: 1099.98px) { .gd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .gd-today { padding: 15px 16px; gap: 12px; }
  .gd-today > .ic { width: 28px; height: 28px; }
  .gd-today b { font-size: 17px; }
  .gd-lead { font-size: 14.5px; }
  .gd-cards, .gd-roles, .gd-terms { grid-template-columns: 1fr; gap: 10px; }
  .gd-card, .gd-role { padding: 16px; }
  .gd-life li { flex-wrap: wrap; padding: 12px 14px; }
  .gd-life .btn { margin-left: 36px; }
  .gd-tr.head { display: none; }
  .gd-tr { grid-template-columns: 1fr; gap: 3px; padding: 12px 14px; }
  .gd-tr span { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
  .gd-tr span::before { content: attr(data-l); color: var(--mute); font-size: 12.5px; }
}

/* ── 설정 ── */
.st-grid { display: grid; gap: 16px; max-width: 880px; }
.st-card { padding: 18px 20px 20px; min-width: 0; scroll-margin-top: calc(var(--top) + 12px); }
.st-card .sec-h { margin-bottom: 10px; }
.st-card .sec-h h2 { font-size: 17px; }
.st-card .hint { margin: 0; }
.st-card .opt > div:first-child b { display: block; }
.st-sub { display: block; color: var(--sub); font-size: 12.5px; font-weight: 500; line-height: 1.45; margin-top: 1px; }
.st-card .opts + .sw { margin-top: 6px; }
.st-acts { margin-top: 14px; gap: 8px; }
.st-quota { margin: 2px 0 4px; }
.st-quota-n { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12.5px; color: var(--sub); }
.st-quota-n b { color: var(--ink); }
.st-rows { display: grid; margin-top: 14px; }
.st-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.st-row > .ic { width: 22px; height: 22px; color: var(--pri); flex: none; }
.st-row > div { flex: 1; min-width: 0; }
.st-row b { display: block; font-size: 14.5px; }
.st-row small { display: block; color: var(--sub); font-size: 12.5px; line-height: 1.45; }
.st-row .btn { flex: none; cursor: pointer; }
.st-more { border-top: 1px solid var(--line); padding-top: 12px; }
.st-more summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--pri); }
.st-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.st-list li { display: grid; gap: 1px; }
.st-list b { font-size: 14px; }
.st-list span { color: var(--sub); font-size: 13px; }
.st-nums { display: flex; flex-wrap: wrap; gap: 8px; }
.st-nums span { flex: 1; min-width: 84px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--soft); color: var(--sub); font-size: 12.5px; font-weight: 600; }
.st-nums b { display: block; color: var(--ink); font-size: 19px; font-weight: 800; }
.st-install .hint b { color: var(--ink); }
@media (max-width: 767.98px) {
  .st-grid { gap: 12px; }
  .st-card { padding: 16px 16px 18px; }
  .st-row { flex-wrap: wrap; }
  .st-row > div { flex-basis: calc(100% - 34px); }
  .st-row .btn { margin-left: 34px; }
  .st-nums span { min-width: calc(33.3% - 8px); }
}
