/* Scoped Matrix layout overrides; editor album styles remain independent. */
.vault-content{display:block}.vault-content>.quick-capture{width:100%;max-width:760px}.vault-content>.search-box{width:100%;max-width:760px}
.vault-tile.sort-row,.new-vault-tile{width:100%;min-width:0;aspect-ratio:auto;min-height:400px}.vault-tile.sort-row:has(.resume-banner){min-height:440px}
.v8-viewer .matrix-heading{position:absolute;top:10px;left:90px;right:90px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--accent);font-size:13px}
.v8-viewer .matrix-window{position:absolute;top:40px;left:50%;transform:translateX(-50%);width:var(--matrix-width);height:var(--matrix-height);overflow:hidden}
.v8-viewer .matrix-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,var(--matrix-card-height));gap:var(--matrix-gap);width:100%}
.v8-viewer .matrix-cell{position:relative;min-width:0;overflow:hidden;background:#06090c;border:1px solid var(--line);border-radius:12px}
.v8-viewer .current-cell{border-color:color-mix(in srgb,var(--accent) 65%,#13202a)}
.v8-viewer .neighbor-cell{filter:brightness(.32);pointer-events:none}
.v8-viewer .matrix-cell>img{width:100%;height:100%;object-fit:contain}
.v8-viewer .neighbor-text{padding:20px;white-space:pre-wrap;overflow-wrap:anywhere;color:#d6dfe5}
.v8-viewer .neighbor-live{padding:22px;display:flex;flex-direction:column;gap:20px;overflow-wrap:anywhere}
.v8-viewer .card-shell{inset:0!important;position:absolute;transform:none!important;opacity:1!important}
.v8-viewer .image-card{background:transparent}
.v8-viewer .text-card{width:100%;height:100%;max-height:100%;padding:32px 18px 18px;border:0;border-radius:0;box-shadow:none}
.v8-viewer .text-body{font-size:clamp(13px,1.1vw,17px)}
.v8-viewer .live-banner strong{display:none}
.v8-viewer .live-banner{flex-wrap:wrap;height:auto;min-height:46px;padding-right:60px}
.v8-viewer .matrix-number{position:absolute;top:9px;right:9px;z-index:6;min-width:43px;height:36px;display:grid;place-items:center;padding:0 8px;border:1px solid var(--accent);border-radius:50%;color:#07131a;background:linear-gradient(130deg,#edf9f7,var(--accent) 40%,var(--hero2) 73%,#eaf6f5);box-shadow:inset 0 1px 4px #ffffff8a,0 2px 8px #0008;font-size:12px;font-weight:800;pointer-events:none}
.v8-viewer.matrix-overlay .matrix-cell:after{content:'';position:absolute;inset:0;z-index:5;pointer-events:none;background:linear-gradient(122deg,transparent 10%,#ffffff15 34%,transparent 49%,color-mix(in srgb,var(--accent) 15%,transparent) 70%,transparent);box-shadow:inset 0 0 0 3px #d5efed22;border-radius:inherit}
.v8-viewer[data-layout=card] .matrix-grid{display:block;height:100%}
.v8-viewer[data-layout=card] .current-cell{height:100%;border:0;background:transparent}
.v8-viewer[data-layout=card] .matrix-number{right:12px}
.v8-viewer .matrix-arrow{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #a9d4dd33;border-radius:50%;background:#26323ec4;letter-spacing:0;transform:none;opacity:.68;text-shadow:none}
.v8-viewer .matrix-arrow:hover,.v8-viewer .matrix-arrow:focus-visible{opacity:1;transform:scale(1.08)}
.v8-viewer .matrix-arrow svg{display:block;width:30px;height:26px;fill:none;stroke:currentColor;stroke-width:3;flex:none}
.v8-viewer .up-arrow svg,.v8-viewer .down-arrow svg{width:24px;height:28px}
.v8-viewer .left-arrow{left:calc(50% - var(--matrix-width)/2 - 54px);right:auto;top:calc(40px + var(--matrix-height)/2 - 22px)}
.v8-viewer .right-arrow{right:calc(50% - var(--matrix-width)/2 - 54px);left:auto;top:calc(40px + var(--matrix-height)/2 - 22px)}
.v8-viewer .up-arrow{left:calc(50% - 22px);right:auto;top:44px;bottom:auto}
.v8-viewer .down-arrow{left:calc(50% - 22px);right:auto;top:calc(40px + var(--matrix-height) - 48px);bottom:auto}
.v8-viewer .lock-tools{left:10px;right:10px;bottom:12px;justify-content:center;flex-wrap:wrap;gap:5px}
.v8-viewer .stack-rail{bottom:66px}
.matrix-help{position:absolute;z-index:26;bottom:62px;left:50%;transform:translateX(-50%);width:min(760px,94%);display:flex;flex-wrap:wrap;gap:9px 18px;padding:16px;background:var(--panel2);border:1px solid var(--accent);border-radius:12px;font-size:12px;box-shadow:0 5px 30px #0009}
.matrix-help kbd{background:#09141a;padding:3px 5px;border:1px solid var(--line);border-radius:4px;color:var(--accent)}
.layout-choices{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.layout-choices .btn{flex:1;min-width:150px;display:flex;flex-direction:column;gap:9px}.layout-choices small{font-weight:400;white-space:normal}.layout-choices [aria-pressed=true]{border-color:var(--accent);background:var(--hero1)}
.search-input-wrap{display:flex;position:relative}.search-input-wrap input{padding-right:40px!important}.search-clear{position:absolute;right:4px;top:4px;bottom:4px;width:32px;border:0;background:transparent;color:var(--accent);font-size:23px}.search-input-wrap input::-webkit-search-cancel-button{display:none}
.search-quest{position:absolute;top:58px;left:50%;transform:translateX(-50%) rotate(8deg);z-index:6;font:900 90px/1 system-ui;color:#ffe077;text-shadow:3px 4px 0 #533210,-2px -2px 0 #674416,0 6px 18px #0009;border:0;background:transparent;padding:0 20px;filter:drop-shadow(0 0 5px #ffcf6655)}.search-quest:hover{transform:translateX(-50%) rotate(0deg) scale(1.06)}
.resume-banner{position:relative;z-index:5;display:flex;align-items:center;gap:9px;margin:0 12px 12px;padding:8px;width:calc(100% - 24px);min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--text);text-align:left}.resume-banner>.thumb{width:35px;height:45px;flex:none;position:relative}.resume-banner>span{min-width:0;display:flex;flex-direction:column;gap:3px}.resume-banner b{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.resume-banner small{font-size:10px;color:var(--accent)}
.quick-capture{padding:14px;margin:0 0 18px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);max-width:760px}.deck-editor>.quick-capture{margin:12px 14px}.quick-capture>label{display:block;color:var(--accent);font-size:12px;margin-bottom:8px}.quick-capture>div{display:flex;align-items:center;gap:10px}.quick-capture textarea{flex:1;min-width:0;resize:vertical;min-height:50px;max-height:220px;border:1px solid var(--line);border-radius:8px;background:#0b1119;color:#e3ebef;padding:10px;font:14px system-ui}.quick-capture small{display:block;color:var(--muted);font-size:11px;margin-top:7px}
@media(max-width:600px){.v8-viewer .left-arrow{left:2px}.v8-viewer .right-arrow{right:2px}.v8-viewer .matrix-arrow{width:38px;height:38px;min-height:38px}.v8-viewer .up-arrow,.v8-viewer .down-arrow{left:calc(50% - 19px)}.v8-viewer .matrix-number{top:4px;right:3px;min-width:32px;height:29px;font-size:10px;padding:0 4px}.v8-viewer .neighbor-text{padding:8px;font-size:11px}.quick-capture>div{flex-direction:column;align-items:stretch}.quick-capture textarea{font-size:16px}.v8-viewer .matrix-heading{left:45px;right:45px}.v8-viewer .text-card{padding:36px 8px 8px}.v8-viewer .lock-btn span{font-size:9px}.matrix-help{max-height:45%;overflow:auto}}
