/* Local materials. No network images, blur filters, or continuous full-screen animation. */
body{--scene:none;--scene-size:cover;--scene-position:center;--scene-shade:#0000}
body[data-theme=blackgold]{--scene:url('stone.svg');--scene-shade:#070909aa;--scene-size:900px 600px;--hero1:#282721;--hero2:#181916}
body[data-theme=wood]{--scene:url('wood-room.svg');--scene-size:cover;--hero1:#32271f;--hero2:#1e3022}
body[data-theme=ink]{--scene:url('ink-v10.svg');--scene-size:540px 540px;--scene-shade:#080c08a3}
body[data-theme=afterglow]{--scene:url('afterglow.svg');--accent:#e9afce;--accent2:#ecbb88;--bg:#171622;--panel:#282334;--line:#ddadd43b;--hero1:#49355b;--hero2:#513b42;--hero3:#151522}
body[data-theme=bernstein]{--scene:url('amber.svg');--hero1:#382c1d;--hero2:#35281e;--hero3:#17140f;--panel:#282217;--line:#f0cc7930}
body[data-theme=fire]{--scene:url('fire.svg');--accent:#ffbd69;--accent2:#ff735b;--hero1:#753025;--hero2:#492338;--hero3:#1d1319;--bg:#1d1319;--panel:#321e23;--line:#ffac624a}
body[data-theme] .vault-screen,body[data-theme] .edit-screen,body[data-theme] .stage{background-color:var(--hero3);background-image:linear-gradient(var(--scene-shade),var(--scene-shade)),var(--scene);background-size:auto,var(--scene-size);background-position:center,var(--scene-position)}
body[data-theme] .stage{--scene-shade:#080a0dd9}
body[data-theme=wood] .stage{--wood-shade:#000c}
body[data-theme=ink] .album-toolbar,body[data-theme=ink] .deck-panel{background-image:none}
.screen,.stage{isolation:isolate}.page-flames{position:fixed;inset:auto 0 0;display:flex;justify-content:space-between;pointer-events:none;z-index:-1;height:240px;opacity:.75}.page-flames i{width:140px}.page-flames i:last-child{transform:scaleX(-1)}
.page-flames svg,.flame-frame svg{width:100%;height:100%;overflow:visible}.flame-frame{position:absolute;inset:65px -7px auto;height:120px;pointer-events:none;display:flex;justify-content:space-between;z-index:4}.flame-frame i{width:52px;align-self:flex-end;transform-origin:bottom}.flame-frame i:last-child{transform:scaleX(-1)}
.vault-tile:hover .flame-frame i:first-child,.vault-tile:focus-within .flame-frame i:first-child{animation:fire-breathe 1.1s ease-in-out infinite alternate}.vault-tile:hover .flame-frame i:last-child{animation:fire-breathe-right 1.3s ease-in-out infinite alternate}
body[data-decorations=on] .vault-tile:has(.flame-frame){border-color:#f4b76d;box-shadow:inset 0 0 16px #ed76352b,0 4px 24px #0005}.vault-screen:has(.vault-tile:hover) .page-flames i:first-child{animation:fire-breathe 2s ease-in-out infinite alternate}.vault-screen:has(.vault-tile:hover) .page-flames i:last-child{animation:fire-breathe-right 2.3s ease-in-out infinite alternate}
@keyframes fire-breathe{to{transform:scale(.95,1.09) rotate(-3deg)}}@keyframes fire-breathe-right{to{transform:scale(-.96,1.12) rotate(-2deg)}}
body[data-decorations=off] .flame-frame,body[data-decorations=off] .page-flames,body[data-decorations=off] .vault-stars{display:none}
.vault-stars{color:#ffd777;font-size:26px;letter-spacing:4px;text-shadow:2px 2px #653c15,-1px -1px #fff1a3;margin:0 0 8px}
.vault-open-hint{top:auto;bottom:150px;left:20px;letter-spacing:.08em;background:#101411c9;border-radius:8px;padding:6px 9px}.vault-caption{padding-top:42px}.settings-gear{font-size:22px!important;min-width:44px}
.theme-afterglow i{background:url('afterglow.svg') center 60%/cover}.theme-blackgold i{background:url('stone.svg') center/220px}.theme-wood i{background:url('wood-room.svg') center/cover}.theme-ink i{background:url('ink-v10.svg') center/160px;border-right:7px solid #c6ff3f}.theme-fire i{background:linear-gradient(125deg,#301a24,#eb6244,#ffce72)}.theme-bernstein i{background:url('amber.svg') center/cover}
.edit-screen{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.edit-layout.album-layout{display:flex;flex-direction:column;gap:14px;padding:16px clamp(12px,3vw,56px) 24px;flex:1;min-height:0;overflow:hidden}
.album-layout .deck-panel{position:relative;flex:0 0 auto;width:100%;max-height:none;border:1px solid var(--line);border-radius:20px;background:color-mix(in srgb,var(--panel) 91%,transparent);overflow:visible;padding-bottom:20px}
.deck-panel>.panel-head{border:0;border-radius:20px;background:transparent;padding:10px 18px;gap:12px;min-height:55px;display:flex;flex-wrap:wrap}.deck-panel>.panel-head>[data-search-box]{margin-left:auto;flex:0 1 290px}
.deck-panel .sort-list{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;padding:5px 16px 10px;max-height:100px;transition:max-height .2s,padding .2s;scrollbar-width:thin}.deck-panel .sort-row{flex:0 0 245px;min-height:70px;display:grid;grid-template-columns:22px minmax(0,1fr) 32px 30px;border-radius:14px;background:#0c100d66}.deck-panel .sort-row.active{background:color-mix(in srgb,var(--accent) 13%,var(--panel));box-shadow:inset 0 0 0 1px var(--accent)}
.deck-panel.collapsed .sort-list{max-height:0;padding-top:0;padding-bottom:0;visibility:hidden}.deck-collapse{position:absolute;bottom:0;left:50%;transform:translateX(-50%);height:23px;width:78px;border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;background:var(--panel);color:var(--accent);font-size:20px;line-height:16px}.deck-collapse:hover{background:var(--hero1)}
.album-layout .cards-panel{flex:1;min-height:0;overflow:auto;background:transparent;border:0;border-radius:0}.deck-editor>.panel-head{background:transparent;padding:6px 8px 14px;border:0}.deck-title-block .tiny-help{display:none}.deck-title-block h2{font-size:23px}
.album-toolbar{background:transparent;border:0;padding:0 0 18px}.add-card-grid{gap:12px;max-width:1150px}.add-card-grid>.add-card{flex:0 0 115px;min-height:86px;border-radius:17px;background:color-mix(in srgb,var(--panel) 95%,transparent)}.add-card-grid>.v9-quick{flex:1;min-width:260px;max-width:none;min-height:86px;order:0}.quick-send{background:#f1c5a4!important;color:#382620!important;border-color:#ffe3ca!important;box-shadow:inset 0 1px #fff9}.quick-send:hover{background:#ffe0c5!important}.quick-send:disabled{opacity:.4}.quick-text-button{flex-basis:80px!important}
.album-section{border:1px solid var(--line);border-radius:24px;background:color-mix(in srgb,var(--panel) 82%,transparent);overflow:hidden;min-height:240px}.album-sort{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:18px 20px;border-bottom:1px solid var(--line);background:#080b0b35}.album-sort>div:first-child{display:flex;align-items:baseline;gap:10px;flex:0 0 auto;margin:0}.album-sort .eyebrow{font-size:22px;letter-spacing:-.03em;font-weight:900;color:var(--accent)}.album-count{font-size:11px;white-space:nowrap;color:#cad0c5}.album-sort>[data-search-box]{flex:1 1 210px;max-width:350px;margin:0 auto 0 5px}.album-sort>label{font-size:11px;display:flex;gap:6px;align-items:center}.album-sort select{max-width:155px;font-size:11px;padding:9px}.album-sort .album-matrix{flex:0 0 auto;min-height:40px;min-width:0;max-width:none;padding:8px 13px;border-radius:12px;display:block}.album-sort .album-matrix b{font-size:12px}
.album-sort .search-box label,.deck-panel .search-box label{font-size:0}.album-sort .search-box input,.deck-panel .search-box input{font-size:12px;padding:10px 30px 10px 12px}.search-box .search-result:empty{display:none}.album-sort .search-box,.deck-panel .search-box{padding:0;background:transparent;border:0}.card-album{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:26px 15px;padding:22px;align-items:start}.album-card.sort-row{aspect-ratio:2/3;max-height:none;width:100%;border-radius:17px;min-width:0}.album-card .card-preview img{object-fit:contain}.card-quest{top:45px!important;right:8px!important;width:34px!important;height:42px!important;font-size:33px!important;z-index:7}.album-card[hidden],.deck-row[hidden],.vault-tile[hidden]{display:none!important}
.snapshot-badge{top:auto!important;bottom:12px;right:12px;background:#ffe1a1!important;color:#251c16!important;border:2px solid #fff0c9!important;box-shadow:0 3px 12px #000a;font-weight:800;font-size:13px;padding:10px 14px;min-height:42px}.snapshot-badge:disabled{background:#ddd!important;color:#444!important}.current-cell:has(.snapshot-badge)>.matrix-number{top:9px!important;bottom:auto!important;opacity:1;font-size:13px;min-width:46px;height:37px}.current-cell:has(.snapshot-badge)>.matrix-number:before{font-size:9px}
.cinema-mode .matrix-grid{display:block!important;transform:none!important;height:100%!important;width:100%!important}.cinema-mode .matrix-cell:not(.current-cell){display:none!important}.cinema-mode .current-cell{width:100%;height:100%;max-width:none}.cinema-mode .video-card{padding-top:0}.cinema-toggle[aria-pressed=true]{background:var(--accent);color:#171919}.cinema-mode .matrix-window{max-width:1600px}.video-tools{flex-shrink:0}.video-tools .btn{min-height:32px}
@media(min-width:1500px){.card-album{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}}
@media(max-width:820px){.edit-layout.album-layout{padding:10px;gap:10px}.deck-panel>.panel-head{gap:7px}.deck-panel .sort-row{flex-basis:210px}.deck-panel>.panel-head>[data-search-box]{flex:1 1 190px}.deck-title-block{flex-basis:auto}.add-card-grid{flex-wrap:wrap}.add-card-grid>.add-card{flex:1 1 100px;min-height:70px}.add-card-grid>.v9-quick{flex:1 0 100%;min-width:0;order:3;min-height:65px}.album-sort{padding:12px}.album-sort>[data-search-box]{max-width:none;flex:1 1 160px}.album-sort .eyebrow{font-size:20px}.album-sort>label{font-size:0}.album-sort select{max-width:135px}.card-album{grid-template-columns:repeat(auto-fill,minmax(125px,1fr));padding:12px;gap:20px 10px}.page-flames{height:150px}}
.deck-panel .sort-list{flex-direction:row;flex:0 0 auto;height:90px}.deck-panel>.panel-head .vault-scale{width:auto}.deck-panel>.panel-head>div:first-child{flex:0 1 auto;min-width:160px}.deck-panel>.panel-head{position:relative;backdrop-filter:none}.album-toolbar .add-card-grid{flex:1 1 auto;width:100%;max-width:none}.deck-editor>.panel-head{position:relative;backdrop-filter:none}.deck-panel.collapsed .sort-list{height:0}.current-cell:has(.snapshot-badge)>.matrix-number:before{content:none}
@media(prefers-reduced-motion:reduce){.flame-frame i,.page-flames i{animation:none!important}.deck-panel .sort-list{transition:none}}




