:root {
  --page: #f5f8fc;
  --surface: #fff;
  --surface-glass: rgba(255, 255, 255, .8);
  --text: #344b5b;
  --heading: #263b4b;
  --muted: #637789;
  --subtle: #64788b;
  --primary: #527993;
  --primary-deep: #416680;
  --primary-soft: #e9f1f7;
  --primary-border: #d7e3ec;
  --ice: #e8f4fb;
  --ice-strong: #97bcd1;
  --line: #e2eaf0;
  --pink: #bd7c9b;
  --danger: #b35e73;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(58, 87, 105, .045);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; min-width: 280px; color: var(--text); background: var(--page); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, textarea, select { color: inherit; }
button, a { touch-action: manipulation; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #96a9d9; outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-width: 2px; outline-offset: 1px; }
::selection { background: #dcdaf4; color: var(--heading); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--heading); }
svg { display: block; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 10px 18px; background: var(--surface); border-radius: 10px; transform: translateY(-170%); box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }
.ambient { position: absolute; pointer-events: none; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .7; }
.ambient-one { top: 110px; left: 3%; width: 42%; height: 390px; background: #e4edf9; }
.ambient-two { top: 190px; right: 4%; width: 37%; height: 420px; background: #ebe5f6; }

.header { position: sticky; z-index: 20; top: 0; background: rgba(249, 249, 254, .88); border-bottom: 1px solid rgba(220, 222, 237, .7); backdrop-filter: blur(20px); }
.header-inner { max-width: 1180px; min-height: 88px; padding: 12px 0; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-icon { display: flex; align-items: center; justify-content: center; width: 43px; height: 43px; border-radius: 14px; color: #7575a9; font-family: "STKaiti", "KaiTi", serif; font-size: 26px; background: linear-gradient(145deg, #e2e9f9, #eeebf8); border: 1px solid rgba(157, 160, 202, .18); }
.brand strong { display: block; color: var(--heading); font-size: 19px; font-weight: 650; letter-spacing: 1px; line-height: 1.4; }
.brand small { display: block; color: var(--subtle); font-size: 10px; line-height: 1.9; letter-spacing: 1.8px; }
.role-nav { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 13px; background: #eeeff6; }
.role-nav button { min-height: 38px; padding: 7px 18px; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .18s, background .18s, box-shadow .18s; }
.role-nav button.active { color: var(--primary-deep); background: #fff; box-shadow: 0 2px 8px #3339520a; }
.role-nav button:hover:not(.active) { color: var(--heading); background: #e5e6f1; }
.quiet { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 12px; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; }
.quiet:hover { color: var(--primary-deep); background: var(--primary-soft); }
.about-button { padding-right: 0; }
.demo-orb { width: 6px; height: 6px; border-radius: 50%; background: #9e9ac3; }
.demo-note { min-height: 36px; padding: 7px 24px; display: flex; align-items: center; justify-content: center; gap: 16px; color: #7c7d97; background: rgba(232, 233, 247, .55); font-size: 12px; text-align: center; }
.demo-note button { flex-shrink: 0; padding: 0; font-size: 12px; background: transparent; color: var(--primary-deep); text-decoration: underline; text-decoration-color: #bab6d8; text-underline-offset: 3px; }
main { width: calc(100% - 64px); max-width: 1180px; min-height: 70vh; margin: 0 auto; outline: none; }

.hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; min-height: 438px; gap: 30px; padding: 50px 12px 48px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #9593b0; font-family: Arial, var(--font); font-size: 11px; line-height: 1.6; font-weight: 600; letter-spacing: 2.1px; }
.hero .eyebrow { margin-bottom: 20px; }
.hero .eyebrow > span { width: 19px; height: 1px; background: #a4a3c1; }
.hero h1 { font-size: clamp(38px, 4.2vw, 55px); line-height: 1.33; font-weight: 650; letter-spacing: 1.3px; }
.hero h1 > span { color: var(--primary); }
.hero-copy > p { margin-top: 20px; color: #7b7e96; font-size: 16px; line-height: 1.9; letter-spacing: .5px; overflow-wrap: anywhere; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.primary, .outline, .danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 11px; font-size: 14px; line-height: 1.5; font-weight: 550; text-align: center; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.primary { color: #fff; background: var(--primary); box-shadow: 0 5px 14px #7572b31a; }
.primary:hover:not(:disabled) { background: var(--primary-deep); box-shadow: 0 7px 18px #7572b32a; transform: translateY(-1px); }
.primary:disabled { color: #85839f; background: #e7e6f1; box-shadow: none; }
.outline { color: #6f6b99; background: var(--surface-glass); border-color: var(--primary-border); }
.outline:hover:not(:disabled) { background: #f0effa; border-color: #c3bfdf; }
.outline:disabled { opacity: .5; }
.hero-actions .primary, .hero-actions .outline { min-height: 46px; padding-right: 22px; padding-left: 22px; }
.hero-caption { display: flex; align-items: center; gap: 9px; margin-top: 28px; color: var(--subtle); font-size: 12px; letter-spacing: .2px; }
.caption-divider { height: 10px; width: 1px; margin: 0 3px; background: #d6d7e5; }
.mini-wave { display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 17px; color: #9490bf; }
.mini-wave i { display: block; width: 2px; height: 7px; border-radius: 4px; background: currentColor; }
.mini-wave i:nth-child(2), .mini-wave i:nth-child(4) { height: 12px; }
.mini-wave i:nth-child(3) { height: 17px; }
.hero-art { position: relative; min-height: 340px; width: 100%; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 10% 8%; z-index: -2; background: radial-gradient(ellipse, #d4d7f053, #f0eaf533 60%, transparent 72%); filter: blur(12px); }
.record { position: absolute; top: 25px; left: 50%; width: 270px; height: 270px; border: 1px solid #c7c7df; border-radius: 50%; transform: translateX(-50%) rotate(-12deg); background: repeating-radial-gradient(circle, transparent 0 3px, #7e7baf0c 3px 4px), conic-gradient(from 15deg, #e2e6f6, #d0cde4 15%, #e8eaf6 28%, #babcd9 45%, #e0e3f4 60%, #ebe6f3 73%, #c8c5e1 88%, #e2e6f6); box-shadow: 12px 18px 45px #74729f20, inset 0 0 0 6px #f8f8ff66, inset 0 0 0 8px #b5b3d32b; }
.record::after { content: ""; position: absolute; inset: 34px; border-radius: 50%; border: 1px solid #b8b5cf66; }
.record-inner { position: absolute; inset: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #bbb7d7; background: linear-gradient(135deg, #f1f2fd, #e0e0f1); box-shadow: 0 0 0 8px #ffffff30; color: #7a789f; }
.record-inner > span { font-family: "STKaiti", "KaiTi", serif; font-size: 32px; line-height: 1.1; letter-spacing: 5px; padding-left: 5px; }
.record-inner > small { margin-top: 8px; font-size: 9px; letter-spacing: 3px; color: #9b99b8; }
.record-inner > i { height: 8px; width: 8px; border-radius: 50%; margin-top: 9px; background: #9897b7; box-shadow: inset 0 1px 3px #5c5c8d33; }
.art-script { position: absolute; z-index: 2; top: 0; left: 5%; color: #9caac6; font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 49px; font-style: italic; line-height: 1.2; letter-spacing: -2px; transform: rotate(-12deg); opacity: .8; }
.butterfly { position: absolute; z-index: 3; top: -1px; right: 0; width: 178px; height: 151px; transform: rotate(19deg); filter: drop-shadow(0 7px 7px #7775a31a); }
.orbit { position: absolute; z-index: -1; top: 35px; left: 50%; width: 375px; height: 230px; border: 1px solid #c8c7df80; border-radius: 50%; transform: translateX(-50%) rotate(-30deg); }
.orbit-two { top: 48px; width: 390px; height: 230px; transform: translateX(-50%) rotate(32deg); border-style: dashed; border-color: #d2d2e780; }
.art-star { position: absolute; color: #a29fc4; font-weight: 300; }
.star-one { top: 82px; left: 2%; font-size: 45px; }
.star-two { bottom: 12px; right: 7%; font-size: 25px; color: #b7b5ce; }
.floating-label { position: absolute; bottom: 15px; left: 27%; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 21px; border: 1px solid #ffffffd9; border-radius: 13px; color: #84819f; background: #ffffffbd; box-shadow: 0 8px 24px #77739e0c; backdrop-filter: blur(8px); font-size: 13px; letter-spacing: 1px; transform: rotate(-4deg); }

.notice { display: flex; align-items: center; gap: 15px; padding: 18px 23px; border: 1px solid #e3e3f0; border-radius: 13px; background: rgba(255, 255, 255, .7); color: #777a90; font-size: 14px; line-height: 1.8; }
.notice-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: #eeedf8; color: #9691bc; }
.notice strong { color: #5f607c; margin-right: 18px; font-weight: 600; }
.notice > span:nth-child(2) { flex: 1; overflow-wrap: anywhere; }
.text-link { color: var(--primary-deep); white-space: nowrap; text-underline-offset: 3px; }
.text-link:hover { text-decoration: underline; }
.songbook { margin-top: 43px; scroll-margin-top: 115px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 7px; font-size: 10px; letter-spacing: 2px; }
.section-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 24px; font-weight: 600; letter-spacing: .4px; line-height: 1.5; }
.count-badge { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--primary-border); border-radius: 7px; color: #8c88b2; background: #f0eef9; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.updated { color: var(--subtle); font-size: 12px; white-space: nowrap; align-self: flex-end; padding-bottom: 5px; }
.collection-tabs { display: flex; align-items: center; gap: 9px; max-width: 100%; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; padding: 3px 2px 4px; }
.collection-tabs::-webkit-scrollbar { display: none; }
.category-tab { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 9px; min-height: 40px; padding: 9px 18px; border: 1px solid transparent; border-radius: 10px; color: #7f8298; font-size: 14px; line-height: 1.4; background: transparent; transition: background .18s, color .18s; }
.category-tab > span { color: #a2a3b5; font-family: Arial, sans-serif; font-size: 12px; }
.category-tab .icon { width: 16px; height: 16px; }
.category-tab.selected { color: #fff; background: var(--primary); box-shadow: 0 3px 10px #7773b318; }
.category-tab.selected > span { color: #e4e1f5; }
.category-tab:hover:not(.selected) { color: var(--primary-deep); background: #eae9f5; }
.toolbar { display: grid; grid-template-columns: 1fr 158px; gap: 13px; align-items: center; scroll-margin-top: 112px; }
.search-box { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 48px; padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-glass); color: #a0a1b6; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: #b6b1d8; box-shadow: 0 0 0 3px #d9d7ef55; }
.search-box .icon { width: 19px; height: 19px; }
.search-box input { min-width: 0; width: 100%; height: 46px; padding: 0; border: 0; color: var(--text); font-size: 14px; background: transparent; outline: none; }
.search-box input:focus-visible { outline: none; }
input::placeholder, textarea::placeholder { color: #a2a5b7; opacity: 1; }
.search-hint { flex: 0 0 auto; color: #b0b0c1; font-size: 11px; letter-spacing: 1px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7 5 5 5-5' stroke='%238c8aa5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 13px center; background-repeat: no-repeat; padding-right: 35px !important; cursor: pointer; }
.sort-box select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 11px; padding: 0 15px; color: #787a91; font-size: 14px; background-color: var(--surface-glass); }
.list-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 21px 2px 14px; color: var(--subtle); font-size: 12px; }
.list-summary > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.list-summary > span:last-child { flex-shrink: 0; }
.song-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.song-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 92px; padding: 18px 19px; border: 1px solid #e8e8f1; border-radius: 13px; background: rgba(255, 255, 255, .87); transition: border-color .18s, box-shadow .18s, transform .18s; }
.song-card:hover { border-color: #d2cee7; box-shadow: 0 5px 20px #79739e09; transform: translateY(-1px); }
.song-cover { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; color: #9690bf; background: linear-gradient(135deg, #eeedf8, #e8e8f5); border: 1px solid #e6e4f3; }
.song-cover .icon { width: 21px; height: 21px; stroke-width: 1.3; }
.song-cover.category-1 { background: linear-gradient(135deg, #eaf1f7, #e6edf5); border-color: #e1eaf3; color: #839eb6; }
.song-cover.category-2 { background: linear-gradient(135deg, #f5edf5, #f1e9f4); border-color: #eee3ef; color: #b095b6; }
.song-info { min-width: 0; }
.song-info h3 { font-size: 16px; line-height: 1.55; font-weight: 550; overflow-wrap: anywhere; }
.song-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 11px; row-gap: 4px; margin-top: 5px; color: #9b9bac; font-size: 12px; line-height: 1.45; }
.song-meta > span + span { position: relative; }
.song-meta > span + span::before { content: ""; position: absolute; left: -6px; top: 50%; width: 2px; height: 2px; border-radius: 50%; background: #c8c7d6; }
.song-meta .status-learning { color: #b29168; }
.song-meta .status-off { color: #a3a4ae; }
.song-note { margin-top: 7px; color: #8d8b9f; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.song-actions { display: flex; align-items: center; gap: 10px; }
.favorite-button, .icon-button { display: flex; align-items: center; justify-content: center; width: 32px; height: 36px; padding: 6px; border-radius: 9px; color: #b2b2c6; background: transparent; transition: color .18s, background .18s; }
.favorite-button .icon { width: 18px; height: 18px; }
.favorite-button:hover { color: var(--pink); background: #f9eff5; }
.favorite-button.is-favorite { color: var(--pink); }
.favorite-button.is-favorite .icon { fill: #eac8da; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 75px; min-height: 35px; padding: 7px 12px; border: 1px solid #e1deef; border-radius: 8px; color: #8d86b2; font-size: 12px; line-height: 1.5; white-space: nowrap; background: #f7f6fc; transition: background .18s, color .18s; }
.copy-button .icon { width: 15px; height: 15px; }
.copy-button:hover:not(:disabled) { color: var(--primary-deep); border-color: #c8c1e2; background: #eeebfa; }
.copy-button:disabled { color: #a6a6b4; background: #f5f5f9; border-color: #eaeaf0; }
.empty-state { min-height: 285px; padding: 48px 20px; text-align: center; border: 1px dashed #d8d6e7; border-radius: var(--radius); background: #ffffff69; }
.empty-state > .icon { width: 32px; height: 32px; margin: 0 auto 16px; color: #b2accd; }
.empty-state h3 { font-size: 19px; font-weight: 550; }
.empty-state p { margin: 8px 0 21px; color: var(--muted); font-size: 14px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; color: var(--subtle); font-size: 12px; }
.pagination > div { display: flex; align-items: center; gap: 15px; }
.page-button { min-height: 36px; min-width: 64px; padding: 7px 12px; border: 1px solid #e1deee; border-radius: 8px; color: #8c88a6; background: #ffffff9e; font-size: 12px; }
.page-button:hover:not(:disabled) { color: var(--primary-deep); background: #eeedf9; }
.page-button:disabled { opacity: .4; }
.closing-note { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 61px 0 55px; text-align: center; color: #aaa6c0; }
.closing-note > span { font-size: 29px; font-weight: 300; }
.closing-note p { color: #9793af; font-family: "STKaiti", "KaiTi", var(--font); font-size: 19px; letter-spacing: 2px; }
.closing-note small { display: block; margin-top: 7px; color: #aaa8ba; font-family: var(--font); font-size: 11px; letter-spacing: .5px; }
.footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 26px; max-width: 1180px; margin: 0 auto; padding: 25px 20px 30px; border-top: 1px solid #e4e3ee; font-size: 12px; color: #a5a3b6; }
.footer > a:first-child { color: #8d89a7; font-size: 13px; }
.footer button { padding: 0; background: transparent; color: inherit; font-size: inherit; }
.footer button:hover, .footer a:hover { color: var(--primary-deep); }

.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 45px 0 31px; }
.workspace-head .eyebrow { margin-bottom: 9px; }
.workspace-head h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 32px; line-height: 1.5; font-weight: 600; }
.workspace-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.workspace-head > .primary, .workspace-head > .outline { flex-shrink: 0; }
.subtle-tag { padding: 3px 8px; border: 1px solid var(--primary-border); border-radius: 6px; background: var(--primary-soft); color: #9b95b7; font-size: 12px; font-weight: 400; line-height: 1.5; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.stat-card { min-height: 130px; padding: 22px 23px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-glass); box-shadow: var(--shadow); }
.stat-card > span { display: block; color: var(--muted); font-size: 14px; }
.stat-card > strong { display: block; margin-top: 7px; color: var(--primary-deep); font-size: 30px; font-weight: 550; line-height: 1.45; }
.stat-card > strong > small { font-size: 13px; font-weight: 400; margin-left: 7px; color: #9b98ae; }
.stat-card > strong.stat-text { margin-top: 12px; font-size: 20px; }
.stat-card > small { display: block; margin-top: 4px; font-size: 11px; color: var(--subtle); }
.workspace-notice { display: flex; align-items: center; gap: 10px; margin: 20px 0 26px; padding: 14px 18px; border-radius: 11px; background: #eaeaf5; color: #86829f; font-size: 13px; line-height: 1.8; }
.workspace-notice .icon { width: 18px; height: 18px; }
.work-panel { padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-glass); box-shadow: var(--shadow); }
main > .work-panel { margin-bottom: 55px; }
.work-panel .section-heading { margin-bottom: 22px; }
.work-panel h2 { font-size: 19px; font-weight: 600; }
.work-panel .song-card { background: #fff; }
.button-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.owner-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 23px; align-items: start; margin-bottom: 55px; }
.owner-side { display: grid; gap: 20px; min-width: 0; }
.panel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 23px; }
.panel-title .icon { width: 19px; height: 19px; color: #928bb5; }
.panel-title h2 { line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-bottom: 20px; color: #67677f; font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select, .manual-copy { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid #dedfeb; border-radius: 9px; background-color: #fcfcff; color: var(--text); font-size: 15px; font-weight: 400; line-height: 1.7; transition: border-color .18s, box-shadow .18s; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #c7c3de; }
.field small { color: #9b98ae; font-size: 12px; font-weight: 400; line-height: 1.65; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.permission-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.permission-row > span { align-self: start; padding: 4px 8px; border-radius: 6px; color: #8b84ab; background: #efedf8; font-size: 12px; text-align: center; }
.permission-row p { padding-top: 1px; color: #76788d; font-size: 14px; line-height: 1.8; }
.small-note { margin-top: 18px; color: #9a97ac; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.body-muted { color: #7a7b90; font-size: 14px; line-height: 1.85; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.backup-actions .outline { padding: 9px 14px; }
.backup-actions .quiet { padding-left: 3px; }
.activity-list { padding: 0; margin: 0; list-style: none; }
.activity-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 11px 0; color: #7a788c; font-size: 13px; line-height: 1.7; border-bottom: 1px solid #efedf6; }
.activity-list li:first-child { padding-top: 0; }
.activity-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-list li > span { overflow-wrap: anywhere; }
.activity-list time { color: #aaa5b8; flex-shrink: 0; font-size: 11px; padding-top: 1px; }

dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid #e8e5f3; border-radius: 22px; background: #fdfdff; color: var(--text); box-shadow: 0 30px 100px #29253b30; overflow: auto; overscroll-behavior: contain; }
dialog.wide { width: min(760px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(49, 47, 72, .26); backdrop-filter: blur(5px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.modal-head h2 { font-size: 22px; font-weight: 600; line-height: 1.5; }
.icon-button { flex-shrink: 0; width: 32px; height: 32px; background: #f2f0f8; color: #9d97af; }
.icon-button:hover { background: #e9e6f3; color: var(--primary-deep); }
.icon-button .icon { width: 18px; height: 18px; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; margin-top: 24px; border-top: 1px solid #ece9f3; }
.modal-footer .button-group { justify-content: flex-end; }
.modal-footer .primary, .modal-footer .outline, .modal-footer .danger { padding-right: 17px; padding-left: 17px; }
.danger { background: var(--danger); color: #fff; }
.danger:hover { background: #a34c63; }
.danger-text { padding: 8px 0; background: transparent; color: var(--danger); font-size: 14px; }
.danger-text:hover { color: #8d3d53; text-decoration: underline; }
#dialog-content > p { color: #7a778c; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.about-intro { display: flex; align-items: flex-start; gap: 15px; padding: 18px; margin-bottom: 22px; border: 1px solid #ebe7f5; border-radius: 12px; background: #f2effa; }
.about-intro > .icon { color: #9b91bc; margin-top: 3px; }
.about-intro > p { font-size: 14px; color: #7d7397; line-height: 1.85; }
.help-list h3 { margin: 21px 0 8px; font-size: 16px; font-weight: 550; }
.help-list p { margin-top: 9px; color: #898396; font-size: 14px; line-height: 1.95; }
#import-form > p { margin: -4px 0 20px; }
.manual-copy { min-height: 100px; margin-top: 18px; font-size: 17px; resize: vertical; }
.random-pick { padding: 6px 10px 10px; text-align: center; }
.random-disc { display: flex; align-items: center; justify-content: center; width: 98px; height: 98px; margin: 0 auto 24px; border-radius: 50%; border: 1px solid #dfd9ee; color: #9f91ba; background: repeating-radial-gradient(circle, transparent 0 4px, #a294b70c 4px 5px), linear-gradient(135deg, #f4ecf6, #e6e3f4); box-shadow: 0 8px 25px #82729d10; }
.random-disc .icon { width: 32px; height: 32px; stroke-width: 1.3; }
.random-pick .eyebrow { display: block; font-size: 10px; color: #aba0ba; letter-spacing: 2px; }
.random-pick h3 { margin-top: 12px; font-size: 25px; line-height: 1.55; font-weight: 550; overflow-wrap: anywhere; }
.random-pick p { margin-top: 10px; color: #a49ab2; font-size: 14px; }
#toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; max-width: min(600px, calc(100% - 32px)); padding: 13px 21px; border: 1px solid #74708e; border-radius: 12px; color: #fff; background: #5f5a78f5; box-shadow: 0 8px 30px #29253b25; font-size: 14px; line-height: 1.75; text-align: center; opacity: 0; visibility: hidden; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s, visibility .2s; pointer-events: none; }
#toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
noscript { display: block; margin: 40px; padding: 20px; text-align: center; }

@media (max-width: 1279px) {
  .header-inner { margin-right: 32px; margin-left: 32px; }
  .footer { margin-right: 32px; margin-left: 32px; }
  .hero { padding-left: 0; padding-right: 0; }
}
@media (max-width: 1000px) {
  .header-inner { gap: 12px; }
  .role-nav button { padding-left: 12px; padding-right: 12px; }
  .about-button { font-size: 12px; }
  .hero { grid-template-columns: 1.15fr 1fr; gap: 8px; }
  .hero h1 { font-size: 43px; }
  .hero-art { transform: scale(.86); transform-origin: center; }
  .hero-caption { gap: 7px; font-size: 11px; }
  .hero-caption > span:last-child { display: none; }
  .caption-divider { display: none; }
  .song-card { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 16px 13px; gap: 10px; }
  .song-cover { width: 42px; height: 42px; }
  .song-actions { gap: 4px; }
  .copy-button { min-width: 64px; padding-left: 9px; padding-right: 9px; }
  .stat-card { padding: 20px 18px; }
  .stat-card > strong.stat-text { font-size: 17px; }
  .work-panel { padding: 21px; }
  .owner-grid { gap: 18px; }
}
@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; row-gap: 12px; padding-top: 14px; padding-bottom: 12px; }
  .brand { margin-right: auto; }
  .role-nav { order: 3; width: 100%; justify-content: center; }
  .role-nav button { flex: 1; }
  .about-button { font-size: 13px; }
  html { scroll-padding-top: 150px; }
  .songbook, .toolbar { scroll-margin-top: 150px; }
  .hero { min-height: 390px; padding-top: 37px; padding-bottom: 36px; }
  .hero h1 { font-size: 37px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.4px; margin-bottom: 18px; }
  .hero .eyebrow > span { width: 12px; }
  .hero-art { transform: scale(.75); }
  .hero-actions { gap: 8px; }
  .hero-actions .primary, .hero-actions .outline { padding: 10px 13px; font-size: 13px; }
  .hero-copy > p { font-size: 14px; }
  .notice { padding: 16px 18px; align-items: flex-start; }
  .notice strong { display: block; margin: 0 0 3px; }
  .notice .text-link { align-self: center; }
  .section-heading { align-items: flex-start; gap: 10px; }
  .section-heading h2 { font-size: 21px; gap: 8px; }
  .updated { font-size: 11px; }
  .song-grid { grid-template-columns: 1fr; }
  .song-card { grid-template-columns: 46px minmax(0, 1fr) auto; min-height: 86px; padding: 17px 19px; gap: 14px; }
  .song-cover { width: 46px; height: 46px; }
  .song-actions { gap: 11px; }
  .copy-button { min-width: 76px; }
  .workspace-head h1 { font-size: 28px; }
  .workspace-head { align-items: flex-start; }
  .workspace-head > .primary, .workspace-head > .outline { margin-top: 23px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 120px; }
  .owner-grid { grid-template-columns: 1fr; }
  .owner-side { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  main { width: calc(100% - 36px); }
  .header-inner { margin-left: 18px; margin-right: 18px; }
  .brand-icon { width: 37px; height: 37px; border-radius: 12px; font-size: 23px; }
  .brand { gap: 9px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 8px; letter-spacing: 1.4px; }
  .about-button { gap: 5px; padding-left: 0; font-size: 11px; }
  .demo-note { justify-content: space-between; gap: 8px; padding: 7px 18px; font-size: 10px; text-align: left; }
  .demo-note button { font-size: 10px; }
  .role-nav { padding: 4px; }
  .role-nav button { font-size: 13px; min-height: 35px; padding: 7px 5px; }
  .hero { grid-template-columns: 1fr; gap: 0; padding: 35px 6px 10px; }
  .hero h1 { font-size: clamp(36px, 8.4vw, 46px); line-height: 1.36; letter-spacing: 1px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.6px; }
  .hero-copy > p { margin-top: 16px; font-size: 15px; }
  .hero-actions { margin-top: 23px; gap: 10px; }
  .hero-actions .primary, .hero-actions .outline { font-size: 14px; padding: 10px 19px; }
  .hero-caption { margin-top: 21px; font-size: 11px; }
  .hero-caption > span:last-child, .caption-divider { display: inline-block; }
  .hero-art { width: 100%; min-height: 260px; margin: 1px auto -6px; transform: scale(.8); transform-origin: 50% 48%; }
  .record { top: 8px; width: 238px; height: 238px; }
  .record-inner { inset: 68px; }
  .orbit { top: 19px; width: 330px; height: 210px; }
  .orbit-two { top: 27px; width: 340px; height: 215px; }
  .art-script { top: 0; left: 1%; font-size: 47px; }
  .butterfly { top: -3px; right: -3%; width: 151px; height: 129px; }
  .star-one { top: 68px; left: -1%; }
  .star-two { bottom: -4px; right: 5%; }
  .floating-label { bottom: -14px; left: 24%; padding: 10px 18px; }
  .notice { gap: 10px; padding: 14px; border-radius: 12px; font-size: 13px; }
  .notice-icon { width: 30px; height: 30px; border-radius: 8px; }
  .notice-icon .icon { width: 17px; height: 17px; }
  .notice .text-link { font-size: 12px; }
  .songbook { margin-top: 32px; }
  .section-heading { flex-wrap: wrap; margin-bottom: 18px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading .eyebrow { font-size: 9px; letter-spacing: 1.7px; }
  .updated { padding: 0; align-self: auto; }
  .collection-tabs { gap: 5px; margin-bottom: 15px; }
  .category-tab { min-height: 38px; padding: 8px 12px; gap: 6px; font-size: 13px; }
  .category-tab > span { font-size: 11px; }
  .toolbar { grid-template-columns: minmax(0, 1fr) 122px; gap: 8px; }
  .search-box { min-height: 44px; padding: 0 12px; gap: 8px; }
  .search-box input { height: 42px; font-size: 16px; }
  .search-box input::placeholder { font-size: 12px; }
  .search-box .icon { width: 17px; height: 17px; }
  .search-hint { display: none; }
  .sort-box select { min-height: 44px; font-size: 12px; padding-left: 11px; padding-right: 27px !important; background-position: right 9px center; }
  .list-summary { margin-top: 17px; font-size: 11px; }
  .song-grid { gap: 10px; }
  .song-card { grid-template-columns: 41px minmax(0, 1fr) auto; min-height: 83px; padding: 14px 12px; gap: 10px; border-radius: 12px; }
  .song-cover { width: 41px; height: 41px; border-radius: 11px; }
  .song-cover .icon { width: 18px; height: 18px; }
  .song-info h3 { font-size: 15px; }
  .song-meta { font-size: 11px; column-gap: 10px; margin-top: 4px; }
  .song-actions { gap: 4px; }
  .favorite-button { width: 28px; height: 38px; padding: 5px; }
  .favorite-button .icon { width: 17px; height: 17px; }
  .copy-button { min-width: 64px; min-height: 35px; padding: 7px 9px; gap: 5px; font-size: 12px; }
  .copy-button .icon { width: 14px; height: 14px; }
  .song-note { font-size: 11px; }
  .pagination { margin-top: 20px; font-size: 11px; }
  .pagination > div { gap: 11px; }
  .page-button { min-width: 58px; padding: 7px 10px; }
  .closing-note { margin: 43px 0 38px; gap: 13px; }
  .closing-note p { font-size: 17px; letter-spacing: 1px; }
  .closing-note small { font-size: 10px; letter-spacing: 0; }
  .closing-note > span { font-size: 24px; }
  .footer { gap: 9px 18px; margin-right: 18px; margin-left: 18px; padding: 22px 0; font-size: 11px; }
  .footer > span { flex-basis: 100%; text-align: center; order: 4; margin-top: 3px; }
  .workspace-head { flex-direction: column; gap: 20px; padding-top: 30px; padding-bottom: 25px; }
  .workspace-head h1 { font-size: 26px; }
  .workspace-head p { font-size: 14px; }
  .workspace-head > .primary, .workspace-head > .outline { margin-top: 0; }
  .stat-grid { gap: 10px; }
  .stat-card { min-height: 119px; padding: 18px 15px; border-radius: 12px; }
  .stat-card > span { font-size: 12px; }
  .stat-card > strong { font-size: 27px; }
  .stat-card > strong.stat-text { font-size: 16px; }
  .stat-card > small { font-size: 10px; line-height: 1.6; }
  .workspace-notice { align-items: flex-start; padding: 13px; margin-top: 16px; margin-bottom: 20px; gap: 9px; font-size: 12px; }
  .workspace-notice .icon { margin-top: 2px; }
  .work-panel { padding: 18px 15px; border-radius: 14px; }
  .work-panel .section-heading { gap: 15px; }
  .work-panel .section-heading h2 { font-size: 19px; }
  .work-panel .section-heading .button-group { gap: 7px; }
  .work-panel .section-heading .primary, .work-panel .section-heading .outline { padding: 8px 12px; min-height: 40px; font-size: 13px; }
  .work-panel .section-heading .icon { width: 17px; height: 17px; }
  .work-panel .song-card { padding: 13px 10px; grid-template-columns: 37px minmax(0, 1fr) auto; gap: 9px; }
  .work-panel .song-cover { width: 37px; height: 37px; }
  .panel-title { margin-bottom: 21px; }
  .work-panel h2 { font-size: 18px; }
  .field { margin-bottom: 19px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .field small { font-size: 11px; }
  .permission-row { grid-template-columns: 67px minmax(0, 1fr); gap: 12px; }
  .permission-row p { font-size: 13px; }
  .small-note { font-size: 11px; }
  .body-muted { font-size: 13px; }
  .backup-actions { gap: 8px; }
  .backup-actions .outline { padding: 8px 12px; font-size: 13px; }
  .activity-list li { gap: 10px; font-size: 12px; }
  .activity-list time { font-size: 10px; }
  dialog { padding: 23px 20px; border-radius: 19px; max-height: calc(100dvh - 32px); }
  .modal-head { gap: 12px; margin-bottom: 22px; }
  .modal-head h2 { font-size: 20px; }
  .modal-footer { gap: 10px; margin-top: 22px; padding-top: 19px; }
  .modal-footer .button-group { gap: 7px; }
  .modal-footer .primary, .modal-footer .outline, .modal-footer .danger { min-height: 42px; padding: 10px 12px; font-size: 13px; }
  .danger-text { font-size: 12px; }
  .form-row { gap: 12px; }
  .random-pick h3 { font-size: 23px; }
  .about-intro { padding: 14px; gap: 10px; }
  .about-intro > p, .help-list p { font-size: 13px; }
  .help-list h3 { font-size: 15px; }
  #toast { bottom: 16px; padding: 11px 16px; font-size: 13px; width: max-content; }
}
@media (max-width: 359px) {
  main { width: calc(100% - 28px); }
  .header-inner { margin-left: 14px; margin-right: 14px; }
  .brand strong { font-size: 16px; }
  .brand small { letter-spacing: 1px; }
  .about-button { font-size: 10px; }
  .hero { padding-right: 2px; padding-left: 2px; }
  .hero h1 { font-size: 35px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .hero-actions .primary, .hero-actions .outline { padding-right: 14px; padding-left: 14px; font-size: 13px; }
  .hero-caption { font-size: 10px; gap: 6px; }
  .hero-art { transform: scale(.72); min-height: 245px; }
  .section-heading h2 { font-size: 19px; }
  .count-badge { font-size: 11px; padding: 2px 7px; }
  .notice { padding: 12px 10px; gap: 8px; font-size: 12px; }
  .notice-icon { width: 27px; height: 27px; }
  .song-card { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 13px 10px; gap: 8px; }
  .song-cover { width: 36px; height: 36px; border-radius: 10px; }
  .song-info h3 { font-size: 14px; }
  .song-actions { gap: 1px; }
  .favorite-button { width: 25px; }
  .copy-button { min-width: 59px; padding-left: 7px; padding-right: 7px; }
  .toolbar { grid-template-columns: minmax(0, 1fr) 113px; }
  .sort-box select { font-size: 11px; }
  .search-box { padding-left: 10px; gap: 6px; }
  .search-box input::placeholder { font-size: 11px; }
  .work-panel { padding: 16px 12px; }
  .work-panel .song-card { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 12px 8px; gap: 7px; }
  .work-panel .song-cover { width: 32px; height: 34px; }
  dialog { padding: 21px 16px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .button-group { margin-left: auto; }
  .permission-row { gap: 9px; }
}
/* The character palette is kept in the root tokens; pearl accents stay subtle. */
.header { background: rgba(249, 252, 255, .9); border-bottom-color: #e0e9f0b3; }
.brand-icon { color: #6c8da4; background: linear-gradient(145deg, #e0eff8, #edf0f9); border-color: #cddfeb80; }
.role-nav { background: #edf2f7; }
.role-nav button:hover:not(.active) { background: #e4edf4; }
.demo-note { background: #eaf0f6b3; color: #7d8d9e; }
.ambient-one { background: #dfedf8; }
.ambient-two { background: #e5edf9; opacity: .6; }
.hero { min-height: 458px; padding-top: 41px; padding-bottom: 41px; }
.identity-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 33px; padding: 4px 11px 4px 5px; margin-bottom: 19px; border: 1px solid #dce8f0; border-radius: 30px; color: #587a91; background: #ffffffb3; box-shadow: 0 3px 12px #6586a405; font-size: 12px; font-weight: 550; line-height: 1.3; }
.identity-pill > img { display: block; flex: 0 0 24px; width: 24px; height: 24px; object-fit: cover; border: 1px solid #d9e8f3; border-radius: 50%; }
.identity-pill > span { margin-left: 2px; padding-left: 9px; border-left: 1px solid #dce5ed; color: #9b9fae; font-size: 10px; font-weight: 400; }
.hero .eyebrow { color: #8a9eaf; margin-bottom: 15px; }
.hero-copy > p { color: #788c9c; }
.record { width: 292px; height: 292px; top: 17px; border-color: #cbdce9; background: repeating-radial-gradient(circle, transparent 0 3px, #6c8ea309 3px 4px), conic-gradient(from 15deg, #e6f1fa, #cddfe9 15%, #f0f4fb 28%, #c3d9e8 45%, #e4f0fa 60%, #f1eaf5 73%, #d2dced 88%, #e6f1fa); box-shadow: 12px 18px 45px #5e82991a, inset 0 0 0 6px #f8fcff66, inset 0 0 0 8px #b3cad32b; }
.record::after { border-color: #bbcedb66; pointer-events: none; }
.record-inner { inset: 64px; overflow: hidden; border: 2px solid #ffffffb3; background: #e3f0f8; box-shadow: 0 0 0 8px #ffffff40; }
.record-inner > .character-portrait { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center; }
.record-inner > span, .record-inner > small, .record-inner > i { display: none; }
.art-script { color: #9bb6ca; }
.orbit { border-color: #c7d9e580; }
.orbit-two { border-color: #d5dfed80; }
.notice { border-color: #dfE9f1; color: #748597; }
.notice-icon { background: #eaf2f8; color: #7d9bb1; }
.notice strong { color: #557184; }
.count-badge { background: #ecf3f8; color: #7792a6; }
.category-tab { color: #7d8b9b; }
.category-tab:hover:not(.selected) { background: #e8f0f7; }
.category-tab.selected > span { color: #dcebf4; }
.outline { color: #66889f; }
.outline:hover:not(:disabled) { border-color: #b8d1e2; background: #eaf3fa; }
.song-cover.category-0 { background: linear-gradient(135deg, #eaf4fb, #e6f0f8); border-color: #dfebf4; color: #88a5bc; }
.song-card:hover { border-color: #c8dce9; box-shadow: 0 5px 20px #668ca012; }
.copy-button { color: #6c90a8; border-color: #dce9f2; background: #f2f8fc; }
.copy-button:hover:not(:disabled) { color: #416f8d; border-color: #b9d3e5; background: #e5f2fb; }
.workspace-notice { background: #eaf2f8; color: #708a9c; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #9cbdd3; box-shadow: 0 0 0 3px #dcecf766; }
.field input, .field textarea, .field select { background-color: #fcfdff; border-color: #dce6ef; }
.permission-row > span { background: #edf3f8; color: #6b899f; }
.metadata-assist { padding: 14px 15px; margin: -3px 0 20px; border: 1px solid #d9e8f3; border-radius: 12px; background: linear-gradient(125deg, #eff7fc, #f5f7fc); }
.metadata-assist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.metadata-assist-head > span { display: inline-flex; align-items: center; gap: 7px; color: #68869c; font-size: 13px; font-weight: 550; }
.metadata-assist-head .icon { width: 15px; height: 15px; color: #8dabbe; }
.metadata-assist-head .text-link { min-height: 28px; padding: 0; background: transparent; color: #6a93af; font-size: 12px; text-underline-offset: 3px; }
#metadata-status { color: #8296a6; font-size: 12px; line-height: 1.85; }
#metadata-candidates { display: grid; gap: 8px; }
#metadata-candidates:not(:empty) { margin-top: 12px; }
.metadata-candidate { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; padding: 11px 13px; border: 1px solid #d8e6f0; border-radius: 9px; background: #ffffffba; text-align: left; transition: background .18s, border-color .18s, transform .18s; }
.metadata-candidate strong { color: #52778f; font-size: 14px; font-weight: 550; }
.metadata-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.metadata-option .metadata-candidate { min-width: 0; }
.metadata-candidate small { font-size: 13px; color: #6d8396; }
.metadata-source { padding: 8px 2px; color: #5c839e; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.metadata-loading { display: inline-flex; align-items: center; gap: 8px; color: #6b8aa1; }
#metadata-candidates { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.metadata-candidate span { color: #8b9aab; font-size: 12px; }
.metadata-candidate:hover { background: #fff; border-color: #9fbfd4; transform: translateY(-1px); }
.empty-state { border-color: #cfdfeb; background: linear-gradient(135deg, #ffffff80, #eef6fc70); }
.empty-state > .icon { color: #a2bccc; }
.primary:active:not(:disabled), .outline:active:not(:disabled), .copy-button:active:not(:disabled), .metadata-candidate:active, .category-tab:active { transform: translateY(1px); box-shadow: none; }
dialog { border-color: #dce8f1; background: linear-gradient(145deg, #fff, #fafdff 60%, #f8f7fd); box-shadow: 0 28px 100px #29455c35, inset 0 1px 0 #fff; }
dialog[open] { animation: dialog-enter .24s cubic-bezier(.2, .8, .2, 1) both; }
dialog::backdrop { background: #273c5147; backdrop-filter: blur(6px); animation: backdrop-enter .22s ease both; }
.modal-head h2 { letter-spacing: .3px; }
.modal-head .icon-button { background: #eef4f9; color: #8da7b8; }
.modal-head .icon-button:hover { color: #537a93; background: #e2eef7; }
.modal-footer { border-top-color: #e2ebf3; }
.about-intro { border-color: #deebf5; background: #edf6fc; }
.about-intro > .icon { color: #7e9fb7; }
.about-intro > p { color: #6b869b; }
#toast { border-color: #5e7b90; border-radius: 14px; background: #35576df5; box-shadow: 0 10px 35px #29465b33; backdrop-filter: blur(10px); bottom: max(26px, calc(env(safe-area-inset-bottom) + 14px)); }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-enter { from { opacity: .7; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 800px) and (min-width: 601px) {
  .hero { min-height: 438px; }
}
@media (max-width: 600px) {
  .hero { min-height: auto; padding: 29px 6px 10px; }
  .identity-pill { margin-bottom: 18px; }
  .hero-art { margin-top: 8px; }
  .record { width: 255px; height: 255px; top: 4px; }
  .record-inner { inset: 52px; }
  .metadata-assist { padding: 12px; }
  .metadata-assist-head { gap: 8px; }
  .metadata-assist-head > span { font-size: 12px; }
  #metadata-status { font-size: 11px; }
  dialog, dialog.wide { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: min(91dvh, 920px); margin: 0; padding: 27px 23px max(23px, calc(env(safe-area-inset-bottom) + 14px)); border-radius: 24px 24px 0 0; border-bottom: 0; }
  dialog::before { content: ""; display: block; width: 34px; height: 4px; margin: -14px auto 22px; border-radius: 4px; background: #d4e0e9; }
  dialog[open] { animation-name: sheet-enter; animation-duration: .28s; }
  .modal-head { margin-bottom: 22px; }
  #toast { bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px)); border-radius: 12px; }
}
@media (max-width: 359px) {
  dialog, dialog.wide { padding-left: 18px; padding-right: 18px; }
}
/* Functional labels remain readable on narrow screens. */
.role-nav button, .category-tab, .category-tab > span, .copy-button, .copy-button > span, .sort-box select, .hero-actions .primary, .hero-actions .outline, .modal-footer .primary, .modal-footer .outline, .modal-footer .danger { font-size: 14px; }
.song-meta, .song-note, .list-summary, .updated, .pagination, .page-button, .notice, .notice .text-link, .field small, .small-note, .body-muted, .permission-row > span, .permission-row p, .activity-list li, .activity-list time, .workspace-notice, .stat-card > span, .stat-card > small, .stat-card > strong > small, .subtle-tag, .metadata-assist-head > span, .metadata-assist-head .text-link, #metadata-status, .metadata-candidate span, .help-list p, .about-intro > p, .danger-text { font-size: 14px; }
.song-meta, .song-note, .list-summary, .updated, .pagination, .field small, .small-note, .body-muted, .activity-list li, .activity-list time, .workspace-notice, .stat-card > span, .stat-card > small, .stat-card > strong > small, #metadata-status, .metadata-candidate span, .help-list p { color: #64788b; }
.category-tab > span { color: #687d91; }
.category-tab.selected > span { color: #e5f0f8; }
.category-tab, .sort-box select, .page-button { color: #61798d; }
.song-meta .status-learning { color: #927044; }
.song-meta .status-off { color: #727c87; }
.song-info h3 { font-size: 16px; }
.hero-copy > p { color: #637d90; font-size: 16px; }
.footer > a, .footer > button, .footer > a:first-child { font-size: 14px; color: #697c90; }
.backup-actions .outline, .work-panel .section-heading .primary, .work-panel .section-heading .outline { font-size: 14px; }
.count-badge { font-size: 14px; color: #5f7f97; }
.permission-row { grid-template-columns: 80px minmax(0, 1fr); }
.metadata-assist-head > span { color: #5b7a91; }
.metadata-assist-head .text-link { color: #547d9b; }
.search-box input::placeholder { color: #718597; }
#toast { display: flex; align-items: center; gap: 10px; font-size: 14px; text-align: left; }
#toast.visible { pointer-events: auto; }
#toast > span:not(.toast-symbol) { min-width: 0; overflow-wrap: anywhere; }
#toast .toast-symbol { display: flex; flex: 0 0 20px; align-items: center; justify-content: center; width: 20px; height: 20px; }
#toast .toast-symbol .icon { width: 20px; height: 20px; }
#toast button { display: flex; flex: 0 0 30px; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 6px; margin: -3px -5px -3px 2px; border-radius: 8px; background: transparent; color: inherit; opacity: .8; }
#toast button:hover { opacity: 1; background: #ffffff1c; }
#toast button .icon { width: 17px; height: 17px; }
#toast.warning { background: #fff8eaf7; border-color: #e7d5ac; color: #7c6034; box-shadow: 0 10px 35px #745b2620; }
#toast.warning button:hover { background: #967c3f12; }
@media (max-width: 600px) {
  .toolbar { grid-template-columns: minmax(0, 1fr) 137px; }
  .sort-box select { padding-left: 10px; }
  .song-actions { gap: 2px; }
  .copy-button { min-width: 65px; padding: 8px; }
  .song-note { line-height: 1.65; }
  .updated { flex-basis: 100%; }
  .song-meta { column-gap: 10px; row-gap: 5px; }
  .permission-row { grid-template-columns: 80px minmax(0, 1fr); }
  .activity-list li { flex-direction: column; gap: 2px; }
  .search-box input::placeholder { font-size: 13px; }
  .modal-footer .button-group { gap: 7px; }
  .modal-footer .primary, .modal-footer .outline, .modal-footer .danger { padding-left: 11px; padding-right: 11px; }
  #toast { gap: 8px; }
}
@media (max-width: 359px) {
  .toolbar { grid-template-columns: 1fr; }
  .sort-box { width: 144px; justify-self: end; }
  .song-actions { gap: 0; }
  .favorite-button { width: 25px; }
  .copy-button { min-width: 62px; gap: 4px; padding-right: 6px; padding-left: 6px; }
  .modal-footer .button-group { width: 100%; }
  .metadata-assist-head { flex-wrap: wrap; }
}
[hidden] { display: none !important; }
.session-controls { display: flex; align-items: center; gap: 6px; min-width: 0; }
.session-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #648298; font-size: 14px; }
.session-controls .quiet { padding-right: 9px; padding-left: 9px; }
.login-entry { min-height: 40px; padding: 9px 15px; }
.auth-shell { display: grid; grid-template-columns: 1fr 430px; gap: 70px; align-items: center; min-height: 640px; padding: 62px 36px 70px; }
.auth-story .eyebrow { margin-bottom: 22px; color: #7f9aac; font-size: 11px; letter-spacing: 2px; }
.auth-story h1 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.55; letter-spacing: 1px; font-weight: 550; }
.auth-story h1 > span { color: #608aa6; }
.auth-story > p { margin-top: 22px; color: #718b9e; line-height: 2; font-size: 16px; }
.auth-portrait { display: flex; align-items: center; gap: 14px; margin-top: 35px; }
.auth-portrait > img { display: block; width: 52px; height: 52px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 5px 18px #50789518; object-fit: cover; }
.auth-portrait > span { color: #66869d; font-size: 15px; }
.auth-portrait small { display: block; margin-top: 4px; color: #9aaebb; font-size: 9px; letter-spacing: 1.8px; }
.auth-card { padding: 34px; border: 1px solid #e0ebf4; border-radius: 24px; background: linear-gradient(145deg, #ffffffed, #fafcffeb); box-shadow: 0 20px 60px #5b7d9510, inset 0 1px 0 #fff; }
.auth-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; color: #6d95af; background: #eaf3fa; margin-bottom: 20px; }
.auth-icon .icon { width: 23px; height: 23px; stroke-width: 1.4; }
.auth-card h2 { margin-bottom: 7px; font-size: 26px; font-weight: 550; }
.auth-card form { margin-top: 25px; }
.auth-card .field { margin-bottom: 20px; }
.auth-submit { width: 100%; min-height: 46px; margin-top: 5px; font-size: 15px; }
.auth-hint { margin-top: 19px; color: #7c91a1; font-size: 14px; line-height: 1.85; }
.auth-return { display: inline-block; margin-top: 20px; font-size: 14px; }
.password-shell { padding-top: 45px; padding-bottom: 45px; }
.connection-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 520px; padding: 60px 20px; text-align: center; }
.connection-state h1 { margin-top: 19px; font-size: 29px; font-weight: 550; }
.connection-state > p { max-width: 480px; margin: 16px 0 26px; color: #718798; line-height: 1.9; font-size: 16px; }
.connection-state > .text-link { margin-top: 18px; font-size: 14px; }
.state-emblem { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-bottom: 20px; border: 1px solid #dfebf4; border-radius: 24px; background: #eaf3fa; color: #8caac0; }
.state-emblem .icon { width: 33px; height: 33px; stroke-width: 1.3; }
.loading-orbit { width: 47px; height: 47px; border: 2px solid #dfebf3; border-top-color: #85a8bf; border-radius: 50%; animation: loading-spin .8s linear infinite; }
.button-spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: loading-spin .7s linear infinite; }
.connection-banner { display: flex; align-items: center; gap: 10px; padding: 13px 17px; margin-top: 23px; border: 1px solid #e8dabc; border-radius: 11px; color: #907341; background: #fff9ed; font-size: 14px; }
.connection-banner > span { flex: 1; }
.connection-banner button { padding: 5px; color: inherit; background: transparent; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.request-error { margin-top: 18px; padding: 14px 15px; border: 1px solid #e6d5cc; border-radius: 11px; color: #8e6754; background: #fff8f4; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.request-error > strong { display: block; color: #865f4d; font-size: 14px; font-weight: 550; }
.request-error > p { margin-top: 4px; color: inherit; }
.request-error > .outline { margin-top: 12px; min-height: 38px; padding: 7px 12px; }
.request-error .reload-confirm { margin-top: 14px; padding-top: 14px; border-top: 1px solid #ecdcd0; }
.reload-confirm .button-group { margin-top: 12px; }
.account-panel > .outline { margin-top: 18px; }
.account-list { margin-top: 16px; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0; border-top: 1px solid #e6eef5; }
.account-row:last-child { padding-bottom: 0; }
.account-row > div:first-child { min-width: 0; }
.account-row strong { display: block; color: #52748b; font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.account-row span, .account-row small { display: block; margin-top: 4px; color: #71889b; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.account-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 2px; justify-content: flex-end; max-width: 175px; }
.account-actions .quiet { padding: 6px 8px; min-height: 34px; }
.account-actions .danger-text { color: #af6c76; }
.account-target { margin-bottom: 20px; }
[aria-busy="true"] { cursor: progress; }
[aria-busy="true"] button { cursor: progress; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) {
  .auth-shell { grid-template-columns: 1fr 390px; gap: 30px; padding-left: 0; padding-right: 0; }
  .auth-story h1 { font-size: 34px; }
  .auth-card { padding: 28px; }
  .session-name { max-width: 90px; }
}
@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; gap: 30px; max-width: 480px; margin: 0 auto; padding: 35px 0 45px; }
  .auth-story h1 { font-size: 30px; }
  .auth-story > p { margin-top: 14px; }
  .auth-story .eyebrow { margin-bottom: 14px; }
  .auth-portrait { display: none; }
  .auth-card { padding: 30px; }
  .password-shell .auth-story h1 { font-size: 28px; }
  .password-shell .auth-story > p { display: none; }
  .session-controls { margin-left: auto; }
}
@media (max-width: 600px) {
  .session-controls { gap: 3px; }
  .session-controls .quiet { padding: 5px 7px; min-height: 34px; font-size: 13px; }
  .session-name { max-width: 74px; font-size: 12px; }
  .login-entry { min-height: 36px; padding: 8px 11px; font-size: 12px; }
  .auth-shell { gap: 25px; padding-top: 30px; }
  .auth-story { padding: 0 6px; }
  .auth-story h1 { font-size: 29px; }
  .auth-story > p { font-size: 14px; }
  .auth-story .eyebrow { font-size: 10px; letter-spacing: 1.6px; }
  .auth-card { padding: 26px 22px; border-radius: 20px; }
  .auth-card h2 { font-size: 24px; }
  .auth-card .field input { min-height: 46px; }
  .auth-hint { font-size: 14px; }
  .connection-state { min-height: 440px; padding-right: 10px; padding-left: 10px; }
  .connection-state h1 { font-size: 25px; }
  .connection-state > p { font-size: 15px; }
  .connection-banner { align-items: flex-start; padding: 12px; }
  .connection-banner .icon { margin-top: 2px; width: 18px; height: 18px; }
  .request-error { padding: 12px; }
  .account-row { align-items: flex-start; gap: 8px; }
  .account-actions { max-width: 92px; flex-direction: column; align-items: flex-end; }
}
.live-strip { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 18px; margin: 0 0 18px; padding: 23px 25px; border: 1px solid #dae8f1; border-radius: 17px; background: linear-gradient(115deg, #fffefef0, #f1f8fcf0); box-shadow: 0 8px 28px #6a8c9b07; }
.live-emblem { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid #dce8f1; border-radius: 16px; color: #7b99b0; background: #edf4fa; }
.live-emblem .icon { width: 25px; height: 25px; stroke-width: 1.4; }
.live-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-title h2 { color: #365f76; font-size: 19px; line-height: 1.55; font-weight: 550; letter-spacing: .2px; }
.live-label { display: inline-flex; align-items: center; width: fit-content; padding: 3px 9px; border-radius: 6px; color: #698197; background: #e8f0f7; font-size: 13px; line-height: 1.45; white-space: nowrap; }
.live-copy > p { margin-top: 7px; color: #6a8396; font-size: 14px; line-height: 1.75; }
.live-copy > small { display: block; margin-top: 5px; color: #71889a; font-size: 13px; line-height: 1.7; }
.live-actions { display: flex; align-items: center; gap: 10px; }
.live-actions .primary, .live-actions .outline { padding-right: 16px; padding-left: 16px; }
.live-actions .quiet { color: #69849a; }
.live-live { border-color: #cfe6e9; background: linear-gradient(115deg, #fdfffff2, #edf8f9f0); }
.live-live .live-emblem { color: #4e979c; background: #e6f3f4; border-color: #cfe7e8; }
.live-live .live-label, .live-label-live { color: #37797d; background: #dff0f0; }
.live-unknown .live-label, .live-label-unknown { color: #8c7549; background: #f4eddf; }
.live-unknown .live-emblem { color: #9b977f; background: #f4f4ec; border-color: #e8e8dc; }
.live-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 24px; }
.live-wave i { width: 3px; height: 11px; border-radius: 3px; background: currentColor; animation: live-wave 1.2s ease-in-out infinite alternate; }
.live-wave i:nth-child(2) { height: 22px; animation-delay: -.4s; }
.live-wave i:nth-child(3) { height: 17px; animation-delay: -.8s; }
.live-wave i:nth-child(4) { height: 10px; animation-delay: -.2s; }
.broadcast-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; margin-bottom: 25px; border: 1px solid #d9e7f1; border-radius: 16px; background: linear-gradient(120deg, #fff, #f1f7fc); box-shadow: 0 8px 25px #6b889607; }
.broadcast-summary { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.broadcast-symbol { display: flex; align-items: center; justify-content: center; flex: 0 0 41px; width: 41px; height: 41px; border: 1px solid #e0eaf2; border-radius: 12px; background: #edf4fa; color: #7f9eb6; }
.broadcast-symbol .icon { width: 20px; height: 20px; }
.broadcast-summary h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; font-weight: 550; line-height: 1.6; }
.broadcast-summary p { margin-top: 5px; color: #6d8699; font-size: 14px; }
.broadcast-summary small { display: block; margin-top: 5px; color: #71899b; font-size: 13px; line-height: 1.8; }
.broadcast-controls { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 410px; }
.broadcast-controls .primary, .broadcast-controls .outline { padding-right: 14px; padding-left: 14px; }
.broadcast-controls .quiet { color: #68849c; }
.broadcast-controls button:disabled { opacity: .55; }
@keyframes live-wave { from { transform: scaleY(.62); } to { transform: scaleY(1); } }
@media (max-width: 1000px) {
  .live-actions { flex-direction: column; gap: 3px; }
  .broadcast-panel { align-items: flex-start; }
  .broadcast-controls { max-width: 250px; }
}
@media (max-width: 800px) {
  .broadcast-panel { flex-direction: column; gap: 17px; }
  .broadcast-controls { justify-content: flex-start; max-width: none; margin-left: 55px; }
}
@media (max-width: 600px) {
  .live-strip { grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 13px; padding: 18px 16px; margin-bottom: 14px; border-radius: 14px; }
  .live-emblem { width: 42px; height: 42px; border-radius: 13px; }
  .live-emblem .icon { width: 22px; height: 22px; }
  .live-title { gap: 7px; }
  .live-title h2 { font-size: 17px; }
  .live-label { padding: 3px 7px; font-size: 13px; }
  .live-copy > small { font-size: 13px; }
  .live-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 7px; }
  .live-actions .primary, .live-actions .outline { min-height: 40px; padding: 8px 12px; font-size: 14px; }
  .live-actions .quiet { min-height: 40px; padding: 8px; font-size: 14px; }
  .broadcast-panel { padding: 18px 16px; border-radius: 14px; margin-bottom: 20px; }
  .broadcast-summary { gap: 11px; }
  .broadcast-summary h2 { font-size: 17px; }
  .broadcast-summary small { font-size: 13px; }
  .broadcast-controls { margin-left: 0; gap: 8px; }
  .broadcast-controls .primary, .broadcast-controls .outline { min-height: 41px; padding: 9px 12px; font-size: 14px; }
  .broadcast-controls .quiet { padding: 8px 4px; font-size: 14px; }
  .metadata-option { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .metadata-source { padding: 5px 4px 8px; justify-self: start; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
