/* 우림교회 관리자 — 괴정제일교회 관리자와 같은 화면 구성(왼쪽 메뉴 · 위 막대 · 대시보드 · 목록 · 한 화면 편집기)에
   우림교회 색(로고 자주 #80276c · 자주빛 먹색 #2a2230 · 금빛 #b48d58 · 장밋빛 흰 바탕 #fbf8f7)을 입혔다.
   CSP(style-src 'self') 때문에 HTML 의 style 속성을 쓰지 않는다. 늦게 들어오는 정도(--d)는 자바스크립트가 넣는다. */
@font-face { font-family: "SUIT"; src: url("/assets/fonts/SUIT-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Urim Admin Serif"; src: url("/admin/fonts/urim-admin-serif-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Urim Admin Latin"; src: url("/admin/fonts/cormorant-garamond-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+00B7; }

:root {
  --paper: #fbf8f7; --paper-2: #f4ecef; --card: #ffffff;
  --ink: #2a2230; --ink-2: #5c5163; --ink-3: #8b8090;
  --line: #efe5e9; --line-2: #e1d3db;
  --plum: #80276c; --plum-2: #a85a9b; --plum-deep: #5e2052; --plum-soft: #f6eaf3;
  --gold: #b48d58; --gold-soft: #ecd6a6;
  --lilac: #eedbea; --blush: #f6dcd6; --butter: #f5ead0; --sage: #dfe9df;
  --ok: #3f7a5a; --ok-soft: #e7f2ea; --err: #b5485b; --err-soft: #fbecee; --warn: #9a6a1e;
  --f-display: "Urim Admin Serif", "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
  --f-body: "SUIT", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-latin: "Urim Admin Latin", "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-back: cubic-bezier(.2, 1.35, .3, 1);
  --sh-1: 0 1px 2px rgba(94, 32, 82, .04), 0 10px 28px -18px rgba(94, 32, 82, .24);
  --sh-2: 0 30px 70px -30px rgba(94, 32, 82, .42);
  --side: 264px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
code { font-family: ui-monospace, Consolas, monospace; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--ink-3); font-size: .9rem; }
.num { font-variant-numeric: tabular-nums; }
kbd { font: 600 .68rem var(--f-body); padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .18); opacity: .85; letter-spacing: .02em; }

@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { transform: scale(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fl { 50% { transform: translate(30px, -24px) scale(1.06); } }
@keyframes glow { from { box-shadow: 0 0 0 2px var(--gold), 0 0 0 8px rgba(180, 141, 88, .18); } }
[data-reveal] { animation: enter .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 60ms); }

/* 불러오는 중 */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--ink-3); font-size: .92rem; }
.boot__mark { width: 40px; height: 54px; color: var(--plum); animation: enter .8s var(--ease) both; }

/* ===== 버튼 ===== */
.btn, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: .95rem; white-space: nowrap; cursor: pointer; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s, opacity .3s; }
.btn { background: var(--plum-deep); border-color: var(--plum-deep); color: #fff; box-shadow: 0 10px 22px -14px rgba(94, 32, 82, .85); }
.btn:hover { background: var(--plum); border-color: var(--plum); }
.btn-ghost:hover { border-color: var(--plum-2); color: var(--plum); }
.btn:active, .btn-ghost:active { transform: scale(.97); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }
.btn.danger { background: var(--err); border-color: var(--err); box-shadow: 0 10px 22px -14px rgba(181, 72, 91, .8); }
.btn.danger:hover { background: #9c3a4c; border-color: #9c3a4c; }
.btn-ghost--plain { border-color: transparent; background: transparent; }
.btn-ghost--plain:hover { border-color: transparent; background: rgba(128, 39, 108, .07); }
.btn-ghost.danger:hover, .btn-ghost--dangertext:hover { color: var(--err); border-color: transparent; background: var(--err-soft); }
.btn-ghost.sm { height: 34px; padding: 0 12px; font-size: .86rem; border-radius: 10px; }
.btn--block { width: 100%; height: 50px; }
.btn.is-busy .ic { animation: spin .8s linear infinite; }
.ibtn { position: relative; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ink-3); transition: background .3s, color .3s; }
.ibtn:hover { background: var(--paper-2); color: var(--plum); }
.ibtn--danger:hover { background: var(--err-soft); color: var(--err); }
.link, .link-btn { color: var(--plum); font-weight: 600; font-size: .9rem; }
.link-btn { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .82rem; }
.more { display: flex; margin: 18px auto 0; }

/* ===== 로그인 · 첫 비밀번호 · 설정 전 ===== */
.login__bg { display: none; }
body[data-v="login"] .login__bg, body[data-v="change"] .login__bg, body[data-v="setup"] .login__bg { display: block; }
.login__bg span { position: fixed; border-radius: 50%; filter: blur(60px); opacity: .85; animation: fl 16s ease-in-out infinite; pointer-events: none; }
.login__bg span:nth-child(1) { width: 520px; height: 520px; left: -140px; top: -160px; background: var(--lilac); }
.login__bg span:nth-child(2) { width: 480px; height: 480px; right: -140px; bottom: -140px; background: var(--blush); animation-delay: -5s; }
.login__bg span:nth-child(3) { width: 360px; height: 360px; left: 40%; top: 50%; background: var(--butter); animation-delay: -9s; }
.login { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 24px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px); }
.login__box { position: relative; width: min(400px, 100%); padding: 40px 34px 30px; border-radius: 28px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--sh-2); display: flex; flex-direction: column; gap: 14px; animation: enter .8s var(--ease); }
.login__box--wide { width: min(440px, 100%); }
.login__mark { width: 46px; height: 62px; color: var(--plum); margin: 0 auto; }
.login__en { text-align: center; font-family: var(--f-latin); font-style: italic; color: var(--plum-2); font-size: 1.1rem; margin-top: -4px; }
.login__t { text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -.01em; margin-bottom: 2px; }
.login__d { text-align: center; color: var(--ink-2); font-size: .92rem; }
.login .fg, .login .field { display: flex; flex-direction: column; gap: 7px; }
.login label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.login label small { font-weight: 500; color: var(--ink-3); }
.login input { width: 100%; min-width: 0; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; outline: 0; transition: border-color .3s, box-shadow .3s; }
.login input:focus { border-color: var(--plum-2); box-shadow: 0 0 0 4px rgba(128, 39, 108, .1); }
.login .btn { margin-top: 4px; }
.login__back { text-align: center; font-size: .88rem; color: var(--ink-3); transition: color .3s; }
.login__back:hover { color: var(--plum); }
.pw-rules { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--paper); font-size: .84rem; color: var(--ink-3); }
.pw-rules li { position: relative; padding-left: 22px; transition: color .25s; }
.pw-rules li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .6; transition: background-color .25s, border-color .25s, transform .3s var(--ease); }
.pw-rules li.is-ok { color: var(--ok); font-weight: 600; }
.pw-rules li.is-ok::before { opacity: 1; background: var(--ok); border-color: var(--ok); transform: scale(1.05); }

/* 비밀번호 보기/숨기기 */
.pw-wrap { position: relative; display: grid; }
.pw-wrap input { width: 100%; padding-right: 92px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 11px; border: 0; border-radius: 10px; background: var(--paper-2); color: var(--plum); font-size: .8rem; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.pw-toggle:hover { background: var(--lilac); }
.pw-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pw-toggle .slash { stroke-dasharray: 23; stroke-dashoffset: 23; transition: stroke-dashoffset .3s var(--ease); }
.pw-toggle[aria-pressed="true"] { background: var(--plum-deep); color: #fff; }
.pw-toggle[aria-pressed="true"] .slash { stroke-dashoffset: 0; }

/* ===== 왼쪽 메뉴 ===== */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 22px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px); overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 40% at 0% 0%, rgba(238, 219, 234, .75), transparent 70%), radial-gradient(100% 30% at 100% 100%, rgba(246, 220, 214, .55), transparent 70%), #fdfbfb; border-right: 1px solid var(--line); transition: transform .5s var(--ease); }
.side__brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; border-radius: 12px; }
.side__mark { width: 30px; height: 40px; color: var(--plum); flex: none; transition: transform .6s var(--ease); }
.side__brand:hover .side__mark { transform: rotate(-6deg) scale(1.05); }
.side__brand b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.side__brand i { font-style: normal; font-size: .78rem; color: var(--ink-3); }
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; transition: background .3s, color .3s, box-shadow .3s; }
.side__nav a:hover { background: rgba(128, 39, 108, .07); color: var(--ink); }
.side__nav a.is-on { background: var(--plum-deep); color: #fff; box-shadow: 0 10px 22px -14px rgba(94, 32, 82, .85); }
.side__nav a.is-on .ic { color: var(--gold-soft); }
.side__nav a b { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-3); font-size: .74rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.side__nav a b:empty { display: none; }
.side__nav a.is-on b { background: rgba(255, 255, 255, .16); color: #fff; }
.side__h { font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); padding: 18px 12px 6px; }
.side__foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); }
.side__foot a, .side__foot button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); width: 100%; text-align: left; transition: background .3s, color .3s; }
.side__foot a:hover, .side__foot button:hover { background: rgba(128, 39, 108, .07); color: var(--ink); }
.side-veil { display: none; }

/* ===== 위 막대 ===== */
.shell { margin-left: var(--side); min-height: 100vh; min-width: 0; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: calc(env(safe-area-inset-top, 0px) + 18px) 36px 18px; background: rgba(251, 248, 247, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-stuck { border-bottom-color: var(--line); }
.top__menu { display: none; width: 42px; height: 42px; border-radius: 12px; place-items: center; flex: none; }
.top__menu:hover { background: rgba(128, 39, 108, .07); }
.top__t { flex: 1; min-width: 0; }
.top__sub { font-size: .84rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__sub a { transition: color .3s; }
.top__sub a:hover { color: var(--plum); }
.top h1 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__act { display: flex; gap: 8px; flex: none; }
.top__user { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(var(--lilac), var(--blush)); color: var(--plum-deep); font-family: var(--f-display); font-weight: 700; }
.work { padding: 8px 36px 120px; max-width: 1240px; outline: none; min-width: 0; }
.panel.is-in { animation: enter .5s var(--ease); }

/* ===== 카드 · 안내 ===== */
.card { background: #fff; border-radius: 20px; box-shadow: var(--sh-1); padding: 26px; border: 1px solid rgba(239, 229, 233, .8); min-width: 0; }
.card + .card { margin-top: 18px; }
.card__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card__h h2 { font-size: 1.08rem; font-weight: 700; }
.card__f { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.card--form { max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.intro, .panel-lead { color: var(--ink-2); margin-bottom: 18px; max-width: 72ch; }
.panel-lead b { color: var(--ink); }
.panel-lead code { padding: 1px 6px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: .84rem; color: var(--plum-deep); white-space: nowrap; }
.note { padding: 12px 16px; border-radius: 12px; font-size: .9rem; }
.note--info { background: #f5efe2; color: var(--warn); }
.form-note { color: var(--ink-3); font-size: .86rem; line-height: 1.6; }
.form-note.note { color: var(--warn); }
.empty-s { color: var(--ink-3); padding: 10px 4px; }
.achip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--paper-2); font-size: .76rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.achip--plum { background: var(--plum-deep); color: #fff; }
.achip--ok { background: var(--ok-soft); color: var(--ok); }
.achip--soft { background: var(--butter); color: var(--warn); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.tag.on { background: var(--plum-soft); color: var(--plum); }
.tag.off { background: var(--paper-2); color: var(--ink-3); }
.tag.pin { background: var(--plum-deep); color: #fff; }

/* ===== 대시보드 ===== */
.hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 30px; border-radius: 24px; margin-bottom: 18px; background: radial-gradient(60% 120% at 0% 0%, var(--lilac), transparent 70%), radial-gradient(60% 120% at 100% 100%, var(--blush), transparent 70%), #fff; box-shadow: var(--sh-1); }
.hello__body { min-width: 0; flex: 1 1 360px; }
.hello__k { font-family: var(--f-latin); font-style: italic; color: var(--plum-2); font-size: 1.08rem; }
.hello__t { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; margin-top: 4px; letter-spacing: -.01em; }
.hello__d { color: var(--ink-2); margin-top: 6px; }
.hello__next { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, .72); color: var(--ink-2); font-size: .9rem; }
.hello__next .ic { color: var(--gold); }
.hello__next b { color: var(--plum-deep); }
.hello__q { display: flex; flex-wrap: wrap; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1); text-align: left; transition: transform .4s var(--ease), box-shadow .4s; min-width: 0; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.stat__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--paper-2); color: var(--plum); margin-bottom: 8px; }
.stat__n { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat__l { font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.stat__s { font-size: .78rem; color: var(--ink-3); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.cols2 .card + .card { margin-top: 0; }
.drows li + li { border-top: 1px solid var(--line); }
.drow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border-radius: 12px; text-align: left; transition: background .25s; min-width: 0; }
.drow:hover { background: var(--paper); }
.drow .th { margin-block: 0; }
.drow__t { flex: 1; min-width: 0; display: grid; }
.drow__t small { color: var(--ink-3); font-size: .8rem; }
.drow__d { flex: none; width: 5.6em; color: var(--plum); font-weight: 600; font-size: .88rem; }
.quick__h { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); margin: 6px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips button { padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line-2); font-size: .88rem; color: var(--ink-2); transition: all .3s var(--ease); }
.chips button:hover { border-color: var(--plum-2); color: var(--plum); transform: translateY(-1px); }

/* ===== 목록 ===== */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.search { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 560px; height: 46px; padding: 0 6px 0 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-3); transition: border-color .3s, box-shadow .3s; min-width: 0; }
.search:focus-within { border-color: var(--plum-2); box-shadow: 0 0 0 4px rgba(128, 39, 108, .1); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); }
.toolbar__n { margin-left: auto; color: var(--ink-3); white-space: nowrap; }
.toolbar__n b { color: var(--ink); font-family: var(--f-display); font-size: 1.15em; font-weight: 700; }
.list-shown { font-size: .86rem; }
.list { background: #fff; border-radius: 20px; box-shadow: var(--sh-1); overflow: hidden; border: 1px solid rgba(239, 229, 233, .8); }
.list:has(> .empty-l) { background: none; box-shadow: none; border: 0; overflow: visible; }
.list__h, .list__r { display: grid; align-items: center; gap: 16px; padding: 0 18px; }
.list--videos .list__h, .list--videos .list__r { grid-template-columns: 84px minmax(0, 1fr) minmax(0, auto) 104px 50px 80px; }
.list--notices .list__h, .list--notices .list__r { grid-template-columns: 96px minmax(0, 1fr) minmax(0, auto) 50px 80px; }
.list__h .lc { font-size: inherit; color: inherit; font-weight: inherit; }
.list__h { height: 44px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); background: var(--paper); border-bottom: 1px solid var(--line); }
.list__r { position: relative; min-height: 66px; border-top: 1px solid var(--line); transition: background .25s, opacity .4s, transform .5s var(--ease), box-shadow .4s; animation: enter .5s var(--ease) both; animation-delay: calc(var(--d, 0) * 30ms); }
.list__h + .list__r { border-top: 0; }
.list__r:hover { background: #fdfafb; }
.list__r.is-hidden .cell-t, .list__r.is-hidden .th { opacity: .55; }
.list__link { position: absolute; inset: 0; z-index: 1; width: 100%; border-radius: 0; cursor: pointer; }
.list__link:focus-visible { outline-offset: -3px; }
.lc { min-width: 0; }
.lc--title { display: grid; overflow: hidden; }
.cell-t { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc--title small { color: var(--ink-3); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc--date { color: var(--ink-2); font-size: .9rem; }
.lc--date em { font-style: normal; font-size: .76rem; display: block; }
.row-date { color: var(--plum); font-weight: 600; }
.lc--act { display: flex; gap: 2px; justify-content: flex-end; }
.lc--pub { position: relative; z-index: 2; display: flex; }
.th { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--paper-2); color: var(--ink-3); margin-block: 8px; }
.th--wide { width: 84px; height: 48px; background: linear-gradient(150deg, #3a2a3c, #241a26); }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th img.is-broken, .yt-preview img.is-broken, .yt__pv img.is-broken { visibility: hidden; }
.pub { position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); transition: background .35s; flex: none; }
.pub i { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); transition: transform .4s var(--ease-back); }
.pub.is-on { background: var(--ok); }
.pub.is-on i { transform: translateX(18px); }
.pub:disabled { opacity: .6; cursor: progress; }
.is-saved { animation: glow 1.6s var(--ease); background: #fffaf2 !important; }
.is-leaving { opacity: 0 !important; transform: translateX(30px); }
.empty-l { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 64px 20px; text-align: center; color: var(--ink-2); background: #fff; border-radius: 20px; box-shadow: var(--sh-1); }
.empty-l > span { display: grid; place-items: center; width: 60px; height: 70px; border-radius: 99px 99px 16px 16px; background: linear-gradient(var(--lilac), var(--blush)); color: var(--plum); }
.empty-l strong { font-size: 1.02rem; }
.empty-l p { color: var(--ink-3); font-size: .92rem; }
.empty-l .btn { margin-top: 6px; }
.media-grid .empty-l, .media-grid .rows-empty { grid-column: 1 / -1; }
.rows-empty:not(.empty-l) { display: grid; justify-items: center; gap: 4px; padding: 44px 20px; border: 1.5px dashed var(--line-2); border-radius: 18px; text-align: center; background: rgba(255, 255, 255, .6); }
.rows-empty:not(.empty-l) span { color: var(--ink-3); font-size: .9rem; }

/* 예배 시간: 주보처럼 세 칸 */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.board .card + .card { margin-top: 0; }
.board-col { padding: 22px 18px 12px; }
.board-col .card__h { padding: 0 6px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.board-col h2 { font-family: var(--f-display); font-size: 1.15rem; }
.slot { position: relative; display: grid; grid-template-columns: 5.4em minmax(0, 1fr) auto auto; align-items: center; gap: 4px 10px; padding: 12px 6px; border-radius: 12px; animation: enter .45s var(--ease) both; animation-delay: calc(var(--d, 0) * 40ms); transition: background .25s; }
.slot + .slot { border-top: 1px solid var(--line); }
.slot:hover { background: var(--paper); }
.slot b { color: var(--plum); font-size: .88rem; font-weight: 700; }
.slot__n { display: grid; font-weight: 600; min-width: 0; }
.slot small { font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.slot.is-off .slot__n, .slot.is-off b { opacity: .5; }
.slot .lc--act { gap: 0; }
.board-empty { padding: 14px 6px; }

/* ===== 편집기 ===== */
.editor { display: flex; flex-direction: column; gap: 18px; }
.editor__main { padding: 30px; }
.grid { display: flex; flex-direction: column; gap: 20px; }
.fsec { display: flex; align-items: flex-start; gap: 12px; padding-top: 4px; }
.fsec:not(:first-child) { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.fsec__no { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--plum-soft); color: var(--plum); font-family: var(--f-display); font-weight: 700; font-size: .9rem; }
.fsec__t { font-weight: 700; }
.fsec__d { font-size: .86rem; color: var(--ink-3); }
.field { position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-label, fieldset.field > legend { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field > label small, .field-label small, fieldset.field legend small { font-weight: 500; color: var(--ink-3); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea,
.href-pick select, .href-pick input, .link-row > input, .sub-item > input, .item-img-row select {
  width: 100%; min-width: 0; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); outline: 0; font-size: .98rem; transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; line-height: 1.7; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus, .href-pick select:focus, .href-pick input:focus, .link-row > input:focus, .sub-item > input:focus, .item-img-row select:focus { border-color: var(--plum-2); background: #fff; box-shadow: 0 0 0 4px rgba(128, 39, 108, .1); }
.field select, .href-pick select, .item-img-row select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.sel { position: relative; display: block; }
.sel select { width: 100%; background-image: none !important; }
.sel .ic { position: absolute; right: 12px; top: 50%; margin-top: -9px; pointer-events: none; color: var(--ink-3); }
.sel--sm { display: inline-block; flex: none; }
.sel--sm select { height: 46px; padding: 0 38px 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; appearance: none; -webkit-appearance: none; cursor: pointer; outline: 0; }
.sel--sm select:focus { border-color: var(--plum-2); box-shadow: 0 0 0 4px rgba(128, 39, 108, .1); }
.href-pick input { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
[aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 4px rgba(181, 72, 91, .1) !important; }
.field-msg, .form-error { color: var(--err); font-size: .82rem; font-weight: 600; animation: enter .4s var(--ease); }
.field-msg:empty, .form-error:empty { display: none; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 18px; }
.field-row--title { grid-template-columns: minmax(0, 1fr) 220px; }
.field .count { align-self: flex-end; margin-top: -3px; color: var(--ink-3); font-size: .74rem; font-variant-numeric: tabular-nums; }
.field .count.near { color: var(--err); font-weight: 600; }
.yt { display: flex; gap: 12px; align-items: stretch; }
.yt input { flex: 1; }
.yt__pv { flex: none; width: 112px; border-radius: 10px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-3); aspect-ratio: 16 / 9; }
.yt__pv img { width: 100%; height: 100%; object-fit: cover; animation: enter .5s var(--ease); }
.yt-preview { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--plum-soft); animation: enter .4s var(--ease) both; }
.yt-preview img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; background: #241a26; }
.yt-preview span { font-size: .9rem; color: var(--ink-2); }
/* 켜고 끄기: 체크 칸 자체를 스위치 모양으로 */
.checks { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.check, .tgl { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.check input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; margin: 0; border-radius: 99px; cursor: pointer;
  background: var(--line-2) radial-gradient(circle at 13px 50%, #fff 9px, transparent 9.5px) no-repeat 0 0 / 100% 100%; transition: background-color .35s, background-position .4s var(--ease-back); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .02); }
.check input[type="checkbox"]:checked { background-color: var(--ok); background-position: 20px 0; }
.check input[type="checkbox"]:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.tgl__l { display: grid; line-height: 1.4; }
.tgl__l small { font-weight: 500; font-size: .8rem; color: var(--ink-3); }
.editor__bar { position: sticky; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--sh-2); border: 1px solid var(--line); }
.editor__state { flex: 1 1 160px; min-width: 0; font-size: .86rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor__state.is-dirty { color: var(--warn); }
.editor__state.is-dirty::before { content: "● "; }
.editor__bar .btn { margin-left: auto; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ===== 홈 화면 · 쪽별 내용 ===== */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.group-jump { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 78px); z-index: 10; margin: 0 -36px 18px; padding: 8px 36px 10px; background: linear-gradient(var(--paper) 72%, rgba(251, 248, 247, 0)); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.group-jump::-webkit-scrollbar { display: none; }
.jump-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: .92rem; white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s; }
.jump-chip:hover { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.jump-chip[aria-current] { background: var(--plum-deep); color: #fff; box-shadow: 0 10px 22px -14px rgba(94, 32, 82, .85); }
.jump-chip b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--gold-soft); color: var(--plum-deep); font-size: .72rem; }
.jump-chip[aria-current] b { background: rgba(255, 255, 255, .2); color: #fff; }
.cgroups { display: grid; gap: 18px; }
.cgroup { max-width: 900px; scroll-margin-top: 150px; transition: box-shadow .4s; }
.cgroup.card + .card { margin-top: 0; }
.cgroup.is-dirty { box-shadow: 0 0 0 1.5px var(--gold), var(--sh-1); }
.cgroup.is-saved { animation: glow 1.6s var(--ease); }
.cgroup-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.cgroup-head h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; outline: none; margin-right: auto; }
.cgroup-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; margin: 18px 0 6px; }
.cgroup-fields > .img-field, .cgroup-fields > .links-field, .cgroup-fields > .list-field, .cgroup-fields > .field:has(textarea) { grid-column: 1 / -1; }
.cgroup .form-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cgroup .form-foot .btn { order: 9; margin-left: auto; }
.cgroup-note .form-note { margin: 14px 0 6px; }
.dirty-note { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--butter); color: var(--warn); font-size: .76rem; font-weight: 700; }
.was { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .78rem; color: var(--ink-3); }
.was span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.field-label { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.href-pick { display: grid; gap: 6px; min-width: 0; }

/* 켜고 끄기(홈 구역 보이기) */
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 46px; height: 26px; margin: 0; }
.switch-ui { position: relative; flex: none; width: 46px; height: 26px; border-radius: 99px; background: var(--line-2); transition: background-color .35s; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .15); transition: transform .4s var(--ease-back); }
.switch input:checked + .switch-ui { background: var(--ok); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--plum); outline-offset: 2px; }

/* 고르기 단추 줄(사진 초점) */
.seg-row { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; border-radius: 14px; background: var(--paper-2); }
.seg-row label { position: relative; cursor: pointer; }
.seg-row input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg-row span { display: block; padding: 8px 16px; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--ink-3); transition: background-color .25s, color .25s, box-shadow .25s; }
.seg-row input:checked + span { background: #fff; color: var(--plum-deep); box-shadow: 0 2px 6px rgba(94, 32, 82, .14); }
.seg-row input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 1px; }

/* 사진 고르기: 미리보기는 공개 화면 사진 틀과 같은 비율 */
.img-field { display: grid; gap: 12px; }
.img-preview { position: relative; overflow: hidden; border-radius: 16px; background: var(--paper-2); aspect-ratio: 16 / 9; box-shadow: var(--sh-1); }
.img-preview.is-hero { aspect-ratio: 1600 / 829; }
.img-preview.is-community { aspect-ratio: 1200 / 481; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; transition: object-position .5s var(--ease); }
.img-preview[data-pos="top"] img { object-position: 50% 15%; }
.img-preview[data-pos="bottom"] img { object-position: 50% 85%; }
.img-frame-note { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 99px; background: rgba(42, 34, 48, .62); color: #fff; font-size: .74rem; font-weight: 600; }
.img-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.img-choice { position: relative; display: grid; gap: 6px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-size: .76rem; font-weight: 600; line-height: 1.4; color: var(--ink-2); transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.img-choice input { position: absolute; opacity: 0; }
.img-choice img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; background: var(--paper-2); }
.img-choice em { font-style: normal; color: var(--plum); }
.img-choice:has(input:checked) { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum); }
.img-choice:has(input:checked)::after { content: "✓"; position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--plum-deep); color: #fff; font-size: .8rem; animation: pop .4s var(--ease-back); }
.img-choice:has(input:focus-visible) { outline: 2px solid var(--plum); outline-offset: 2px; }
@media (hover: hover) { .img-choice:hover { transform: translateY(-2px); box-shadow: var(--sh-1); } }
.file-btn { position: relative; justify-self: start; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn:focus-within { outline: 2px solid var(--plum); outline-offset: 2px; }
.file-btn.is-busy { pointer-events: none; opacity: .6; }
.file-btn.is-busy::after { content: " 올리는 중…"; }

/* 바로가기 · 목록 항목 · 메뉴 줄 */
.mini-act { display: inline-flex; gap: 4px; justify-self: end; flex: none; }
.icon-sm { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: .95rem; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.icon-sm:hover:not(:disabled) { border-color: var(--plum-2); color: var(--plum); }
.icon-sm.danger:hover:not(:disabled) { border-color: var(--err); color: var(--err); background: var(--err-soft); }
.icon-sm:disabled { opacity: .35; cursor: default; }
.is-moved { animation: glow .9s var(--ease); }
.link-rows, .sub-list { display: grid; gap: 8px; margin-bottom: 10px; }
.link-row, .sub-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: start; gap: 8px; padding: 10px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.link-row > input, .sub-item > input, .link-row .href-pick select, .link-row .href-pick input, .sub-item .href-pick select, .sub-item .href-pick input { background: #fff; }
.item-rows { display: grid; gap: 10px; margin-bottom: 10px; counter-reset: it; }
.item-row { display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.item-row .field input:not([type="file"]), .item-row .field textarea, .item-row .field select { background: #fff; }
.item-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.item-no { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--plum-deep); color: #fff; font-size: .8rem; font-weight: 700; }
.item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.item-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; min-width: 0; }
.item-fields > .field-wide, .item-fields > .item-img { grid-column: 1 / -1; }
.item-img { display: grid; gap: 8px; }
.item-img-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.item-img-row select { flex: 1; }
.item-img-row img { flex: none; width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--paper-2); box-shadow: var(--sh-1); }
.menu-list { display: grid; gap: 14px; margin-bottom: 16px; }
.menu-item { max-width: 980px; display: grid; gap: 12px; transition: box-shadow .4s; }
.menu-item.card + .card { margin-top: 0; }
.menu-item.has-error { box-shadow: 0 0 0 2px var(--err); }
.menu-top { display: grid; gap: 12px; grid-template-columns: auto minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.4fr) auto; align-items: end; }
.menu-no { align-self: end; margin-bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--plum-deep); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: .9rem; }
.menu-top > .mini-act { margin-bottom: 5px; }
.sub-list { margin: 0 0 0 44px; }
.menu-item > .btn-ghost { justify-self: start; margin-left: 44px; }
.sub-none { margin-left: 44px; margin-top: -6px; font-size: .82rem; }
.menu-form .editor__bar { margin-top: 8px; }
.menu-form .editor__bar .btn { margin-left: 0; }
.menu-form .editor__state { flex-basis: 200px; }

/* 사진 */
.upload-card { max-width: 980px; margin-bottom: 26px; }
.upload-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.upload-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.drop__zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; padding: 18px; border-radius: 16px; border: 1.5px dashed var(--line-2); background: var(--paper); color: var(--ink-3); text-align: center; cursor: pointer; transition: all .35s var(--ease); }
.drop__zone .ic { width: 22px; height: 22px; }
.drop__zone b { color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.drop__zone small { font-size: .78rem; }
.drop__zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop__zone:hover, .drop__zone:focus-within { border-color: var(--plum-2); background: var(--plum-soft); color: var(--plum); }
.upload-preview { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--paper); animation: enter .4s var(--ease) both; }
.upload-preview img { border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; }
.upload-preview span { font-size: .82rem; color: var(--ink-3); }
.sub-head { margin: 10px 0 12px; font-size: 1.02rem; font-weight: 700; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 30px; }
.media-card { display: grid; gap: 10px; align-content: start; padding: 10px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1); border: 1px solid rgba(239, 229, 233, .8); animation: enter .5s var(--ease) both; transition: transform .4s var(--ease), box-shadow .4s; }
.media-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.media-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--paper-2); }
.media-meta { display: grid; gap: 4px; justify-items: start; padding: 0 4px; min-width: 0; }
.media-meta strong { font-size: .92rem; }
.media-meta small { color: var(--ink-3); font-size: .78rem; }
.media-meta .tag { height: auto; min-height: 24px; white-space: normal; padding: 3px 9px; }
.media-card .row-act { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px 4px; }

/* ===== 확인창 · 알림 ===== */
.confirm { width: min(420px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: var(--sh-2); }
.confirm[open] { animation: enter .45s var(--ease); }
.confirm::backdrop { background: rgba(42, 34, 48, .4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__t { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; }
.modal__d { color: var(--ink-2); margin-top: 8px; }
.modal__b { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); display: block; width: max-content; max-width: calc(100% - 32px); padding: 13px 20px; border-radius: 14px; background: var(--plum-deep); color: #fff; font-weight: 500; box-shadow: var(--sh-2); opacity: 0; pointer-events: none; transition: opacity .35s, transform .5s var(--ease); }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.bad { background: var(--err); }
.toast a { color: var(--gold-soft); margin-left: 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ===== 반응형 ===== */
@media (max-width: 1180px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols2 { grid-template-columns: minmax(0, 1fr); } .board { grid-template-columns: minmax(0, 1fr); } .board-col { max-width: 760px; } }
@media (max-width: 1100px) { .list--videos .list__h, .list--videos .list__r { grid-template-columns: 84px minmax(0, 1fr) 104px 50px 80px; } .list--videos .lc--chip { display: none; } }
@media (max-width: 900px) {
  .side { transform: translateX(-100%); box-shadow: var(--sh-2); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; }
  body.side-open .side { transform: none; visibility: visible; transition: transform .5s var(--ease); }
  .side-veil { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(42, 34, 48, .35); opacity: 0; pointer-events: none; transition: opacity .4s; }
  body.side-open .side-veil { opacity: 1; pointer-events: auto; }
  body.side-open { overflow: hidden; }
  .shell { margin-left: 0; }
  .top { padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; gap: 10px; }
  .top__menu { display: grid; }
  .top h1 { font-size: 1.28rem; }
  .top__sub { font-size: .76rem; }
  .top__user { display: none; }
  .top__act .btn, .top__act .btn-ghost { width: 42px; padding: 0; }
  .top__act .btn span, .top__act .btn-ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .work { padding: 6px 16px 120px; }
  .group-jump { top: calc(env(safe-area-inset-top, 0px) + 62px); margin: 0 -16px 14px; padding: 6px 16px 10px; }
  .cgroup { scroll-margin-top: 130px; }
  .list__h { display: none; }
  .list .list__r { grid-template-columns: auto minmax(0, 1fr) auto !important; gap: 2px 12px; padding: 10px 12px 10px 14px; }
  .list__r .lc { grid-column: 2; }
  .list__r .lc--ytthumb, .list__r .row-date { grid-column: 1; grid-row: 1 / span 2; }
  .list--notices .list__r .row-date { width: 4.6em; font-size: .84rem; }
  .list__r .lc--pub { grid-column: 3; grid-row: 1; justify-content: flex-end; }
  .list__r .lc--act { grid-column: 3; grid-row: 2; }
  .list__r .lc--chip { display: none; }
  .list--videos .list__r .lc--date { grid-row: 2; font-size: .8rem; color: var(--ink-3); }
  .list--videos .list__r .lc--title small { display: none; }
  .list--notices .list__r .lc--title { grid-row: 1 / span 2; }
  .th--wide { width: 72px; height: 42px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat { padding: 14px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .stat__ic { grid-row: 1 / span 3; margin: 0; }
  .stat__n { font-size: 1.5rem; }
  .hello { padding: 24px 20px; }
  .hello__t { font-size: 1.4rem; }
  .hello__q { width: 100%; }
  .hello__q .btn, .hello__q .btn-ghost { flex: 1 1 auto; }
  .card, .editor__main { padding: 20px 18px; }
  .field-row, .field-row--title, .cgroup-fields, .item-fields, .upload-grid { grid-template-columns: minmax(0, 1fr); }
  .editor__bar { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .editor__state { flex-basis: 100%; order: -1; padding-left: 4px; }
  .editor__bar kbd { display: none; }
  .editor__bar { gap: 4px; padding: 8px 8px 8px 10px; }
  .editor__bar .btn-ghost { width: 42px; padding: 0; }
  .editor__bar .btn-ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-form .editor__bar .btn { margin-left: auto; }
  .menu-top { grid-template-columns: auto minmax(0, 1fr); }
  .menu-top > .field, .menu-top > .mini-act { grid-column: 2; }
  .menu-no { grid-row: 1 / span 4; align-self: start; margin: 26px 0 0; }
  .link-row, .sub-item { grid-template-columns: minmax(0, 1fr); }
  .search { max-width: none; }
  .toolbar__n { margin-left: 0; }
}
@media (max-width: 520px) {
  .sub-list, .menu-item > .btn-ghost, .sub-none { margin-left: 0; }
  .yt__pv { width: 84px; }
  .yt-preview { grid-template-columns: 110px minmax(0, 1fr); }
  .slot { grid-template-columns: 4.8em minmax(0, 1fr) auto; }
  .slot .lc--act { grid-column: 3; }
  .slot .lc--pub { grid-column: 3; grid-row: 1; justify-content: flex-end; }
  .slot b { grid-row: 1 / span 2; }
  .slot .slot__n { grid-row: 1 / span 2; }
  .modal__b { flex-direction: column-reverse; }
  .modal__b > * { width: 100%; }
  .login__box { padding: 32px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; } }
