:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17212b;background:#f4f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}[hidden]{display:none!important}:focus-visible{outline:3px solid #d29f3e;outline-offset:3px}.app-shell{min-height:100dvh}.topbar{height:64px;background:#102a43;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(18px,env(safe-area-inset-right));position:sticky;top:0;z-index:10}.brand{font-weight:800;font-size:1.28rem;letter-spacing:-.025em}.brand-symbol{color:#f1cf78;font-size:1.7rem;margin-right:.55rem}.brand-plus{color:#f1cf78}.network-status{font-size:.78rem;background:#7a351e;padding:.3rem .6rem;border-radius:999px}.layout{display:flex;min-height:calc(100dvh - 64px)}.main-nav{position:fixed;bottom:0;left:0;right:0;height:calc(66px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:white;border-top:1px solid #dbe4ec;display:flex;justify-content:space-around;z-index:10}.main-nav a{flex:1;display:grid;place-items:center;color:#66788a;font-size:1.65rem;min-width:0}.main-nav a[aria-current]{color:#23658c;border-top:3px solid #d29f3e}.nav-label{display:none}.view{width:100%;max-width:1100px;margin:0 auto;padding:26px 18px calc(108px + env(safe-area-inset-bottom))}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px}.page-heading h1{font-size:clamp(1.6rem,5vw,2.35rem);line-height:1.15;margin:0;overflow-wrap:anywhere}.back{display:inline-flex;align-items:center;gap:6px;color:#23658c;font-size:1rem;min-height:44px;margin:-8px 0 12px}.back:first-letter{font-size:1.5rem}.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #23658c;background:#23658c;color:white;border-radius:10px;min-height:44px;padding:.6rem 1rem;font-weight:650}.button:hover{background:#174d70;color:white}.button.secondary{background:white;color:#23658c}.button.danger-fill{background:#9e3030;border-color:#9e3030}.icon-button,.move-button{width:44px;height:44px;flex:none;display:inline-grid;place-items:center;border:1px solid #dbe4ec;background:white;color:#23658c;border-radius:10px;font-size:1.3rem}.icon-button:hover,.move-button:hover{background:#eaf2f7}.icon-button.danger{color:#a22b2b}.icon-button.small{width:36px;height:36px}.state{text-align:center;padding:2rem;color:#66788a}.empty-state{text-align:center;border:1px dashed #cad8e2;background:#fff;border-radius:18px;padding:3rem 1.3rem;margin:1.5rem auto;max-width:600px}.empty-state h2{margin:.5rem 0;font-size:1.25rem}.empty-state p{color:#66788a;margin:.5rem 0 1.4rem}.empty-icon{font-size:2.8rem;color:#23658c}.empty-action{display:block;width:100%;font:inherit;color:#17212b}.empty-action strong{display:block;margin-top:1rem}.card-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr))}.card{background:white;border:1px solid #dbe4ec;border-radius:16px;overflow:hidden;box-shadow:0 7px 24px #102a430b}.cover{height:190px;width:100%;object-fit:cover;background:#e8eff4}.cover-placeholder{display:grid;place-items:center;color:#8295a5;font-size:4rem}.card-body{padding:18px}.card h2{font-size:1.17rem;margin:0 0 6px}.card p{margin:5px 0;color:#4e6172}.card .meta,.meta{color:#66788a;font-size:.91rem}.card .button{margin-top:14px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.actions .button{margin:0}.install-status{width:100%;font-size:.87rem;color:#4e6172}.search-row,.filter-row{display:flex;gap:8px;margin-bottom:12px}.search-row input,.filter-row input,.filter-row select, .settings-card select,.dialog input:not([type=checkbox]):not([type=color]),.dialog select{min-width:0;flex:1;border:1px solid #c6d4de;background:#fff;border-radius:9px;padding:.68rem .8rem;min-height:44px;box-shadow:none}.filter-row{flex-wrap:wrap}.filter-row select{flex:0 1 190px}.subtle{color:#66788a;font-size:.9rem}.list{background:#fff;border:1px solid #dbe4ec;border-radius:14px;overflow:hidden}.list-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;padding:9px 14px;border-bottom:1px solid #e5ebef;background:white}.list-row:last-child{border-bottom:0}.list-row:hover{background:#f5f9fc}.list-row[hidden]{display:none}.row-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.row-main strong{overflow-wrap:anywhere}.group{margin:22px 0}.group h2{font-size:1.13rem}.lyrics{white-space:pre-wrap;line-height:1.57;background:white;border:1px solid #e5ebef;border-radius:14px;padding:22px 18px;min-height:40vh;padding-bottom:calc(50px + env(safe-area-inset-bottom));overflow-wrap:anywhere}.floating-present{position:fixed;right:20px;bottom:calc(82px + env(safe-area-inset-bottom));box-shadow:0 8px 20px #102a4333;z-index:5}.settings-card{background:white;border:1px solid #dbe4ec;border-radius:14px;padding:18px;margin-bottom:16px}.settings-card h2{font-size:1.2rem;margin:0 0 15px}.settings-card label,.dialog label{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-weight:550}.settings-card .checkbox,.dialog .checkbox{display:flex;flex-direction:row;align-items:center;gap:9px}.checkbox input{width:20px;height:20px}.settings-card select{max-width:240px}.color-row{display:flex;gap:30px;flex-wrap:wrap}.color-row input{height:42px;width:64px;border:0;background:transparent}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #e5ebef}.dialog-backdrop{position:fixed;inset:0;background:#081b2ccc;display:grid;place-items:center;z-index:30;padding:15px}.dialog{background:#fff;color:#17212b;border-radius:17px;padding:22px;width:min(100%,460px);max-height:calc(100dvh - 30px);overflow:auto;box-shadow:0 18px 60px #0005}.dialog h2{font-size:1.35rem;margin:0 0 15px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.dialog-list{max-height:50vh;overflow:auto;margin:12px 0}.dialog-list>button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e5ebef;background:white;padding:13px;min-height:46px;color:#17212b}.dialog-list>button:hover{background:#f5f9fc}.keypad-value{height:54px;display:flex;align-items:center;justify-content:flex-end;border:1px solid #dbe4ec;background:#f4f7fa;padding:10px;font-size:1.5rem;border-radius:8px}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.keypad button{min-height:55px;border:1px solid #dbe4ec;border-radius:8px;background:white}.toast{position:fixed;left:50%;bottom:calc(82px + env(safe-area-inset-bottom));transform:translateX(-50%);background:#102a43;color:white;border-radius:9px;padding:10px 16px;z-index:40;max-width:90%;box-shadow:0 6px 20px #0004}.update-notice{position:fixed;top:68px;right:12px;z-index:20;background:#fff;border:1px solid #dbe4ec;border-radius:9px;padding:12px;box-shadow:0 5px 20px #0002}.update-notice button{display:block;margin-top:8px;color:#23658c;background:none;border:0;text-decoration:underline}.presentation{position:fixed;inset:0;background:#000;color:#fff;z-index:50;display:flex;flex-direction:column}.slide{flex:1;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:8px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.25}.slide.end-slide{font-weight:700}.presentation-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;padding:8px;background:#102a43;color:white}.presentation-controls button{background:#fff;color:#102a43;border:0;border-radius:7px;min-height:44px;padding:8px 12px;font-weight:700}.presentation-controls input{width:48px;height:42px}.slide-counter{position:absolute;right:10px;top:10px;font-size:.8rem;background:#102a43ad;border-radius:5px;padding:3px 6px}@media(min-width:760px){.main-nav{position:sticky;top:64px;height:calc(100dvh - 64px);width:205px;flex:none;display:flex;flex-direction:column;justify-content:flex-start;padding:16px 10px;border-top:0;border-right:1px solid #dbe4ec}.main-nav a{flex:none;display:flex;align-items:center;gap:12px;min-height:52px;padding:0 12px;font-size:1.25rem;border-radius:10px}.main-nav a[aria-current]{border-top:0;background:#eaf2f7}.nav-label{display:inline;font-size:1rem}.view{padding:34px 34px 90px}.floating-present{bottom:28px;right:28px}.toast{bottom:24px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
