:root {
    color-scheme: dark;
    --bg: #15151d;
    --bg-soft: #1a1a24;
    --surface: #20202b;
    --surface-2: #282735;
    --surface-3: #302c3c;
    --line: #373644;
    --line-soft: #2b2a36;
    --text: #f7f5fb;
    --muted: #a9a6b6;
    --subtle: #777483;
    --brand: #b947ec;
    --brand-light: #d67cff;
    --brand-dark: #71239a;
    --mint: #51d8c2;
    --danger: #ff6e7f;
    --warning: #f4c36b;
    --sidebar: 232px;
    --rail: 300px;
    --player: 94px;
    --radius: 16px;
    --shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); color: var(--text); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 72% -20%, rgba(141, 48, 190, .11), transparent 34%), var(--bg); }
body.sidebar-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
img.is-broken { display: none !important; }
button, input, select, textarea { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid rgba(214, 124, 255, .82); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; left: 18px; top: -80px; padding: 12px 18px; border-radius: 0 0 10px 10px; background: #fff; color: #111; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 0; }

/* App frame */
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); padding-bottom: var(--player); }
.shell.has-right-rail { grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--rail); }
.sidebar { position: fixed; z-index: 40; inset: 0 auto var(--player) 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 20px 14px 14px; border-right: 1px solid var(--line-soft); background: #1b1b25; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #494653 transparent; }
.sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; min-height: 44px; padding: 0 5px var(--player); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 166px; height: auto; }
.sidebar-close { display: none !important; }
.business-chip { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; margin: 20px 0 16px; padding: 12px 11px; border: 1px solid rgba(185,71,236,.35); border-radius: 13px; background: linear-gradient(135deg,rgba(185,71,236,.18),rgba(81,216,194,.07)); }
.business-avatar, .account-avatar { display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg,var(--brand),#7040d4); color: white; font-weight: 900; }
.business-avatar { width: 38px; height: 38px; }
.business-chip small, .business-chip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.business-chip small { margin-bottom: 3px; color: var(--brand-light); font-size: .69rem; font-weight: 800; }
.business-chip strong { font-size: .91rem; }
.business-chip.has-picker { grid-template-columns: 38px minmax(0,1fr); }
.business-context-picker { min-width: 0; }
.business-context-picker > label { display: block; margin-bottom: 3px; color: var(--brand-light); font-size: .69rem; font-weight: 800; }
.business-context-picker select { width: 100%; min-width: 0; padding: 5px 24px 5px 7px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; color: var(--text); background: rgba(14,14,21,.78); font: inherit; font-size: .78rem; }
.business-context-picker select:focus { border-color: var(--brand); outline: 2px solid rgba(185,71,236,.22); outline-offset: 1px; }
.business-context-manage { display: inline-block; margin-top: 6px; color: var(--brand-light); font-size: .7rem; font-weight: 800; text-decoration: none; }
.business-context-manage:hover, .business-context-manage:focus-visible { color: #fff; text-decoration: underline; }
.business-chip-action { color: var(--brand-light); font-size: .74rem; font-weight: 800; text-decoration: none; }
.business-chip-action:hover, .business-chip-action:focus-visible { color: #fff; text-decoration: underline; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(81,216,194,.12); }

.nav { display: grid; gap: 4px; }
.nav a { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 10px; color: var(--muted); font-size: .9rem; font-weight: 720; transition: background .18s,color .18s,transform .18s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.045); transform: translateX(2px); }
.nav a.active { color: #fff; background: linear-gradient(90deg,rgba(185,71,236,.32),rgba(185,71,236,.08)); box-shadow: inset 3px 0 var(--brand); }
.nav-icon { width: 25px; height: 25px; display: grid; place-items: center; color: var(--brand-light); font-size: 1.06rem; }
.admin-label { margin: 17px 10px 5px; color: var(--mint); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.sidebar-library { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.sidebar-section-title { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 9px; font-size: .77rem; }
.sidebar-section-title strong { color: var(--muted); }
.sidebar-section-title span { color: var(--subtle); }
.sidebar-albums { display: grid; gap: 3px; }
.sidebar-album { width: 100%; min-height: 43px; display: grid; grid-template-columns: 34px minmax(0,1fr) 26px; gap: 8px; align-items: center; padding: 4px 5px; border: 0; border-radius: 8px; background: transparent; color: inherit; text-align: left; }
.sidebar-album:not(.is-disabled):hover { background: rgba(255,255,255,.055); }
.sidebar-album.is-disabled { opacity: .62; }
.sidebar-album-cover { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: linear-gradient(135deg,#423055,#18423d); color: var(--brand-light); }
.sidebar-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-album.is-current { background: linear-gradient(90deg,rgba(185,71,236,.2),rgba(81,216,194,.07)); box-shadow: inset 2px 0 var(--brand-light); }
.sidebar-album.is-current .sidebar-album-cover { border: 2px solid rgba(229,174,255,.9); border-radius: 50%; box-shadow: 0 0 0 3px rgba(185,71,236,.13); animation: vinyl-spin 8s linear infinite paused; }
.sidebar-album.is-current.is-playing .sidebar-album-cover { animation-play-state: running; }
.sidebar-album-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; font-weight: 720; }
.sidebar-play, .sidebar-lock { width: 26px; height: 30px; display: grid; place-items: center; border: 0; background: transparent; color: var(--brand-light); font-size: .7rem; }
.sidebar-lock { color: var(--subtle); }
.sidebar-account { margin-top: auto; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 14px 5px 0; border-top: 1px solid var(--line-soft); }
.sidebar-account > a { min-width: 0; display: flex; align-items: center; gap: 9px; }
.account-avatar { flex: 0 0 34px; width: 34px; height: 34px; font-size: .82rem; }
.sidebar-account strong, .sidebar-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account strong { font-size: .8rem; }
.sidebar-account small { margin-top: 2px; color: var(--subtle); font-size: .68rem; }
.logout-button { width: 36px; height: 36px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 1.1rem; }
.logout-button:hover { color: white; background: var(--surface-2); }

.content { grid-column: 2; min-width: 0; padding: 34px clamp(24px,3vw,52px) 72px; }
.has-right-rail .content { grid-column: 2; }
.content-inner { width: min(100%,1500px); margin: 0 auto; }
.right-rail { grid-column: 3; position: sticky; z-index: 10; top: 0; height: calc(100vh - var(--player)); padding: 32px 20px; border-left: 1px solid var(--line-soft); background: rgba(27,27,37,.9); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.right-rail::-webkit-scrollbar { display: none; }
.mobile-topbar, .mobile-bottom-nav, .sidebar-overlay { display: none; }

/* Shared type and controls */
h1,h2,h3,p { overflow-wrap: anywhere; }
.page-head, .library-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.page-head h1, .library-header h1 { margin: 3px 0 0; font-size: clamp(1.7rem,2.6vw,2.3rem); line-height: 1.16; letter-spacing: -.035em; }
.page-head p, .library-header p { max-width: 680px; margin: 9px 0 0; color: var(--muted); line-height: 1.62; }
.eyebrow { color: var(--brand-light); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.section { margin-top: 30px; }
.section-title, .section-bar h2 { margin: 0; }
.section-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack { display: grid; gap: 14px; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 11px; background: linear-gradient(135deg,var(--brand),#9840df); color: white; font-weight: 820; box-shadow: 0 8px 20px rgba(185,71,236,.16); transition: transform .18s,filter .18s,border-color .18s; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.secondary { border-color: #4b4958; background: #292833; color: #f2f0f6; box-shadow: none; }
.btn.success { background: #197c6e; box-shadow: none; }
.btn.danger { background: #552a33; border-color: #82414e; color: #ffdce0; box-shadow: none; }
.btn.small { min-height: 38px; padding: 7px 12px; border-radius: 9px; font-size: .82rem; }
.btn.large { min-height: 54px; padding-inline: 25px; }
.btn.disabled, .disabled { opacity: .48; cursor: not-allowed; transform: none; }
.text-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 8px; border: 0; background: transparent; color: var(--brand-light); font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.icon-button { min-width: 48px; min-height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 4px 9px; border: 1px solid rgba(185,71,236,.22); border-radius: 999px; background: rgba(185,71,236,.14); color: #eacbfa; font-size: .69rem; font-weight: 830; }
.badge.green { border-color: rgba(81,216,194,.24); background: rgba(81,216,194,.12); color: #9af0e2; }
.badge.warn { border-color: rgba(244,195,107,.25); background: rgba(244,195,107,.12); color: #f7d997; }
.badge.danger-badge, .danger-badge { border-color: rgba(255,110,127,.25); background: rgba(255,110,127,.11); color: #ffacb5; }
.service-state { display: inline-flex; align-items: center; gap: 8px; color: #a7ecdf; font-size: .78rem; font-weight: 760; }
.service-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(81,216,194,.11); }
.service-state.pending { color: var(--warning); }
.service-state.pending i { background: var(--warning); box-shadow: 0 0 0 4px rgba(244,195,107,.12); }
.notice { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 20px; padding: 14px 16px; border: 1px solid rgba(81,216,194,.3); border-radius: 12px; background: rgba(27,94,85,.3); color: #d5fff7; line-height: 1.5; }
.notice > span:first-child { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(81,216,194,.18); font-weight: 900; }
.notice.error { border-color: rgba(255,110,127,.38); background: rgba(101,35,47,.35); color: #ffdee2; }
/*
 * 내 정보의 두 카드는 항목 수가 달라(4개 / 3개) 저장 버튼이 서로 다른 높이에
 * 놓였습니다. 카드를 같은 높이로 늘리고 버튼을 아래로 밀어 나란히 맞춥니다.
 */
.profile-grid > .card { display: flex; flex-direction: column; }
.profile-grid > .card > form { flex: 1; display: flex; flex-direction: column; }
.profile-grid > .card > form > .btn { margin-top: auto; }
/* 본문 끝에 붙는 안내는 위 내용과 떨어져 있어야 합니다.
   .notice 에는 아래 여백만 있어 카드·격자에 그대로 붙었습니다. */
.section + .notice, .card + .notice, .table-wrap + .notice { margin-top: 26px; }
.notice.warning { border-color: rgba(244,195,107,.28); background: rgba(94,70,27,.32); color: #ffe8b6; }
.notice ul { margin: 7px 0 0; padding-left: 20px; }
.empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; border: 1px dashed #494754; border-radius: 15px; color: var(--muted); text-align: center; background: rgba(255,255,255,.012); }
.empty.compact { min-height: 130px; }
.empty strong { color: var(--text); }
.empty p { margin: 8px 0 0; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 50%; background: rgba(185,71,236,.14); color: var(--brand-light); font-size: 1.5rem; }

/* Dashboard */
.welcome-panel { min-height: 258px; position: relative; display: grid; grid-template-columns: minmax(0,1fr) 37%; align-items: center; overflow: hidden; padding: clamp(27px,4vw,48px); border: 1px solid rgba(185,71,236,.28); border-radius: 22px; background: linear-gradient(118deg,#252030 0%,#262331 52%,#1d3034 100%); box-shadow: var(--shadow); }
.welcome-panel::after { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(circle at 85% 50%,rgba(185,71,236,.22),transparent 28%); }
.welcome-copy { position: relative; z-index: 2; }
.hero-kicker { color: var(--mint); font-size: .68rem; font-weight: 900; letter-spacing: .19em; }
.welcome-copy h2 { margin: 10px 0 11px; font-size: clamp(1.75rem,3.1vw,2.65rem); line-height: 1.2; letter-spacing: -.045em; }
.welcome-copy h2 em { color: var(--brand-light); font-style: normal; }
.welcome-copy p { max-width: 570px; margin: 0; color: #c0bcc9; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 24px; }
.hero-visual { position: relative; z-index: 1; height: 170px; display: flex; align-items: center; justify-content: center; gap: 12px; transform: rotate(-4deg); }
.sound-line { width: clamp(12px,1.1vw,19px); border-radius: 999px; background: linear-gradient(to top,var(--mint),var(--brand-light)); box-shadow: 0 0 28px rgba(185,71,236,.24); opacity: .82; }
.sound-line.l1 { height: 58px; }.sound-line.l2 { height: 118px; }.sound-line.l3 { height: 166px; }.sound-line.l4 { height: 104px; }.sound-line.l5 { height: 45px; }
.catalog-section { margin-top: 38px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.catalog-toolbar h2 { margin: 4px 0 0; font-size: clamp(1.25rem,2vw,1.65rem); letter-spacing: -.025em; }
.catalog-toolbar p { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }
.catalog-search { width: min(330px,100%); min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 14px; border: 1px solid var(--line); border-radius: 12px; background: #1d1d27; }
.catalog-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(185,71,236,.12); }
.catalog-search > span { color: var(--subtle); font-size: 1.3rem; }
.catalog-search input { min-height: 38px; padding: 0; border: 0; background: transparent; }
.catalog-search input:focus { outline: none; }
.catalog-search > a { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); }
.filter-row { display: flex; gap: 8px; margin: 22px 0 18px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .8rem; font-weight: 750; }
.filter-chip span { color: var(--subtle); }
.filter-chip:hover, .filter-chip.active { border-color: rgba(185,71,236,.7); background: rgba(185,71,236,.18); color: white; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(168px,1fr)); gap: clamp(17px,2vw,26px) clamp(14px,1.7vw,22px); }
.catalog-loader { min-height:104px; display:flex; align-items:center; justify-content:center; gap:11px; color:var(--subtle); font-size:.72rem; }
.catalog-loader[hidden] { display:none; }
.catalog-loader [hidden] { display:none; }
.catalog-loader-spinner { width:22px; height:22px; flex:0 0 22px; border:2px solid rgba(185,71,236,.2); border-top-color:var(--brand-light); border-radius:50%; animation:catalog-loader-spin .75s linear infinite; }
.catalog-loader[data-catalog-state="error"] .catalog-loader-spinner { display:none; }
.catalog-loader .text-button { min-height:36px; padding:7px 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); }
@keyframes catalog-loader-spin { to { transform:rotate(360deg); } }
.album-card { min-width: 0; }
.album-card.is-filtered { display: none; }
.album-artwork { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid #3c3947; border-radius: 15px; background: linear-gradient(135deg,#3d2c4f,#153c3a); box-shadow: 0 12px 28px rgba(0,0,0,.22); transition: transform .22s,border-color .22s,box-shadow .22s; }
.album-card:hover .album-artwork { transform: translateY(-4px); border-color: rgba(185,71,236,.72); box-shadow: 0 18px 36px rgba(0,0,0,.32); }
.album-radio-surface { position: absolute; inset: 0; width: 100%; display: block; padding: 0; overflow: hidden; border: 0; background: transparent; color: inherit; }
.album-radio-surface.is-disabled { cursor: default; }
.album-cover { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.album-card:hover .album-cover { transform: scale(1.025); }
.album-cover-fallback { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: rgba(255,255,255,.38); font-size: 3rem; background: radial-gradient(circle at 30% 25%,rgba(185,71,236,.5),transparent 30%),linear-gradient(140deg,#30233f,#143d3a); }
.album-cover.is-broken { display: none; }
.album-artwork::after { content:""; position:absolute; z-index:3; inset:auto 0 0; height:42%; pointer-events:none; background:linear-gradient(transparent,rgba(9,8,13,.68)); opacity:0; transition:opacity .2s; }
.album-card:hover .album-artwork::after { opacity: 1; }
.album-card.is-current .album-artwork { overflow:visible; border-color:transparent; border-radius:0; background:transparent; box-shadow:none; }
.album-card.is-current:hover .album-artwork { transform:none; border-color:transparent; box-shadow:none; }
.album-card.is-current .album-radio-surface { border-radius:50%; box-shadow:0 0 0 4px rgba(185,71,236,.16),0 18px 40px rgba(0,0,0,.42); }
.album-card.is-current .album-cover,.album-card.is-current .album-cover-fallback { border-radius: 50%; animation: vinyl-spin 10s linear infinite paused; }
.album-card.is-current.is-playing .album-cover,.album-card.is-current.is-playing .album-cover-fallback { animation-play-state: running; }
.album-card.is-current:hover .album-cover { transform: none; }
.album-card.is-current .album-artwork::after { opacity:0; }
.album-card.is-current .album-radio-surface::after { content:""; position:absolute; z-index:4; inset:5%; border:1px solid rgba(255,255,255,.12); border-radius:50%; pointer-events:none; background:repeating-radial-gradient(circle,transparent 0 10px,rgba(8,6,13,.18) 11px 12px); box-shadow:inset 0 0 28px rgba(0,0,0,.34); }
.album-card.is-current .album-radio-surface::before { content:""; position:absolute; z-index:5; left:50%; top:50%; width:10px; height:10px; border:3px solid rgba(21,18,27,.78); border-radius:50%; background:#f4dcff; box-shadow:0 0 0 4px rgba(255,255,255,.15); transform:translate(-50%,-50%); pointer-events:none; }
.album-card.is-current .album-play { opacity:1; transform:translate(-50%,-50%) scale(.84); }
.album-card.is-current .album-title { color:#eccaff; }
.album-card.is-current.is-playing .album-play span { margin-left:0; font-size:0; }
.album-card.is-current.is-playing .album-play span::before { content:"♫"; font-size:1.05rem; }
.favorite-form { position: absolute; z-index: 7; right: 9px; bottom: 9px; margin: 0; }
.favorite-button { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(18,17,24,.76); color: white; font-size: 1.35rem; backdrop-filter: blur(8px); }
.favorite-button.selected { color: #f08cff; }
.favorite-button.required { cursor: default; box-shadow: inset 0 0 0 1px rgba(240,140,255,.32); }
.album-play { position: absolute; z-index: 6; left: 50%; top: 50%; width: 58px; height: 58px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: linear-gradient(135deg,#c35af1,#8a36d4); color: #fff; box-shadow: 0 14px 34px rgba(25,8,37,.52); opacity: 0; transform: translate(-50%,-35%) scale(.9); transition: opacity .2s,transform .2s; }
.album-play span { margin-left: 3px; }
.album-card:hover .album-play, .album-radio-surface:focus-visible .album-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.album-radio-surface.is-loading .album-play { animation:radio-pulse 1s ease-in-out infinite; opacity:1; transform:translate(-50%,-50%); }
.album-locked { position:absolute; z-index:6; left:50%; top:50%; width:48px; height:48px; display:grid; place-items:center; border-radius:50%; background:rgba(18,17,24,.76); color:#cfccd5; opacity:0; transform:translate(-50%,-35%); backdrop-filter:blur(8px); transition:.2s; }
.album-card:hover .album-locked { opacity:1; transform:translate(-50%,-50%); }
/*
 * 이용 계약이 없을 때 잠기는 앨범.
 * 자물쇠가 곧 결제 유도라서 hover 없이도 항상, 크게 보여야 합니다.
 * 표지는 흑백으로 흐리게 깔아 자물쇠가 묻히지 않게 합니다.
 */
.album-card.is-paywalled .album-cover { filter:grayscale(1) blur(7px) brightness(.5); transform:scale(1.08); }
.album-card.is-paywalled .album-artwork::after {
    content:''; position:absolute; inset:0; z-index:5; pointer-events:none;
    background:radial-gradient(circle at 50% 45%, rgba(10,9,14,.28), rgba(10,9,14,.66));
}
.album-locked.is-paywalled {
    opacity:1; transform:translate(-50%,-50%);
    width:82px; height:82px; font-size:38px; line-height:1;
    background:rgba(14,13,19,.62); color:#fff;
    border:1px solid rgba(255,255,255,.22);
    box-shadow:0 10px 30px rgba(0,0,0,.45);
    -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
}
.album-card.is-paywalled:hover .album-cover { filter:grayscale(1) blur(5px) brightness(.58); }
.album-card.is-paywalled:hover .album-locked.is-paywalled { transform:translate(-50%,-50%) scale(1.07); }

/* 계약이 있어야 쓰는 메뉴 표시. */
.nav-lock { margin-left:auto; font-size:11px; opacity:.62; }

/* 잠긴 앨범도 눌러서 결제 안내를 볼 수 있습니다. */
.album-radio-surface.is-locked { cursor:pointer; }
.album-radio-surface.is-locked:focus-visible { outline:2px solid rgba(185,71,236,.9); outline-offset:2px; }

/* 표지가 없는 앨범은 흐리게 할 대상이 없어 바탕만 어둡게 둡니다. */
.album-card.is-paywalled .album-cover-fallback { filter:grayscale(1); opacity:.35; }

@media (max-width: 640px) {
    .album-locked.is-paywalled { width:62px; height:62px; font-size:29px; }
}
.album-info { padding: 12px 3px 0; }
.album-title { width:100%; display: block; overflow: hidden; padding:0; border:0; background:transparent; color: #f5f2f8; font-size: .93rem; font-weight: 820; line-height: 1.4; text-align:left; text-overflow: ellipsis; white-space: nowrap; }
.album-title:hover { color: var(--brand-light); }
.album-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--subtle); font-size: .69rem; }
.status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--warning); }
.status-dot.ready { background: var(--mint); }.status-dot.blocked { background: var(--danger); }.status-dot.review { background: var(--warning); }

/* Favorites rail */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; }
.rail-head h2 { margin: 3px 0 0; font-size: 1.25rem; }
.rail-count { min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 7px; border-radius: 999px; background: rgba(185,71,236,.2); color: #edccff; font-size: .75rem; font-weight: 850; }
.rail-help { margin: 8px 0 20px; color: var(--subtle); font-size: .76rem; }
.rail-albums { display: grid; gap: 5px; }
.rail-album-item { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) 38px; gap:3px; align-items:center; }
.rail-album { width:100%; min-width:0; min-height:58px; display:grid; grid-template-columns:46px minmax(0,1fr) 34px; gap:9px; align-items:center; padding:6px; border:0; border-radius:11px; background:transparent; color:inherit; text-align:left; transition:background .18s,transform .18s; }
.rail-album:not(.is-disabled):hover { background:rgba(255,255,255,.05); transform:translateX(2px); }
.rail-album.is-disabled { opacity:.62; }
.rail-cover { width: 46px; height: 46px; display: grid; place-items: center; overflow:hidden; border-radius:9px; background:linear-gradient(135deg,#45305a,#17423d); color:var(--brand-light); }
.rail-cover img { width:100%; height:100%; object-fit:cover; }
.rail-album.is-current { background:linear-gradient(90deg,rgba(185,71,236,.19),rgba(81,216,194,.06)); box-shadow:inset 2px 0 var(--brand-light); }
.rail-album.is-current .rail-cover { border:2px solid rgba(229,174,255,.88); border-radius:50%; animation:vinyl-spin 8s linear infinite paused; }
.rail-album.is-current.is-playing .rail-cover { animation-play-state:running; }
.rail-album-copy { min-width:0; }.rail-album strong, .rail-album small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rail-album strong { font-size:.78rem; }.rail-album small { margin-top:4px; color:var(--subtle); font-size:.65rem; }
.rail-play, .rail-status { width:34px; height:42px; display:grid; place-items:center; border:0; border-radius:50%; background:transparent; color:var(--brand-light); }
.rail-play:hover { background:rgba(185,71,236,.18); }.rail-status { color:var(--subtle); }
.rail-favorite-remove { margin:0; }.rail-favorite-remove button,.rail-favorite-required { width:36px; height:32px; display:grid; place-items:center; padding:0; border:1px solid rgba(240,140,255,.24); border-radius:8px; background:rgba(185,71,236,.07); color:#d4a2e9; font-size:.58rem; font-weight:820; }
.rail-favorite-remove button:hover { border-color:rgba(240,140,255,.7); background:rgba(185,71,236,.18); color:white; }.rail-favorite-required { color:var(--subtle); cursor:help; }
.rail-reset { margin-top:18px; text-align:center; }
.rail-empty { min-height:200px; display:grid; place-items:center; align-content:center; color:var(--subtle); text-align:center; font-size:.8rem; }
.rail-empty > span { color:var(--brand-light); font-size:2rem; }.rail-empty p { line-height:1.6; }
.compact-favorites { display:none; margin:22px 0; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.compact-favorites-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:12px; }
.compact-favorites-head h2 { margin:3px 0 0; font-size:1.1rem; }.compact-favorites-head p { margin:5px 0 0; color:var(--subtle); font-size:.72rem; }
.compact-favorite-strip { grid-auto-flow:column; grid-auto-columns:minmax(220px,280px); grid-template-columns:none; gap:10px; padding-bottom:6px; overflow-x:auto; scroll-snap-type:x proximity; }
.compact-favorite-strip .rail-album-item { scroll-snap-align:start; padding:4px; border:1px solid var(--line-soft); border-radius:12px; background:#1a1922; }

/* Album detail */
.back-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; margin-bottom:20px; color:var(--muted); font-weight:730; }
.back-link:hover { color:white; }
.album-detail-hero { display:grid; grid-template-columns:minmax(230px,330px) minmax(0,1fr); gap:clamp(28px,5vw,64px); align-items:center; padding:clamp(22px,3vw,40px); border:1px solid var(--line); border-radius:22px; background:linear-gradient(135deg,#24222e,#1c252b); }
.album-detail-cover { position:relative; aspect-ratio:1; display:grid; place-items:center; overflow:hidden; border:1px solid #4a4554; border-radius:18px; background:linear-gradient(135deg,#432d58,#16423d); color:var(--brand-light); font-size:4rem; box-shadow:0 24px 48px rgba(0,0,0,.35); }
.album-detail-cover > img:not(.legacy-album-label) { width:100%; height:100%; object-fit:cover; }
.album-detail-hero.is-current .album-detail-cover { border-color:rgba(224,151,255,.96); border-radius:50%; box-shadow:0 0 0 5px rgba(185,71,236,.15),0 24px 48px rgba(0,0,0,.4); }
.album-detail-hero.is-current .album-detail-cover > img:not(.legacy-album-label) { border-radius:50%; animation:vinyl-spin 10s linear infinite paused; }
.album-detail-hero.is-current.is-playing .album-detail-cover > img:not(.legacy-album-label) { animation-play-state:running; }
.hero-play.is-current { box-shadow:0 0 0 3px rgba(214,124,255,.22),0 12px 28px rgba(113,35,154,.35); }
.album-detail-copy h1 { margin:12px 0; font-size:clamp(2rem,4.5vw,3.5rem); line-height:1.08; letter-spacing:-.05em; }
.album-detail-copy > p { max-width:680px; color:var(--muted); line-height:1.7; }
.album-detail-copy .eyebrow { display:block; margin-top:24px; }
.hashtag-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; color:#bc94d2; font-size:.76rem; }
.album-detail-actions { display:flex; align-items:center; gap:16px; margin-top:28px; }
.radio-privacy { display:flex; align-items:center; gap:9px; margin-top:22px !important; color:#aaa5b3 !important; font-size:.8rem; }
.radio-privacy > span { width:28px; height:28px; flex:0 0 28px; display:grid; place-items:center; border-radius:50%; background:rgba(185,71,236,.14); color:var(--brand-light); font-size:1rem; }
.track-section { margin-top:34px; }
.track-list { display:grid; gap:5px; margin:0; padding:0; list-style:none; }
.track-row { min-height:68px; display:grid; grid-template-columns:34px 42px minmax(0,1fr) auto 48px; gap:12px; align-items:center; padding:8px 12px; border:1px solid transparent; border-radius:11px; transition:background .16s,border-color .16s; }
.track-row:hover { border-color:var(--line); background:rgba(255,255,255,.025); }
.track-disabled { opacity:.63; }
.track-number { color:var(--subtle); font-size:.73rem; font-variant-numeric:tabular-nums; }
.track-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:9px; background:linear-gradient(135deg,#422f51,#183c39); color:var(--brand-light); }
.track-copy { min-width:0; }.track-copy strong,.track-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.track-copy strong { font-size:.88rem; }.track-copy small { margin-top:4px; color:var(--subtle); font-size:.71rem; }
.track-state { color:var(--subtle); font-size:.7rem; }
.track-play,.track-lock { width:48px; height:48px; display:grid; place-items:center; padding:0; border:0; border-radius:50%; background:transparent; color:var(--brand-light); }
.track-play:hover { background:rgba(185,71,236,.18); }.track-lock { color:var(--subtle); }

/* Forms, tables, generic admin */
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.field { min-width:0; display:grid; gap:7px; }.field.full { grid-column:1/-1; }
label { color:#e7e4eb; font-size:.82rem; font-weight:760; }
input,select,textarea { width:100%; min-height:48px; padding:11px 13px; border:1px solid #494755; border-radius:10px; background:#181820; color:var(--text); }
textarea { resize:vertical; min-height:98px; }
input::placeholder,textarea::placeholder { color:#6e6b78; }
input:focus,select:focus,textarea:focus { outline:0; border-color:var(--brand); box-shadow:0 0 0 3px rgba(185,71,236,.11); }
input[type="checkbox"] { width:21px; min-height:21px; padding:0; accent-color:var(--brand); }
.checks { display:flex; flex-wrap:wrap; gap:9px; }.check { display:inline-flex; align-items:center; gap:8px; min-height:40px; cursor:pointer; }
.day-check input { position:absolute; opacity:0; pointer-events:none; }.day-check span { min-width:42px; height:42px; display:grid; place-items:center; border:1px solid #4a4855; border-radius:10px; color:var(--muted); }.day-check input:checked + span { border-color:var(--brand); background:rgba(185,71,236,.22); color:white; }
.album-checks { max-height:280px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 12px; overflow-y:auto; padding:8px; border:1px solid var(--line-soft); border-radius:10px; }
.table-wrap { overflow-x:auto; } table { width:100%; border-collapse:collapse; } th,td { padding:13px 11px; border-bottom:1px solid var(--line-soft); text-align:left; vertical-align:top; } th { color:var(--subtle); font-size:.72rem; letter-spacing:.04em; } td { font-size:.84rem; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px; }.stat strong { display:block; margin-top:8px; color:var(--mint); font-size:2rem; }
.danger-zone { border-color:rgba(255,110,127,.35); }
.pagination { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-top:26px; color:var(--muted); font-size:.8rem; }
details > summary { cursor:pointer; list-style:none; } details > summary::-webkit-details-marker { display:none; }

/* Schedule */
.create-panel { margin-bottom:22px; border:1px solid var(--line); border-radius:15px; background:var(--surface); }
.create-panel > summary { min-height:76px; display:flex; justify-content:space-between; align-items:center; padding:14px 19px; }
.create-panel > summary > span { display:grid; grid-template-columns:38px auto; column-gap:11px; align-items:center; }
.create-panel > summary b { grid-row:1/3; width:38px; height:38px; display:grid; place-items:center; border-radius:10px; background:rgba(185,71,236,.17); color:var(--brand-light); font-size:1.3rem; }
.create-panel > summary strong,.create-panel > summary small { display:block; }.create-panel > summary small { margin-top:4px; color:var(--subtle); }
.create-panel > form { margin:0 16px 16px; }
.schedule-list { display:grid; gap:18px; }
.schedule-card { overflow:visible; border:1px solid var(--line); border-radius:17px; background:var(--surface); }
.schedule-head { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:20px 22px; border-bottom:1px solid var(--line-soft); }
.schedule-head h2 { margin:8px 0 0; font-size:1.15rem; }.schedule-head p { margin:5px 0 0; color:var(--subtle); font-size:.73rem; }
.toggle-button { width:54px; height:30px; padding:3px; border:0; border-radius:999px; background:#44424d; transition:.2s; }.toggle-button span { width:24px; height:24px; display:block; border-radius:50%; background:white; transition:.2s; }.toggle-button.on { background:var(--brand); }.toggle-button.on span { transform:translateX(24px); }
.schedule-slots { display:grid; gap:1px; }.time-slot { padding:17px 22px; border-bottom:1px solid var(--line-soft); }
.time-slot-main { display:grid; grid-template-columns:176px minmax(0,1fr) auto; gap:20px; align-items:center; }.time-block { display:flex; align-items:center; gap:10px; color:white; font-size:1.02rem; font-weight:850; font-variant-numeric:tabular-nums; }.time-block i { width:19px; height:1px; background:#666270; }
.slot-copy strong { display:block; font-size:.9rem; }.slot-copy small { display:block; max-width:680px; margin-top:8px; overflow:hidden; color:var(--subtle); font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.day-pills { display:flex; gap:4px; margin-top:8px; }.day-pills span { width:23px; height:23px; display:grid; place-items:center; border-radius:50%; background:#2d2c37; color:#656270; font-size:.61rem; font-weight:800; }.day-pills span.active { background:rgba(185,71,236,.22); color:#e8baff; }
.slot-actions { display:flex; align-items:center; gap:5px; }.danger-text { color:var(--danger); }
.slot-actions details,.admin-quick-actions details { position:relative; }.popover-form { position:absolute; z-index:30; top:calc(100% + 8px); right:0; width:min(590px,calc(100vw - 80px)); padding:18px; border:1px solid #514b5f; border-radius:14px; background:#25242f; box-shadow:var(--shadow); }
.slot-actions .schedule-slot-popover { position:fixed; z-index:80; top:clamp(20px,12vh,96px); right:clamp(16px,4vw,64px); bottom:calc(var(--player) + 16px); width:min(590px,calc(100vw - 48px)); max-height:none; overflow-y:auto; overscroll-behavior:contain; }
.schedule-slot-save { position:sticky; z-index:1; bottom:-18px; margin:0 -18px -18px; padding:13px 18px 18px; border-top:1px solid var(--line-soft); background:linear-gradient(180deg,rgba(37,36,47,.94),#25242f 24%); }
.schedule-slot-save .btn { width:100%; }
.schedule-tools { display:flex; flex-wrap:wrap; gap:12px; padding:17px 22px; }.inline-details { width:100%; }.inline-details:not([open]) { width:auto; }.inline-details > .card { margin-top:12px; }
.closed-dates,.assignment-list { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.schedule-guide { display:flex; align-items:flex-start; gap:12px; margin:-2px 0 18px; padding:14px 16px; border:1px solid rgba(81,216,194,.22); border-radius:13px; background:rgba(81,216,194,.07); }
.schedule-guide > span { width:32px; height:32px; flex:0 0 32px; display:grid; place-items:center; border-radius:50%; background:rgba(81,216,194,.13); color:var(--mint); font-weight:850; }
.schedule-guide strong { display:block; font-size:.83rem; }.schedule-guide p { margin:4px 0 0; color:var(--muted); font-size:.73rem; line-height:1.55; }
.schedule-notice { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin:-6px 0 16px; padding:12px 15px; border-radius:12px; font-size:.76rem; line-height:1.5; }
/* 문장 하나짜리 알림은 flex 항목이 여럿이 되어 단어가 양끝으로 벌어집니다.
   space-between 은 버튼이 함께 있는 알림에만 필요합니다. */
.schedule-notice > span:only-child { flex:1 1 100%; }
p.schedule-notice { display:block; }
.schedule-notice.is-warning { border:1px solid rgba(240,167,90,.32); background:rgba(240,167,90,.09); color:#f5c58c; }
.schedule-notice strong { color:#ffd9ae; }
.slot-today-state { display:block; margin-top:6px; font-size:.7rem; font-weight:700; }
.slot-today-state.is-on { color:var(--mint); }
.slot-today-state.is-off { color:#8c8898; }
.day-pills span.is-today { outline:1px solid rgba(255,255,255,.45); outline-offset:1px; }
.business-context-warning { margin:6px 0 0; color:#f5c58c; font-size:.68rem; line-height:1.45; }
.schedule-owner-note { margin:0; padding:12px 14px; border:1px dashed #494755; border-radius:10px; color:var(--muted); background:#1a1922; font-size:.76rem; line-height:1.5; }.schedule-owner-note.full { grid-column:1/-1; }
.schedule-favorite-source { display:flex; align-items:flex-start; gap:11px; padding:13px 15px; border:1px solid rgba(185,71,236,.28); border-radius:12px; background:linear-gradient(135deg,rgba(185,71,236,.1),rgba(81,216,194,.045)); }
.schedule-favorite-source > span { width:30px; height:30px; flex:0 0 30px; display:grid; place-items:center; border-radius:50%; background:rgba(185,71,236,.18); color:#f0a7ff; }
.schedule-favorite-source strong { display:block; font-size:.8rem; }.schedule-favorite-source p { margin:4px 0 0; color:var(--muted); font-size:.72rem; line-height:1.5; }
.schedule-album-group[hidden] { display:none; }
.schedule-card.is-inactive { border-color:#34323d; }.schedule-card.is-inactive > .schedule-slots { opacity:.67; }
.schedule-head-copy { min-width:0; }.schedule-badges { display:flex; flex-wrap:wrap; gap:6px; }
.schedule-head-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:7px; }.schedule-head-actions details { position:relative; }.compact-popover { width:min(390px,calc(100vw - 80px)); }
.time-slot.is-inactive { background:rgba(12,12,17,.18); }.slot-off-label { display:inline-flex; margin-left:6px; padding:3px 7px; border-radius:999px; background:#34323e; color:var(--subtle); font-size:.62rem; vertical-align:middle; }
.slot-toggle { min-width:47px; min-height:31px; padding:5px 9px; border:1px solid #4b4855; border-radius:999px; background:#26252e; color:var(--subtle); font-size:.68rem; font-weight:820; }.slot-toggle.on { border-color:rgba(81,216,194,.4); background:rgba(81,216,194,.1); color:var(--mint); }

/* Admin catalog */
.admin-toolbar { position:relative; z-index:8; display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:20px; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.catalog-filter-form { min-width:0; flex:1 1 760px; display:grid; grid-template-columns:minmax(220px,1.6fr) repeat(4,minmax(125px,1fr)); gap:10px; align-items:end; }
.catalog-filter-query,.catalog-filter-control { min-width:0; display:grid; gap:6px; }
.catalog-filter-label { color:var(--muted); font-size:.74rem; font-weight:780; line-height:1.25; }
.catalog-filter-input { min-width:0; min-height:40px; display:flex; align-items:center; gap:8px; padding:0 11px; border:1px solid #494755; border-radius:9px; background:#181820; }
.catalog-filter-input > span { flex:0 0 auto; color:var(--subtle); }
.catalog-filter-input input { min-width:0; min-height:38px; padding:0; border:0; background:transparent; box-shadow:none; }
.catalog-filter-input:focus-within { border-color:var(--brand); box-shadow:0 0 0 3px rgba(185,71,236,.11); }
.catalog-filter-control select { min-width:0; min-height:40px; padding:8px 31px 8px 10px; border-radius:9px; font-size:.78rem; text-overflow:ellipsis; }
.catalog-filter-actions { min-height:40px; display:flex; align-items:center; gap:5px; }
.catalog-filter-actions .btn { flex:0 0 auto; }
.create-album-details { position:relative; }.floating-form { position:absolute; z-index:40; top:calc(100% + 9px); right:0; width:min(650px,calc(100vw - 80px)); box-shadow:var(--shadow); }
.admin-catalog-list { display:grid; gap:12px; }
.admin-album-card { border:1px solid var(--line); border-radius:15px; background:var(--surface); }
.admin-album-summary { min-height:112px; display:grid; grid-template-columns:86px minmax(0,1fr) auto; gap:17px; align-items:center; padding:13px; }
.admin-cover { width:86px; height:86px; display:grid; place-items:center; overflow:hidden; border-radius:11px; background:linear-gradient(135deg,#442e58,#17413c); color:var(--brand-light); font-size:1.8rem; }.admin-cover img { width:100%; height:100%; object-fit:cover; }
.admin-album-copy { min-width:0; }.admin-album-copy h2 { margin:7px 0 3px; overflow:hidden; font-size:1rem; text-overflow:ellipsis; white-space:nowrap; }.admin-album-copy p,.admin-album-copy small { display:block; margin:0; overflow:hidden; color:var(--subtle); font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.admin-album-panels { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line-soft); }.admin-album-panels > details:first-child { border-right:1px solid var(--line-soft); }.admin-album-panels > details > summary { min-height:48px; display:flex; align-items:center; justify-content:space-between; padding:10px 16px; color:var(--muted); font-size:.78rem; font-weight:760; }.admin-album-panels > details > summary b { min-width:24px; height:24px; display:grid; place-items:center; border-radius:999px; background:var(--surface-3); color:var(--brand-light); font-size:.67rem; }
.details-body { padding:16px; border-top:1px solid var(--line-soft); }.nested-details > .card { margin:10px 0; }
.admin-favorite-assignment { display:grid; gap:12px; padding:14px; border:1px solid rgba(185,71,236,.26); border-radius:12px; background:linear-gradient(135deg,rgba(185,71,236,.08),rgba(81,216,194,.035)); }
.admin-favorite-assignment > div > strong { color:#f1e7f7; font-size:.83rem; }.admin-favorite-assignment > div > p { margin:5px 0 0; line-height:1.5; }
.admin-favorite-assignment .form-grid { grid-template-columns:minmax(0,1fr) auto; gap:10px; }.admin-favorite-submit { min-width:150px; }.admin-favorite-submit .btn { white-space:nowrap; }
.admin-favorite-assignment + .nested-details { margin-top:13px; }.admin-assignment-advanced { margin-top:10px; padding:14px; border:1px solid var(--line-soft); border-radius:11px; background:rgba(255,255,255,.018); }
.assignment-chip { min-height:40px; display:flex; align-items:center; gap:8px; padding:7px 10px; border:1px solid #494653; border-radius:9px; background:#292832; color:white; }.assignment-chip small { color:var(--brand-light); }.assignment-chip b { color:var(--danger); }
.admin-track-list { display:grid; gap:4px; margin-top:13px; }.admin-track-list > details { border:1px solid var(--line-soft); border-radius:9px; }.admin-track-list > details > summary { min-height:44px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; padding:7px 11px; font-size:.76rem; }.admin-track-list > details > summary > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.admin-track-list > details > summary small { color:var(--subtle); }.admin-track-list form { padding:13px; border-top:1px solid var(--line-soft); }

/* Auth */
.auth-page { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 50% 0,rgba(185,71,236,.27),transparent 38%),#15151d; }
.auth-shell { width:min(980px,100%); min-height:620px; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr); overflow:hidden; border:1px solid #464251; border-radius:24px; background:#1f1f29; box-shadow:0 30px 100px rgba(0,0,0,.45); }
.auth-showcase { position:relative; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; padding:44px; background:radial-gradient(circle at 80% 25%,rgba(81,216,194,.17),transparent 30%),linear-gradient(145deg,#2b2036,#1b252b); }
.auth-showcase::after { content:"♫"; position:absolute; right:-30px; bottom:25px; color:rgba(185,71,236,.08); font-size:18rem; font-weight:900; line-height:1; transform:rotate(-12deg); }
.auth-showcase > * { position:relative; z-index:1; }.auth-showcase > img { width:180px; }.auth-showcase h1 { margin:14px 0; font-size:clamp(2rem,3.6vw,3rem); line-height:1.15; letter-spacing:-.05em; }.auth-showcase h1 em { color:var(--brand-light); font-style:normal; }.auth-showcase p { max-width:none; color:#bab6c2; line-height:1.7; text-wrap:balance; }
.auth-features { display:flex; flex-wrap:wrap; gap:9px; }.auth-features span { display:inline-flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid rgba(255,255,255,.08); border-radius:999px; background:rgba(255,255,255,.04); color:#d4d0d9; font-size:.7rem; }.auth-features i { color:var(--mint); font-style:normal; font-weight:900; }
.auth-card { width:100%; display:flex; flex-direction:column; justify-content:center; padding:clamp(30px,4vw,50px); background:rgba(30,30,40,.98); }.auth-mobile-logo { display:none; }.auth-card h1 { margin:8px 0 0; font-size:1.75rem; letter-spacing:-.035em; }.auth-card > p { margin:8px 0 0; line-height:1.6; }.auth-card > .notice { margin-top:18px; margin-bottom:0; }.auth-card form { display:grid; gap:15px; margin-top:22px; }.auth-card form .btn { width:100%; }.auth-card a:not(.brand) { color:var(--brand-light); }
.auth-field-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.field label small { color:var(--subtle); font-weight:600; }.auth-links { display:grid; gap:7px; margin-top:20px; color:var(--muted); font-size:.76rem; text-align:center; }
.auth-divider { display:flex; align-items:center; gap:10px; margin:18px 0 14px; color:var(--subtle); font-size:.7rem; font-weight:700; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:#3a3846; }
.btn-kakao { display:flex; align-items:center; justify-content:center; gap:9px; width:100%; padding:12px 16px; border:0; border-radius:10px; background:#FEE500; color:#191600; font-size:.83rem; font-weight:800; text-decoration:none; transition:filter .15s ease, transform .15s ease; }
.btn-kakao:hover, .btn-kakao:focus-visible { filter:brightness(.95); transform:translateY(-1px); }
.btn-kakao-icon { display:grid; place-items:center; width:19px; height:19px; }
.btn-kakao-icon svg { width:19px; height:19px; fill:#191600; }

/* Store radio player */
.player { position:fixed; z-index:70; left:0; right:0; bottom:0; height:var(--player); display:grid; grid-template-columns:minmax(260px,1fr) auto minmax(230px,1fr); gap:clamp(20px,3vw,52px); align-items:center; padding:12px clamp(20px,2.4vw,38px) 12px 20px; border-top:1px solid rgba(214,124,255,.3); background:linear-gradient(108deg,rgba(18,18,26,.985),rgba(30,23,39,.985) 54%,rgba(18,32,34,.985)); box-shadow:0 -18px 55px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.035); backdrop-filter:blur(22px); }
.player::before { content:""; position:absolute; inset:0 auto 0 0; width:34%; pointer-events:none; background:radial-gradient(circle at 20% 50%,rgba(185,71,236,.13),transparent 65%); }
.player-track { position:relative; min-width:0; display:grid; grid-template-columns:70px minmax(0,1fr); gap:14px; align-items:center; }
.player-art { position:relative; width:70px; height:70px; display:grid; place-items:center; overflow:hidden; border:2px solid rgba(224,151,255,.72); border-radius:50%; background:radial-gradient(circle at 30% 20%,#765092,#263b40 66%,#182329); color:var(--brand-light); font-size:1.5rem; box-shadow:0 0 0 4px rgba(185,71,236,.1),0 9px 24px rgba(0,0,0,.36); }
.player-art::before { content:""; position:absolute; z-index:3; left:50%; top:50%; width:9px; height:9px; border:3px solid rgba(23,18,29,.82); border-radius:50%; background:#f5e7fb; box-shadow:0 0 0 4px rgba(255,255,255,.12); opacity:0; transform:translate(-50%,-50%); pointer-events:none; }
.player-art::after { content:""; position:absolute; z-index:2; inset:4px; pointer-events:none; border:1px solid rgba(255,255,255,.11); border-radius:50%; background:repeating-radial-gradient(circle,transparent 0 7px,rgba(7,6,11,.18) 8px 9px); box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),inset 0 0 18px rgba(0,0,0,.28); opacity:0; }
.player-art.has-cover::before,.player-art.has-cover::after { opacity:1; }
.player-art img { position:relative; z-index:1; width:100%; height:100%; border-radius:50%; object-fit:cover; animation:vinyl-spin 9s linear infinite paused; }
.player[data-player-state="playing"] .player-art.has-cover img { animation-play-state:running; }
.player-copy { min-width:0; }
.player-eyebrow { display:block; margin-bottom:4px; color:#b99bc9; font-size:.57rem; font-weight:900; letter-spacing:.15em; }
.player-title,.player-meta { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.player-title { color:#fff; font-size:.94rem; font-weight:850; letter-spacing:-.015em; }
.player-meta { margin-top:5px; color:#8f8a9b; font-size:.68rem; }
.player-center { min-width:0; display:flex; align-items:center; justify-content:center; gap:17px; }
.player-control.primary { position:relative; width:62px; height:62px; flex:0 0 62px; display:grid; place-items:center; padding:0; border:1px solid rgba(255,255,255,.48); border-radius:50%; background:linear-gradient(145deg,#fff,#e7ddeb); color:#1a1420; box-shadow:0 0 0 7px rgba(185,71,236,.1),0 12px 28px rgba(0,0,0,.36); transition:transform .18s,box-shadow .18s,filter .18s; }
.player-control.primary:not(:disabled):hover { transform:scale(1.05); filter:brightness(1.04); box-shadow:0 0 0 9px rgba(185,71,236,.13),0 15px 30px rgba(0,0,0,.4); }
.player-control.primary:disabled { cursor:default; opacity:.5; }
.player[data-player-state="playing"] .player-control.primary:disabled { opacity:1; }
.player-control.primary svg { width:25px; height:25px; fill:currentColor; }
.player-control.primary [data-icon-play] { margin-left:3px; }
.player-radio-state { min-width:145px; display:grid; gap:7px; }
.live-pill,.shuffle-pill { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
.live-pill { color:#aaa6b2; font-size:.65rem; font-weight:850; letter-spacing:.08em; }
.live-pill i,.player-connection i { width:7px; height:7px; border-radius:50%; background:#716d79; }
.player[data-player-state="playing"] .live-pill { color:#9df3e5; }
.player[data-player-state="playing"] .live-pill i { background:var(--mint); box-shadow:0 0 0 5px rgba(81,216,194,.11); animation:live-pulse 1.8s ease-out infinite; }
.player[data-player-state="loading"] .live-pill i { background:var(--warning); animation:radio-pulse 1s ease-in-out infinite; }
.player[data-player-state="error"] .live-pill i { background:var(--danger); }
.shuffle-pill { color:#817c89; font-size:.64rem; font-weight:720; }
.shuffle-pill svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.player-tools { position:relative; display:flex; justify-content:flex-end; align-items:center; gap:20px; }
.volume-control { display:flex; align-items:center; gap:11px; color:#aaa5b4; }
.volume-control svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.volume-control input { width:112px; min-height:0; height:4px; padding:0; border:0; accent-color:var(--brand-light); background:transparent; box-shadow:none; }
.player-connection { display:inline-flex; align-items:center; gap:7px; color:#777381; font-size:.64rem; font-weight:750; }
.player-connection i { background:var(--mint); }
.player-connection.is-offline { color:#c6949b; }.player-connection.is-offline i { background:var(--danger); }
.ambient-player-link { display:inline-flex; align-items:center; gap:7px; color:#aaa5b4; font-size:.66rem; font-weight:760; }.ambient-player-link:hover { color:white; }
.ambient-state-dot { width:8px; height:8px; flex:0 0 8px; display:inline-block; border-radius:50%; background:#686471; transition:.2s; }.ambient-state-dot.is-playing { background:var(--mint); box-shadow:0 0 0 5px rgba(81,216,194,.1); }
@keyframes live-pulse { 0% { box-shadow:0 0 0 0 rgba(81,216,194,.34); } 75%,100% { box-shadow:0 0 0 8px rgba(81,216,194,0); } }
@keyframes radio-pulse { 0%,100% { opacity:.55; } 50% { opacity:1; } }
@keyframes vinyl-spin { to { transform:rotate(1turn); } }

/* Modal */
.modal-backdrop { position:fixed; z-index:100; inset:0; display:grid; place-items:center; padding:20px; background:rgba(6,6,10,.78); backdrop-filter:blur(7px); }.modal { width:min(520px,100%); padding:30px; border:1px solid rgba(185,71,236,.52); border-radius:20px; background:#26232e; box-shadow:0 30px 90px rgba(0,0,0,.6); }.modal h2 { margin:12px 0; line-height:1.35; }.modal-icon { width:52px; height:52px; display:grid; place-items:center; margin-bottom:17px; border-radius:15px; background:rgba(185,71,236,.17); color:var(--brand-light); font-size:1.5rem; }.hidden { display:none !important; }

/* Admin operations dashboard and usage */
.admin-page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.admin-page-head h1 { margin:7px 0 6px; font-size:clamp(1.75rem,3vw,2.45rem); letter-spacing:-.045em; }
.admin-page-head p { max-width:760px; margin:0; color:var(--muted); line-height:1.65; }
.dashboard-clock { flex:0 0 auto; color:var(--subtle); font-size:.74rem; font-variant-numeric:tabular-nums; }
.dashboard-stats { grid-template-columns:repeat(4,minmax(128px,1fr)); margin-bottom:18px; }
.dashboard-stats .stat { min-height:126px; padding:18px; }
.dashboard-stats .stat strong { font-size:1.8rem; }
.dashboard-stats .stat strong small { color:var(--subtle); font-size:.68rem; font-weight:700; }
.stat-warn { border-color:rgba(255,190,92,.35); background:linear-gradient(145deg,rgba(255,190,92,.08),var(--surface)); }
.stat-warn strong { color:var(--warning); }
.dashboard-primary-grid,.dashboard-secondary-grid,.analytics-grid { display:grid; gap:18px; margin-bottom:18px; }
.dashboard-primary-grid { grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr); }
.dashboard-secondary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.analytics-grid { grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); }
.chart-card h2,.dashboard-secondary-grid h2 { margin:0 0 5px; font-size:1rem; }
.chart-card > p,.dashboard-secondary-grid .card > p { margin:0 0 18px; color:var(--subtle); font-size:.72rem; }
.bar-chart { height:210px; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(30px,1fr); align-items:end; gap:8px; padding:24px 4px 0; border-bottom:1px solid var(--line); }
.bar-column { height:100%; display:grid; grid-template-rows:18px minmax(0,1fr) 25px; align-items:end; justify-items:center; gap:5px; color:var(--subtle); font-size:.62rem; }
.bar-value { color:var(--muted); font-variant-numeric:tabular-nums; }
.bar-column i { width:min(34px,72%); min-height:3px; border-radius:7px 7px 2px 2px; background:linear-gradient(180deg,var(--brand-light),var(--brand)); box-shadow:0 0 22px rgba(185,71,236,.18); }
.rank-list,.health-list,.audit-list { display:grid; gap:9px; margin:15px 0 0; padding:0; list-style:none; }
.rank-list li,.health-row,.audit-list > div { display:grid; align-items:center; gap:10px; min-height:48px; padding:9px 11px; border:1px solid var(--line-soft); border-radius:10px; background:rgba(255,255,255,.018); }
.rank-list li { grid-template-columns:25px minmax(0,1fr) auto; }
.rank-list b { color:var(--brand-light); font-size:.72rem; }.rank-list span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.rank-list strong { color:var(--mint); font-size:.76rem; }
.health-row { grid-template-columns:8px minmax(0,1fr) auto; }.health-row > i { width:8px; height:8px; border-radius:50%; background:var(--danger); }.health-row.ready > i { background:var(--mint); }.health-row.unverified > i { background:#72a9ff; }.health-row.degraded > i { background:var(--warning); }.health-row > div { display:grid; gap:4px; }.health-row small { color:var(--subtle); line-height:1.45; }.health-row > span { padding:5px 8px; border-radius:999px; background:var(--surface-3); color:var(--muted); font-size:.64rem; }
.status-breakdown { display:grid; gap:9px; margin-top:15px; }.status-breakdown > div { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; overflow:hidden; padding:11px; border:1px solid var(--line-soft); border-radius:10px; }.status-breakdown span { color:var(--muted); font-size:.72rem; }.status-breakdown strong { color:white; font-size:.78rem; }.status-breakdown i { position:absolute; left:0; bottom:0; height:2px; background:var(--brand); }
.metric-list { display:grid; gap:10px; margin:14px 0 0; }.metric-list > div { display:flex; justify-content:space-between; gap:14px; padding-bottom:10px; border-bottom:1px solid var(--line-soft); }.metric-list dt { color:var(--muted); font-size:.76rem; }.metric-list dd { margin:0; color:white; font-weight:820; font-variant-numeric:tabular-nums; }
.panel-note { margin:14px 0 0; padding:10px 12px; border-left:3px solid var(--warning); border-radius:5px; background:rgba(255,190,92,.07); color:#c9c2b6; font-size:.7rem; line-height:1.6; }
.quick-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:15px; }.quick-links > a { min-height:88px; display:grid; grid-template-columns:30px minmax(0,1fr); column-gap:9px; align-content:center; padding:12px; border:1px solid var(--line-soft); border-radius:11px; background:rgba(255,255,255,.018); }.quick-links > a:hover { border-color:var(--brand); background:rgba(185,71,236,.08); }.quick-links > a > span { grid-row:1/3; color:var(--brand-light); font-size:1.1rem; }.quick-links strong,.quick-links small { display:block; }.quick-links small { margin-top:4px; color:var(--subtle); font-size:.65rem; }
.audit-list > div { grid-template-columns:8px minmax(0,1fr); }.audit-list > div > i { width:7px; height:7px; border-radius:50%; background:var(--brand); }.audit-list span { display:grid; gap:4px; overflow:hidden; }.audit-list strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.audit-list small { color:var(--subtle); font-variant-numeric:tabular-nums; }
.filter-panel { display:grid; grid-template-columns:repeat(5,minmax(120px,1fr)); align-items:end; gap:12px; margin-bottom:18px; }.filter-actions { display:flex; gap:8px; }
.sort-link { display:inline-flex; align-items:center; gap:6px; color:inherit; white-space:nowrap; }.sort-link:hover { color:white; }.sort-arrow { color:var(--brand-light); font-size:.68rem; }
.table-sub { display:block; margin-top:4px; color:var(--subtle); font-size:.67rem; }.nowrap { white-space:nowrap; }

/* Ambient sound mixer */
.ambient-control-panel { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:20px; background:linear-gradient(120deg,rgba(81,216,194,.08),rgba(185,71,236,.07)); }.ambient-control-panel > div { display:flex; align-items:center; gap:12px; }.ambient-control-panel small,.ambient-control-panel strong { display:block; }.ambient-control-panel small { color:var(--subtle); font-size:.66rem; }.ambient-control-panel strong { margin-top:3px; }
.ambient-volume { min-width:min(330px,45%); display:grid; grid-template-columns:auto minmax(120px,1fr); align-items:center; gap:13px; }.ambient-volume input { min-height:0; height:5px; padding:0; border:0; accent-color:var(--mint); background:transparent; box-shadow:none; }
.ambient-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }.ambient-group { overflow:hidden; padding:0; }.ambient-group-head { min-height:124px; display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:20px; border-bottom:1px solid var(--line-soft); }.ambient-group-head h2 { margin:5px 0; font-size:1.15rem; }.ambient-group-head p { max-width:450px; margin:0; color:var(--subtle); font-size:.73rem; line-height:1.55; }.ambient-group-head > span { padding:6px 9px; border-radius:999px; background:var(--surface-3); color:var(--muted); font-size:.65rem; white-space:nowrap; }
.ambient-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); gap:1px; background:var(--line-soft); }.ambient-option { min-width:0; display:grid; grid-template-columns:62px minmax(0,1fr); gap:11px; align-items:center; padding:12px; border:0; background:var(--surface); color:white; text-align:left; transition:background .16s; }.ambient-option:hover,.ambient-option.is-playing { background:#302b3a; }.ambient-option-art { position:relative; width:62px; height:62px; overflow:hidden; border-radius:10px; background:#282834; }.ambient-option-art img { width:100%; height:100%; object-fit:cover; }.ambient-option-art i { position:absolute; inset:0; display:grid; place-items:center; background:rgba(9,8,13,.32); color:white; font-size:.85rem; font-style:normal; opacity:0; transition:.16s; }.ambient-option:hover i,.ambient-option.is-playing i { opacity:1; }.ambient-option.is-playing i { background:rgba(81,216,194,.72); }.ambient-option strong,.ambient-option small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.ambient-option strong { font-size:.78rem; }.ambient-option small { margin-top:4px; color:var(--subtle); font-size:.64rem; }.ambient-guide { align-items:flex-start; }.ambient-guide p { margin:5px 0 0; color:var(--muted); line-height:1.55; }

/* Scheduled announcements */
.announcement-page-head { align-items:center; }.announcement-head-tools { flex:1 1 520px; min-width:300px; max-width:760px; display:grid; gap:10px; }
/* 검색 필터는 한 줄에 유지합니다. 좁아지면 검색창만 줄어들고 다른 항목은 그대로 둡니다. */
.announcement-sort { display:flex; flex-wrap:nowrap; align-items:center; gap:9px; }
.announcement-sort > input[name="q"] { flex:1 1 140px; min-width:96px; }
.announcement-sort > select { flex:0 1 auto; min-width:0; min-height:38px; padding:7px 30px 7px 10px; font-size:.7rem; }
.announcement-sort > .btn, .announcement-sort > .text-button { flex:0 0 auto; white-space:nowrap; }
.announcement-sort label { color:var(--subtle); font-size:.66rem; font-weight:740; }.announcement-runtime { justify-content:center; }.announcement-runtime.is-ready i { background:var(--mint); box-shadow:0 0 0 5px rgba(81,216,194,.1); }.announcement-runtime.is-busy i { background:var(--warning); animation:radio-pulse 1s ease-in-out infinite; }.announcement-runtime.is-error i { background:var(--danger); }
.announcement-ready-panel { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; background:linear-gradient(120deg,rgba(185,71,236,.09),rgba(81,216,194,.06)); }.announcement-ready-panel > div { display:flex; align-items:center; gap:13px; }.announcement-ready-panel small,.announcement-ready-panel strong { display:block; }.announcement-ready-panel small { margin-bottom:4px; color:var(--subtle); font-size:.66rem; }.announcement-ready-icon { width:42px; height:42px; display:grid; place-items:center; flex:0 0 42px; border-radius:50%; background:rgba(185,71,236,.16); color:var(--brand-light); }
.announcement-create { margin-bottom:20px; }.announcement-form textarea { resize:vertical; line-height:1.6; }.field-help { margin-top:7px; color:var(--subtle); font-size:.65rem; line-height:1.5; }.announcement-active-field { align-content:end; }.switch-field { min-height:46px; display:flex; align-items:center; gap:9px; padding:0 13px; border:1px solid var(--line); border-radius:9px; background:var(--surface-2); }.switch-field input { width:auto; min-height:0; padding:0; accent-color:var(--brand); }.switch-field span { font-size:.75rem; font-weight:740; }
.announcement-days { flex-wrap:wrap; }.announcement-form-actions { display:flex; align-items:center; gap:9px; }.announcement-preview-status { color:var(--muted); font-size:.68rem; line-height:1.45; }.announcement-preview-status.is-error { color:#e8a1aa; }
.announcement-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }.announcement-card { min-width:0; overflow:hidden; padding:0; }.announcement-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:20px 20px 15px; border-bottom:1px solid var(--line-soft); }.announcement-card-head h2 { margin:10px 0 9px; font-size:1.1rem; letter-spacing:-.025em; }.announcement-meta { display:flex; align-items:center; flex-wrap:wrap; gap:7px; color:var(--subtle); font-size:.68rem; }.announcement-meta > span:not(.badge) + span::before { content:'·'; margin-right:7px; color:#5f5a68; }.announcement-phrase { min-height:74px; margin:0; padding:17px 20px; color:#d6d1db; font-size:.78rem; line-height:1.75; white-space:pre-wrap; }.announcement-edit { padding:0 20px 18px; border-top:1px solid var(--line-soft); }.announcement-edit > summary { margin-top:13px; }.announcement-edit[open] > summary { margin-bottom:15px; }.announcement-edit .announcement-form { padding:18px; border:1px solid var(--line-soft); border-radius:12px; background:rgba(255,255,255,.018); }.announcement-delete { display:flex; justify-content:flex-end; margin-top:12px; }.announcement-guide { align-items:flex-start; margin-top:20px; }.announcement-guide p { margin:5px 0 0; color:var(--muted); line-height:1.55; }

@media (max-width: 1480px) {
    .shell.has-right-rail { grid-template-columns:var(--sidebar) minmax(0,1fr); }
    .right-rail { display:none; }
    .compact-favorites { display:block; }
}

@media (max-width: 1050px) {
    .welcome-panel { grid-template-columns:minmax(0,1fr) 220px; }
    .album-grid { grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); }
    .player { grid-template-columns:minmax(230px,1fr) auto minmax(80px,.5fr); gap:18px; }
    .volume-control { display:none; }
    .dashboard-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .dashboard-primary-grid,.analytics-grid { grid-template-columns:1fr; }
    .filter-panel { grid-template-columns:repeat(3,minmax(120px,1fr)); }
    .catalog-filter-form { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .catalog-filter-query { grid-column:span 2; }
    .ambient-grid { grid-template-columns:1fr; }
}

@media (max-width: 900px) {
    :root { --player:78px; }
    .mobile-topbar { position:fixed; z-index:35; inset:0 0 auto; height:58px; display:grid; grid-template-columns:48px 1fr 48px; align-items:center; padding:5px 10px; border-bottom:1px solid var(--line-soft); background:rgba(25,25,34,.96); backdrop-filter:blur(15px); }
    .mobile-brand { justify-self:center; }.mobile-brand img { width:132px; }
    .mobile-profile { width:38px; height:38px; display:grid; place-items:center; justify-self:end; border-radius:50%; background:linear-gradient(135deg,var(--brand),#6840d0); font-size:.77rem; font-weight:850; }
    .shell,.shell.has-right-rail { display:block; padding:58px 0 calc(var(--player) + 68px); }
    .sidebar { inset:0 auto 0 0; width:min(285px,86vw); padding-bottom:20px; transform:translateX(-105%); box-shadow:20px 0 60px rgba(0,0,0,.4); transition:transform .23s ease; }
    body.sidebar-open .sidebar { transform:translateX(0); }
    .sidebar-close { display:grid !important; }
    .sidebar-overlay { position:fixed; z-index:39; inset:0; display:block; background:rgba(4,4,7,.68); }
    .sidebar-overlay[hidden] { display:none; }
    .content { padding:24px 17px 48px; }
    .mobile-bottom-nav { position:fixed; z-index:60; left:0; right:0; bottom:0; height:58px; display:grid; grid-template-columns:repeat(5,1fr); padding-bottom:env(safe-area-inset-bottom); border-top:1px solid var(--line); background:#1b1b24; }
    .mobile-bottom-nav a { display:grid; place-items:center; align-content:center; gap:1px; color:var(--subtle); }.mobile-bottom-nav a span { font-size:1.05rem; }.mobile-bottom-nav a small { font-size:.63rem; font-weight:760; }.mobile-bottom-nav a.active { color:var(--brand-light); }
    .player { left:0; bottom:58px; height:var(--player); grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:8px 14px; }
    .slot-actions .schedule-slot-popover { top:70px; right:10px; bottom:calc(var(--player) + 70px); left:10px; width:auto; }
    .player-track { grid-template-columns:56px minmax(0,1fr); gap:10px; }.player-art { width:56px; height:56px; border-radius:50%; }.player-eyebrow { display:none; }.player-title { font-size:.8rem; }.player-meta { font-size:.61rem; }.player-center { gap:0; }.player-control.primary { width:54px; height:54px; flex-basis:54px; }.player-radio-state,.player-tools { display:none; }
    .page-head,.library-header,.catalog-toolbar { align-items:flex-start; flex-direction:column; }
    .catalog-toolbar { gap:17px; }.catalog-search { width:100%; }
    .welcome-panel { min-height:260px; grid-template-columns:1fr; }.hero-visual { position:absolute; right:-45px; bottom:-18px; height:130px; opacity:.22; }.welcome-copy { max-width:90%; }
    .album-detail-hero { grid-template-columns:minmax(190px,290px); justify-content:center; }.album-detail-copy { text-align:center; }.album-detail-copy .actions,.album-detail-actions,.hashtag-row { justify-content:center; }
    .time-slot-main { grid-template-columns:1fr auto; }.time-block { grid-column:1/-1; }.slot-copy small { max-width:70vw; }
    .admin-album-panels { grid-template-columns:1fr; }.admin-album-panels > details:first-child { border-right:0; border-bottom:1px solid var(--line-soft); }
    .auth-shell { width:min(480px,100%); min-height:0; display:block; }.auth-showcase { display:none; }.auth-card { min-height:0; }.auth-mobile-logo { display:flex !important; justify-content:center; margin-bottom:24px; }.auth-mobile-logo img { width:174px; }
    .admin-page-head { align-items:flex-start; flex-direction:column; }.dashboard-secondary-grid { grid-template-columns:1fr; }.filter-panel { grid-template-columns:repeat(2,minmax(120px,1fr)); }
    .ambient-control-panel { align-items:flex-start; flex-direction:column; }.ambient-volume { width:100%; min-width:0; }
    .announcement-list { grid-template-columns:1fr; }.announcement-ready-panel { align-items:flex-start; flex-direction:column; }.announcement-ready-panel .btn { width:100%; }.announcement-head-tools { width:100%; min-width:0; max-width:none; }
    /* 좁은 화면에서까지 한 줄을 고집하면 항목이 눌려서 못 읽습니다. 여기서만 줄바꿈을 허용합니다. */
    .announcement-sort { flex-wrap:wrap; }
    .announcement-sort > input[name="q"] { flex:1 1 100%; }
    .announcement-runtime { justify-content:flex-start; }
}

@media (max-width: 620px) {
    .content { padding-inline:13px; }
    .page-head h1,.library-header h1 { font-size:1.7rem; }.page-head .btn,.library-header .btn { width:100%; }
    .welcome-panel { padding:25px 21px; border-radius:17px; }.welcome-copy h2 { font-size:1.7rem; }.welcome-copy p { font-size:.82rem; }.hero-actions .btn { width:100%; }
    .album-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:19px 11px; }.album-artwork { border-radius:12px; }.album-title { font-size:.82rem; }.album-meta { font-size:.62rem; }.favorite-button { width:42px; height:42px; }.album-play { width:50px; height:50px; opacity:1; background:rgba(185,71,236,.9); transform:translate(-50%,-50%); }
    .form-grid,.admin-favorite-assignment .form-grid { grid-template-columns:1fr; }.field.full { grid-column:auto; }.album-checks { grid-template-columns:1fr; }.admin-favorite-submit { min-width:0; }
    .track-row { grid-template-columns:27px 38px minmax(0,1fr) 44px; gap:8px; padding-inline:5px; }.track-icon { width:38px; height:38px; }.track-state { display:none; }.track-play,.track-lock { width:44px; height:44px; }
    .schedule-head { align-items:flex-start; padding:17px; }.time-slot { padding:15px; }.time-slot-main { gap:13px; }.slot-actions { align-self:start; }.popover-form,.floating-form { position:fixed; z-index:80; inset:70px 10px auto; width:auto; max-height:calc(100vh - 150px); overflow-y:auto; }
    .schedule-tools { padding:14px; }.admin-toolbar { align-items:stretch; flex-direction:column; }.catalog-filter-form { width:100%; flex:none; grid-template-columns:repeat(2,minmax(0,1fr)); }.catalog-filter-query { grid-column:1/-1; }.catalog-filter-actions { align-items:stretch; }.catalog-filter-actions .btn { flex:1; }.create-album-details > summary { width:100%; }.admin-album-summary { grid-template-columns:68px minmax(0,1fr); gap:12px; }.admin-cover { width:68px; height:68px; }.admin-quick-actions { grid-column:1/-1; }.admin-quick-actions .btn { width:100%; }
    .pagination { align-items:flex-start; flex-direction:column; }.pagination .actions { width:100%; }.pagination .btn { flex:1; }
    .auth-page { padding:14px; }.auth-card { padding:28px 21px; }.auth-field-row { grid-template-columns:1fr; }
    .dashboard-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }.dashboard-stats .stat { min-height:106px; padding:14px; }.filter-panel { grid-template-columns:1fr; }.filter-actions .btn { flex:1; }.bar-chart { gap:4px; }.quick-links { grid-template-columns:1fr; }
    .ambient-options { grid-template-columns:1fr 1fr; }.ambient-option { grid-template-columns:52px minmax(0,1fr); padding:9px; }.ambient-option-art { width:52px; height:52px; }.ambient-volume { grid-template-columns:1fr; }
    .announcement-form-actions { align-items:stretch; flex-direction:column; }.announcement-form-actions .btn { width:100%; }.announcement-card-head { padding-inline:16px; }.announcement-phrase { padding-inline:16px; }.announcement-edit { padding-inline:16px; }
}

@media (max-width: 420px) {
    .catalog-filter-form { grid-template-columns:1fr; }
    .catalog-filter-query { grid-column:auto; }
}

@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
    .album-card.is-current .album-cover,.album-card.is-current .album-cover-fallback,.sidebar-album.is-current .sidebar-album-cover,.rail-album.is-current .rail-cover,.album-detail-hero.is-current .album-detail-cover > img:not(.legacy-album-label),.player-art img { animation:none !important; }
}

/* ── 설치형 앱(PWA) 안내 ───────────────────────────────────────────── */
.pwa-install-trigger { display:flex; align-items:center; gap:9px; width:100%; margin:14px 0 0; padding:11px 13px; border:1px dashed rgba(185,71,236,.42); border-radius:11px; background:rgba(185,71,236,.08); color:#e8baff; font-size:.75rem; font-weight:800; cursor:pointer; transition:background .15s ease, border-color .15s ease; }
.pwa-install-trigger:hover, .pwa-install-trigger:focus-visible { background:rgba(185,71,236,.16); border-color:rgba(214,124,255,.7); }
.pwa-install-trigger-icon { display:grid; place-items:center; width:22px; height:22px; flex:0 0 22px; border-radius:50%; background:rgba(185,71,236,.22); }
.pwa-install-trigger-icon svg { width:14px; height:14px; fill:currentColor; }

.pwa-modal-backdrop { position:fixed; inset:0; z-index:120; display:grid; place-items:center; padding:20px; background:rgba(8,8,12,.72); backdrop-filter:blur(3px); }
.pwa-modal-backdrop[hidden] { display:none; }
body.pwa-modal-open { overflow:hidden; }
.pwa-modal { position:relative; width:min(440px,100%); max-height:90vh; overflow:auto; padding:30px 28px 24px; border:1px solid #3a3846; border-radius:18px; background:linear-gradient(160deg,#1e1d27,#16161d); box-shadow:0 30px 70px rgba(0,0,0,.55); text-align:center; }
.pwa-modal-close { position:absolute; top:12px; right:14px; width:30px; height:30px; border:0; border-radius:50%; background:transparent; color:var(--muted); font-size:1.3rem; line-height:1; cursor:pointer; }
.pwa-modal-close:hover, .pwa-modal-close:focus-visible { color:#fff; background:rgba(255,255,255,.08); }
.pwa-modal-icon { display:block; width:64px; height:64px; margin:0 auto 14px; }
.pwa-modal-icon img { width:64px; height:64px; border-radius:15px; }
.pwa-modal h2 { margin:6px 0 10px; font-size:1.06rem; line-height:1.4; }
.pwa-modal-lead { margin:0 0 16px; color:var(--muted); font-size:.79rem; line-height:1.62; }
.pwa-modal-points { display:grid; gap:7px; margin:0 0 20px; padding:14px; list-style:none; border-radius:12px; background:rgba(255,255,255,.035); text-align:left; }
.pwa-modal-points li { display:flex; align-items:center; gap:9px; color:#cfc9db; font-size:.75rem; }
.pwa-modal-points span { color:var(--mint); font-size:.6rem; }
.pwa-modal-actions { display:grid; gap:9px; }
.pwa-modal-manual { text-align:left; }
.pwa-manual-title { margin:0 0 10px; color:#e8baff; font-size:.8rem; font-weight:800; }
.pwa-manual-steps { display:grid; gap:8px; margin:0 0 18px; padding-left:19px; color:var(--muted); font-size:.76rem; line-height:1.55; }
.pwa-modal-note { display:block; margin-top:15px; color:var(--subtle); font-size:.68rem; line-height:1.5; }

/* ── 예약 재생 상태 배너 ───────────────────────────────────────────── */
.schedule-banner { display:flex; align-items:center; gap:13px; margin:0 0 16px; padding:13px 16px; border-radius:13px; border:1px solid rgba(81,216,194,.28); background:rgba(81,216,194,.08); }
.schedule-banner[hidden] { display:none; }
.schedule-banner[data-state="paused"] { border-color:rgba(240,167,90,.3); background:rgba(240,167,90,.08); }
.schedule-banner[data-state="off"] { border-color:rgba(240,167,90,.32); background:rgba(240,167,90,.09); }
.schedule-banner-pulse { position:relative; width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:var(--mint); }
.schedule-banner[data-state="playing"] .schedule-banner-pulse::after { content:''; position:absolute; inset:-5px; border-radius:50%; border:1px solid rgba(81,216,194,.5); animation:schedule-banner-ping 1.8s ease-out infinite; }
.schedule-banner[data-state="paused"] .schedule-banner-pulse, .schedule-banner[data-state="off"] .schedule-banner-pulse { background:#f0a75a; }
@keyframes schedule-banner-ping { 0% { transform:scale(.7); opacity:1; } 100% { transform:scale(1.7); opacity:0; } }
.schedule-banner-copy { flex:1; min-width:0; display:grid; gap:2px; }
.schedule-banner-copy strong { font-size:.79rem; }
.schedule-banner-copy small { color:var(--muted); font-size:.7rem; }
.schedule-banner-actions { display:flex; gap:7px; flex-wrap:wrap; }
.btn.small, .btn.secondary.small { padding:7px 12px; font-size:.7rem; border-radius:8px; }
@media (max-width:640px) { .schedule-banner { flex-wrap:wrap; } .schedule-banner-actions { width:100%; } }

/* ── 외부 연동 설정 ────────────────────────────────────────────── */
.integration-card { margin-bottom: 18px; padding: 22px 24px; }
.integration-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:16px; padding-bottom:15px; border-bottom:1px solid var(--line-soft); }
.integration-head h2 { margin:0; font-size:1rem; }
.integration-head h2 small { margin-left:7px; color:var(--subtle); font-size:.72rem; font-weight:700; }
.integration-head p { margin:5px 0 0; font-size:.76rem; }
.badge.is-on { border-color:rgba(81,216,194,.42); background:rgba(81,216,194,.14); color:var(--mint); }
.integration-facts { display:grid; gap:8px; margin:0 0 18px; padding:13px 15px; border-radius:11px; background:rgba(255,255,255,.035); }
.integration-facts > div { display:flex; gap:12px; align-items:baseline; }
.integration-facts dt { flex:0 0 92px; color:var(--subtle); font-size:.71rem; font-weight:700; }
.integration-facts dd { margin:0; font-size:.76rem; }
.integration-facts dd.is-error { color:#f0a75a; }
.integration-facts code { padding:3px 8px; border-radius:6px; background:#15151d; font-size:.75rem; letter-spacing:.06em; }
.integration-actions { margin-top:4px; }
.integration-subactions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:15px; padding-top:15px; border-top:1px solid var(--line-soft); }
.integration-subactions form { margin:0; }
.field-note { display:block; margin-top:6px; color:var(--subtle); font-size:.69rem; line-height:1.5; }
.text-button.is-danger { color:#f08a8a; }
.text-button.is-danger:hover { color:#ff9f9f; }
.integration-hint { margin:14px 0 0; padding:12px 14px; border-radius:10px; border:1px solid rgba(240,167,90,.28); background:rgba(240,167,90,.07); color:#f5c58c; font-size:.73rem; line-height:1.65; }
.integration-hint code { padding:2px 6px; border-radius:5px; background:rgba(0,0,0,.35); color:#ffd9ae; font-size:.71rem; }
.voice-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:8px; }
.voice-tools .field-note { margin-top:0; }
.voice-tools code { padding:2px 6px; border-radius:5px; background:#15151d; font-size:.68rem; letter-spacing:.04em; }

/* ── 목소리·알림음 들어보기 ─────────────────────────────────────── */
.select-with-preview { display:flex; align-items:center; gap:8px; }
.select-with-preview select { flex:1 1 auto; min-width:0; }
.preview-chip { flex:0 0 auto; display:inline-flex; align-items:center; gap:5px; min-height:40px; padding:8px 13px; border:1px solid var(--line); border-radius:9px; background:#22212c; color:var(--muted); font-size:.72rem; font-weight:750; cursor:pointer; transition:border-color .15s ease, color .15s ease, background .15s ease; }
.preview-chip:hover, .preview-chip:focus-visible { border-color:rgba(185,71,236,.55); color:#e8baff; background:rgba(185,71,236,.1); }
.preview-chip span { font-size:.62rem; }
.preview-chip.is-playing { border-color:var(--mint); color:var(--mint); background:rgba(81,216,194,.12); }
.preview-chip.is-playing span { animation:radio-pulse 1s ease-in-out infinite; }

/* ── 요금표 관리 ───────────────────────────────────────────────── */
.pricing-row { padding:15px 0; border-bottom:1px solid var(--line-soft); }
.pricing-row:last-of-type { border-bottom:0; }
.pricing-row-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.pricing-code { padding:3px 8px; border-radius:6px; background:#15151d; color:var(--subtle); font-size:.68rem; letter-spacing:.04em; }
.pricing-picker { align-items:end; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid var(--line-soft); }
.pricing-picker-go { display:flex; align-items:end; }
.pricing-ok { display:flex; align-items:center; gap:8px; margin:0 0 14px; color:var(--mint); font-size:.76rem; font-weight:700; }
.tier-actions { display:flex; align-items:center; gap:10px; white-space:nowrap; }
.tier-actions form { margin:0; }
table input[type="number"], table input[type="text"], table input:not([type]) { max-width:150px; min-height:36px; padding:6px 9px; font-size:.78rem; }

/* ── 요금제 비교 ───────────────────────────────────────────────── */
.plan-compare { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:18px; margin:20px 0; align-items:start; }
.plan-card { position:relative; padding:26px 24px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.plan-card.is-recommended { border-color:rgba(185,71,236,.55); background:linear-gradient(160deg,rgba(185,71,236,.1),rgba(81,216,194,.05)); box-shadow:0 18px 44px rgba(0,0,0,.32); }
.plan-flag { position:absolute; top:-11px; left:24px; padding:4px 12px; border-radius:999px; background:linear-gradient(135deg,var(--brand-light),var(--brand)); color:#fff; font-size:.66rem; font-weight:850; letter-spacing:.04em; }
.plan-card h2 { margin:4px 0 0; font-size:1.06rem; }
.plan-desc { margin:6px 0 0; color:var(--muted); font-size:.75rem; line-height:1.55; }
.plan-price { display:flex; align-items:baseline; gap:5px; margin:16px 0 3px; }
.plan-price strong { font-size:1.9rem; letter-spacing:-.03em; }
.plan-price span { color:var(--muted); font-size:.8rem; font-weight:700; }
.plan-price-note { margin:0 0 18px; color:var(--subtle); font-size:.7rem; }
.plan-points { display:grid; gap:9px; margin:0 0 20px; padding:0; list-style:none; }
.plan-points li { display:flex; align-items:flex-start; gap:9px; color:#cfc9db; font-size:.77rem; line-height:1.55; }
.plan-points li span { flex:0 0 auto; color:var(--subtle); font-size:.72rem; }
.plan-points.is-strong li span { color:var(--mint); }
.plan-points.is-strong li b { color:var(--mint); }
.plan-card .btn { width:100%; text-align:center; }

.royalty-note { margin:6px 0 0; border:1px solid var(--line-soft); border-radius:12px; background:rgba(255,255,255,.02); }
.royalty-note > summary { padding:13px 16px; color:var(--subtle); font-size:.73rem; font-weight:700; cursor:pointer; list-style:none; }
.royalty-note > summary::-webkit-details-marker { display:none; }
.royalty-note > summary::before { content:'＋ '; }
.royalty-note[open] > summary::before { content:'－ '; }
.royalty-note > summary:hover { color:var(--muted); }
.royalty-note > div { padding:0 16px 16px; color:var(--muted); font-size:.74rem; line-height:1.68; }
.royalty-note p { margin:0 0 10px; }
.royalty-note ul { margin:0 0 10px; padding-left:18px; display:grid; gap:6px; }
.royalty-note a { color:var(--brand-light); }
.royalty-note-highlight { padding:11px 13px; border-radius:9px; background:rgba(81,216,194,.08); color:#a8e6d6; }

/* ── 계약서 ────────────────────────────────────────────────────── */
.contract-summary { margin-bottom:18px; }
.contract-summary-head { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:16px; padding-bottom:15px; border-bottom:1px solid var(--line-soft); }
.contract-summary-head strong { display:block; margin-top:4px; font-size:1.5rem; letter-spacing:-.02em; }
.contract-summary-head strong small { color:var(--muted); font-size:.75rem; font-weight:700; letter-spacing:0; }
.form-section-title { margin:8px 0 0; font-size:.86rem; color:var(--subtle); letter-spacing:.02em; }
.contract-doc h3.section { margin:22px 0 8px; font-size:.86rem; }
.contract-clause { margin:0 0 10px; color:var(--muted); font-size:.78rem; line-height:1.7; }
.contract-clause.is-good { padding:12px 14px; border-radius:10px; background:rgba(81,216,194,.08); color:#a8e6d6; }
.contract-clause a { color:var(--brand-light); }
.contract-hash { margin:18px 0 0; padding-top:14px; border-top:1px solid var(--line-soft); color:var(--subtle); font-size:.69rem; }
.contract-hash code { padding:2px 6px; border-radius:5px; background:#15151d; }

/* ── 계약 확인 ─────────────────────────────────────────────────── */
.contract-review-card { margin-bottom:16px; }
.contract-review-badges { display:flex; gap:7px; flex-wrap:wrap; }
.contract-review-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:16px; padding-top:15px; border-top:1px solid var(--line-soft); }
.contract-review-actions form { margin:0; }
.nav-count { margin-left:auto; min-width:20px; padding:2px 7px; border-radius:999px; background:rgba(240,167,90,.2); color:#f0a75a; font-size:.66rem; font-weight:850; text-align:center; }

/* ── 저작권 클린존 인증서 ──────────────────────────────────────── */
.certificate-page { display:grid; place-items:center; gap:18px; min-height:100vh; margin:0; padding:32px 20px; background:#0f0f14; }
.certificate { width:min(720px,100%); padding:52px 56px; border:1px solid #3a3846; border-radius:20px; background:linear-gradient(165deg,#1d1c26,#16161d); box-shadow:0 30px 70px rgba(0,0,0,.5); text-align:center; }
.certificate > header { padding-bottom:26px; border-bottom:1px solid var(--line-soft); }
.certificate > header img { height:34px; margin-bottom:18px; }
.certificate-eyebrow { display:block; color:var(--brand-light); font-size:.74rem; font-weight:800; letter-spacing:.16em; }
.certificate h1 { margin:8px 0 0; font-size:2.1rem; letter-spacing:.3em; text-indent:.3em; }
.certificate-lead { margin:28px 0; color:#d7d2e0; font-size:.95rem; line-height:2; }
.certificate-facts { display:grid; gap:11px; margin:0 0 26px; padding:20px 24px; border-radius:13px; background:rgba(255,255,255,.035); text-align:left; }
.certificate-facts > div { display:flex; gap:16px; }
.certificate-facts dt { flex:0 0 96px; color:var(--subtle); font-size:.75rem; font-weight:750; }
.certificate-facts dd { margin:0; font-size:.85rem; font-weight:700; }
.certificate-note { margin:0 0 28px; padding:13px 16px; border-radius:10px; background:rgba(81,216,194,.07); color:#a8e6d6; font-size:.74rem; line-height:1.72; }
.certificate > footer { padding-top:24px; border-top:1px solid var(--line-soft); }
.certificate > footer strong { display:block; font-size:.92rem; letter-spacing:.02em; }
.certificate > footer small { display:block; margin-top:9px; color:var(--subtle); font-size:.67rem; }
.certificate-actions { display:flex; gap:10px; }
@media print {
    .certificate-page { min-height:auto; padding:0; background:#fff; }
    .certificate { border:1px solid #ccc; border-radius:0; background:#fff; box-shadow:none; color:#111; }
    .certificate h1, .certificate-facts dd, .certificate > footer strong { color:#111; }
    .certificate-lead { color:#333; }
    .certificate-facts { background:#f6f6f8; }
    .certificate-note { background:#f0faf7; color:#1c5f52; }
    .no-print { display:none !important; }
}

/* ── 현판 · DRM 신청 ───────────────────────────────────────────── */
.request-forms { display:grid; grid-template-columns:repeat(auto-fit,minmax(330px,1fr)); gap:18px; margin-bottom:18px; align-items:start; }
.request-row { padding:15px 0; border-bottom:1px solid var(--line-soft); }
.request-row:last-child { border-bottom:0; }
.request-row-main { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.request-row-main strong { display:block; font-size:.85rem; }
.request-row-main small { display:block; margin-top:3px; color:var(--subtle); font-size:.69rem; }
.request-row-detail { margin:8px 0 0; color:var(--muted); font-size:.73rem; }
.request-row-detail.is-note { padding:9px 12px; border-radius:8px; background:rgba(255,255,255,.04); }
.request-row form { margin-top:9px; }

/*
 * 결제 안내 팝업.
 *
 * 이 스타일이 guest-preview.css 에만 있어서, 로그인 화면에서는 모달이 아무 꾸밈
 * 없이 페이지 아래에 그대로 흘러나왔습니다. 두 화면이 같은 부품을 쓰므로
 * 여기에 둡니다.
 */
.guest-preview-modal-backdrop {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(6, 6, 10, .82);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}
.guest-preview-modal-backdrop[hidden] { display: none; }
.guest-preview-modal {
    position: relative;
    width: min(560px, 100%);
    padding: clamp(27px, 5vw, 42px);
    border: 1px solid rgba(214, 124, 255, .52);
    border-radius: 24px;
    background: radial-gradient(circle at 90% 5%, rgba(81, 216, 194, .1), transparent 30%), #26232e;
    box-shadow: 0 34px 110px rgba(0, 0, 0, .7);
}
.guest-preview-modal-close {
    position: absolute; right: 16px; top: 16px;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    color: #c9c4d0;
    background: rgba(255, 255, 255, .045);
    font-size: 1.35rem;
    cursor: pointer;
}
.guest-preview-modal-icon {
    width: 58px; height: 58px;
    display: grid; place-items: center;
    margin-bottom: 19px;
    border-radius: 17px;
    color: var(--brand-light);
    background: rgba(185, 71, 236, .17);
    font-size: 1.65rem;
}
.guest-preview-modal h2 {
    /* 제목은 한 줄에 들어가야 합니다. 두 줄로 넘어가면 팝업이 장황해 보입니다. */
    margin: 12px 0;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    line-height: 1.3;
    letter-spacing: -.04em;
    text-wrap: balance;
}
.guest-preview-modal > p { margin: 0; color: #bbb6c5; line-height: 1.7; }
.guest-preview-modal-actions {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
}
.guest-preview-modal-actions .btn { min-height: 48px; justify-content: center; }
.guest-preview-browse {
    min-height: 44px;
    border: 0;
    color: var(--brand-light);
    background: transparent;
    font-size: .78rem;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}
.guest-preview-modal > small {
    display: block;
    margin-top: 18px;
    color: #b6b0be;
    font-size: .75rem;
    line-height: 1.55;
    text-align: center;
}
@media (max-width: 640px) {
    .guest-preview-modal-backdrop { align-items: end; padding: 0; }
    .guest-preview-modal {
        width: 100%;
        max-height: calc(100dvh - 18px);
        overflow-y: auto;
        padding: 30px 20px calc(24px + env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
    }
}
