:root {
  --ink: #1d1938;
  --muted: #716d86;
  --paper: #f7f5f1;
  --card: #fffdfa;
  --line: rgba(29, 25, 56, .12);
  --purple: #7054e8;
  --purple-dark: #4932b7;
  --coral: #ff7969;
  --mint: #49bfa0;
  --gold: #e8aa3c;
  --shadow: 0 24px 70px rgba(41, 32, 79, .13);
  --radius: 24px;
  color-scheme: light;
  font-family: Inter, ui-rounded, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: var(--paper); color: var(--ink); }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(112, 84, 232, .28); outline-offset: 2px; }
.skip-link { position: fixed; z-index: 200; top: 8px; left: 8px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.topbar { width: min(1180px, calc(100% - 40px)); height: 92px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50% 50% 44% 56%; background: var(--ink); color: #fff; font: 700 25px Georgia, serif; transform: rotate(-7deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .16em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .18em; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.ai-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.54); color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(73,191,160,.12); }
.note-wallet { border: 0; display: grid; grid-template-columns: auto auto; grid-template-rows: 18px 14px; column-gap: 7px; min-width: 90px; padding: 11px 15px; border-radius: 18px; background: var(--ink); color: white; cursor: pointer; box-shadow: 0 8px 24px rgba(29,25,56,.2); }
.note-wallet > span { grid-row: 1 / 3; align-self: center; color: #a99aff; font-size: 20px; }
.note-wallet strong { text-align: left; font-size: 17px; line-height: 18px; }
.note-wallet small { text-align: left; color: #bdb9cd; font-size: 10px; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto 80px; }
.hero { min-height: 530px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 72px; align-items: center; padding: 56px 64px; border-radius: 38px; overflow: hidden; position: relative; background: #eeebe4; }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; left: -240px; bottom: -270px; border: 1px solid rgba(29,25,56,.12); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,255,255,.16), 0 0 0 100px rgba(255,255,255,.1); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 2px; background: currentColor; }
h1 { max-width: 630px; margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(46px, 6vw, 74px); font-weight: 600; line-height: 1.08; letter-spacing: -.05em; }
h1 em { display: block; color: var(--purple); font-style: italic; }
.hero-lead { max-width: 570px; margin: 24px 0 30px; color: #625e71; font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { border: 1px solid transparent; min-height: 44px; padding: 11px 18px; border-radius: 14px; font-weight: 750; font-size: 13px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, opacity .2s; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .58; }
.button.is-busy { cursor: wait; }
.button.large { min-height: 53px; padding: 14px 21px; }
.button.primary { background: var(--purple); color: white; box-shadow: 0 10px 25px rgba(112,84,232,.24); }
.button.primary:hover:not(:disabled) { background: var(--purple-dark); box-shadow: 0 14px 30px rgba(112,84,232,.3); }
.button.secondary { background: var(--ink); color: white; }
.button.ghost { border-color: var(--line); background: rgba(255,255,255,.45); }
.button.ghost:hover:not(:disabled) { background: white; }
.button.full { width: 100%; }
.today-line { display: flex; gap: 24px; margin-top: 34px; color: var(--muted); font-size: 12px; }
.today-line span + span { position: relative; }
.today-line span + span::before { content: ""; position: absolute; left: -12px; top: 4px; width: 1px; height: 11px; background: var(--line); }

.orbit-card { min-height: 395px; padding: 24px; display: grid; grid-template-rows: 1fr auto; border-radius: 30px; background: var(--ink); color: white; box-shadow: 0 25px 60px rgba(29,25,56,.22); transform: rotate(1.3deg); }
.orbit-art { min-height: 230px; position: relative; display: grid; place-items: center; overflow: hidden; }
.planet { width: 112px; height: 112px; display: grid; place-items: center; z-index: 2; border-radius: 50%; background: linear-gradient(145deg, #937df3, #6248d5); color: #fff; font: 600 50px Georgia, serif; box-shadow: 0 0 0 15px rgba(112,84,232,.1), inset -12px -12px 30px rgba(37,26,98,.24); }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; transform: rotate(-20deg); }
.orbit::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.orbit-one { width: 245px; height: 105px; }
.orbit-one::after { left: 25px; top: 14px; }
.orbit-two { width: 305px; height: 155px; transform: rotate(30deg); }
.orbit-two::after { right: 38px; bottom: 18px; width: 7px; height: 7px; background: #58d9b4; }
.spark { position: absolute; color: #fff; opacity: .75; }.spark-one { top: 36px; right: 32px; }.spark-two { left: 35px; bottom: 45px; font-size: 10px; }
.orbit-copy { padding: 20px; border-radius: 21px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.mini-label { color: #9c92ca; font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.orbit-copy > strong { display: block; margin-top: 6px; font-family: Georgia, "Songti SC", serif; font-size: 23px; }
.orbit-copy p { margin: 8px 0 15px; color: #bbb6cf; font-size: 12px; line-height: 1.6; }
.meter { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.12); }
.meter span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #8c76ee, #ff8174); transition: width .35s; }
.meter-label { display: flex; justify-content: space-between; margin-top: 7px; color: #918ba9; font-size: 10px; }.meter-label strong { color: #ddd9ec; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 70px; }
.stat-card { min-height: 116px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; position: relative; padding: 20px; border: 1px solid rgba(29,25,56,.08); border-radius: 22px; background: var(--card); box-shadow: 0 7px 24px rgba(29,25,56,.04); }
.stat-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; font-size: 23px; }
.stat-card.coral .stat-icon { background: #fff0ed; color: var(--coral); }.stat-card.violet .stat-icon { background: #f0edff; color: var(--purple); }.stat-card.mint .stat-icon { background: #e8f8f2; color: var(--mint); }.stat-card.gold .stat-icon { background: #fff6e4; color: var(--gold); }
.stat-card small, .stat-card strong { display: block; }.stat-card small { margin-bottom: 7px; color: var(--muted); font-size: 11px; }.stat-card strong { font: 600 27px Georgia, serif; }.stat-card strong b { font: 500 11px Inter, sans-serif; color: var(--muted); }
.trend { position: absolute; top: 15px; right: 15px; color: #a3a0ad; font-size: 9px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font: 600 clamp(30px, 4vw, 42px) Georgia, "Songti SC", serif; }
.text-button { border: 0; padding: 8px; background: transparent; color: var(--purple); font-weight: 750; cursor: pointer; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 230px; overflow: hidden; position: relative; border: 1px solid rgba(29,25,56,.1); padding: 24px; border-radius: 25px; background: var(--card); text-align: left; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card::after { content: ""; position: absolute; width: 130px; height: 130px; top: -45px; right: -40px; border-radius: 50%; background: var(--tint); }
.feature-focus { --accent:#ff7969; --tint:#fff0ed; }.feature-mistake { --accent:#7054e8; --tint:#f1edff; }.feature-quiz { --accent:#49bfa0; --tint:#e9f8f3; }.feature-week { --accent:#e8aa3c; --tint:#fff5df; }.feature-song { --accent:#e75f8f; --tint:#ffebf2; }.feature-library { --accent:#5269d4; --tint:#ebefff; }
.feature-number { position: absolute; top: 20px; left: 22px; color: #aaa7b4; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.feature-symbol { width: 57px; height: 57px; display: grid; place-items: center; position: absolute; top: 24px; right: 26px; z-index: 1; border-radius: 18px; background: var(--tint); color: var(--accent); font: 600 28px Georgia, serif; }
.feature-content { position: absolute; left: 24px; right: 50px; bottom: 25px; }.feature-content small, .feature-content strong, .feature-content span { display: block; }.feature-content small { margin-bottom: 7px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; }.feature-content strong { margin-bottom: 9px; font: 600 22px Georgia, "Songti SC", serif; }.feature-content span { color: var(--muted); font-size: 12px; line-height: 1.7; }
.arrow { position: absolute; right: 22px; bottom: 24px; color: var(--accent); font-size: 20px; }
footer { width: min(1180px, calc(100% - 40px)); min-height: 80px; margin: auto; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
footer a { color: var(--primary); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(18,14,39,.7); }
.modal.is-open { display: flex; }
.modal-panel { width: min(94vw, 720px); max-height: min(90vh, 900px); overflow: auto; padding: 28px; border-radius: 27px; background: #fbfaf7; box-shadow: 0 30px 90px rgba(8,5,25,.35); animation: modal-in .25s both; }
.modal-panel.medium { width: min(94vw, 720px); }.modal-panel.wide { width: min(94vw, 1000px); }.modal-panel.song-studio { width: min(96vw, 1100px); padding-bottom: 22px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.modal-head h2 { margin: 4px 0 0; font: 600 31px Georgia, "Songti SC", serif; }.modal-kicker { margin: 0; color: var(--purple); font-size: 9px; font-weight: 850; letter-spacing: .2em; }
.icon-button { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); font-size: 22px; cursor: pointer; }
label { display: block; color: #575268; font-size: 12px; font-weight: 750; }
input, select, textarea { width: 100%; margin-top: 8px; border: 1px solid rgba(29,25,56,.14); border-radius: 13px; background: white; color: var(--ink); padding: 12px 13px; transition: border .2s, box-shadow .2s; }
input, select { min-height: 46px; } textarea { resize: vertical; line-height: 1.75; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(112,84,232,.09); outline: 0; }
.form-grid { display: grid; gap: 14px; }.form-grid.two { grid-template-columns: repeat(2, 1fr); }.inline-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 22px; }.modal-actions.split { justify-content: space-between; }.modal-actions > div { display: flex; gap: 9px; }.helper { color: var(--muted); font-size: 11px; }
.split-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }.composer-panel > label { margin-top: 14px; }.list-title { display: flex; justify-content: space-between; margin-bottom: 12px; }.list-title span { color: var(--muted); font-size: 11px; }
.stack-list { display: grid; gap: 9px; max-height: 420px; overflow: auto; }.empty { padding: 30px 18px; border: 1px dashed var(--line); border-radius: 17px; color: var(--muted); text-align: center; line-height: 1.8; }
.mistake-item { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: white; }.item-top { display: flex; justify-content: space-between; gap: 12px; }.tag { padding: 4px 8px; border-radius: 99px; background: #f0edff; color: var(--purple); font-size: 9px; font-weight: 800; }.delete-button { border: 0; background: transparent; color: #a19dab; cursor: pointer; }.mistake-item p { margin: 10px 0 8px; font-size: 12px; line-height: 1.65; }.analysis { padding: 10px; border-radius: 11px; background: #f5f2ff; color: #5e547d; font-size: 11px; line-height: 1.65; }
.quiz-toolbar, .weekly-head { display: flex; align-items: end; gap: 12px; }.quiz-toolbar label, .weekly-head label { flex: 1; }.quiz-sheet { margin: 18px 0; padding: 25px; border-radius: 20px; background: var(--ink); color: white; }.quiz-level { display: inline-block; padding: 5px 9px; border-radius: 99px; background: rgba(112,84,232,.35); color: #c9c0ff; font-size: 9px; }.quiz-sheet h3 { margin: 18px 0 11px; font: 600 22px Georgia, "Songti SC", serif; line-height: 1.5; }.quiz-sheet p { margin: 0; color: #aaa5bd; font-size: 11px; }.feedback { min-height: 24px; margin-top: 12px; color: var(--purple); font-size: 12px; line-height: 1.6; }

.studio-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 22px; }.studio-controls { display: grid; gap: 14px; }.lyrics-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: -8px; }.lyrics-head > label { color: #575268; }.lyrics-head span { color: var(--muted); font-size: 10px; }.studio-controls textarea { min-height: 290px; font-family: "Songti SC", Georgia, serif; font-size: 14px; }.studio-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.melody-fit { padding:12px 13px; border:1px solid #e5ddff; border-radius:14px; background:#faf8ff; }.melody-fit-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }.melody-fit-head strong { color:#30295a; font-size:11px; }.melody-fit-head span { color:var(--purple); font-size:10px; font-weight:800; text-align:right; }.melody-fit p { margin:7px 0 0; color:var(--muted); font-size:10px; line-height:1.55; }.lyric-fit-summary { margin-top:9px; color:#5c5670; font-size:10px; font-weight:700; }.lyric-fit-summary.good { color:#19856f; }.lyric-fit-summary.warn { color:#b06629; }.lyric-fit-list { display:grid; gap:5px; margin:9px 0 0; padding:0; list-style:none; }.lyric-fit-list:empty { display:none; }.lyric-fit-list li { display:flex; gap:7px; color:#8b6173; font-size:10px; line-height:1.45; }.lyric-fit-list li::before { content:"!"; display:grid; place-items:center; flex:0 0 15px; height:15px; border-radius:50%; background:#ffe9e4; color:#cd5d4f; font-weight:800; }.lyric-fit-list li.short::before { background:#fff3d9; color:#b47a22; }
.track-panel { min-height: 485px; display: flex; flex-direction: column; align-items: center; padding: 25px; border-radius: 23px; background: var(--ink); color: white; }.vinyl { width: 152px; height: 152px; display: grid; place-items: center; position: relative; margin: 2px auto 20px; border-radius: 50%; background: repeating-radial-gradient(circle, #17142f 0 4px, #26213f 5px 7px); box-shadow: 0 15px 28px rgba(0,0,0,.25); }.vinyl::after { content:""; position:absolute; inset: 17px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }.vinyl span { width: 64px; height: 64px; z-index: 1; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--purple)); transform: rotate(-9deg); }.vinyl b,.vinyl small { display:block; font-size:9px; letter-spacing:.08em; }.vinyl small { font-size:7px; margin-top:-12px; }.track-panel.playing .vinyl { animation: spin 3s linear infinite; }.track-panel.playing .waveform i { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.track-meta { width: 100%; text-align: center; }.track-meta small { color: #8f88aa; font-size: 8px; letter-spacing: .2em; }.track-meta strong,.track-meta span { display:block; }.track-meta strong { margin:7px 0 5px; font: 600 20px Georgia, "Songti SC", serif; }.track-meta span { color:#aaa5bd; font-size:10px; }
.waveform { width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; gap: 3px; margin: 18px 0 10px; }.waveform i { width: 3px; border-radius: 5px; background: linear-gradient(#9a85f5,#ff766a); animation: wave .75s ease-in-out infinite alternate; animation-play-state: paused; }.waveform i:nth-child(3n) { animation-delay: -.25s; }.waveform i:nth-child(4n) { animation-delay: -.5s; }
@keyframes wave { to { transform: scaleY(.35); opacity:.6; } }
.now-lyric { min-height: 42px; margin: 0; color: #d9d5e6; font: 500 12px/1.7 "Songti SC", serif; text-align: center; }.preview-rule { width:100%; display:flex; justify-content:space-between; margin-top:auto; padding:12px 0; border-top:1px solid rgba(255,255,255,.1); color:#918ba9; font-size:9px; }.preview-rule strong { color:#cfcadb; }.engine-note { width:100%; padding:11px 12px; border-radius:12px; background:rgba(255,255,255,.06); }.engine-note strong,.engine-note small { display:block; }.engine-note strong { color:#fff; font-size:10px; }.engine-note small { margin-top:4px; color:#9b95af; font-size:8px; line-height:1.5; }
.studio-actions { display:flex; justify-content:space-between; gap:14px; padding-top:20px; }.studio-actions > div { display:flex; gap:9px; }
.collection-intro { margin:-10px 0 20px; color:var(--muted); font-size:12px; }.song-list { display:grid; grid-template-columns:repeat(2,1fr); gap:13px; }.song-card { overflow:hidden; position:relative; padding:20px; border:1px solid var(--line); border-radius:20px; background:white; }.song-card::after { content:"♫"; position:absolute; right:15px; top:3px; color:#f0edff; font:600 72px Georgia; }.song-card > * { position:relative; z-index:1; }.song-card small { color:var(--purple); font-size:9px; font-weight:800; }.song-card h3 { margin:6px 0 5px; font:600 21px Georgia,"Songti SC",serif; }.song-card p { margin:0; color:var(--muted); font-size:10px; }.song-preview { max-height:70px; overflow:hidden; margin:14px 0!important; white-space:pre-line; line-height:1.7; }.song-actions { display:flex; gap:8px; }.song-actions .button { min-height:38px; padding:8px 12px; }.button.danger { border-color:#f2d5d1; background:#fff6f4; color:#bd5146; }
.song-card-open { width:100%; padding:0; border:0; background:transparent; text-align:left; cursor:pointer; }.song-card-open:focus-visible { outline:3px solid rgba(112,84,232,.25); outline-offset:5px; border-radius:10px; }.song-detail-meta { margin:-8px 0 18px; color:var(--muted); font-size:11px; line-height:1.7; }.song-detail-player { display:grid; gap:14px; padding:18px; border-radius:18px; background:var(--ink); }.detail-heading { margin:24px 0 10px; font:600 18px Georgia,"Songti SC",serif; }.song-detail-lyrics { max-height:46vh; overflow:auto; padding:20px; border:1px solid var(--line); border-radius:17px; background:white; white-space:pre-line; color:#3e3851; font:500 14px/2 "Songti SC",serif; }
.week-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; margin-top:20px; }.day-card { min-height:175px; padding:14px 11px; border:1px solid var(--line); border-radius:16px; background:white; }.day-card.today { border-color:var(--purple); background:#f5f2ff; }.day-card strong,.day-card small { display:block; }.day-card small { margin-top:4px; color:var(--muted); font-size:8px; }.day-card p { margin:20px 0 0; font-size:11px; line-height:1.7; }
.summary-hero { display:flex; align-items:center; gap:15px; padding:22px; border-radius:19px; background:var(--ink); color:white; }.summary-hero > span { font-size:35px; color:#a28ff5; }.summary-hero small,.summary-hero strong { display:block; }.summary-hero small { color:#9e98b2; font-size:9px; }.summary-hero strong { margin-top:5px; font:600 24px Georgia,"Songti SC",serif; }.summary-copy { margin:17px 0; padding:18px; border:1px solid var(--line); border-radius:17px; background:white; color:#5f5a6e; font-size:13px; line-height:1.9; }

.focus-overlay { position:fixed; inset:0; z-index:150; display:none; overflow:auto; min-height:100dvh; background:radial-gradient(circle at 50% 45%, #30285e 0, #17142f 58%, #0d0b1c 100%); color:white; }.focus-overlay.is-open { display:grid; place-items:center; }.overlay-close { position:absolute; top:24px; right:28px; border:1px solid rgba(255,255,255,.15); padding:9px 13px; border-radius:99px; background:rgba(255,255,255,.06); color:#aaa5bd; cursor:pointer; }.focus-stage { width:min(92vw,650px); padding:75px 20px 40px; text-align:center; }.focus-stage h2 { margin:8px 0; font:600 clamp(28px,5vw,44px) Georgia,"Songti SC",serif; }.focus-stage > p { color:#aaa5bd; }.timer-orbit { width:280px; height:280px; position:relative; display:grid; place-content:center; margin:35px auto; border:1px solid rgba(255,255,255,.13); border-radius:50%; box-shadow:0 0 0 30px rgba(112,84,232,.06),0 0 0 60px rgba(112,84,232,.03); }.timer-orbit strong { font:500 66px Georgia,serif; letter-spacing:-.04em; }.timer-orbit small { color:#9992b1; letter-spacing:.16em; }.timer-pulse { position:absolute; inset:-1px; border:2px solid rgba(150,128,255,.7); border-radius:50%; animation:pulse-ring 2s ease-out infinite; }.focus-overlay.paused .timer-pulse { animation-play-state:paused; }.focus-overlay.resting .timer-pulse { border-color:rgba(73,191,160,.8); }
@keyframes pulse-ring { 50% { transform:scale(1.06); opacity:.35; } }
.focus-progress { height:5px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.09); }.focus-progress span { display:block; width:0; height:100%; background:linear-gradient(90deg,#7f67eb,#ff7969); transition:width .5s linear; }.focus-encourage { min-height:24px; margin:18px 0 22px!important; font-size:12px; }.focus-actions { display:flex; justify-content:center; gap:10px; }.ghost-on-dark { border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.06); color:white; }
.toast-region { position:fixed; right:20px; bottom:20px; z-index:300; display:grid; gap:8px; }.toast { max-width:330px; padding:13px 17px; border-radius:14px; background:var(--ink); color:white; box-shadow:0 15px 35px rgba(16,11,42,.28); font-size:12px; animation:toast-in .25s both; }.toast.success { border-left:4px solid var(--mint); }.toast.error { border-left:4px solid var(--coral); }
@keyframes toast-in { from { opacity:0; transform:translateY(10px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns:1fr; gap:35px; padding:45px; }.orbit-card { min-height:330px; grid-template-columns:.8fr 1fr; grid-template-rows:1fr; align-items:center; }.orbit-art { min-height:220px; }.stat-grid { grid-template-columns:repeat(2,1fr); }.feature-grid { grid-template-columns:repeat(2,1fr); }.studio-grid,.split-layout { grid-template-columns:1fr; }.track-panel { min-height:430px; }.week-grid { grid-template-columns:repeat(4,1fr); }.song-list { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .topbar,main,footer { width:min(100% - 24px,1180px); }.topbar { height:76px; }.brand small,.ai-chip { display:none; }.hero { min-height:0; padding:34px 23px; border-radius:27px; }.hero-actions .button { width:100%; }.today-line { flex-wrap:wrap; gap:10px 20px; }.orbit-card { grid-template-columns:1fr; grid-template-rows:160px auto; transform:none; }.orbit-art { min-height:160px; }.planet { width:83px; height:83px; font-size:38px; }.orbit-one { width:190px; height:80px; }.orbit-two { width:240px; height:115px; }.stat-grid { grid-template-columns:1fr 1fr; gap:9px; margin-bottom:52px; }.stat-card { min-height:105px; padding:15px; grid-template-columns:1fr; gap:8px; }.stat-icon { width:36px; height:36px; font-size:18px; }.stat-card strong { font-size:21px; }.trend { display:none; }.section-heading { align-items:start; }.section-heading .text-button { font-size:11px; }.feature-grid { grid-template-columns:1fr; }.feature-card { min-height:200px; }.modal { padding:0; align-items:flex-end; }.modal-panel,.modal-panel.medium,.modal-panel.wide,.modal-panel.song-studio { width:100%; max-height:94dvh; border-radius:26px 26px 0 0; padding:22px 16px; }.form-grid.two,.inline-fields { grid-template-columns:1fr; }.modal-actions.split,.studio-actions { align-items:stretch; flex-direction:column; }.modal-actions.split > div,.studio-actions > div { display:grid; grid-template-columns:1fr 1fr; }.studio-actions .button { padding:10px 8px; }.track-panel { min-height:410px; }.week-grid { grid-template-columns:repeat(2,1fr); }.weekly-head { align-items:stretch; flex-direction:column; }.timer-orbit { width:220px; height:220px; }.timer-orbit strong { font-size:52px; } footer { flex-direction:column; align-items:flex-start; justify-content:center; gap:8px; }
  #songModal .modal-panel { padding-bottom:118px; }
  #songModal .studio-actions { position:fixed; left:10px; right:10px; bottom:8px; z-index:210; gap:7px; padding:9px; border:1px solid #ded7fa; border-radius:16px; background:rgba(255,255,255,.96); box-shadow:0 12px 34px rgba(29,25,56,.2); backdrop-filter:blur(12px); }
  #songModal .studio-actions > div:first-child { display:flex; overflow-x:auto; padding-bottom:2px; scrollbar-width:thin; }
  #songModal .studio-actions > div:first-child .button { flex:0 0 auto; min-height:34px; white-space:nowrap; }
  #songModal .studio-actions > div:last-child { display:grid; grid-template-columns:1fr 1.35fr; }
  #songModal .studio-actions > div:last-child .button { min-height:42px; }
}
@media (max-width: 370px) { .stat-grid { grid-template-columns:1fr; }.top-actions { gap:4px; }.note-wallet { min-width:78px; padding:9px 12px; }.section-heading { display:block; }.section-heading .text-button { padding-left:0; margin-top:9px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }

.lyric-editor-tools { display:none; gap:9px; }.studio-controls .lyric-editor-tools { display:grid; }
.lyrics-editor-shell { position:relative; min-height:290px; overflow:hidden; border-radius:13px; }
.lyrics-editor-shell textarea { position:relative; z-index:2; height:290px; margin-top:0; background:transparent; color:transparent; -webkit-text-fill-color:transparent; caret-color:var(--ink); }
.lyric-overlay { position:absolute; inset:0; z-index:1; overflow:auto; padding:12px 13px; pointer-events:none; white-space:pre-wrap; word-break:break-word; color:var(--ink); font-family:"Songti SC",Georgia,serif; font-size:14px; line-height:1.75; }
.lyric-overlay-line { min-height:1.75em; }.lyric-overlay-header { color:var(--purple); }.lyric-overlay-fit,.lyric-overlay-punctuation { color:var(--lyric-editor-text,#3e3851); }.lyric-overlay-extra { color:var(--lyric-extra-text,#aaa6b2); }.lyric-overlay-missing { color:#c7bfff; text-shadow:0 0 5px rgba(112,84,232,.24); }.lyric-overlay-empty { color:transparent; }
.lyric-warning { padding:10px 12px; border:1px solid #f0c9c1; border-radius:12px; background:#fff3ef; color:#a94d43; font-size:11px; line-height:1.6; }
.force-lyrics-button { justify-self:start; color:#a94d43; }
.lyric-meter-preview { max-height:180px; overflow:auto; padding:11px 12px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.lyric-meter-section { margin:7px 0 3px; color:var(--purple); font:700 11px/1.5 "Songti SC",serif; }
.lyric-meter-line { display:flex; align-items:baseline; justify-content:space-between; gap:9px; min-height:24px; color:#5d586d; font:500 13px/1.7 "Songti SC",serif; }
.lyric-meter-line small { flex:0 0 auto; color:#9993a8; font:10px Inter,sans-serif; }
.lyric-meter-characters { letter-spacing:.12em; }
.lyric-meter-fit { color:#4a4558; }
.lyric-meter-extra { color:#aaa6b2; text-decoration:line-through; text-decoration-color:#c8c3cd; }
.lyric-meter-missing { color:#cfc8ff; text-shadow:0 0 4px rgba(112,84,232,.2); }
.preview-lyrics { width:100%; max-height:105px; overflow:auto; margin:8px 0 10px; padding:9px 11px; border:1px solid rgba(255,255,255,.12); border-radius:12px; background:rgba(255,255,255,.06); color:#b7b0ca; font:500 11px/1.75 "Songti SC",serif; }.preview-lyrics-line { padding:1px 4px; border-radius:5px; }.preview-lyrics-line.is-current { background:rgba(112,84,232,.28); color:#fff; }.preview-lyrics-line.is-estimated.is-current { background:rgba(54,126,218,.35); }.preview-lyrics-note { display:block; margin:0 0 4px; color:#c9c2ef; font:600 10px/1.4 Inter,"PingFang SC",sans-serif; }.preview-lyrics-empty { color:#9f98b4; }
.lyric-audit { padding:14px; border:1px solid color-mix(in srgb,var(--purple) 22%,transparent); border-radius:17px; background:color-mix(in srgb,var(--purple) 5%,var(--paper)); box-shadow:0 12px 32px rgba(32,27,59,.06); }
.lyric-audit-summary { display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:11px; align-items:center; }.lyric-audit-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#fff1d8; color:#a86b18; font-weight:900; }.lyric-audit.is-perfect .lyric-audit-mark { background:#dff8ef; color:#19856f; }.lyric-audit.has-difference .lyric-audit-mark { background:#ffe8e4; color:#c9564c; }.lyric-audit-copy strong { display:block; color:var(--ink); font-size:12px; }.lyric-audit-copy p { margin:4px 0 0; color:var(--muted); font-size:10px; line-height:1.55; }.lyric-audit-open { padding:9px 12px; white-space:nowrap; }.lyric-audit-undo { margin:9px 0 0 45px; font-size:10px; }
.lyric-review { margin-top:14px; padding-top:14px; border-top:1px solid color-mix(in srgb,var(--purple) 16%,transparent); }.lyric-review-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }.lyric-review-head strong { color:var(--ink); font-size:14px; }.lyric-review-head p { margin:5px 0 0; max-width:690px; color:var(--muted); font-size:10px; line-height:1.6; }.lyric-review-close { flex:0 0 auto; width:34px; height:34px; }.lyric-review-tabs { display:none; }.lyric-review-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:13px; }.lyric-review-pane { min-width:0; padding:11px; border:1px solid color-mix(in srgb,var(--purple) 15%,transparent); border-radius:14px; background:color-mix(in srgb,#fff 82%,var(--paper)); }.lyric-review-pane-title { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px; }.lyric-review-pane-title strong { color:var(--ink); font-size:11px; }.lyric-review-pane-title span,.lyric-review-pane-title .text-button { color:var(--muted); font-size:9px; }.lyric-review-lines { height:300px; overflow:auto; padding-right:4px; }.lyric-review-section { padding:9px 7px 4px; color:var(--purple); font-size:10px; font-weight:800; }.lyric-review-empty { height:8px; }.lyric-review-line { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; gap:9px; align-items:center; padding:7px; border:0; border-radius:9px; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }.lyric-review-line:hover,.lyric-review-line.is-selected { background:color-mix(in srgb,var(--purple) 10%,transparent); }.lyric-review-line small { color:var(--purple); font-size:8px; white-space:nowrap; }.lyric-review-line:disabled { opacity:.48; cursor:not-allowed; }.lyric-review-pane textarea { min-height:300px; height:300px; resize:vertical; padding:11px; background:color-mix(in srgb,#fff 82%,var(--paper)); color:var(--ink); line-height:1.8; }.lyric-review-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:12px; }
@media (max-width:760px) { .lyric-audit-summary { grid-template-columns:34px 1fr; }.lyric-audit-open { grid-column:1/-1; width:100%; }.lyric-audit-undo { margin-left:0; }.lyric-review-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:12px; padding:4px; border-radius:12px; background:color-mix(in srgb,var(--purple) 8%,transparent); }.lyric-review-tabs button { padding:8px; border:0; border-radius:9px; background:transparent; color:var(--muted); font-weight:800; }.lyric-review-tabs button.is-active { background:var(--paper); color:var(--purple); box-shadow:0 4px 12px rgba(32,27,59,.08); }.lyric-review-grid { display:block; margin-top:8px; }.lyric-review-pane { display:none; }.lyric-review-pane.is-mobile-active { display:block; }.lyric-review-actions { display:grid; grid-template-columns:1fr; }.lyric-review-actions .button { width:100%; } }
.preview-warning-copy { margin:0; padding:14px; border-radius:13px; background:#fff3ef; color:#875850; font-size:12px; line-height:1.8; }
.global-song-player { position:sticky; top:0; z-index:90; display:grid; grid-template-columns:minmax(130px,.42fr) minmax(300px,1.25fr) auto; align-items:center; gap:16px; width:min(1180px,calc(100% - 40px)); margin:0 auto 12px; padding:12px 15px; border:1px solid #dcd5ff; border-radius:17px; background:#f7f4ff; box-shadow:0 12px 28px rgba(41,32,79,.12); }
.global-song-player[hidden] { display:none; }
.global-player-copy small,.global-player-copy strong { display:block; }.global-player-copy small { color:var(--purple); font-size:9px; letter-spacing:.1em; }.global-player-copy strong { margin-top:3px; font:600 15px Georgia,"Songti SC",serif; }
.global-player-center { min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; }
.global-player-lyric { min-width:0; overflow:hidden; padding:7px 10px; border:0; border-radius:10px; background:transparent; color:#365fd0; font:600 14px/1.5 "Songti SC",serif; text-align:center; white-space:nowrap; text-overflow:ellipsis; cursor:pointer; transition:background .18s,color .18s; }
.global-player-lyric:hover { background:#ebe6ff; color:#274fad; }.global-player-lyric:focus-visible { outline:3px solid rgba(112,84,232,.25); outline-offset:1px; }
.global-player-actions { display:flex; align-items:center; gap:7px; }.button.compact { min-height:34px; padding:7px 11px; font-size:11px; }
.global-player-skip { width:34px; height:34px; flex:0 0 auto; border:1px solid #d8d0ff; border-radius:11px; background:#fff; color:var(--ink); cursor:pointer; }.global-player-skip:hover:not(:disabled) { border-color:var(--purple); color:var(--purple); }.global-player-skip:disabled { cursor:not-allowed; opacity:.4; }
.global-player-mode { width:auto; min-height:34px; margin:0; padding:7px 8px; border-color:#d8d0ff; background:#fff; color:var(--ink); font-size:10px; }
.player-progress { min-width:0; display:grid; grid-template-columns:42px minmax(80px,1fr) 42px; align-items:center; gap:9px; }
.global-player-progress { grid-column:1 / -1; }
.player-progress time { color:var(--muted); font:700 9px/1 ui-monospace,"SFMono-Regular",Consolas,monospace; font-variant-numeric:tabular-nums; text-align:center; }
.player-progress input[type="range"] { width:100%; height:18px; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; cursor:pointer; appearance:none; -webkit-appearance:none; }
.player-progress input[type="range"]::-webkit-slider-runnable-track { height:4px; border-radius:99px; background:linear-gradient(90deg,var(--song-progress-fill-start,var(--purple)) 0,var(--song-progress-fill-end,var(--purple)) var(--seek-progress,0%),var(--song-progress-track,rgba(113,109,134,.22)) var(--seek-progress,0%) 100%); }
.player-progress input[type="range"]::-webkit-slider-thumb { width:14px; height:14px; margin-top:-5px; border:3px solid var(--song-progress-thumb,#fff); border-radius:50%; background:var(--song-progress-fill-end,var(--purple)); box-shadow:0 2px 8px rgba(22,17,48,.24); appearance:none; -webkit-appearance:none; }
.player-progress input[type="range"]::-moz-range-track { height:4px; border:0; border-radius:99px; background:var(--song-progress-track,rgba(113,109,134,.22)); }
.player-progress input[type="range"]::-moz-range-progress { height:4px; border-radius:99px; background:linear-gradient(90deg,var(--song-progress-fill-start,var(--purple)),var(--song-progress-fill-end,var(--purple))); }
.player-progress input[type="range"]::-moz-range-thumb { width:9px; height:9px; border:3px solid var(--song-progress-thumb,#fff); border-radius:50%; background:var(--song-progress-fill-end,var(--purple)); box-shadow:0 2px 8px rgba(22,17,48,.24); }
.player-progress input[type="range"]:focus-visible { outline:3px solid color-mix(in srgb,var(--purple) 28%,transparent); outline-offset:3px; }
.player-progress input[type="range"]:disabled { cursor:not-allowed; opacity:.45; }
.synced-section { margin:10px 0 3px; color:var(--purple); font:700 11px/1.5 Inter,"PingFang SC",sans-serif; }.synced-lyric-line { padding:4px 7px; border-radius:8px; transition:background .2s; }.synced-lyric-line.is-current { background:#f1efff; }.synced-lyric-line.is-estimated.is-current { background:#e8f1ff; box-shadow:inset 3px 0 #4d83df; }.lyric-synced-char { color:#514b62; transition:color .15s, text-shadow .15s; }.lyric-synced-char.is-sung { color:#3566d4; }.lyric-synced-char.is-current { color:#214fc2; text-shadow:0 0 7px rgba(53,102,212,.28); }
@media (max-width:620px) { .global-song-player { width:calc(100% - 24px); grid-template-columns:1fr auto; gap:8px 6px; }.global-player-center { grid-column:1 / -1; grid-row:2; gap:6px; }.global-player-actions { grid-column:2; grid-row:1; gap:4px; }.global-player-progress { grid-column:1 / -1; grid-row:3; }.global-player-mode { max-width:82px; }.global-player-skip { width:30px; height:32px; }.global-player-actions .button.compact { padding:6px 8px; }.player-progress { grid-template-columns:37px minmax(70px,1fr) 37px; gap:6px; }.song-detail-player { padding:14px; }.lyric-meter-line { font-size:12px; } }
