:root,html[data-theme=dark]{--bg: #0b0e14;--surface: #141926;--surface-muted: #1b2233;--text: #eef1f6;--muted: #9aa5b5;--border: #2a3247;--accent: #b8e62e;--on-accent: #10130a}html[data-theme=light]{--bg: #f6f7f9;--surface: #ffffff;--surface-muted: #eceef2;--text: #161a22;--muted: #5b6572;--border: #d7dbe2;--accent: #5d9200;--on-accent: #ffffff}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans Khmer,sans-serif;background:var(--bg);color:var(--text);transition:background .25s ease,color .25s ease}a{color:inherit}.muted{color:var(--muted)}.app-shell{display:flex;min-height:100vh}.sidebar{width:250px;flex-shrink:0;display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--border);padding:16px 12px;gap:12px;position:sticky;top:0;height:100vh;overflow-y:auto}.brand{display:flex;gap:10px;align-items:center}.brand-logo{font-size:28px}.brand-name{font-weight:700}.brand-tag{color:var(--muted);font-size:12px}.side-nav{display:flex;flex-direction:column;gap:2px}.nav-item{display:flex;gap:8px;align-items:center;padding:8px 10px;border-radius:8px;text-decoration:none;color:var(--text)}.nav-item:hover{background:var(--surface-muted)}.nav-item.active{background:var(--surface-muted);font-weight:600}.side-pickers{margin-top:auto;display:flex;flex-direction:column;gap:10px}.picker-wrap{position:relative;display:flex;flex-direction:column;gap:4px}.picker-label{font-size:12px;color:var(--muted)}.picker-btn{background:var(--surface-muted);color:var(--text);border:1px solid var(--border);border-radius:999px;padding:8px 14px;cursor:pointer;text-align:left}.picker-panel{position:absolute;bottom:calc(100% + 6px);left:0;z-index:40;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:6px;min-width:200px;box-shadow:0 12px 32px #00000059;display:flex;flex-direction:column}.picker-item{background:none;border:none;color:var(--text);text-align:left;padding:8px 10px;border-radius:8px;cursor:pointer}.picker-item:hover,.picker-item.active{background:var(--surface-muted)}.main{flex:1;padding:24px;min-width:0}.page h1{margin-top:0}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px;margin-bottom:16px}button{background:var(--accent);color:var(--on-accent);border:none;border-radius:999px;padding:8px 16px;cursor:pointer;font-weight:600}button:disabled{opacity:.45;cursor:not-allowed}input,textarea,select{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:9px 12px;width:100%}label{display:block;margin-bottom:12px;font-size:14px}label>input,label>textarea,label>select{margin-top:6px}.song-menu-wrap{position:relative;display:inline-block}.song-menu-btn{background:var(--surface-muted);color:var(--text);border:1px solid var(--border);width:34px;height:34px;padding:0;font-size:18px;line-height:1}.song-menu-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:50;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:6px;min-width:190px;box-shadow:0 12px 32px #00000059;display:flex;flex-direction:column}.song-menu-item{background:none;color:var(--text);text-align:left;font-weight:500;padding:8px 10px;border-radius:8px}.song-menu-item:hover{background:var(--surface-muted)}.song-menu-item.danger{color:#e5484d}.inline-notice{margin-top:8px;background:var(--surface-muted);border:1px solid var(--border);border-radius:10px;padding:8px 10px;font-size:13px;display:flex;gap:8px;align-items:flex-start}.inline-notice button{background:none;color:var(--text);padding:0 4px}.stem-list{list-style:none;padding:0}.stem-row{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border)}.stem-kind{text-transform:capitalize;min-width:80px;font-weight:600}.song-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.song-row .song-title{flex:1;font-weight:600}.mobile-rail,.mobile-drawer{display:none}@media(max-width:760px){.sidebar{display:none}.main{padding:16px 14px 24px 86px}.mobile-rail{display:flex;flex-direction:column;align-items:stretch;gap:2px;position:fixed;left:0;top:0;bottom:0;width:72px;z-index:30;background:var(--surface);border-right:1px solid var(--border);padding:10px 6px;overflow-y:auto}.rail-menu-btn{background:var(--surface-muted);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:8px 0;margin-bottom:6px;font-size:16px}.rail-item{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 2px;border-radius:10px;text-decoration:none;color:var(--text);font-size:15px}.rail-item.active{background:var(--surface-muted);font-weight:600}.rail-label{font-size:9px;line-height:1.1;text-align:center;overflow:hidden}.mobile-drawer{display:block;position:fixed;left:72px;top:0;bottom:0;width:230px;z-index:29;background:var(--surface);border-right:1px solid var(--border);padding:14px 10px;overflow-y:auto}}
