:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--paper: #fffaf2;--background: #f3ede3;--text: #3f352b;--muted: #746657;--border: #d9cdbd;--accent: #80572b;--wash: #eee0c9;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-6: 24px;--space-8: 32px;--space-12: 48px;--radius: 8px;--panel-radius: 12px;--touch: 44px;--font-small: 14px;--font-body: 16px;--font-section: 20px;--font-title: 28px;--book-font: Georgia, "Noto Serif TC", "Songti TC", PMingLiU, Batang, serif;--page-width: 960px;--lyric-width: 800px;color:var(--text);background:var(--background);line-height:1.6}:root[data-theme=dark]{--paper: #2b2621;--background: #211d19;--text: #efe5d6;--muted: #c3b29d;--border: #65584a;--accent: #d7ac72;--wash: #483b2d}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh}body,.ant-app{color:var(--text);background:var(--background)}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}a{color:var(--accent)}h1,h2,h3,p{margin-top:0}h1,h2{font-family:var(--book-font);line-height:1.5;overflow-wrap:anywhere}h1{font-size:var(--font-title)}h2{font-size:var(--font-section)}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:0s!important}}#root{min-height:100dvh}.book-page,.reading-page{width:min(100%,var(--page-width));margin-inline:auto;padding:max(var(--space-8),env(safe-area-inset-top)) max(var(--space-8),env(safe-area-inset-right)) max(var(--space-12),env(safe-area-inset-bottom)) max(var(--space-8),env(safe-area-inset-left))}.book-header{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-4);margin-bottom:var(--space-6)}.book-header h1{margin:0}.book-header span{color:var(--muted);font-size:var(--font-small)}.song-search{width:100%;margin-bottom:var(--space-6)}.paper-panel{background:var(--paper);border-radius:var(--panel-radius);padding:var(--space-6)}.ant-tabs .ant-tabs-tab{min-height:var(--touch);padding-inline:var(--space-3)}.ant-tabs .ant-tabs-tab-active{background:var(--wash);border-radius:var(--radius)}.song-list-item{padding:0!important}.song-row{display:flex;align-items:baseline;gap:var(--space-4);width:100%;min-height:var(--touch);padding:var(--space-4) var(--space-2);text-align:start;border:0;border-radius:var(--radius);background:transparent;color:var(--text)}.song-row:hover,.song-row:active{background:var(--wash)}.song-number{flex:0 0 4em;color:var(--muted);font-size:var(--font-small);font-variant-numeric:tabular-nums}.song-title{font-family:var(--book-font);overflow-wrap:anywhere}.song-tools{position:sticky;bottom:max(var(--space-4),env(safe-area-inset-bottom));display:flex;justify-content:flex-end;gap:var(--space-2);padding-top:var(--space-3);pointer-events:none}.song-tools>*{pointer-events:auto}.page-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-2);margin-bottom:var(--space-8)}.page-toolbar .reading-tools{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-inline-start:auto}.lyric-paper{max-width:var(--lyric-width);margin-inline:auto;padding:clamp(var(--space-6),5vw,var(--space-12));background:var(--paper);border-radius:var(--panel-radius)}.lyric-heading{margin-bottom:var(--space-8)}.lyric-heading .song-number{display:block;margin-bottom:var(--space-2)}.lyric-heading h1{margin-bottom:0}.lyric-text{font-family:var(--book-font);white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere;margin:0}.result-heading{margin-bottom:var(--space-6)}.search-result{display:block;width:100%;text-align:start;border:0;background:var(--paper);color:var(--text);padding:var(--space-6);border-radius:var(--panel-radius)}.search-result:hover,.search-result:active{background:var(--wash)}.search-excerpt{margin-top:var(--space-3);white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font-size:var(--font-small)}mark{color:var(--text);background:var(--wash);border-radius:var(--space-1)}.status-page{min-height:100dvh;display:grid;place-items:center;padding:max(var(--space-6),env(safe-area-inset-top)) var(--space-6);text-align:center}.login-content{width:min(100%,400px);padding-block:var(--space-8)}.login-logo{width:160px;height:160px;object-fit:contain;margin-bottom:var(--space-6);border-radius:var(--panel-radius)}.login-content h1{margin-bottom:var(--space-8)}.settings-list{margin-top:var(--space-8)}.settings-list .ant-btn{justify-content:flex-start;width:100%;text-align:start;height:auto;min-height:var(--touch);white-space:normal}.settings-list .ant-list-item{padding-block:var(--space-2)}.about-logo{height:var(--space-8);vertical-align:middle;margin-inline-end:var(--space-2)}.about-name{font-size:var(--font-section);font-family:var(--book-font)}.language-options{display:flex;flex-wrap:wrap;gap:var(--space-3)}@media (max-width: 600px){.book-page,.reading-page{padding:max(var(--space-6),env(safe-area-inset-top)) max(var(--space-4),env(safe-area-inset-right)) max(var(--space-8),env(safe-area-inset-bottom)) max(var(--space-4),env(safe-area-inset-left))}.book-header span{display:none}.paper-panel{padding:var(--space-4)}.page-toolbar{margin-bottom:var(--space-6)}.lyric-paper{padding:var(--space-6) var(--space-4)}.song-row{gap:var(--space-2)}}.appearance-settings h2{margin-bottom:var(--space-6)}.appearance-settings fieldset{border:0;padding:0;margin:0 0 var(--space-6);min-width:0}.appearance-settings legend{padding:0;margin-bottom:var(--space-3);font-weight:600}.mode-options{display:flex;flex-wrap:wrap;gap:var(--space-2)}.mode-option{display:flex;align-items:center;gap:var(--space-2);min-height:var(--touch);padding:var(--space-2) var(--space-4);border-radius:var(--radius);cursor:pointer}.mode-option:hover,.mode-option:has(:checked),.palette-option:hover,.palette-option:has(:checked){background:var(--wash)}.appearance-settings input{accent-color:var(--accent);margin:0;flex-shrink:0;width:18px;height:18px}.palette-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-3)}.palette-option{display:flex;flex-direction:column;border-radius:var(--radius);padding:var(--space-2);cursor:pointer;min-width:0}.palette-preview{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-4);border-radius:var(--radius);background:var(--paper);border:1px solid var(--border);color:var(--preview-accent)}.palette-preview[data-palette=sand]{--preview-accent: #80572b}.palette-preview[data-palette=forest]{--preview-accent: #466b53}.palette-preview[data-palette=sea]{--preview-accent: #476a80}:root[data-theme=dark] .palette-preview[data-palette=sand]{--preview-accent: #d7ac72}:root[data-theme=dark] .palette-preview[data-palette=forest]{--preview-accent: #9bc3a2}:root[data-theme=dark] .palette-preview[data-palette=sea]{--preview-accent: #a0bfd2}.preview-title{font-family:var(--book-font);font-size:var(--font-section)}.preview-line{width:100%;height:var(--space-1);background:var(--border);border-radius:var(--space-1)}.preview-line.short{width:65%}.preview-button{width:var(--space-8);height:var(--space-3);margin-top:var(--space-2);background:var(--preview-accent);border-radius:var(--space-1)}.palette-label{display:flex;align-items:center;gap:var(--space-2);min-height:var(--touch);font-size:var(--font-small);overflow-wrap:anywhere}.settings-note{color:var(--muted);font-size:var(--font-small);margin:0}@media (max-width: 600px){.palette-options{gap:var(--space-1)}.palette-preview{padding:var(--space-3)}}.playlist-page>.ant-alert,.playlist-form .ant-alert{margin-block:var(--space-4)}.playlist-heading,.playlist-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}.playlist-heading{justify-content:space-between;margin-block:var(--space-6) var(--space-2)}.playlist-heading h1{margin:0}.playlist-note,.playlist-heading>span{color:var(--muted);font-size:var(--font-small)}.playlist-section{margin-top:var(--space-6)}.playlist-summary{flex:1 1 100%;min-width:0}.playlist-tracks{padding-inline-start:var(--space-6);margin-block:var(--space-4) var(--space-6)}.playlist-tracks li{padding-block:var(--space-3);border-bottom:1px solid var(--border)}.playlist-track-title{display:block;overflow-wrap:anywhere;margin-bottom:var(--space-2);font-family:var(--book-font)}.playlist-form .ant-select{width:100%}.playlist-navigation{position:sticky;top:0;z-index:2;background:var(--wash);padding:var(--space-4);border-radius:var(--radius);margin-bottom:var(--space-6)}.playlist-now{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-2) var(--space-4);margin-bottom:var(--space-3);overflow-wrap:anywhere}.playlist-now strong{font-family:var(--book-font)}.playlist-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);margin-bottom:var(--space-4)}.playlist-list-row{align-items:center}.playlist-list-row .playlist-summary{display:flex;flex-direction:column;gap:var(--space-1);flex:1}.playlist-song-order{padding-inline-start:var(--space-6);margin:0}.playlist-song-order li+li{border-top:1px solid var(--border)}
