@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Nunito:wght@600;700&display=swap);body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--bg-1);color:var(--text-primary);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.fixed-plot{align-items:stretch;height:auto;padding:0 6px 20px;perspective:400px;position:-webkit-sticky;position:sticky;z-index:2}.fixed-plot,.violin-plot-tilt{display:flex;justify-content:center}.violin-plot-tilt{align-items:center;background:var(--gradient-gold);background-position:50%;background-repeat:no-repeat;background-size:50% 100%;border-radius:var(--radius-md);height:100%;overflow:hidden;transform:rotateX(15deg) scaleY(.95);transform-origin:top center}.audio-player--fixed{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:hsla(0,0%,100%,.85);bottom:24px;box-shadow:0 -10px 25px -5px rgba(0,0,0,.1);gap:12px;left:50%;padding:16px clamp(16px,3vw,24px);position:fixed;transform:translateX(-50%);width:min(1100px,92vw);z-index:1200}.audio-player--fixed,.audio-player--inline{border:1px solid var(--surface-border);border-radius:var(--radius-lg);color:var(--text-primary);display:flex;flex-direction:column}.audio-player--inline{background:hsla(0,0%,100%,.95);box-shadow:0 2px 8px rgba(0,0,0,.1);gap:0;margin-top:0;padding:16px;position:relative;width:100%}.composer-link{color:grey!important;cursor:pointer;font-size:smaller!important}.composer-link:hover{text-decoration:underline}.bottom-row,.top-row{gap:12px}.bottom-row,.top-row{align-items:center;display:flex;flex-wrap:nowrap}.top-row{gap:10px;justify-content:space-between;position:relative}.top-row>*{min-width:0}.top-row .piece-name{flex:1 1 auto}.top-row .bpm-slider-container{flex:0 0 auto;justify-self:auto;margin-left:8px}.play-pause{left:50%;position:absolute;transform:translateX(-50%);z-index:1}.piece-name h3{color:var(--text-primary);font-size:18px;margin:0;width:100%}.piece-name,.piece-name h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.piece-name{flex:1 1 auto;min-width:0}.play-pause{justify-self:center}.play-pause,.play-pause-button{align-items:center;display:flex;justify-content:center}.play-pause-button{background:var(--gradient-accent-diagonal);border:none;border-radius:50%;box-shadow:0 18px 45px rgba(var(--accent-rgb),.35);color:var(--surface);cursor:pointer;font-size:18px;height:48px;transition:transform .2s ease,box-shadow .2s ease;width:48px}.play-pause-button:hover:not(:disabled){transform:scale(1.06)}.play-pause-button:disabled{background:rgba(148,163,184,.35);box-shadow:none;cursor:not-allowed}.player-favorite-button{align-items:center;background:transparent;border:none;border-radius:8px;color:var(--text-secondary);cursor:pointer;display:inline-flex;font-size:20px;justify-content:center;margin-right:6px;padding:6px 8px}.player-favorite-button.favorited{color:var(--accent);filter:drop-shadow(0 6px 18px rgba(var(--accent-rgb),.18))}.bpm-slider-container{align-items:center;background:var(--accent-opacity-08);border-radius:var(--radius-sm);color:var(--text-secondary);display:flex;flex:0 1 auto;gap:4px;max-width:150px;overflow:hidden;padding:1px 4px;white-space:nowrap}.bpm-slider-container label{font-size:12px;font-weight:500;margin-right:4px;white-space:nowrap}.bpm-slider-container input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;cursor:pointer;height:24px;margin-left:1px;max-width:100px;min-width:30px;width:70px}.bpm-slider-container input[type=range]::-webkit-slider-runnable-track{background:var(--gradient-accent-soft);border-radius:999px;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.02);height:6px}.bpm-slider-container input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--gradient-accent-diagonal);border:2px solid hsla(0,0%,100%,.06);border-radius:50%;box-shadow:0 4px 10px rgba(var(--accent-rgb),.28);height:16px;margin-top:-6px;width:16px}.bpm-slider-container input[type=range]::-moz-range-track{background:var(--gradient-accent-soft);border-radius:999px;height:6px}.bpm-slider-container input[type=range]::-moz-range-thumb{background:var(--gradient-accent-diagonal);border:2px solid hsla(0,0%,100%,.06);border-radius:50%;box-shadow:0 4px 10px rgba(79,70,229,.28);height:16px;width:16px}.bpm-slider-container input[type=range]:focus{outline:none}bpm-slider-container input[type=range]:focus::-webkit-slider-runnable-track{box-shadow:inset 0 0 0 3px rgba(var(--accent-rgb),.08)}.bpm-slider-container input[type=range]:disabled{cursor:not-allowed;opacity:.6}.select-container select{background:var(--surface);border:1px solid var(--surface-border);border-radius:var(--radius-md);color:var(--text-primary);cursor:pointer;font-size:14px;min-width:140px;padding:10px 16px;transition:border-color .2s ease,background .2s ease}.select-container select:hover{background:var(--surface-strong);border-color:rgba(var(--accent-rgb),.5)}.select-container select:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft);outline:none}.progress-container{align-items:center;display:flex;flex:1 1 auto;gap:10px;margin:0;min-width:0}.select-container{flex:0 0 auto}.time{color:var(--text-secondary);font-size:13px}.progress-bar{-webkit-appearance:none;appearance:none;background:var(--accent-opacity-25);border-radius:999px;cursor:pointer;flex:1 1;height:8px;transition:background .2s ease}.progress-bar:hover{background:rgba(var(--accent-rgb),.4)}.progress-bar::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--accent);border:none;border-radius:50%;box-shadow:0 2px 8px rgba(var(--accent-rgb),.6);cursor:pointer;height:18px;-webkit-transition:transform .2s ease;transition:transform .2s ease;width:18px}.progress-bar::-webkit-slider-thumb:hover{transform:scale(1.1)}.progress-bar::-moz-range-thumb{background:var(--accent);border:none;border-radius:50%;box-shadow:0 2px 8px rgba(var(--accent-rgb),.6);cursor:pointer;height:18px;width:18px}.piece-viewer{display:flex;flex-direction:column;position:relative}.piece-viewer--full{height:auto}.piece-viewer--inline{height:100%}.piece-viewer__menu{background:hsla(0,0%,100%,.8);border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.01);display:flex;gap:16px;left:2px;padding:4px 6px;position:absolute;top:2px;z-index:10}.piece-viewer__menu label{align-items:center;cursor:pointer;display:flex;font-size:14px;gap:8px;margin:0}.piece-viewer__content{display:flex;flex:1 1;flex-direction:row;min-height:0;overflow:hidden}.piece-viewer__content.single-view{align-items:flex-start;justify-content:center;overflow-x:auto}.piece-viewer__content.single-view .piece-viewer__score,.piece-viewer__content.single-view .piece-viewer__tabs{flex:none;max-width:100%;overflow-x:auto}.piece-viewer__audio{background-color:transparent;background:transparent;flex:0 0 auto;margin-top:0}.score-in-chat{margin-top:10px;position:relative}.score-svg-container{background:hsla(0,0%,100%,.9);border:1px solid var(--surface-border);border-radius:8px;overflow-x:auto;padding:40px 10px 24px;position:relative;transition:max-height .3s ease}.score-svg-container.collapsed{max-height:300px;overflow:hidden}.score-svg-container.collapsed .score-svg-page{overflow:hidden}.score-svg-container.expanded{max-height:400px;overflow-y:auto}.open-player-button{align-items:center;background:hsla(0,0%,100%,.6);border:1px solid rgba(0,0,0,.06);border-radius:8px;box-shadow:0 1px 2px rgba(0,0,0,.06);color:var(--success);cursor:pointer;display:inline-flex;font-size:12px;height:36px;justify-content:center;position:absolute;right:8px;top:8px;width:36px;z-index:12}.open-player-button:hover{background:hsla(0,0%,100%,.85)}.open-player-button:focus{box-shadow:0 0 0 3px rgba(5,150,105,.12),0 1px 2px rgba(0,0,0,.06);outline:none}.toggle-expand-button{align-items:center;background:hsla(0,0%,100%,.6);border:1px solid rgba(0,0,0,.06);border-radius:8px;color:var(--success-dark);cursor:pointer;display:inline-flex;height:36px;justify-content:center;left:8px;position:absolute;top:8px;transition:background .15s ease,transform .08s ease;width:36px;z-index:12}.toggle-expand-button:hover{background:hsla(0,0%,100%,.85);transform:translateY(-1px)}.toggle-expand-button:focus{box-shadow:0 0 0 3px rgba(55,65,81,.08);outline:none}.score-svg-page{margin-bottom:10px}.score-svg-page svg{height:auto;max-width:100%}.collapse-button,.collapse-button-container,.expand-button{display:none}.chat-container{border-radius:8px;display:flex;flex:1 1 auto;flex-direction:column;margin:0 auto;max-width:1000px;min-height:0;width:100%}.practice-page:not(.with-sidebar) .chat-container{margin:0;max-width:none;padding-left:40px;padding-right:40px}.chat-main{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}.chat-messages{border-radius:8px;box-sizing:border-box;flex:1 1;margin-bottom:0;min-height:0;overflow-y:auto;padding:10px;width:100%}.practice-page:not(.with-sidebar) .chat-messages{padding:20px}.results-header{flex-direction:column;height:100px;justify-content:center;padding:20px;text-align:center}.chat-instruction{color:var(--text-gray);font-style:italic;margin-top:8px}.chat-message{border-radius:12px;display:table;line-height:1.4;margin-bottom:10px;max-width:78%;padding:10px 12px;position:relative}.chat-message.assistant{display:block;max-width:100%;width:100%}.chat-message.user{background:var(--gray-light);border-bottom-right-radius:6px;color:var(--text-dark);margin-left:auto}.chat-message.user>strong{display:none}.enter-symbol{color:var(--primary);font-weight:700;margin-right:4px}.measure-text{flex:1 1;font-style:italic;font-weight:500}.remove-prefix-btn:hover{background:var(--surface-border);color:var(--text)}.chat-input{border-radius:999px;padding:12px 16px}.chat-input:focus{box-shadow:none}.typing-indicator{align-items:center;display:flex;gap:4px}.typing-indicator span{animation:typing 1.4s ease-in-out infinite;background-color:var(--gray-dark);border-radius:50%;height:8px;width:8px}.typing-indicator span:first-child{animation-delay:-.32s}.typing-indicator span:nth-child(2){animation-delay:-.16s}.typing-indicator span:nth-child(3){animation-delay:0s}@keyframes typing{0%,80%,to{opacity:.5;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.ai-message{align-items:flex-start;display:flex;gap:10px}.ai-message.loading{align-items:center}.ai-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:100%;flex-shrink:0;height:48px;width:48px}.ai-content{flex:1 1}.chat-send-button{border-radius:999px;box-shadow:0 10px 20px var(--accent-opacity-16);color:var(--surface);display:inline-flex;font-size:16px;height:44px;padding:0;transition:transform .12s ease,box-shadow .12s ease,opacity .12s ease;width:44px}.chat-send-button:hover{box-shadow:0 14px 30px var(--accent-opacity-18);transform:translateY(-2px)}.chat-send-button:active{transform:translateY(0)}.chat-send-button:disabled{box-shadow:none;opacity:.9}.chat-send-button svg{color:#fff;display:block;height:18px;width:18px}.chat-send-button.loading svg{animation:spin .9s linear infinite;opacity:.95}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.chat-send-button:focus-visible{box-shadow:0 0 0 4px var(--accent-opacity-12),0 10px 20px var(--accent-opacity-12);outline:none}.practice-svg-container{background:var(--surface);border:1px solid var(--surface-border);border-radius:8px;margin-top:10px;overflow-x:auto;padding:10px}.practice-svg-container svg{height:auto;max-width:100%}.practice-page{bottom:0;display:flex;left:var(--sidebar-collapsed-width);overflow:hidden;position:fixed;right:0;top:var(--header-height)}.sidebar-open .practice-page{left:var(--sidebar-width)}.practice-main{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden;padding-bottom:24px;padding-left:24px;padding-right:24px}.practice-page.with-sidebar .practice-main{flex:1 1 auto}.practice-page:not(.with-sidebar) .practice-main{padding-left:0;padding-right:0}.practice-sidebar{background:var(--surface);border:1px solid var(--surface-border);border-radius:8px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;margin-bottom:24px;margin-right:10px;margin-top:10px;max-height:100%;overflow:hidden;position:relative;width:700px}.sidebar-resizer{background:transparent;bottom:0;cursor:ew-resize;left:-8px;position:absolute;top:0;width:16px;z-index:20}.sidebar-resizer:active,.sidebar-resizer:hover{background:var(--gradient-subtle-shadow)}.close-sidebar-button{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:20px;position:absolute;right:10px;top:10px;z-index:10}.close-sidebar-button:hover{color:var(--text-darker)}.expand-sidebar-button{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:20px;position:absolute;right:35px;top:10px;z-index:10}.expand-sidebar-button:hover{color:var(--text-darker)}.sidebar-content{flex:1 1;overflow-y:auto;padding:0;position:relative}.chat-message table{border-collapse:collapse;font-size:.85em;margin:10px 0;max-width:100%;table-layout:auto;width:100%}.chat-message td,.chat-message th{word-wrap:break-word;border:1px solid var(--surface-border-dark);padding:4px 6px;text-align:left;vertical-align:top;white-space:normal}.chat-message th{background-color:var(--surface-strong);font-weight:700}.chat-message tr:nth-child(2n){background-color:var(--surface-light)}.chat-message{overflow-x:auto}.chat-message strong{font-weight:700}.chat-message em{font-style:italic}.chat-message ol,.chat-message ul{margin:10px 0;padding-left:20px}.chat-message li{margin:5px 0}.chat-message code{border-radius:3px;font-family:Courier New,monospace;font-size:.9em;padding:2px 4px}.chat-message code,.chat-message pre{background-color:var(--surface-strong)}.chat-message pre{border-radius:5px;margin:10px 0;overflow-x:auto;padding:10px}.chat-message pre code{background:none;padding:0}.chat-message blockquote{border-left:4px solid var(--surface-border-dark);color:var(--text-gray);margin:10px 0;padding-left:10px}.chat-message h1,.chat-message h2,.chat-message h3,.chat-message h4,.chat-message h5,.chat-message h6{font-weight:700;margin:10px 0 5px}.chat-message h1{font-size:1.4em}.chat-message h2{font-size:1.3em}.chat-message h3{font-size:1.2em}.chat-message h4{font-size:1.1em}.chat-message h5{font-size:1.05em}.chat-message h6{font-size:1em}.chat-message p{margin:8px 0}.remove-prefix-btn:hover{background:#e1e5e9;color:#495057}.remove-prefix-btn{align-items:center;background:none;border:none;border-radius:50%;color:#6c757d;cursor:pointer;display:flex;font-size:18px;height:20px;justify-content:center;line-height:1;margin-left:8px;padding:0;transition:background-color .2s;width:20px}.chat-input-container{align-items:stretch;background:var(--surface-overlay-strong);border:1px solid var(--black-opacity-04);border-radius:24px;box-shadow:0 6px 18px var(--black-opacity-06);box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;padding:0;position:relative;width:100%}.measure-prefix{align-items:center;background:var(--surface-strong);border-bottom:1px solid var(--surface-border);color:var(--text-gray);display:flex;flex-shrink:0;font-family:Courier New,monospace;font-size:13px;height:40px;justify-content:space-between;padding:0 20px}.measure-prefix .enter-symbol{color:var(--primary);font-weight:700;margin-right:8px}.measure-prefix .measure-text{flex:1 1;font-weight:600;margin-right:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.measure-prefix .remove-prefix-btn{align-items:center;background:none;border:none;border-radius:50%;color:var(--text-gray);cursor:pointer;display:flex;flex-shrink:0;justify-content:center;padding:4px;transition:background .2s}.measure-prefix .remove-prefix-btn:hover{background:var(--surface-border);color:var(--text-dark)}.input-row{align-items:center;background:transparent;box-sizing:border-box;display:flex;min-height:52px;padding:6px 6px 6px 20px;width:100%}.chat-input{background:transparent;border:none;color:var(--text-dark);flex:1 1;font-size:15px;height:100%;margin:0;max-height:120px;outline:none;padding:0;resize:none}.chat-input::placeholder{color:var(--text-muted)}.chat-send-button{align-items:center;background:var(--gradient-accent-vertical);border:none;border-radius:50%;box-shadow:0 2px 8px var(--accent-opacity-16);color:#fff;cursor:pointer;display:flex;flex-shrink:0;height:40px;justify-content:center;margin-left:8px;transition:all .2s;width:40px}.chat-send-button:hover:not(:disabled){box-shadow:0 4px 12px var(--accent-opacity-18);transform:scale(1.05)}.chat-send-button:disabled{background:var(--gray-medium);cursor:not-allowed;opacity:.8}.context-menu{backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(12px);background-color:hsla(0,0%,100%,.8);border:1px solid rgba(0,0,0,.1);border-radius:12px;min-width:140px;overflow:hidden}.context-menu-item{border-radius:12px;color:#333;cursor:pointer;font-size:14px;font-weight:600;padding:5px 10px;transition:background-color .15s ease}.context-menu-item:hover{background-color:#f8f9fa}.header-container{align-items:center;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:transparent;display:flex;justify-content:space-between;left:0;padding:18px 5vw 18px var(--sidebar-collapsed-width);position:fixed;top:0;transition:margin-left .32s cubic-bezier(.2,.9,.2,1),border-bottom .2s ease;width:100%;z-index:2200}.header-container.scrolled{border-bottom:1px solid var(--surface-border)}.header-inner{align-items:center;display:flex;justify-content:space-between;margin-left:10px;transition:width .32s cubic-bezier(.2,.9,.2,1);width:100%}.sidebar-open .header-container{margin-left:var(--sidebar-width)}.brand{flex:0 0 auto;order:2}.search-box-container{flex:1 1 auto;order:3}.auth-area{flex:0 0 auto;order:4}.header-title{color:var(--brand-title);cursor:pointer;font-family:Nunito,sans-serif;font-size:28px;font-weight:600;letter-spacing:.02em;margin:0;transition:letter-spacing .25s ease,color .25s ease}.header-title strong{color:var(--brand-title-strong);font-weight:700}.header-logo{background:var(--accent-opacity-05);border-radius:8px;box-shadow:none;display:inline-block;filter:brightness(0) saturate(0);height:auto;padding:6px;transform:translateY(1px);transition:transform .18s ease,background .18s ease;width:34px}.brand:hover .header-logo{background:var(--accent-opacity-08);transform:translateY(0) scale(1.04)}.header-title:hover{letter-spacing:.08em}.search-box-container{align-items:center;display:flex;flex:1 1;margin:0 auto;max-width:420px;min-width:0;position:relative}.search-box{background:var(--surface);border:1px solid var(--surface-border);border-radius:999px;color:var(--text-primary);font-size:15px;padding:12px 52px 12px 18px;transition:border .2s ease,box-shadow .2s ease;width:100%}.search-box::placeholder{color:var(--text-secondary-opacity-60)}.search-box:focus{border-color:rgba(var(--accent-rgb),.6);box-shadow:0 18px 45px rgba(var(--accent-rgb),.25);outline:none}.search-button{align-items:center;background:var(--accent);border:none;border-radius:50%;box-shadow:0 4px 6px -1px var(--accent-opacity-20);color:var(--surface);cursor:pointer;display:flex;font-size:16px;height:40px;justify-content:center;position:absolute;right:6px;top:50%;transform:translateY(-50%);transition:transform .2s ease;width:40px}.search-button:hover{transform:translateY(-50%) scale(1.05)}.tuner-button{align-items:center;background:var(--accent-opacity-10);border:none;border-radius:14px;box-shadow:0 4px 6px -1px var(--accent-opacity-20);color:var(--accent-strong);cursor:pointer;display:flex;font-size:18px;justify-content:center;padding:10px 16px;transition:transform .2s ease,background .2s ease}.tuner-button:hover{background:var(--accent-opacity-15);transform:translateY(-2px)}.brand{align-items:center;cursor:pointer;display:flex;gap:10px}.mobile-menu-sidebar{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:transparent;border-right:1px solid var(--surface-border);gap:12px;height:100vh;left:0;overflow:hidden;padding:1px;position:fixed;top:0;transition:width .32s cubic-bezier(.2,.9,.2,1);width:var(--sidebar-collapsed-width);z-index:2300}.mobile-menu-sidebar.open{width:var(--sidebar-width)}.mobile-menu-sidebar:not(.open) .menu-label{display:none}.mobile-menu-sidebar:not(.open) .menu-item{justify-content:center;margin-top:16px;padding:14px 16px}.mobile-menu-sidebar:not(.open) .mobile-user,.mobile-menu-sidebar:not(.open) .mobile-username{display:none}.mobile-menu-sidebar .hamburger-button{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:hsla(0,0%,100%,.1);border:none;border-radius:50%;color:var(--text-primary);cursor:pointer;display:flex;left:calc((var(--sidebar-collapsed-width) - 60px)/2);padding:8px;position:absolute;right:auto;top:14px;transition:all .18s ease;width:auto;z-index:2300}.mobile-menu-sidebar.open .hamburger-button{left:auto;right:12px}.mobile-menu-sidebar .hamburger-button svg{padding:0}.menu-item{border-radius:8px;color:var(--text-primary);cursor:pointer;font-size:16px;gap:12px;margin-top:16px;padding:14px 16px;text-align:left;transition:background .2s ease;width:100%}.menu-item:hover{background:var(--accent-opacity-05)}.mobile-menu-sidebar .hamburger-button svg,.mobile-menu-sidebar .menu-item svg{background:var(--accent-opacity-10);border-radius:50%;box-sizing:content-box;display:inline-block;height:20px;overflow:visible;padding:10px;transition:background .2s ease;vertical-align:middle;width:20px}.mobile-menu-sidebar .menu-item.selected svg{background:var(--accent-opacity-25)}.mobile-menu-sidebar .hamburger-button svg{background:none;border-radius:0;height:20px;padding:10px;width:20px}.sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;white-space:nowrap;width:1px}.hamburger-button{display:none}@media (max-width:768px){.header-container{flex-wrap:wrap;gap:12px;padding:16px 20px 16px var(--sidebar-collapsed-width)}.search-box-container{margin:0;max-width:none;order:3;width:100%}.tuner-button.desktop-only{display:none}.header-container .hamburger-button:hover{background:var(--accent-opacity-10)}.header-container .hamburger-button svg{height:20px;width:20px}.header-user{display:none}}.mobile-menu-sidebar{display:flex;flex-direction:column}.mobile-menu-sidebar .sidebar-content{display:flex;flex-direction:column;height:100%;padding-top:60px}.mobile-menu-sidebar .sidebar-content>.menu-item{order:1}.mobile-user{margin-top:auto;order:99}.search-button:hover{color:var(--text-dark-gray)}@media (max-width:500px){.search-box-container{max-width:200px;width:60%}.search-box{font-size:14px}.header-title{font-size:18px}}.auth-area{align-items:center;display:flex;gap:10px}.auth-area,.login-wrapper,.tuner-button{flex:0 0 auto}@media (min-width:769px){.header-container{flex-wrap:nowrap!important}.brand{order:1}.search-box-container{flex:1 1 auto;min-width:0;order:2}.tuner-button{order:3}.auth-area{order:4}}.header-user{align-items:center;display:flex;gap:8px}.header-avatar{border:2px solid rgba(0,0,0,.1);border-radius:50%;height:32px;width:32px}.logout-button{background:transparent;border:1px solid var(--surface-border);border-radius:4px;color:var(--text-primary);cursor:pointer;font-size:12px;padding:4px 8px;transition:all .2s}.logout-button:hover{background:hsla(0,0%,100%,.1);border-color:hsla(0,0%,100%,.5)}.auth-modal-overlay{align-items:center;background:rgba(0,0,0,.5);display:flex;inset:0;justify-content:center;position:fixed;z-index:2500}.auth-modal-box{background:var(--surface);border:1px solid var(--surface-border);border-radius:12px;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);max-width:calc(100% - 40px);overflow:hidden;width:360px}.auth-modal-header{border-bottom:1px solid rgba(148,163,184,.04);padding:18px 20px}.auth-modal-header h3{color:var(--text-primary);font-size:18px;margin:0}.auth-modal-content{display:flex;flex-direction:column;gap:12px;padding:18px 20px 24px}.auth-option-google{display:flex;justify-content:center}.auth-option{background:var(--surface-light);border:1px solid var(--surface-border);border-radius:10px;color:var(--text-primary);cursor:pointer;font-size:14px;padding:10px 12px;width:100%}.auth-option:hover{background:var(--accent-opacity-05)}.modal-avatar{border:2px solid rgba(0,0,0,.1);border-radius:50%;height:56px;width:56px}.user-info{align-items:center;display:flex;gap:12px}.user-name{color:var(--text-primary);font-weight:600}.user-actions{display:flex;gap:8px;margin-top:12px}.modal-logout{width:100%}.login-button{background:var(--accent);border:none;border-radius:10px;box-shadow:0 4px 6px -1px var(--accent-opacity-20);color:var(--surface);cursor:pointer;font-weight:600;padding:8px 12px}.login-button:hover{transform:translateY(-2px)}@media (max-width:768px){.header-user{display:none!important}.mobile-menu-sidebar,.mobile-menu-sidebar .sidebar-content{display:flex!important;flex-direction:column!important}.mobile-menu-sidebar .sidebar-content{height:100%!important}.mobile-menu-sidebar .sidebar-content>.menu-item{order:1}.mobile-user{margin-top:auto;order:99}}.mobile-user{align-items:center;border-bottom:1px solid var(--surface-border);display:flex;flex-direction:column;margin-bottom:16px;padding:16px}.mobile-avatar{border:2px solid rgba(0,0,0,.1);border-radius:50%;height:48px;margin-bottom:8px;width:48px}.mobile-username{color:var(--text-primary);font-size:14px;font-weight:500;text-align:center}.chat-sidebar-header{border-bottom:1px solid var(--surface-border-neutral);padding:16px}.new-chat-button{background-color:var(--accent-blue);border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:500;padding:8px 16px;transition:background-color .2s;width:100%}.new-chat-button:hover{background-color:var(--accent-blue-strong)}.sidebar-divider{background-color:var(--surface-border-neutral);height:1px;margin:8px 16px;order:2}.chat-list-section{display:flex;flex:1 1;flex-direction:column;min-height:0;order:2;overflow:hidden}.chat-list-header{align-items:center;background-color:var(--surface);border-bottom:1px solid var(--surface-border-neutral);cursor:pointer;display:flex;justify-content:space-between;padding:12px 16px;transition:background-color .2s}.chat-list-header:hover{background-color:#f8f9fa}.chat-list-title{color:#333;font-size:14px;font-weight:600}.expand-icon{color:#666;font-size:12px;transition:transform .2s}.expand-icon.expanded{transform:rotate(180deg)}.chat-list{flex:1 1;min-height:0;overflow-y:auto;padding:8px 0}.chat-item{align-items:center;border-bottom:1px solid #f1f3f4;display:flex;padding:12px 16px;position:relative;transition:background-color .2s}.chat-item:hover{background-color:var(--surface-border-neutral)}.chat-item.active{background-color:#e3f2fd;border-left:3px solid var(--accent-blue)}.chat-item-content{cursor:pointer;flex:1 1}.chat-menu-container{position:relative}.chat-menu-button{background:none;border:none;border-radius:4px;color:#666;cursor:pointer;font-size:14px;padding:4px;transition:background-color .2s}.chat-menu-button:hover{background-color:#f1f3f4}.chat-menu{background:#fff;border:1px solid var(--surface-border-neutral);border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.1);min-width:120px;position:absolute;right:0;top:100%;z-index:1000}.chat-menu-item{align-items:center;background:none;border:none;border-radius:0;color:#333;cursor:pointer;display:flex;font-size:14px;padding:8px 12px;text-align:left;transition:background-color .3s ease,border-radius .3s ease;width:100%}.chat-menu-item:hover{background-color:rgba(0,0,0,.1)}.chat-menu-item.delete{color:#dc3545}.chat-menu-item.delete:hover{background-color:#f8d7da}.chat-title{color:#333;font-weight:500;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-date{color:#666;font-size:12px}.loading,.no-chats{color:#666;font-style:italic;padding:16px;text-align:center}.menu-item{align-items:center;background:none;border:none;border-radius:0;box-shadow:none;display:flex;padding:10px;transition:border-radius .3s ease}.menu-item:hover{background-color:rgba(0,0,0,.1)}.menu-item .menu-label{margin-left:10px}.menu-item svg{background:none;border:none;box-shadow:none;height:24px;width:24px}:root{--bg-1:#fff;--bg-2:#f6fbfa;--surface:#fff;--surface-strong:#f1f5f9;--surface-light:#f8fafc;--surface-neutral:#f8f9fa;--surface-overlay:hsla(0,0%,100%,.95);--surface-overlay-strong:hsla(0,0%,100%,.85);--surface-border:#e2e8f0;--surface-border-light:#eef2f7;--surface-border-neutral:#e9ecef;--surface-border-subtle:#f1f3f4;--surface-border-dark:#ddd;--text-primary:#1e293b;--text-secondary:#64748b;--text-muted:#94a3b8;--text-dark:#0f172a;--text-darker:#334155;--text-gray:#666;--text-dark-gray:#333;--accent:#0f766e;--accent-strong:#0b5b57;--accent-soft:#e6f7f5;--accent-blue:#0f766e;--accent-blue-strong:#0b5b57;--accent-rgb:15,118,110;--gray-light:#e5e7eb;--gray-medium:#cbd5e1;--gray-dark:#64748b;--tab-gold-light:#d6c499;--tab-gold-dark:#947351;--header-gold-light:#d9b47a;--header-gold-dark:#b98b58;--success:#059669;--success-dark:#374151;--shadow-xl:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);--shadow-lg:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05);--shadow-md:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);--accent-opacity-05:rgba(var(--accent-rgb),0.05);--accent-opacity-08:rgba(var(--accent-rgb),0.08);--accent-opacity-10:rgba(var(--accent-rgb),0.1);--accent-opacity-12:rgba(var(--accent-rgb),0.12);--accent-opacity-15:rgba(var(--accent-rgb),0.15);--accent-opacity-16:rgba(var(--accent-rgb),0.16);--accent-opacity-18:rgba(var(--accent-rgb),0.18);--accent-opacity-20:rgba(var(--accent-rgb),0.2);--accent-opacity-25:rgba(var(--accent-rgb),0.25);--accent-opacity-30:rgba(var(--accent-rgb),0.3);--accent-shadow:0 10px 30px rgba(var(--accent-rgb),0.16);--brand-title:#12343b;--brand-title-strong:#0b2b30;--brand-title-soft:rgba(18,52,59,.08);--card-accent:#475569;--card-accent-rgb:71,85,105;--card-accent-strong:#334155;--card-accent-soft:rgba(var(--card-accent-rgb),0.06);--card-accent-opacity-20:rgba(var(--card-accent-rgb),0.2);--text-secondary-opacity-60:rgba(148,163,184,.6);--text-secondary-opacity-04:rgba(148,163,184,.04);--black-opacity-01:rgba(0,0,0,.01);--black-opacity-03:rgba(0,0,0,.03);--black-opacity-04:rgba(0,0,0,.04);--black-opacity-05:rgba(0,0,0,.05);--black-opacity-06:rgba(0,0,0,.06);--black-opacity-10:rgba(0,0,0,.1);--black-opacity-50:rgba(0,0,0,.5);--white-opacity-10:hsla(0,0%,100%,.1);--white-opacity-50:hsla(0,0%,100%,.5);--radius-lg:12px;--radius-md:8px;--radius-sm:6px;--sidebar-width:320px;--sidebar-collapsed-width:70px;--header-height:72px;--gradient-bg:linear-gradient(180deg,var(--bg-1),var(--bg-2));--gradient-accent-horizontal:linear-gradient(90deg,var(--accent),var(--accent-strong));--gradient-accent-vertical:linear-gradient(180deg,var(--accent),var(--accent-strong));--gradient-accent-diagonal:linear-gradient(135deg,var(--accent),var(--accent-strong));--gradient-gold:linear-gradient(230deg,var(--tab-gold-light),var(--tab-gold-dark));--gradient-subtle-shadow:linear-gradient(90deg,var(--black-opacity-03),var(--black-opacity-01));--gradient-accent-soft:linear-gradient(90deg,var(--accent-soft),rgba(var(--accent-rgb),0.25))}*{box-sizing:border-box}body,html{-webkit-font-smoothing:antialiased;background:var(--gradient-bg);color:var(--text-primary);font-family:Inter,Helvetica Neue,Arial,sans-serif;line-height:1.6;margin:0;min-height:100%;padding:0}a{color:inherit;text-decoration:none}.app-shell{background:var(--gradient-bg);display:flex;flex-direction:column;min-height:100vh}.app-content{flex:1 1;margin:0 auto;margin-left:var(--sidebar-collapsed-width);padding:96px 5vw 140px;transition:margin-left .32s cubic-bezier(.2,.9,.2,1),width .32s cubic-bezier(.2,.9,.2,1);width:100%;width:calc(100% - var(--sidebar-collapsed-width))}.sidebar-open .app-content{margin-left:var(--sidebar-width);width:calc(100% - var(--sidebar-width))}@media (max-width:1024px){.app-content{padding:96px 6vw 140px}}@media (max-width:768px){.app-content{padding:92px 20px 170px}}.home-page{color:var(--text-primary);display:flex;flex-direction:column;gap:48px}.hero-card{background:var(--surface);border:1px solid var(--surface-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);overflow:hidden;padding:clamp(32px,6vw,64px);position:relative}.hero-eyebrow{align-items:center;background:var(--accent-soft);border:1px solid var(--accent-opacity-20);border-radius:999px;color:var(--accent-strong);display:inline-flex;font-size:12px;gap:8px;letter-spacing:.16em;margin-bottom:18px;padding:8px 16px;text-transform:uppercase}.hero-title{font-size:clamp(32px,5vw,56px);letter-spacing:-.02em;line-height:1.1;margin:0 0 18px}.hero-subtitle{color:var(--text-secondary);font-size:clamp(16px,2vw,18px);margin:0 0 28px;max-width:720px}.hero-highlights{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:28px}.hero-highlight{background:var(--surface-strong);border:1px solid var(--surface-border);border-radius:999px;color:var(--text-secondary);font-size:14px;padding:10px 18px}.hero-steps{grid-gap:16px;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));margin-bottom:32px}.hero-step{align-items:flex-start;background:var(--surface-strong);border:1px solid var(--surface-border);border-radius:var(--radius-md);box-shadow:var(--shadow-md);display:flex;gap:16px;padding:18px}.hero-step-number{align-items:center;background:var(--accent-soft);border-radius:50%;color:var(--accent);display:flex;font-weight:600;height:34px;justify-content:center;width:34px}.hero-step-text{color:var(--text-secondary);font-size:15px;margin:0}.hero-stats{grid-gap:18px;display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.hero-features-row{grid-gap:20px;display:grid;gap:20px;grid-template-columns:1fr 1fr;margin-bottom:28px}.hero-feature-card{background:var(--surface-strong);border:1px solid var(--surface-border);border-radius:var(--radius-md);box-shadow:var(--shadow-md);padding:20px}.hero-feature-title{color:var(--text-primary);font-size:18px;margin:0 0 10px}.hero-feature-list{grid-gap:8px;color:var(--text-secondary);display:grid;font-size:14px;gap:8px;margin:0;padding-left:18px}.hero-cta-row{display:flex;gap:12px;margin-top:6px}.primary-cta,.secondary-cta{border:none;border-radius:10px;cursor:pointer;font-weight:600;padding:12px 18px}.primary-cta{background:var(--gradient-accent-horizontal);box-shadow:var(--shadow-md);color:#fff}.primary-cta:hover{transform:translateY(-2px)}.secondary-cta{background:transparent;border:1px solid var(--surface-border);color:var(--text-primary)}@media (max-width:900px){.hero-features-row{grid-template-columns:1fr}.hero-cta-row{flex-direction:column;gap:10px}}.hero-stat{background:var(--surface);border:1px solid var(--surface-border);border-radius:var(--radius-md);padding:22px;text-align:left}.hero-stat-value{color:var(--text-primary);display:block;font-size:26px;font-weight:600}.hero-stat-label{color:var(--text-secondary);display:block;font-size:13px;letter-spacing:.02em;margin-top:6px}.results-section{background:var(--surface);border:1px solid var(--surface-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:clamp(28px,4vw,44px)}.results-header{align-items:center;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;margin-bottom:32px}.results-title{color:var(--brand-title);font-size:clamp(24px,3vw,30px);letter-spacing:-.01em;margin:0}.results-subtitle{color:var(--text-secondary);font-size:15px;margin:6px 0 0}.results-count{background:var(--accent-soft);border:1px solid var(--accent-opacity-20);border-radius:999px;color:var(--accent-strong);font-size:14px;font-weight:500;padding:8px 16px}.pieces-container{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.piece-box{background:var(--surface-strong);border:1px solid var(--surface-border);border-radius:var(--radius-md);box-shadow:var(--shadow-md);cursor:pointer;outline:none;padding:24px;position:relative;transition:transform .25s ease,box-shadow .25s ease,border .25s ease}.favorite-button{align-items:center;background:transparent;border:none;color:var(--text-secondary);cursor:pointer;display:inline-flex;font-size:18px;justify-content:center;padding:6px;position:absolute;right:12px;top:12px}.favorite-button.favorited{color:var(--accent);filter:drop-shadow(0 6px 18px rgba(var(--accent-rgb),.18))}.secondary{background:transparent;border:1px solid var(--surface-border);border-radius:10px;color:var(--text-primary);cursor:pointer;padding:8px 12px}.piece-box:focus,.piece-box:hover{border-color:var(--card-accent-opacity-20);box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);transform:translateY(-6px)}.piece-box__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}.piece-box__badge{background:var(--card-accent-soft);border-radius:999px;color:var(--card-accent-strong);font-size:12px;font-weight:600;letter-spacing:.14em;padding:8px 14px;text-transform:uppercase}.piece-box__badge--difficulty{background:var(--success-soft);color:var(--success-strong)}.piece-box__title{font-size:18px;line-height:1.3;margin:12px 0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.piece-box__meta{color:var(--text-secondary);font-size:13px;margin:0 0 16px}.piece-box__cta{color:var(--accent);font-size:13px;font-weight:600;letter-spacing:.06em}.empty-state{background:var(--surface-strong);border:1px dashed var(--surface-border);border-radius:var(--radius-md);color:var(--text-secondary);padding:32px}.empty-title{color:var(--text-primary);font-size:22px;margin:0 0 12px}.empty-description{margin:0 0 16px}.empty-suggestions{grid-gap:8px;color:var(--text-secondary);display:grid;font-size:14px;gap:8px;margin:0;padding-left:18px}.img-fixed-width{display:block;height:auto;margin:0 auto;width:80%}.container{align-items:flex-start;display:flex;gap:48px;margin-top:0}.results-section--focused{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:hsla(0,0%,100%,.95)}.image-list{height:calc(100vh - 220px);margin-left:min(460px,42vw);overflow-y:auto;padding-right:24px;width:calc(100% - min(460px, 42vw))}@media (max-width:768px){.hero-steps{grid-template-columns:1fr}.results-header{align-items:flex-start;flex-direction:column}}.filters-section{background:var(--surface);border:1px solid var(--surface-border);border-radius:var(--radius-md);margin-bottom:1.5rem;padding:1rem}.filters{align-items:center;display:flex;flex-wrap:wrap;gap:.75rem}.filter-select{-webkit-appearance:none;appearance:none;background:var(--surface);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:.875rem;border:1px solid var(--surface-border);border-radius:var(--radius-sm);color:var(--text-primary);cursor:pointer;font-size:.875rem;font-weight:500;min-width:120px;padding:.5rem 2rem .5rem .75rem;transition:all .2s ease}.filter-select:hover{border-color:var(--accent-soft)}.filter-select:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft);outline:none}.filter-select option{background:var(--surface);color:var(--text-primary);padding:.25rem}.clear-filters-btn{background:transparent;border:1px solid var(--accent);border-radius:var(--radius-sm);color:var(--accent);cursor:pointer;font-size:.875rem;font-weight:500;padding:.5rem .75rem;transition:all .2s ease}.clear-filters-btn:hover{background:var(--accent);color:#fff}.filter-select:not([value=""]){background-color:var(--accent-soft);border-color:var(--accent);font-weight:600}@media (max-width:768px){.filters{gap:.5rem}.filter-select{flex:1 1;min-width:100px}}
/*# sourceMappingURL=main.d9a6f7c7.css.map*/