/* ---------- Inner pages (Pop Sticker) ---------- */
main { position: relative; }
.danger-text { color: var(--danger) !important; }

/* ---------- Auth ---------- */
.auth-wrap { position: relative; min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 70px 20px 80px; background: var(--sky); border-bottom: var(--line); overflow: hidden; }
.auth-wrap .dot { position: absolute; border-radius: 50%; border: var(--line); animation: bob 6s ease-in-out infinite; }
.auth-wrap .d1 { width: 130px; height: 130px; left: 8%; top: 18%; background: var(--sun); }
.auth-wrap .d2 { width: 70px; height: 70px; right: 12%; top: 26%; background: var(--white); animation-delay: -2s; }
.auth-wrap .d3 { width: 46px; height: 46px; right: 20%; bottom: 16%; background: var(--peach); animation-delay: -4s; }
.auth-card { position: relative; width: min(450px, 100%); padding: 36px 32px; box-shadow: var(--pop-lg); }
.auth-card.success { animation: yay .5s var(--spring); }
@keyframes yay { 50% { transform: scale(1.04) rotate(2deg); } }
.auth-mascot { width: 74px; height: 74px; margin: -76px auto 16px; background: var(--sun); border: var(--line); border-radius: 50%; display: grid; place-items: center; box-shadow: var(--pop-sm); animation: bob 4s ease-in-out infinite; }
.auth-mascot .brand-mark { width: 50px; height: 50px; }
.auth-card h1 { font-size: 2rem; margin-top: 22px; }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--sky-soft); border: var(--line-thin); border-radius: 999px; padding: 4px; }
.tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 10px; min-height: 44px; font-weight: 900; cursor: pointer; border-radius: 999px; transition: color .3s; }
.tabs button[aria-selected="true"] { color: var(--white); }
.tab-ink { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px); background: var(--ink); border-radius: 999px; transition: transform .45s var(--spring); }
.auth-card[data-mode="login"] .register-only { display: none; }
.auth-card .register-only { animation: fadeDown .4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

.auth-card[data-mode="register"] .login-only { display: none; }
.forgot-link { align-self: flex-end; font-size: .88rem; }
.form-ok { background: var(--mint); border: var(--line-thin); padding: 10px 14px; border-radius: 12px; font-weight: 800; font-size: .92rem; margin-bottom: 14px; display: none; }
.form-ok.show { display: block; animation: popIn .4s var(--spring); }
.check-email { text-align: center; padding: 10px 0 4px; animation: popIn .5s var(--spring); }
.check-email h2 { font-size: 1.7rem; margin-top: 10px; }
.check-email p { font-weight: 700; }
.mail-art { width: 84px; height: 84px; margin: 10px auto 0; border-radius: 24px; background: var(--sky); border: var(--line); box-shadow: var(--pop-sm); display: grid; place-items: center; animation: bob 4s ease-in-out infinite; }
.mail-art svg { width: 44px; height: 44px; }
.back-link { margin: 22px 0 0; }

/* ---------- Library ---------- */
.lib-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; position: relative; }
.lib-upload { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.quota-note { font-weight: 800; background: var(--white); border: var(--line-thin); border-radius: 999px; padding: 4px 12px; font-size: .88rem; }
.quota-note:empty { display: none; }
@media (max-width: 700px) { .lib-upload { align-items: flex-start; } }
.lib-toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); }
.search .input { padding-left: 46px; border-radius: 999px; border-width: 3px; }
.lang-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: var(--line-thin); background: var(--white); padding: 7px 14px; min-height: 40px; border-radius: 12px; font-weight: 900; font-size: .9rem; cursor: pointer; box-shadow: var(--pop-sm); transition: transform .2s var(--spring), box-shadow .2s; }
.pill:hover { transform: translate(-1px, -1px) rotate(-2deg); box-shadow: 4px 4px 0 var(--ink); }
.pill.on { background: var(--ink); color: var(--white); box-shadow: 3px 3px 0 var(--sun); }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.song-card { display: block; background: var(--white); border: var(--line); border-radius: 24px; overflow: hidden; color: var(--ink); box-shadow: var(--pop); transition: transform .35s var(--spring), box-shadow .3s; }
.song-card:nth-child(3n+2) { --rot: 1deg; } .song-card:nth-child(3n) { --rot: -1deg; }
.song-card.in:hover { transform: translate(-3px, -5px) rotate(0); box-shadow: 9px 10px 0 var(--ink); color: var(--ink); }
.thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--sky-mid); border-bottom: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.thumb img.broken { visibility: hidden; }
.song-card:hover .thumb img { transform: scale(1.07); }
.thumb .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--sun); border: var(--line); display: grid; place-items: center; transform: scale(.6); opacity: 0; transition: .4s var(--spring); }
.thumb .play svg { width: 24px; height: 24px; margin-left: 3px; }
.song-card:hover .play { transform: scale(1); opacity: 1; }
.status-chip { position: absolute; top: 10px; left: 10px; }
.song-meta { padding: 16px 18px 18px; }
.song-meta h3 { font-size: 1.2rem; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-meta .artist { font-weight: 800; font-size: .94rem; color: var(--ink-3); }
.song-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.empty { text-align: center; padding: 50px 20px; max-width: 520px; margin: 0 auto; }
.empty-art { width: 96px; height: 96px; margin: 0 auto 14px; animation: bob 4s ease-in-out infinite; }
.empty-art .brand-mark { width: 100%; height: 100%; }

/* ---------- Upload ---------- */
.quota-bar { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-weight: 900; font-size: .94rem; }
.quota-track { width: 200px; height: 16px; border-radius: 10px; background: var(--white); border: var(--line-thin); overflow: hidden; }
.quota-track span { display: block; height: 100%; width: 0; background: var(--sun); transition: width 1s var(--ease); }
.quota-bar.full .quota-track span { background: var(--danger); }
.login-wall { padding: 40px; text-align: center; max-width: 540px; margin: 0 auto; }
.login-wall .btn { margin: 6px; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
@media (max-width: 960px) { .upload-grid { grid-template-columns: 1fr; } }
.upload-left { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 960px) { .upload-left { position: static; } }
.upload-right { display: flex; flex-direction: column; gap: 28px; }
.step-card { padding: 26px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-head h2 { margin: 0; font-size: 1.45rem; }
.step-n { width: 38px; height: 38px; border-radius: 50%; background: var(--sun); border: var(--line-thin); display: grid; place-items: center; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.1rem; flex: none; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.video-shell { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: var(--sky-soft); border: var(--line); margin-bottom: 16px; }
.video-shell iframe, .video-shell > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; font-weight: 900; }
.video-empty svg { width: 56px; height: 56px; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sync-status { font-size: .82rem; font-weight: 900; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); }
.sync-status:empty { display: none; }
.sync-status.ok { background: var(--mint); }
.sync-status.warn { background: var(--sun-soft); }
.textarea.short { min-height: 120px; }
.lyrics-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.file-btn { cursor: pointer; }
.nudge { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.submit-btn { width: 100%; padding: 20px; font-size: 1.15rem; }
.sync-card { padding: 24px; background: var(--sun-soft); animation: popIn .5s var(--spring); }
@keyframes popIn { from { opacity: 0; transform: scale(.92) rotate(-2deg); } }
.sync-top { display: flex; justify-content: space-between; align-items: baseline; }
.sync-top h3 { margin: 0; }
.sync-lines { text-align: center; padding: 18px 0; }
.sync-prev, .sync-next { color: var(--ink-3); min-height: 1.6em; font-weight: 800; }
.sync-cur { font-size: 1.55rem; font-weight: 900; padding: 12px; margin: 6px 0; background: var(--white); border: var(--line-thin); border-radius: 14px; }
.sync-cur.bump { animation: bump .35s var(--spring); }
@keyframes bump { from { transform: translateY(10px) rotate(-2deg); opacity: .3; } }
.sync-controls { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.tap-btn { min-width: 180px; }

/* ---------- Song player ---------- */
.song-page .site-footer { margin-top: 40px; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; padding-top: 30px; align-items: start; }
.player-col { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.video-shell.big { margin: 0; border-radius: 24px; box-shadow: var(--pop-lg); background: var(--ink); }
.song-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.song-head h1 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin: 0 0 6px; }
.song-sub { font-weight: 800; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.owner-actions { position: relative; }
.status-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--sun-soft); border: var(--line-thin); font-weight: 800; font-size: .92rem; }
.status-banner.info { background: var(--sky-soft); }
.status-banner.info .spinner { display: none; }
.status-banner .progress { flex: 1 1 100%; height: 10px; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.status-banner .progress span { display: block; height: 100%; width: 0; background: var(--sun); transition: width .8s var(--ease); }
.controls { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 6px; border: var(--line-thin); background: var(--white); padding: 7px 14px; min-height: 40px; border-radius: 12px; font-weight: 900; font-size: .88rem; cursor: pointer; transition: transform .2s var(--spring), background .2s, box-shadow .2s; }
.toggle svg { width: 16px; height: 16px; }
.toggle:hover { transform: translate(-1px, -1px); box-shadow: var(--pop-sm); }
.toggle.on { background: var(--sky); box-shadow: var(--pop-sm); }
.toggle.loop.on { background: var(--ink); color: var(--white); box-shadow: 3px 3px 0 var(--sun); }
.ctrl-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.offset-row { font-weight: 800; color: var(--ink-3); }
.play-btn { width: 54px; height: 54px; background: var(--ink); color: var(--white); box-shadow: 3px 3px 0 var(--sun); }
.play-btn:hover { box-shadow: 5px 5px 0 var(--sun); }
.play-btn svg { width: 22px; height: 22px; }
.speed { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: .88rem; }
.select.sm { padding: 6px 32px 6px 12px; width: auto; border-radius: 12px; background-position: right 10px center; min-height: 40px; }
.kbd-hint { margin-left: auto; }
@media (max-width: 1100px) { .kbd-hint { display: none; } }

.lyrics-col { position: relative; }
.lyrics-scroll {
  height: calc(100vh - 130px); overflow-y: auto; padding: 0 12px 0 4px;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.lyrics-pad { height: 30vh; }
.lyric { display: flex; align-items: center; gap: 10px; padding: 14px 18px; margin: 6px 0; border-radius: 20px; border: 3px solid transparent; cursor: pointer; opacity: .45; transition: opacity .4s var(--ease), transform .45s var(--spring), background .3s, border-color .3s, box-shadow .3s; outline-offset: -2px; }
.lyric:hover { opacity: .85; background: var(--white); border-color: var(--ink); }
.lyric.past { opacity: .32; }
.lyric.active { opacity: 1; background: var(--white); border-color: var(--ink); box-shadow: var(--pop); transform: rotate(-.6deg) scale(1.02); }
.lyric.looping { background: var(--sun-soft); }
.l-main { flex: 1; min-width: 0; }
.l-orig { font-size: 1.45rem; font-weight: 900; line-height: 1.4; }
.lyric.active .l-orig { background: linear-gradient(transparent 60%, var(--sun) 60%); display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.l-roman { color: var(--sky-deep); font-weight: 800; font-size: 1rem; margin-top: 4px; }
.l-pron { color: var(--ink-3); font-family: 'Noto Sans', 'Charis SIL', 'Doulos SIL', 'Segoe UI', 'Lucida Sans Unicode', 'Arial Unicode MS', sans-serif; font-size: .98rem; }
.l-trans { font-weight: 700; font-size: .98rem; margin-top: 4px; }
.hide-roman .l-roman, .hide-pron .l-pron, .hide-trans .l-trans { display: none; }
.study-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: var(--line-thin); background: var(--sun); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: scale(.6) rotate(-20deg); transition: .3s var(--spring); }
.study-btn svg { width: 20px; height: 20px; }
.lyric:hover .study-btn, .lyric.active .study-btn, .lyric:focus-within .study-btn { opacity: 1; transform: none; }
.study-btn:hover { box-shadow: var(--pop-sm); transform: translate(-1px, -1px) rotate(-8deg) !important; }
@media (hover: none) { .study-btn { opacity: 1; transform: none; } }
.follow-btn { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); border: var(--line); background: var(--ink); color: white; font-weight: 900; padding: 10px 18px; border-radius: 14px; cursor: pointer; box-shadow: 4px 4px 0 var(--sun); animation: popIn .4s var(--spring); }

@media (max-width: 900px) {
  .player-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 12px; }
  .player-col { position: sticky; top: 74px; z-index: 5; background: var(--cream); padding: 8px 0; gap: 10px; }
  .video-shell.big { border-radius: 16px; box-shadow: var(--pop-sm); }
  .song-head, .offset-row, .status-banner { display: none !important; }
  .controls { padding: 10px 12px; gap: 8px; box-shadow: var(--pop-sm); }
  .lyrics-scroll { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .lyrics-pad { height: 20px; }
  .l-orig { font-size: 1.22rem; }
}

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(14, 42, 71, .35); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(540px, 100%); background: var(--cream); z-index: 100; border-left: var(--line); transform: translateX(105%); transition: transform .5s var(--spring); display: flex; flex-direction: column; }
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
@media (max-width: 600px) { .drawer { top: auto; height: 88vh; width: 100%; border-left: 0; border-top: var(--line); border-radius: 28px 28px 0 0; transform: translateY(105%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: var(--sky); border-bottom: var(--line); }
.drawer-nav { display: flex; gap: 8px; }
.drawer-body { overflow-y: auto; padding: 22px 24px 40px; flex: 1; }
.drawer-body > * { animation: rise-in .5s var(--spring) both; }
.drawer-body > *:nth-child(2) { animation-delay: .05s; } .drawer-body > *:nth-child(3) { animation-delay: .1s; } .drawer-body > *:nth-child(4) { animation-delay: .15s; } .drawer-body > *:nth-child(5) { animation-delay: .2s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
.d-hero { background: var(--white); border: var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--pop); }
.d-hero .d-orig { font-size: 1.8rem; font-weight: 900; line-height: 1.45; }
.d-roman { color: var(--sky-deep); font-weight: 800; font-size: 1.08rem; margin-top: 6px; }
.d-trans { font-size: 1.08rem; font-weight: 700; margin-top: 10px; padding: 10px 14px; background: var(--sky-soft); border-radius: 12px; }
.d-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.vw { font: inherit; color: inherit; background: linear-gradient(transparent 58%, var(--sun) 58%); border: 0; padding: 0 1px; cursor: pointer; border-radius: 3px; transition: background .2s; }
.vw:hover { background: var(--sun); }
.d-sec { margin-top: 26px; }
.d-sec h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-body); font-weight: 900; display: flex; align-items: center; gap: 8px; }
.d-sec .count { background: var(--ink); color: var(--white); padding: 1px 8px; border-radius: 999px; font-size: .75rem; letter-spacing: 0; }
.pron-box { font-family: 'Noto Sans', 'Charis SIL', 'Doulos SIL', 'Segoe UI', 'Lucida Sans Unicode', 'Arial Unicode MS', sans-serif; font-size: 1.2rem; background: var(--white); border: var(--line-thin); padding: 14px 16px; border-radius: 16px; }
.vocab-list { display: grid; gap: 10px; }
.vocab { background: var(--white); border: var(--line-thin); border-radius: 16px; padding: 12px 16px; animation: rise-in .45s var(--spring) both; animation-delay: var(--d); transition: box-shadow .2s, transform .2s var(--spring); }
.vocab:hover { box-shadow: var(--pop-sm); transform: translate(-1px, -1px); }
.vocab:nth-child(4n+1) { background: var(--sun-soft); } .vocab:nth-child(4n+3) { background: var(--sky-soft); }
.vocab.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 40% { background: var(--sun); transform: scale(1.03); } }
.v-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.v-word { font-size: 1.25rem; font-weight: 900; }
.v-read { color: var(--sky-deep); font-weight: 800; }
.v-top .chip { margin-left: auto; background: var(--white); }
.v-base { font-size: .86rem; color: var(--ink-3); font-weight: 700; margin-top: 2px; }
.v-mean { margin-top: 4px; font-weight: 700; }
.grammar { background: var(--white); border: var(--line-thin); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.grammar summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 900; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; }
.grammar summary::-webkit-details-marker { display: none; }
.grammar summary::after { content: '+'; font-size: 1.4rem; transition: transform .3s var(--spring); }
.grammar[open] summary { background: var(--peach); border-bottom: 2px solid var(--ink); }
.grammar[open] summary::after { transform: rotate(45deg); }
.grammar p { margin: 0; padding: 12px 16px; font-weight: 600; }
.g-ex { margin: 0 16px 14px; padding: 10px 14px; background: var(--sky-soft); border: 2px dashed var(--ink); border-radius: 10px; font-size: .94rem; font-weight: 700; }
.note-box { background: var(--sun-soft); border: var(--line-thin); padding: 14px 16px; border-radius: 16px; font-weight: 700; }
.drawer .status-banner { margin-top: 18px; display: flex !important; }

/* ---------- Admin ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat { padding: 18px 20px; display: flex; flex-direction: column; font-weight: 800; }
.stat:nth-child(1) { background: var(--sky); } .stat:nth-child(2) { background: var(--sun); } .stat:nth-child(4) { background: var(--peach); }
.stat strong { font-family: var(--font-display); font-size: 2.2rem; }
.table-card { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: 14px 16px; border-bottom: var(--line); background: var(--sky-soft); }
.table td { padding: 12px 16px; border-bottom: 2px solid var(--sky-mid); vertical-align: middle; font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table tr.banned { opacity: .55; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.avatar.sm { width: 34px; height: 34px; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn { margin-left: 6px; }
.credits { margin-top: 28px; font-size: .78rem; }

/* ---------- Sentence structure ---------- */
.syn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.syn-part { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: var(--line-thin); border-radius: 14px; background: var(--white); box-shadow: var(--pop-sm); min-width: 70px; animation: rise-in .45s var(--spring) both; }
.syn-label { font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.syn-text { font-size: 1.12rem; font-weight: 900; }
.syn-gloss { font-size: .85rem; font-weight: 700; color: var(--ink-3); }
.syn-part.role-subject { background: var(--sky); }
.syn-part.role-object { background: var(--sun); }
.syn-part.role-predicate { background: var(--peach); }
.syn-part.role-adverbial { background: var(--mint); }
.syn-part.role-complement { background: var(--sky-soft); }
.syn-core { margin: 12px 0 0; font-weight: 800; padding: 10px 14px; background: var(--white); border: 2px dashed var(--ink); border-radius: 12px; }
.v-explain { margin-top: 8px; padding-top: 8px; border-top: 2px dashed var(--sky-mid); font-size: .92rem; font-weight: 600; color: var(--ink-2); line-height: 1.6; }
.edited-badge { display: inline-block; margin-top: 12px; font-size: .8rem; font-weight: 900; background: var(--mint); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; }

/* ---------- Admin editor ---------- */
.editor .d-sec { display: flex; flex-direction: column; gap: 10px; }
.ed-field { display: flex; flex-direction: column; gap: 4px; font-weight: 900; font-size: .82rem; }
.ed-field .input, .ed-field .textarea { font-size: .95rem; padding: 9px 12px; }
.ed-ta { min-height: 60px !important; font-family: var(--font-body) !important; }
.ed-card { background: var(--white); border: var(--line-thin); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ed-card > .btn { align-self: flex-end; }
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ed-part .ed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; position: sticky; bottom: -40px; background: var(--cream); padding: 14px 0 54px; border-top: 2px solid var(--sky-mid); z-index: 2; }

/* IPA readings need a font with full IPA + combining-mark support */
.v-read, .d-roman { font-family: 'Noto Sans', var(--font-body); }

/* ---------- Account ---------- */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; align-items: start; }
.acct-card { padding: 26px; }
.acct-card h2 { font-size: 1.4rem; }
.acct-card .input:disabled { background: var(--sky-soft); opacity: .8; }
