:root{--seb-bg:#0c0e12;--seb-panel:#11161d;--seb-border:#303e50;--seb-text:#e1e4eb;--seb-muted:#9aacc3;--seb-accent:#7da7d9;--panel:#151b24;--ink:#090c11;--radius:8px;color-scheme:dark}
/* Chat chrome follows Black Blue; message text and background/opacity controls remain independent. */
:root[data-theme=black-blue] .conversation{--chat-backdrop:#0c0e12;border:0!important;outline:0;box-shadow:none!important}
:root[data-theme=black-blue] .conversation{background-color:var(--bg,#0c0d11)!important}
:root[data-theme=black-blue] .conversation:not(.has-bg){background:var(--bg,#0c0d11)!important}
:root[data-theme=black-blue] .conversation>.chat-scroll{background:transparent!important}
:root[data-theme=black-blue] .conversation .composer-wrap{background:transparent!important;border:0!important;box-shadow:none!important}
:root[data-theme=black-blue] .conversation .composer{background:transparent!important;border:1px solid #7da7d970!important;box-shadow:0 0 10px #7da7d912!important;border-radius:8px}
:root[data-theme=black-blue] .conversation .composer:focus-within{border-color:#7da7d9!important;box-shadow:0 0 12px #7da7d92b!important}
:root[data-theme=black-blue] .conversation .composer textarea{background:transparent!important}
:root[data-theme=black-blue] .conversation .reasoning{background:#111319!important;border:1px solid #7da7d945!important;border-left:2px solid #7da7d9!important;border-radius:6px;box-shadow:0 0 8px #7da7d90c;padding:9px 12px}
:root[data-theme=black-blue] .conversation .reasoning summary{color:#a9c9ef;padding:3px 0}
:root[data-theme=black-blue] .conversation .reasoning pre{color:inherit;background:transparent!important;margin:12px 0 3px}
:root[data-theme=black-blue] .conversation :is(.chat-scroll,.message,.message>div:last-child){border:0!important;outline:0;box-shadow:none!important}
:root[data-theme=black-blue] #chat-scroll .message{--message-surface:#111319;background:transparent!important}
:root[data-theme=black-blue].custom-ui #chat-scroll .message{--message-surface:var(--custom-surface,#111319)}
:root[data-theme=black-blue] #chat-scroll .message>div:last-child{background:color-mix(in srgb,var(--message-surface) var(--message-fill,100%),transparent)!important}
:root[data-theme=black-blue] #chat-scroll:is([data-avatar-layout=whisper],[data-avatar-layout=ripple]) .message{background:color-mix(in srgb,var(--message-surface) var(--message-fill,100%),transparent)!important}
:root[data-theme=black-blue] #chat-scroll:is([data-avatar-layout=whisper],[data-avatar-layout=ripple]) .message>div:last-child{background:transparent!important}
html:not(.custom-ui) body{background:#0c0e12}.shell{display:flex!important;flex-direction:column!important;height:100dvh;grid-template-columns:1fr!important}.shell>.sidebar{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;display:flex!important;flex-direction:row;align-items:center;gap:20px;padding:16px 24px;flex-shrink:0;height:auto!important;overflow:visible;border-right:0;border-bottom:1px solid var(--line);background:var(--surface);z-index:30}.sidebar .brand{margin:0;flex-shrink:0}.brand strong{font-family:Georgia,serif;letter-spacing:3px}.brand img{object-fit:contain}.sidebar .nav{display:flex;flex-direction:row;gap:6px;margin:0}.sidebar .nav button{white-space:nowrap;padding:10px 12px}.sidebar .settings-nav{margin-left:auto}.main{min-width:0;min-height:0;flex:1;width:100%;margin:0!important}.main>.topbar{position:relative;height:auto;min-height:58px;padding:12px 24px}.nav-backdrop,.mobile-only,.directory-navigation{display:none!important}.content{padding:24px!important}.wide-limit{max-width:1500px;margin:auto}.library-title-panel{position:static!important;transform:none!important;box-shadow:none!important;background:none!important;border:0!important;padding:0!important}.page-head{gap:20px;margin-bottom:24px}.character-collection .page-head{height:auto!important;min-height:0!important;background:none!important}.character{border-radius:14px!important}.favorite-rail,.panel{border-radius:14px 14px 32px 14px}.form-actions{gap:12px;margin-top:20px;padding-top:18px}.modal-head{flex-shrink:0;padding:20px 24px}.modal-body{min-height:0;overflow:auto;padding:20px 24px 28px;scrollbar-gutter:stable}dialog{border:1px solid var(--accent);border-radius:14px;background:var(--surface);color:var(--text);overflow:hidden}dialog[open]{display:flex;flex-direction:column}dialog.resource-drawer,dialog.resource-editor{position:fixed;inset:var(--workspace-top,80px) 0 auto;margin:0 auto;width:min(1100px,calc(100vw - 32px));max-height:calc(100dvh - var(--workspace-top,80px) - 20px);height:auto;z-index:40;box-shadow:0 16px 40px #0008;animation:workspace-down .18s ease-out}.resource-editor{z-index:41!important}dialog.resource-drawer .page-head{flex-wrap:wrap}.resource-drawer .collection-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.resource-drawer .modal-body,.resource-editor .modal-body{margin:0 6px 8px 0}.resource-drawer .modal-head,.resource-editor .modal-head{border-bottom:1px solid var(--line)}*{scrollbar-width:thin;scrollbar-color:#516c8e #10151d}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background:#516c8e;border:2px solid #10151d;border-radius:10px}::-webkit-scrollbar-track{background:#10151d}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.chat-layout{min-height:0;flex:1}.main{display:flex;flex-direction:column}.main>.content{min-height:0;overflow:auto;flex:1}.main>.chat-layout{flex:1}.library-banner:before,.library-banner:after{display:none!important}@keyframes workspace-down{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.shell>.sidebar{flex-wrap:wrap;gap:10px;padding:12px 16px}.sidebar>.nav:first-of-type{order:4;width:100%;overflow:auto}.sidebar>.nav{flex-shrink:0}.sidebar .brand{margin-right:auto}.sidebar .brand small{font-size:8px}.sidebar .settings-nav{margin-left:0}.sidebar .nav button{font-size:12px;padding:9px}.sidebar .nav .icon-svg{display:none}.content{padding:20px 16px!important}.main>.topbar{padding:12px 16px}.resource-drawer .modal-body,.resource-editor .modal-body{padding:18px 16px 24px}.modal-head{padding:16px}.page-head{flex-wrap:wrap}}
@media(max-width:520px){.sidebar .brand strong{font-size:17px}.sidebar .brand img{width:32px;height:32px}.sidebar .settings-nav button{font-size:11px}.shell>.sidebar{gap:6px}.sidebar>.nav[aria-label=Settings]{order:5}.main>.topbar .crumb{font-size:12px}.topbar-right{gap:4px}.resource-drawer,.resource-editor{width:calc(100vw - 20px)!important}.modal-body{padding:16px}.page-head h1{font-size:28px}.form-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){dialog.resource-drawer,dialog.resource-editor{animation:none}}
html:not(.custom-ui) .main,html:not(.custom-ui) .content,html:not(.custom-ui) .topbar{background:#0c0e12!important;background-image:none!important}body::before,.shell::before,.content::before{display:none!important}.character-collection .page-head{border:0;box-shadow:none;padding:0}.character-collection .page-head:before,.character-collection .page-head:after{display:none}.sidebar:before{display:none!important}.main .topbar{border-bottom:1px solid var(--line)}h1,h2,h3{font-family:Georgia,serif}button{border-radius:6px}.favorite-rail{min-width:130px}.character-collection .collection-layout{gap:24px}.library-title-panel h1{font-size:32px}.resource-drawer .page-head{padding:18px;border-radius:12px}.resource-drawer .page-head h1{font-size:26px}.resource-drawer .empty{padding:32px 20px}.page-head p{line-height:1.7}.resource-editor .modal-body form{padding:4px}.auth .brand strong{font-size:30px}
body:has(#modal.resource-editor[open]) #resource-drawer{visibility:hidden}
@media(max-width:1200px){.story-rail>.drawer{top:calc(var(--workspace-top,80px) + 58px)!important;bottom:12px!important;right:10px!important;width:min(400px,calc(100vw - 20px))!important;max-height:calc(100dvh - var(--workspace-top,80px) - 70px);overflow:auto;border:1px solid var(--line);border-radius:12px;z-index:32}.drawer-close{display:flex!important}}
.accent-icon{width:17px;height:17px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 0 4px #7da7d966)}html:not(.custom-ui) .message,html:not(.custom-ui) .story-rail,html:not(.custom-ui) .drawer,html:not(.custom-ui) .composer{background-color:#11161d;background-image:none}html:not(.custom-ui) .chat-scroll{background-color:#0c0e12}
/* Approved compact Black Blue skin. No inherited theme ornaments or navy panels. */
:root{--seb-bg:#0c0d11;--seb-panel:#111319;--seb-border:#2a303c;--seb-text:#e7e9ef;--seb-muted:#989eac;--seb-accent:#7da7d9;--bg:#0c0d11;--surface:#111319;--panel:#171b23;--line:#2a303c;--text:#e7e9ef;--muted:#989eac;--accent:#7da7d9;--ink:#0b1420;font-family:'Segoe UI',Arial,sans-serif;font-size:13px}
html:not(.custom-ui) :is(.main,.content,.topbar,.chat-scroll){background:#0c0d11!important;background-image:none!important}html:not(.custom-ui) :is(.sidebar,.panel,.message,.composer,.drawer,.story-rail,.list-item,.library-empty,dialog,.book-entry-row,.book-save-bar){background:#111319!important;background-image:none!important;color:var(--text)}html:not(.custom-ui) :is(input,textarea,select){background:#0d1016!important;color:#e7e9ef!important;border-color:#2a303c!important}html:not(.custom-ui) button{background:#111319;color:#e7e9ef;border-color:#2a303c;box-shadow:none;text-shadow:none}html:not(.custom-ui) button:hover{background:#1a1e26;border-color:#7da7d9}html:not(.custom-ui) button.primary{background:#7da7d9;color:#0b1420;border-color:#94b7e1}
:root[data-theme=black-blue] :is(button,.panel,.page-head,.library-controls,.character,.card-art,.sidebar,.topbar,.drawer,.book-entry-row,.library-title-panel,.favorite-rail)::before,:root[data-theme=black-blue] :is(button,.panel,.page-head,.library-controls,.character,.card-art,.sidebar,.topbar,.drawer,.book-entry-row,.library-title-panel,.favorite-rail)::after{content:none!important;display:none!important}
:root[data-theme=black-blue] :is(button,.panel,.page-head,.character,.sidebar,.topbar){clip-path:none;filter:none;text-shadow:none;box-shadow:none}h1{font:500 33px/1.2 'Segoe UI',Arial,sans-serif;letter-spacing:-.8px}h2,h3{font-weight:500}p,small{color:var(--muted)}p{line-height:1.7}button,input,select,textarea{font-family:'Segoe UI',Arial,sans-serif;font-size:12px;letter-spacing:.2px}button{border-radius:5px;padding:9px 13px}input,select,textarea{border-radius:5px;padding:10px 12px}
.shell>.sidebar{min-height:78px;padding:0 30px;gap:24px}.sidebar .brand{gap:12px}.sidebar .brand strong{font:500 22px Georgia,serif;letter-spacing:3px}.sidebar .brand small{font:7px 'Segoe UI',sans-serif;letter-spacing:1.8px;color:#989eac}.sidebar .brand img{width:44px;height:44px}.sidebar>.nav{align-self:stretch;align-items:center;gap:3px}.sidebar .nav button{height:100%;padding:0 12px;background:transparent!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0;color:var(--muted);font-size:12px}.sidebar .nav button .icon-svg{display:none}.sidebar .nav button.active{color:#7da7d9;border-bottom-color:#7da7d9!important}.sidebar .settings-nav{gap:4px}.sidebar .settings-nav button{font-size:11px}.sidebar .accent-icon{display:none}.main>.topbar{min-height:42px;height:42px;padding:6px 30px;font-size:11px}.topbar button{font-size:11px;padding:6px 9px}.topbar .icon-svg{width:14px;height:14px}.content{padding:32px 30px!important}.wide-limit{max-width:1500px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0!important;margin:0 0 24px!important;border:0!important;background:none!important}.page-head h1{margin:6px 0 9px}.page-head p{font-size:12px;margin:0}.eyebrow{font:600 9px 'Segoe UI',sans-serif;letter-spacing:1.8px;color:#7da7d9}.vl-count{font:italic 20px Georgia,serif;color:#7da7d9;margin-left:8px}.vl-heading-actions{flex-wrap:wrap;gap:8px;flex-shrink:0}
:root .vl-compact-collection .collection-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 255px!important;gap:28px!important;align-items:start}.vl-library{min-width:0}.vl-collection-side{display:grid;gap:22px;min-width:0}.vl-compact-collection .library-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:0!important;margin:0 0 22px!important;border:0;min-height:0}.vl-compact-collection .library-controls .search{flex:1 1 220px;min-width:170px;max-width:none;margin:0}.vl-compact-collection .library-controls .search input{width:100%;height:39px}.vl-compact-collection .library-controls .search .icon-svg{width:15px;height:15px}.vl-compact-collection .collection-tabs{order:-1;flex:1 0 100%;display:flex;gap:8px;border:0;padding:0;margin:0 0 2px;min-height:0}.vl-compact-collection .collection-tabs button{flex:0 1 auto;width:auto;min-height:34px;font-size:12px;padding:8px 12px;border:1px solid transparent;background:transparent;color:var(--muted);border-radius:5px}.vl-compact-collection .collection-tabs button.active{background:#191e27;color:var(--accent);border-color:#3b4656}.vl-compact-collection .tag-dropdown{min-width:0}.vl-compact-collection .tag-dropdown summary{font-size:11px;padding:10px 12px}.vl-compact-collection #creator-filter{width:160px;height:39px;font-size:11px}.vl-compact-collection .character-shelf>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px;padding:0;border:0}.vl-compact-collection .character-shelf>header h2{font:500 12px 'Segoe UI',sans-serif;color:var(--muted);margin:0}.vl-compact-collection .library-sort{font-size:10px;gap:8px}.vl-compact-collection .library-sort select{font-size:11px;padding:7px 9px;min-height:32px;width:145px}.vl-compact-collection #character-grid{min-width:0;width:100%}.vl-compact-collection .library-empty{padding:44px 20px;margin:0;border:1px solid var(--line);border-radius:8px;min-height:170px}.library-empty h3{font:25px Georgia,serif}.library-empty p{font-size:12px;margin-top:12px}
.vl-side-panel,.vl-side-note,:root .vl-favorites{border:1px solid #384354!important;border-radius:14px 14px 32px 14px!important;background:#101318!important;position:relative;padding:20px!important;min-width:0;width:auto!important;max-height:none!important;margin:0!important}.vl-side-panel h2,:root .vl-favorites h2{font:600 11px 'Segoe UI',sans-serif;letter-spacing:1.4px;margin:0 0 18px}.vl-side-panel>p{font-size:12px;margin:0 0 14px}.vl-side-panel .vl-empty-stories{font-size:11px;color:#818b9b}.vl-view-stories{margin-top:12px}.vl-recent-story{display:flex;gap:11px;align-items:center;width:100%;padding:14px 0;border:0!important;border-bottom:1px solid #303846!important;border-radius:0;background:transparent!important;text-align:left}.vl-recent-story .conversation-avatar{width:37px;height:46px;border-radius:5px;flex-shrink:0}.vl-recent-story span:not(.conversation-avatar){flex:1;min-width:0}.vl-recent-story strong,.vl-recent-story small{display:block;font-size:11px;line-height:1.5}.vl-recent-story small{font-size:10px;margin-top:5px}.vl-recent-story b{font-weight:400;color:#7da7d9}.vl-side-accents{position:absolute;left:-9px;top:50%;transform:translateY(-50%);display:grid;gap:7px;filter:drop-shadow(0 0 4px #7da7d9a0)}.vl-side-accents img{width:17px;height:17px}.vl-side-note{text-align:center}.vl-side-note>img{width:16px;height:16px;margin:4px auto 18px}.vl-side-note h3{font:23px/1.1 Georgia,serif;color:#d7deeb;margin:0 0 15px}.vl-side-note p{font-size:11px;line-height:1.8;margin-bottom:18px}.vl-side-note button{font-size:11px;border-color:transparent;background:transparent!important;color:#7da7d9}.vl-favorites .empty-mini{font:12px/1.8 'Segoe UI',sans-serif;margin:0}.vl-favorites #favorite-list{display:grid;gap:12px}.vl-favorites .favorite-shortcut{width:100%;justify-content:flex-start;text-align:left;padding:8px;gap:10px}
:root .vl-compact-collection .character-row.character-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;overflow:visible;padding:0;margin:0}:root .vl-compact-collection .character{width:auto;min-width:0;max-width:none;border:1px solid #414957;border-radius:28px 28px 9px 9px!important;background:#111319;overflow:hidden;display:flex;flex-direction:column}.vl-compact-collection .card-art{order:0;padding:0!important;margin:0!important}.vl-compact-collection .character .portrait{height:205px!important;aspect-ratio:auto;border:0;border-radius:0}.vl-compact-collection .character .portrait img{width:100%;height:100%;object-fit:cover}.vl-compact-collection .character .card-head{order:1;padding:14px 15px 8px;margin:0;border:0;min-height:0;background:none}.vl-compact-collection .character-name-link{font:23px/1.12 Georgia,serif!important;padding:0!important;letter-spacing:-.6px}.vl-compact-collection .card-footer{order:2;padding:0 15px 16px;margin:0;background:none;flex:1}.vl-compact-collection .card-creator{font-size:10px}.vl-compact-collection .card-divider{margin:10px 0}.vl-compact-collection .card-actions button{font-size:10px;padding:8px}.vl-compact-collection .card-token-summary{font-size:10px;margin-top:12px;padding-top:10px}.vl-compact-collection .card-token-summary dl{display:none}.vl-compact-collection .card-token-summary>strong{display:none}.vl-compact-collection .card-tags{gap:4px;margin-top:12px}.vl-compact-collection .character-tag{font-size:8px;padding:3px 5px}.vl-compact-collection .card-head h2{margin:0}.vl-compact-collection .favorite-toggle{width:30px;height:30px;min-width:0;min-height:0;padding:6px;border-radius:50%}.vl-compact-collection .number{font-size:8px}
@media(max-width:1250px){.shell>.sidebar{gap:10px;padding:0 22px;flex-wrap:wrap}.sidebar .brand{margin:12px auto 8px 0}.sidebar>.nav:first-of-type{order:4;width:100%;height:48px;overflow:auto}.sidebar>.nav[aria-label=Settings]{order:0}.sidebar .settings-nav{order:1}.sidebar .nav button{font-size:11px;padding:0 10px}.vl-compact-collection .character-row.character-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:850px){.content{padding:25px 22px!important}:root .vl-compact-collection .collection-layout{grid-template-columns:1fr!important}.vl-collection-side{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.vl-favorites{grid-column:1/-1}.vl-compact-collection .page-head{align-items:start}.vl-heading-actions{justify-content:flex-end}.sidebar .brand strong{font-size:19px}.sidebar .nav button{height:46px}.sidebar>.nav[aria-label=Settings]{order:5}.sidebar .settings-nav{margin:0}.main>.topbar{padding:6px 16px}.topbar .crumb{font-size:10px}.topbar .guide-launch{display:none}}
@media(max-width:520px){.content{padding:22px 16px!important}.shell>.sidebar{padding:0 16px}.sidebar .brand img{width:36px;height:36px}.sidebar .brand{gap:8px}.sidebar .brand strong{font-size:17px}.sidebar .settings-nav button{font-size:10px;padding:0 7px}.sidebar>.nav[aria-label=Settings]{width:100%;height:35px;justify-content:flex-end}.sidebar>.nav[aria-label=Settings] button{height:35px}.vl-compact-collection .page-head{flex-direction:column;gap:16px}.vl-heading-actions{justify-content:flex-start}.vl-collection-side{grid-template-columns:1fr}.vl-compact-collection .collection-tabs{overflow:auto;flex-wrap:nowrap;white-space:nowrap}.vl-compact-collection .collection-tabs button{font-size:10px;padding:8px}.vl-compact-collection #creator-filter{width:145px}.vl-compact-collection .character-row.character-grid{gap:12px!important}.vl-compact-collection .character .portrait{height:185px!important}.vl-compact-collection .character-name-link{font-size:20px!important}.vl-compact-collection .card-head{padding:12px 12px 8px}.vl-compact-collection .card-footer{padding:0 12px 13px}.vl-compact-collection .card-control-grid{grid-template-columns:1fr}.vl-compact-collection .library-sort{font-size:0}.vl-compact-collection .library-sort select{font-size:10px;width:132px}}
/* Explicit geometry replaces the legacy library's high-specificity layout rules. */
:root[data-theme=black-blue] .shell>.sidebar{align-items:center;min-height:78px;height:78px}.sidebar .brand{align-self:center}.sidebar .brand strong{line-height:1.1}.sidebar .brand small{display:block;margin-top:7px}
:root[data-theme=black-blue] .sidebar .nav button{border:0!important;border-left:0!important;border-right:0!important;border-top:0!important;box-shadow:none!important;outline:none}:root[data-theme=black-blue] .sidebar .nav button.active{border-bottom:2px solid #7da7d9!important}:root[data-theme=black-blue] .sidebar .nav button:focus-visible{outline:2px solid #7da7d9;outline-offset:-4px}
:root[data-theme=black-blue] .vl-compact-collection .library-controls{display:flex!important;flex-wrap:wrap!important;gap:10px!important}:root[data-theme=black-blue] .vl-compact-collection .library-controls>.search{width:auto!important;flex:1 1 250px!important;min-width:170px!important}:root[data-theme=black-blue] .vl-compact-collection .library-controls>.tag-dropdown{width:auto!important;flex:0 0 auto!important}:root[data-theme=black-blue] .vl-compact-collection .library-controls>.collection-tabs{display:flex!important;flex:1 0 100%!important;grid-template-columns:none!important;gap:8px!important;width:100%!important;justify-content:flex-start!important}:root[data-theme=black-blue] .vl-compact-collection .collection-tabs button{flex:0 0 auto!important;width:auto!important;min-width:0!important;padding:8px 12px!important;border-radius:5px!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important}:root[data-theme=black-blue] .vl-compact-collection .collection-tabs button.active{background:#191e27!important;border:1px solid #3b4656!important}
:root[data-theme=black-blue] .vl-compact-collection .character-row.character-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;padding:0!important;max-height:none!important;min-height:0!important;overflow:visible!important;scrollbar-gutter:auto;align-items:stretch}:root[data-theme=black-blue] .vl-compact-collection .character{display:flex!important;flex-direction:column!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;align-self:stretch!important;background:#111319!important}:root[data-theme=black-blue] .vl-compact-collection .card-heading{order:1!important;padding:14px 15px 8px!important;margin:0!important;height:auto!important;min-height:0!important;border:0!important;background:none!important}:root[data-theme=black-blue] .vl-compact-collection .card-art{order:0!important;flex:none!important;height:205px!important;padding:0!important;margin:0!important;background:#171b23!important;border:0!important;border-radius:0!important}:root[data-theme=black-blue] .vl-compact-collection .portrait{height:205px!important;min-height:0!important;max-height:205px!important;aspect-ratio:auto!important;padding:0!important;background:#171b23!important;border:0!important}:root[data-theme=black-blue] .vl-compact-collection .portrait .initials{font:48px Georgia,serif;color:#7da7d9!important}:root[data-theme=black-blue] .vl-compact-collection .portrait-profile-link{background:transparent!important;border:0!important}:root[data-theme=black-blue] .vl-compact-collection .card-footer{order:2!important;min-height:0!important;flex:1!important;padding:0 15px 16px!important;background:none!important;display:block!important}:root[data-theme=black-blue] .vl-compact-collection .character-name-link{color:#e7e9ef!important;background:none!important;border:0!important}:root[data-theme=black-blue] .vl-compact-collection .card-heading h2{margin:0!important;line-height:1.12}:root[data-theme=black-blue] .vl-compact-collection .card-actions .start{background:#19202a!important;border-color:#394554!important;color:#bed2ec!important;font-weight:500;font-size:11px}:root[data-theme=black-blue] .vl-compact-collection .favorite-toggle{width:30px!important;height:30px!important;border-radius:50%!important;display:flex!important;align-items:center;justify-content:center;padding:6px!important}:root[data-theme=black-blue] .favorite-toggle .accent-icon{display:block;width:16px;height:16px;object-fit:contain}:root[data-theme=black-blue] .vl-compact-collection .card-token-summary{margin-top:12px;padding-top:10px}:root[data-theme=black-blue] .vl-compact-collection .card-token-summary dl{display:none!important}.vl-compact-collection .library-sort{white-space:nowrap}
@media(max-width:1250px){:root[data-theme=black-blue] .shell>.sidebar{height:auto;min-height:78px}:root[data-theme=black-blue] .vl-compact-collection .character-row.character-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){:root[data-theme=black-blue] .vl-compact-collection .library-controls>.search{flex-basis:100%!important}:root[data-theme=black-blue] .vl-compact-collection .collection-tabs button{font-size:10px!important;padding:8px!important}:root[data-theme=black-blue] .vl-compact-collection .character-row.character-grid{gap:12px!important}:root[data-theme=black-blue] .vl-compact-collection .portrait,:root[data-theme=black-blue] .vl-compact-collection .card-art{height:185px!important;max-height:185px!important}:root[data-theme=black-blue] .vl-compact-collection .card-heading{padding:12px 12px 8px!important}:root[data-theme=black-blue] .vl-compact-collection .card-footer{padding:0 12px 13px!important}.vl-compact-collection .character-shelf>header{flex-wrap:nowrap!important}.main>.topbar .guide-launch{display:none!important}.main>.topbar .topbar-right{flex-wrap:nowrap}.main>.topbar button{white-space:nowrap}.sidebar>.nav[aria-label=Settings]{justify-content:flex-start!important}}
:root[data-theme=black-blue] .sidebar .brand{margin:0!important;padding:0!important;min-height:0!important;height:auto!important;display:flex;align-items:center;transform:none;position:static}:root[data-theme=black-blue] .sidebar .brand>div{padding:0;margin:0}:root[data-theme=black-blue] .sidebar .brand strong{display:block}:root[data-theme=black-blue] .vl-compact-collection .page-head h1{font:500 33px/1.2 'Segoe UI',sans-serif!important}:root[data-theme=black-blue] .vl-compact-collection .library-controls>label{width:auto!important;flex:0 0 auto!important;margin:0;display:block}:root[data-theme=black-blue] .vl-compact-collection .character-shelf>header h2{width:auto!important;max-width:none!important;white-space:nowrap;font-size:11px!important}:root[data-theme=black-blue] .vl-compact-collection .card-control{background:#171b23!important;border-color:#394554!important;color:#bed2ec!important;box-shadow:none!important}:root[data-theme=black-blue] .vl-compact-collection .card-token-summary details dl{display:grid!important}:root[data-theme=black-blue] .vl-compact-collection .card-token-summary details{padding:0;margin:0}
@media(max-width:1250px){:root[data-theme=black-blue] .sidebar .brand{margin:12px auto 8px 0!important}}
:root[data-theme=black-blue] .vl-compact-collection .library-controls>.creator-filter{flex:0 0 160px!important;width:160px!important;min-width:0!important;margin:0}:root[data-theme=black-blue] .vl-compact-collection .character-shelf{margin:0!important;padding:0!important}:root[data-theme=black-blue] .vl-compact-collection .library-controls>.search{flex-basis:200px!important}
@media(max-width:520px){:root[data-theme=black-blue] .vl-compact-collection .library-controls>.search{flex-basis:100%!important}}
/* Separate story navigation from its supporting libraries, as in the preview. */
.vl-nav-divider{display:block;width:1px;height:20px;flex:0 0 1px;margin:0 10px;background:var(--line);align-self:center}
.sidebar .settings-nav{margin-left:auto}
@media(max-width:850px){.sidebar>.settings-nav{order:5;width:100%;height:38px;justify-content:flex-end;overflow:auto}.sidebar>.settings-nav button{height:38px;flex-shrink:0}.vl-nav-divider{margin:0 7px}}
.sidebar>.settings-nav button{width:auto!important;min-width:0!important;flex:0 0 auto!important}
@media(max-width:850px){.sidebar>.settings-nav{flex-wrap:nowrap;gap:3px;margin:0;padding:0;justify-content:flex-start}.sidebar>.settings-nav button{padding:0 8px!important;font-size:10px!important}}
/* Approved option 01: compact page UI; navigation and authored chat HTML excluded. */
:root[data-theme=black-blue] .main .content{padding:24px 30px!important}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer) .page-head{gap:14px!important;margin-bottom:16px!important;align-items:center}
:root[data-theme=black-blue] .main .content .page-head h1,:root[data-theme=black-blue] .main .content .vl-compact-collection .page-head h1,:root[data-theme=black-blue] .resource-drawer .page-head h1,:root[data-theme=black-blue] dialog>.modal-head h2{font:500 24px/1.2 'Segoe UI',Arial,sans-serif!important;letter-spacing:-.6px!important;margin:0!important}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer) .page-head .eyebrow{display:none}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer) .page-head p{font:11px/1.6 'Segoe UI',Arial,sans-serif!important;margin:7px 0 0!important;color:var(--muted)}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer,.resource-editor,#modal) button:not(.character-name-link):not(.portrait-profile-link):not(.favorite-toggle){font-family:'Segoe UI',Arial,sans-serif;font-size:11px!important;line-height:18px;min-height:34px!important;padding:7px 10px!important}
:root[data-theme=black-blue] .main .content .vl-compact-collection .collection-tabs button{font-size:11px!important;min-height:34px!important;padding:7px 10px!important}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer,.resource-editor,#modal) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select){font:11px/18px 'Segoe UI',Arial,sans-serif!important;min-height:34px!important;padding:7px 10px!important}
:root[data-theme=black-blue] .main .content .vl-compact-collection .library-controls :is(.search input,#creator-filter){height:34px!important;min-height:34px!important}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer) .tag-dropdown summary{font-size:11px!important;line-height:18px;min-height:34px;padding:7px 10px!important}
:root[data-theme=black-blue] .main .content .vl-compact-collection .library-controls{margin-bottom:16px!important;gap:8px!important}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer) .page-head>.row{gap:8px}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer) :is(.empty,.library-empty){padding:24px 14px!important;min-height:0!important}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer) :is(.empty,.library-empty) h2,:root[data-theme=black-blue] :is(.main .content,.resource-drawer) .library-empty h3{font:500 20px/1.3 Georgia,serif!important;margin:0 0 10px!important}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer) :is(.empty,.library-empty) p{font-size:12px;margin:0;line-height:1.6}
:root[data-theme=black-blue] .resource-drawer .page-head{padding:0!important;border:0;border-radius:0}
:root[data-theme=black-blue] .resource-drawer .modal-body{padding-top:16px}
:root[data-theme=black-blue] .main .content :is(.panel>h2,section>h2){font-size:18px;line-height:1.3}
:root[data-theme=black-blue] .main .content .vl-side-panel>h2,:root[data-theme=black-blue] .main .content .vl-favorites>h2{font-size:11px}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer) .list-item{padding:14px;gap:14px}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer) .list-item h3{font-size:15px;line-height:1.3}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer) .list-item p{font-size:11px;line-height:1.6}
@media(max-width:850px){:root[data-theme=black-blue] .main .content{padding:20px 22px!important}}
@media(max-width:540px){:root[data-theme=black-blue] .main .content{padding:20px 16px!important}:root[data-theme=black-blue] :is(.main .content,.resource-drawer) .page-head{align-items:flex-start;flex-wrap:wrap;gap:14px!important}:root[data-theme=black-blue] :is(.main .content,.resource-drawer,.resource-editor,#modal) button:not(.character-name-link):not(.portrait-profile-link):not(.favorite-toggle){min-height:40px!important}:root[data-theme=black-blue] .main .content .vl-compact-collection .collection-tabs button{min-height:40px!important}:root[data-theme=black-blue] :is(.main .content,.resource-drawer,.resource-editor,#modal) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select){min-height:40px!important}:root[data-theme=black-blue] .main .content .vl-compact-collection .library-controls :is(.search input,#creator-filter){height:40px!important;min-height:40px!important}}
/* Compact global help/inbox controls; page-specific actions remain on the page. */
:root[data-theme=black-blue] .sidebar>.vl-quick-nav{gap:6px;flex:0 0 auto;align-items:center;overflow:visible}
:root[data-theme=black-blue] .sidebar .vl-quick-nav button{display:flex;align-items:center;justify-content:center;position:relative;width:32px!important;height:32px!important;min-width:32px;flex:0 0 32px;padding:6px!important;border:1px solid transparent!important;border-radius:5px;color:var(--muted)}
:root[data-theme=black-blue] .sidebar .vl-quick-nav button:hover{border-color:var(--accent)!important;background:#1a1e26!important;color:var(--accent)}
:root[data-theme=black-blue] .sidebar .vl-quick-nav :is(.icon-svg,.announcement-envelope){display:block!important;width:18px;height:18px;margin:0}
:root[data-theme=black-blue] .sidebar .vl-quick-nav .announcement-count{position:absolute;top:-5px;right:-5px;min-width:14px;font-size:9px}
@media(max-width:1100px){:root[data-theme=black-blue] .sidebar>.vl-quick-nav{order:0;margin-left:auto;align-self:center}}
/* Keep compact search text clear of its inset icon. */
:root[data-theme=black-blue] :is(.main .content,.resource-drawer) .search input{padding-left:34px!important}
:root[data-theme=black-blue] :is(.main .content,.resource-drawer,.resource-editor,#modal) .search input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]){padding-left:34px!important}
/* Resource drawer close buttons use the supplied X, matching other controls. */
:root[data-theme=black-blue] .resource-drawer [data-close-resource]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:38px;height:38px;padding:8px!important}
@media(max-width:540px){:root[data-theme=black-blue] .resource-drawer [data-close-resource]{width:40px;height:40px}}
/* Matching decorative X accents across the collection's supporting panels. */
.vl-side-accents{pointer-events:none;user-select:none}
.vl-side-accents img{display:block;object-fit:contain}
.vl-side-note .vl-accents-right{left:auto;right:-9px;top:32%}
:root .vl-favorites{overflow:visible}
.vl-favorites .vl-accents-favorites{top:50%}
/* Compact character details and a continuous portrait-to-panel fade. */
:root[data-theme=black-blue] .vl-compact-collection .character .card-art::after{content:""!important;display:block!important;position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(to bottom,transparent 52%,#11131966 76%,#111319 100%)!important}
:root[data-theme=black-blue] .vl-compact-collection .character .card-heading{padding:8px 14px 4px!important}
:root[data-theme=black-blue] .vl-compact-collection .character .card-heading h2{font-size:20px!important;line-height:1.15!important}
:root[data-theme=black-blue] .vl-compact-collection .character .card-footer{padding:0 14px 12px!important}
:root[data-theme=black-blue] .vl-compact-collection .character .card-creator{font-size:10px;line-height:1.4}
:root[data-theme=black-blue] .vl-compact-collection .character .card-divider{display:none}
:root[data-theme=black-blue] .vl-compact-collection .character .card-actions{padding-top:10px;gap:6px;margin-top:0}
:root[data-theme=black-blue] .vl-compact-collection .character .card-token-summary{margin-top:10px;padding-top:10px}
:root[data-theme=black-blue] .vl-compact-collection .character .card-art::after{height:100%;width:100%}
/* Approved small-cap action links: story first, publishing alongside. */
:root[data-theme=black-blue] #page .vl-compact-collection .character .vl-link-actions{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 12px;padding-top:8px;width:100%}
:root[data-theme=black-blue] #page .vl-compact-collection .character .vl-link-actions>button{width:auto!important;min-width:0!important;min-height:34px!important;height:auto!important;flex:0 1 auto;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:7px 0!important;font:400 10px/1.4 'Segoe UI',sans-serif!important;text-transform:uppercase;letter-spacing:1.1px;color:#9da9ba!important;white-space:normal;overflow-wrap:anywhere}
:root[data-theme=black-blue] #page .vl-compact-collection .character .vl-link-actions>.start{flex:1 1 auto;justify-content:flex-start;text-align:left;font-weight:600!important;color:#a8c8ef!important;gap:7px}
:root[data-theme=black-blue] #page .vl-compact-collection .character .vl-link-actions>button+button{border-left:1px solid #394454!important;padding-left:12px!important;max-width:45%}
:root[data-theme=black-blue] #page .vl-compact-collection .character .vl-link-actions .icon-svg{width:13px;height:13px;flex-shrink:0}
:root[data-theme=black-blue] #page .vl-compact-collection .character .vl-link-actions>button:hover{color:#e4efff!important;text-decoration:underline;text-underline-offset:5px}
:root[data-theme=black-blue] #page .vl-compact-collection .character .vl-link-actions>button:focus-visible{outline:2px solid #7da7d9;outline-offset:3px;border-radius:2px!important}
@media(max-width:540px){:root[data-theme=black-blue] #page .vl-compact-collection .character .vl-link-actions{gap:6px}:root[data-theme=black-blue] #page .vl-compact-collection .character .vl-link-actions>button{min-height:40px!important;font-size:9px!important;letter-spacing:.4px}:root[data-theme=black-blue] #page .vl-compact-collection .character .vl-link-actions>.start{gap:3px}:root[data-theme=black-blue] #page .vl-compact-collection .character .vl-link-actions>button+button{padding-left:6px!important}}
/* Approved signature page titles: gradient + soft bloom, scoped away from authored chats. */
:root[data-theme=black-blue] :is(#page,#resource-drawer) .vl-page-title{display:flex;align-items:center;gap:12px;font:600 28px/1.3 Georgia,'Times New Roman',serif!important;letter-spacing:4px!important;text-transform:uppercase;margin:0!important;min-width:0}
.vl-page-title .vl-title-text{min-width:0;overflow-wrap:anywhere;background:linear-gradient(110deg,#fff4fc 0%,#dce8ff 35%,#8fafe0 72%,#c8dcff 100%);background-clip:text;-webkit-background-clip:text;color:transparent;filter:drop-shadow(0 0 4px #9fbce95c) drop-shadow(0 0 11px #7da7d940)}
.vl-page-title .vl-title-x{width:16px;height:16px;flex:0 0 16px;object-fit:contain;filter:drop-shadow(0 0 4px #7da7d980)}
:root[data-theme=black-blue] :is(#page,#resource-drawer) .page-head>div:first-child{min-width:0}
:root[data-theme=black-blue] :is(#page,#resource-drawer) .page-head .vl-page-subtitle{font:500 9px/1.7 'Segoe UI',sans-serif!important;letter-spacing:1.5px;text-transform:uppercase;color:#9eb8d9!important;margin:9px 0 0!important;padding-left:28px}
.vl-page-subtitle::before{content:'— 【 ';color:#7da7d9}.vl-page-subtitle::after{content:' 】';color:#7da7d9}
:root[data-theme=black-blue] #resource-drawer>.modal-head{gap:16px}
:root[data-theme=black-blue] #resource-drawer .page-head .vl-page-subtitle{padding-left:0;margin-top:0!important}
@media(max-width:540px){:root[data-theme=black-blue] :is(#page,#resource-drawer) .vl-page-title{font-size:22px!important;letter-spacing:2px!important;gap:9px}:root[data-theme=black-blue] :is(#page,#resource-drawer) .page-head .vl-page-subtitle{font-size:8px!important;letter-spacing:1px;padding-left:25px}:root[data-theme=black-blue] #resource-drawer .page-head .vl-page-subtitle{padding-left:0}}
@media(forced-colors:active){.vl-page-title .vl-title-text{background:none;color:CanvasText;filter:none}}
/* Keep search, filters and sorting together; wrap only when space requires it. */
:root[data-theme=black-blue] #page .vl-compact-collection .library-controls>.search{flex:1 1 180px!important;min-width:150px!important;width:auto!important}
:root[data-theme=black-blue] #page .vl-compact-collection .library-controls>.library-sort{display:flex!important;align-items:center;gap:8px;flex:0 0 auto!important;width:auto!important;margin:0;font-size:10px;white-space:nowrap}
:root[data-theme=black-blue] #page .vl-compact-collection .library-sort select{width:145px!important;min-width:0;height:34px}
:root[data-theme=black-blue] #page .vl-compact-collection .character-shelf>header{min-height:0;padding:0;margin-bottom:12px}
@media(max-width:540px){:root[data-theme=black-blue] #page .vl-compact-collection .library-controls>.search{flex-basis:100%!important}:root[data-theme=black-blue] #page .vl-compact-collection .library-controls>.library-sort{margin-left:auto}:root[data-theme=black-blue] #page .vl-compact-collection .library-sort select{height:40px}}
/* Approved supporting-panel treatment: soft blue glow, pearl hearts and signature X. */
:root[data-theme=black-blue] .vl-compact-collection .vl-glow-panel{border:1px solid #9dbfe9!important;border-radius:18px!important;background:#101217!important;box-shadow:0 0 8px #7da7d944,inset 0 0 20px #7da7d90d!important;padding:24px 20px 18px!important;overflow:visible}
:root[data-theme=black-blue] .vl-compact-collection .vl-glow-panel>h2,:root[data-theme=black-blue] .vl-compact-collection .vl-glow-panel>h3{font:600 12px/1.5 Georgia,serif!important;letter-spacing:1.5px!important;text-transform:uppercase;text-align:center;color:#dce8ff!important;padding:8px 5px!important;margin:0 0 16px!important;background:linear-gradient(100deg,#172231,#334964,#172231)!important;border:1px solid #7da7d97a;border-radius:5px;text-shadow:0 0 9px #b5d5ff88;box-shadow:0 0 14px #7da7d933}
:root[data-theme=black-blue] .vl-compact-collection .vl-glow-panel>p{font-size:11px;text-align:center;line-height:1.7}
:root[data-theme=black-blue] .vl-compact-collection .vl-glow-panel .vl-side-accents{left:-9px;right:auto;top:45%;filter:drop-shadow(0 0 5px #7da7d9) drop-shadow(0 0 10px #7da7d980)}
.vl-pearl-hearts{pointer-events:none;user-select:none}.vl-pearl-hearts>span{position:absolute;color:#e1edff;font:10px/1 Arial;filter:drop-shadow(0 0 5px #7da7d9) drop-shadow(0 0 10px #7da7d9);pointer-events:none}.vl-pearl-hearts>span:nth-child(1){top:-5px;left:calc(50% - 5px)}.vl-pearl-hearts>span:nth-child(2){right:-4px;top:58%;font-size:8px}.vl-pearl-hearts>span:nth-child(3){bottom:-4px;left:20px;font-size:8px}
.vl-panel-flourish{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px 0 0;color:#6484aa;font:10px/1 Arial;letter-spacing:3px;pointer-events:none;user-select:none}.vl-panel-flourish img{width:12px;height:12px;object-fit:contain}
:root[data-theme=black-blue] #page .vl-glow-panel>.vl-view-stories,:root[data-theme=black-blue] #page .vl-glow-panel>button[data-route=lorebooks]{display:block;width:100%;padding:8px 4px!important;margin:12px 0 0!important;background:transparent!important;border:0!important;border-radius:3px;color:#a9c9ef!important;font:600 9px/1.6 'Segoe UI',sans-serif!important;letter-spacing:1.2px;text-transform:uppercase;box-shadow:none!important}
:root[data-theme=black-blue] #page .vl-glow-panel>.vl-view-stories:hover,:root[data-theme=black-blue] #page .vl-glow-panel>button[data-route=lorebooks]:hover{color:#eff6ff!important;text-shadow:0 0 8px #7da7d9;text-decoration:underline;text-underline-offset:5px}
@media(forced-colors:active){:root[data-theme=black-blue] .vl-compact-collection .vl-glow-panel{border-color:CanvasText!important;box-shadow:none!important}.vl-pearl-hearts>span{color:CanvasText}}

/* Approved Characters glow styling and shared compact navigation — 2026-11-14. */
:root[data-theme=black-blue] #app .shell>.sidebar{border-bottom:1px solid #6385af!important;background:linear-gradient(180deg,#121820,#101319)!important;box-shadow:0 2px 14px #7da7d92b!important}
:root[data-theme=black-blue] #app .sidebar .nav button.active{background:linear-gradient(0deg,#7da7d91c,transparent 78%)!important;border-bottom-color:#b6d5fb!important;color:#d5e8ff!important;text-shadow:0 0 8px #7da7d98c!important;box-shadow:0 3px 8px -5px #b5d4ff!important}
:root[data-theme=black-blue] #app .sidebar .nav button:hover{color:#e0edff!important;text-shadow:0 0 9px #7da7d999!important}
:root[data-theme=black-blue] .shell[data-page=characters] #page .collection-tabs button.active{background:linear-gradient(110deg,#172231,#30455e,#172231)!important;border:1px solid #7da7d999!important;box-shadow:0 0 10px #7da7d92e,inset 0 0 12px #7da7d90d!important;color:#dcecff!important;text-shadow:0 0 6px #7da7d966}
:root[data-theme=black-blue] .shell[data-page=characters] #page .library-controls :is(input,select,summary){background:linear-gradient(120deg,#10161f,#111820)!important;border:1px solid #5a769a!important;box-shadow:0 0 6px #7da7d921,inset 0 0 8px #7da7d909!important;color:#c2d7f0!important}
:root[data-theme=black-blue] .shell[data-page=characters] #page .library-controls :is(input,select,summary):hover{border-color:#90b7e8!important;box-shadow:0 0 10px #7da7d93d!important}
:root[data-theme=black-blue] .shell[data-page=characters] #page .library-controls :is(input,select,summary):focus-visible{outline:2px solid #b4d3f9;outline-offset:3px;box-shadow:0 0 13px #7da7d955!important}
:root[data-theme=black-blue] .shell[data-page=characters] #page .vl-heading-actions button{border:1px solid #6d8fb8!important;background:linear-gradient(115deg,#14202e,#26384e)!important;box-shadow:0 0 8px #7da7d933!important;color:#d3e5fb!important}
:root[data-theme=black-blue] .shell[data-page=characters] #page .vl-heading-actions button.primary{background:linear-gradient(115deg,#bdd6f4,#7da7d9 65%,#89b2e4)!important;border-color:#b4d1f4!important;color:#0d1928!important;box-shadow:0 0 12px #7da7d94a,inset 0 1px 0 #e4f1ff88!important}
:root[data-theme=black-blue] .shell[data-page=characters] #page .vl-heading-actions button:hover{box-shadow:0 0 16px #7da7d969!important;border-color:#d7e9ff!important}
:root[data-theme=black-blue] .shell[data-page=characters] #page .vl-compact-collection .character{border:1px solid #7497c4!important;box-shadow:0 0 9px #7da7d92c!important;transition:box-shadow .18s,border-color .18s}
:root[data-theme=black-blue] .shell[data-page=characters] #page .vl-compact-collection .character:hover,:root[data-theme=black-blue] .shell[data-page=characters] #page .vl-compact-collection .character:focus-within{border-color:#b1d0f5!important;box-shadow:0 0 16px #7da7d94a!important}
:root[data-theme=black-blue] .shell[data-page=characters] #page .character .card-heading h2{color:#dce8ff;text-shadow:0 0 8px #7da7d92b}
:root[data-theme=black-blue] .shell[data-page=characters] #page .character .favorite-toggle{border:1px solid #7da7d980!important;background:#132032!important;box-shadow:0 0 8px #7da7d94a!important}
:root[data-theme=black-blue] .shell[data-page=characters] #page .character .vl-link-actions>.start{color:#c1ddff!important;text-shadow:0 0 7px #7da7d94d}
:root[data-theme=black-blue] .shell[data-page=characters] #page .character .card-token-summary{border-top-color:#425b7b!important}
@media(prefers-reduced-motion:reduce){:root[data-theme=black-blue] .shell[data-page=characters] #page .character{transition:none}}
/* Let stacked tablet/mobile content determine its own height. */
:root[data-theme=black-blue] .shell[data-page=characters] #page :is(.vl-library,#character-grid,.character-shelf,.character-row.character-grid){height:auto!important;max-height:none!important;overflow:visible!important}
:root[data-theme=black-blue] .shell[data-page=characters] #page .collection-layout{grid-template-rows:auto!important;grid-auto-rows:auto!important}
/* Preview revision: tighter navigation, rounded filters and luminous card frames. */
:root[data-theme=black-blue] #app .shell>.sidebar{min-height:62px!important;padding:8px 24px!important;gap:18px!important}
:root[data-theme=black-blue] #app .sidebar .brand{gap:9px!important;margin:0 auto 0 0!important}
:root[data-theme=black-blue] #app .sidebar .brand strong{font-size:18px!important;letter-spacing:2.5px!important}
:root[data-theme=black-blue] #app .sidebar .brand small{font-size:6px!important;letter-spacing:1.5px!important}
:root[data-theme=black-blue] #app .sidebar .brand img{width:36px!important;height:36px!important}
:root[data-theme=black-blue] #app .sidebar>.nav{align-self:center!important;height:38px}
:root[data-theme=black-blue] #app .sidebar>.nav button{height:38px;padding:0 10px}
:root[data-theme=black-blue] #app .sidebar>.vl-quick-nav{height:34px}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .library-controls .tag-dropdown summary{border-radius:6px!important}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-heading-actions{gap:8px!important}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-heading-actions button{min-height:30px!important;height:30px;padding:5px 9px!important;font-size:10px!important;line-height:18px!important;gap:6px}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-heading-actions button .icon-svg{width:14px;height:14px}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .character{border:2px solid #99bce8!important;box-shadow:0 0 10px #7da7d947,inset 0 0 12px #7da7d910!important;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .character .portrait>img{transition:transform .4s ease;transform-origin:50% 35%}
@media(hover:hover) and (pointer:fine){:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .character:hover{transform:translateY(-3px);border-color:#dfedff!important;box-shadow:0 0 0 1px #7da7d94d,0 0 18px #7da7d96b,0 10px 22px #0006!important}:root[data-theme=black-blue] #app .shell[data-page=characters] #page .character:hover .portrait>img{transform:scale(1.035)}}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .character:focus-within{border-color:#dfedff!important;box-shadow:0 0 16px #7da7d966!important}
@media(max-width:1100px){:root[data-theme=black-blue] #app .shell>.sidebar{gap:6px 12px!important;padding:10px 16px!important}}
@media(max-width:540px){:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-heading-actions button{height:38px;min-height:38px!important;padding:7px 10px!important}}
@media(prefers-reduced-motion:reduce){:root[data-theme=black-blue] #app .shell[data-page=characters] #page .character,:root[data-theme=black-blue] #app .shell[data-page=characters] #page .character .portrait>img{transition:none!important;transform:none!important}}
@media(min-width:1101px){:root[data-theme=black-blue] #app .sidebar .brand{margin:0!important}}
/* Preview revision: compact inline collection views, without boxed tabs. */
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .collection-tabs{gap:0!important;padding:0!important;min-height:28px!important;align-items:center}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .collection-tabs button{position:relative;min-height:28px!important;height:28px!important;padding:4px 12px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:10px!important;font-weight:400;color:#929faf!important;line-height:18px!important}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .collection-tabs button:first-child{padding-left:0!important}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .collection-tabs button+button{border-left:1px solid #364457!important}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .collection-tabs button.active{color:#d9eaff!important;font-weight:600;background:radial-gradient(circle at 12px 50%,#cce3ff 0 2px,#7da7d966 2px 4px,transparent 6px)!important;padding-left:25px!important;text-shadow:0 0 7px #7da7d966!important}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .collection-tabs button.active:first-child{background-position:0 0!important;background-repeat:no-repeat!important;padding-left:25px!important}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .collection-tabs button:hover{color:#edf5ff!important;text-shadow:0 0 8px #7da7d977}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .collection-tabs button:focus-visible{outline:2px solid #7da7d9;outline-offset:2px;border-radius:3px!important}
@media(max-width:540px){:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .collection-tabs button{min-height:36px!important;height:36px!important;padding-right:9px!important;padding-left:9px!important;font-size:9px!important}:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .collection-tabs button.active{padding-left:23px!important}}
/* Match Marilush's 200px desktop card cap instead of stretching fractional columns. */
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .character-row.character-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),200px))!important;justify-content:start!important}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .character{width:100%!important;max-width:200px!important;min-width:0!important}
@media(max-width:540px){:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .character-row.character-grid{grid-template-columns:repeat(2,minmax(0,200px))!important}}
@media(max-width:340px){:root[data-theme=black-blue] #app .shell[data-page=characters] #page .vl-compact-collection .character-row.character-grid{grid-template-columns:minmax(0,200px)!important}}
/* Favorite state is the heart fill, not a colored button background. */
:root[data-theme=black-blue] #app .shell[data-page=characters] #page .character .favorite-toggle{background:transparent!important;border:0!important;box-shadow:none!important;color:#7da7d9!important}
.vl-favorite-heart{width:19px;height:19px;display:block;overflow:visible;filter:drop-shadow(0 1px 2px #000b)}
.vl-favorite-heart path{fill:none;stroke:#7da7d9;stroke-width:1.7;stroke-linejoin:round}
.favorite-toggle[aria-pressed=true] .vl-favorite-heart path{fill:#7da7d9}
:root[data-theme=black-blue] #app #page .character .favorite-toggle:hover .vl-favorite-heart{filter:drop-shadow(0 0 4px #7da7d988) drop-shadow(0 1px 2px #000b)}
@media(forced-colors:active){.vl-favorite-heart path{stroke:ButtonText}.favorite-toggle[aria-pressed=true] .vl-favorite-heart path{fill:Highlight}}
/* Page footer stays in the scrolling content, never over the chat composer. */
:root[data-theme=black-blue] .main>.content{display:flex;flex-direction:column}
:root[data-theme=black-blue] .main>.content>#page{width:100%;margin:0 auto;flex:1 0 auto}
.vl-site-footer{width:100%;max-width:1500px;margin:32px auto 0;flex:0 0 auto;padding:0 2px 4px;color:#8e9bad}
.vl-footer-rule{display:flex;align-items:center;gap:12px;margin-bottom:15px;pointer-events:none}.vl-footer-rule::before,.vl-footer-rule::after{content:'';height:1px;flex:1;background:linear-gradient(90deg,transparent,#7da7d95c)}.vl-footer-rule::after{transform:scaleX(-1)}.vl-footer-rule img{width:12px;height:12px;opacity:.8}
.vl-footer-content{display:flex;align-items:center;gap:20px}.vl-footer-brand{flex-shrink:0;font:12px Georgia,serif;letter-spacing:1px;color:#b3c4db}.vl-footer-brand span{display:block;font:8px/1.5 'Segoe UI',sans-serif;letter-spacing:1px;margin-top:4px;color:#8996aa}
.vl-footer-content p{margin:0 0 0 auto;font:10px/1.7 'Segoe UI',sans-serif;color:#929fb1}
:root[data-theme=black-blue] .main>.content .vl-site-footer button{flex-shrink:0;background:transparent!important;border:0!important;border-radius:3px;padding:6px!important;min-height:32px!important;color:#a9c8ed;font-size:11px!important;box-shadow:none!important;white-space:nowrap}
:root[data-theme=black-blue] .main>.content .vl-site-footer button:hover{color:#e0eeff;text-shadow:0 0 6px #7da7d955;text-decoration:underline;text-underline-offset:4px}
@media(max-width:650px){.vl-footer-content{flex-wrap:wrap;gap:12px}.vl-footer-brand{flex:1}.vl-footer-content p{order:3;width:100%;margin:0;font-size:10px}:root[data-theme=black-blue] .main>.content .vl-site-footer button{min-height:40px!important}}
/* Standalone Characters content owns scrolling; legacy library clipping hid the footer. */
:root[data-theme=black-blue] #app .shell[data-page=characters]>.main>.content{overflow-x:hidden!important;overflow-y:auto!important;min-height:0;overscroll-behavior-y:contain}
:root[data-theme=black-blue] #app .shell[data-page=characters]>.main>.content>#page{height:auto!important;min-height:0!important}
:root[data-theme=black-blue] #app .shell[data-page=characters] #page>.vl-compact-collection{height:auto!important;min-height:0!important}
/* Theme alerts: readable charcoal-blue information and crimson errors. */
:root[data-theme=black-blue] :is(.notice,.toast:not(.error)){background:linear-gradient(110deg,#14202d,#111820)!important;border:1px solid #577ba8!important;border-left:3px solid #7da7d9!important;border-radius:8px;color:#d4e3f5!important;box-shadow:0 0 9px #7da7d926!important}
:root[data-theme=black-blue] :is(.error,.toast.error){background:linear-gradient(110deg,#2c1420,#1c131a)!important;border:1px solid #834357!important;border-left:3px solid #c04b6b!important;border-radius:8px;color:#f2ccd6!important;box-shadow:0 0 9px #b83b6026!important}
:root[data-theme=black-blue] :is(.notice,.error){line-height:1.6;padding:12px 14px}
:root[data-theme=black-blue] .error:empty{display:none}
:root[data-theme=black-blue] .story-content-warnings.vl-warnings-accepted{border:0!important;background:none!important;box-shadow:none!important;padding:0!important}
.story-content-warnings.vl-warnings-accepted .notice{margin:0}
.chat-configuration-form{max-width:820px;margin:0 auto;display:grid;gap:12px}
.configuration-intro,.configuration-note{color:#a9b7c9;font-size:12px;line-height:1.65;margin:0 0 12px}
.configuration-sections{border:1px solid #7da7d9;border-radius:12px;background:linear-gradient(120deg,#141b24,#101319);box-shadow:0 0 12px #7da7d92b,inset 0 0 14px #7da7d90b;overflow:clip}
.configuration-sections>.configuration-section{border:0;border-radius:0;background:none;margin:0;padding:0}
.configuration-sections>.configuration-section+.configuration-section{border-top:1px solid #304259}
.configuration-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:11px 16px;color:#d9e8fa;font-size:13px;font-weight:600;list-style:none}
.configuration-section>summary::after{content:'+';color:#7da7d9;font-size:18px}
.configuration-section[open]>summary::after{content:'−'}
.configuration-section[open]>summary{background:linear-gradient(90deg,#7da7d920,#7da7d906);color:#e2edfc;text-shadow:0 0 9px #7da7d949}
.configuration-section>summary::after{text-shadow:0 0 8px #7da7d9aa}
.configuration-section>summary span{margin-left:auto;font-size:11px;color:#91a8c5;font-weight:400}
.configuration-section>summary:hover,.configuration-section>summary:focus-visible{background:#1c2939;outline:2px solid #7da7d9;outline-offset:-3px;border-radius:9px}
.configuration-section-body{padding:2px 16px 16px;display:grid;gap:12px}
.configuration-section-body .configuration-note{margin:0}
.configuration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.chat-configuration-form label{font-size:12px;min-width:0;margin:0;line-height:1.6}
.chat-configuration-form :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;width:100%;min-width:0;margin-top:5px;padding:8px 10px;border:1px solid #405875;border-radius:6px;background:#0e1219;color:#d9e8fa;font-size:12px}
.chat-configuration-form :is(input,select,textarea):focus-visible{outline:2px solid #7da7d9;outline-offset:2px;box-shadow:0 0 10px #7da7d933}
.chat-configuration-form input[type=checkbox]{accent-color:#7da7d9}
.chat-configuration-form .configuration-subsection{border-top:1px solid #2c3d51;padding:8px 0 0;margin:0}
.configuration-subsection>summary{cursor:pointer;color:#9fc0e8;font-size:12px;padding:4px 0;margin:0}
.configuration-subsection[open]>summary{margin-bottom:12px}
.configuration-subsection[open]>.configuration-grid,.configuration-subsection[open]>label{margin-bottom:12px}
.configuration-save{padding:10px 0 2px;display:grid;gap:10px}
.configuration-save p{font-size:12px;color:#9cb7d9;margin:0}
.configuration-save button{justify-self:end;padding:9px 15px;border-radius:6px}
.configuration-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.configuration-actions .primary{background:linear-gradient(110deg,#a0c2eb,#7da7d9)!important;border:1px solid #acd0fa!important;color:#101824!important;box-shadow:0 0 9px #7da7d933}
.configuration-actions button:focus-visible{outline:2px solid #b5d3fa;outline-offset:3px}
.configuration-inheritance{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #466182;border-radius:8px;margin-bottom:16px;background:#141d29}
.configuration-inheritance small{display:block;color:#9bb3d2;font-size:11px;line-height:1.6}
.configuration-inheritance strong{font-size:12px}
.configuration-inheritance button{padding:7px 10px;font-size:11px;border-radius:6px}
.chat-configuration-form [hidden]{display:none!important}
@media(max-width:540px){.configuration-grid{grid-template-columns:1fr}.configuration-section>summary{padding:12px}.configuration-section>summary span{display:none}.configuration-section-body{padding:2px 12px 14px}.configuration-inheritance{align-items:flex-start;flex-wrap:wrap}.configuration-save button{width:100%}}

/* Approved story sidebar and enchanted tracker. */
.vl-story-sidebar .enchanted-tracker{position:relative;isolation:isolate;margin:14px 12px;padding:17px 15px 11px!important;border:1px solid #83ade1!important;border-radius:12px 12px 24px 12px;box-shadow:0 0 14px #7da7d936,inset 0 0 19px #7da7d911;background:radial-gradient(ellipse at 50% 35%,#3357794a,transparent 75%),linear-gradient(150deg,#141c28,#10151e);overflow:hidden}
.vl-story-sidebar .enchanted-tracker:before{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(105deg,transparent 15%,#b8d8ff26 45%,transparent 75%);transform:translateX(-120%);opacity:0}
.vl-story-sidebar .enchanted-tracker.syncing:before{animation:tracker-shimmer 1.35s ease-out 1}
@keyframes tracker-shimmer{0%{transform:translateX(-120%);opacity:0}25%{opacity:1}100%{transform:translateX(120%);opacity:0}}
.tracker-title{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #7da7d978;border-radius:5px;padding:10px 6px;background:linear-gradient(90deg,#22354c80,#314763a0,#22354c80);box-shadow:0 0 12px #7da7d926,inset 0 0 9px #a5c9f015}
.tracker-title h3{font:600 13px/1.4 Georgia,serif;letter-spacing:2px!important;color:#e0edff!important;text-shadow:0 0 7px #afcffb99,0 0 17px #7da7d96b;white-space:nowrap}
.tracker-title>span{width:15px;height:1px;background:linear-gradient(90deg,transparent,#bddbff);box-shadow:0 0 5px #7da7d944}.tracker-title>span:last-child{transform:rotate(180deg)}
.tracker-sync{text-align:center;margin:8px 0 15px}.tracker-sync .status{font-size:9px;letter-spacing:.6px;color:#a7c3e6}
.vl-story-sidebar .enchanted-tracker .tracker-grid{gap:14px;margin:0;text-align:center;grid-template-columns:1fr 1.15fr}
.vl-story-sidebar .enchanted-tracker .tracker-grid>div+div{border-left:1px solid #7da7d930;padding-left:10px}
.vl-story-sidebar .enchanted-tracker .tracker-grid span{text-transform:uppercase;letter-spacing:1.3px;font-size:8px;color:#8da9cc;margin-bottom:5px}
.vl-story-sidebar .enchanted-tracker .tracker-grid b{font:15px/1.5 Georgia,serif;color:#dbe9fc;text-shadow:0 0 12px #7da7d947;display:block}
.vl-story-sidebar .enchanted-tracker .tracker-grid small{display:block;font-size:9px;color:#94accb;margin-top:4px}
.rune-divider{display:flex;align-items:center;gap:10px;justify-content:center;margin:15px 0 11px}.rune-divider i{height:1px;width:85px;background:linear-gradient(90deg,transparent,#7da7d980)}.rune-divider i:last-child{transform:rotate(180deg)}.rune-divider img{width:11px;height:11px;object-fit:contain;filter:drop-shadow(0 0 5px #7da7d9)}
.vl-story-sidebar .enchanted-tracker .affinity{margin-top:0;color:#8da9cc;font-size:9px;align-items:center}.affinity b{display:block;color:#d1e5ff;font:14px/1.5 Georgia;letter-spacing:.4px}.affinity strong{font:18px Georgia;color:#cce3ff;text-shadow:0 0 9px #7da7d973}
.enchanted-meter{position:relative;height:4px;margin:13px 7px 14px;background:#283545;border-radius:10px;box-shadow:inset 0 0 3px #0008}.enchanted-meter i{display:block;width:28%;height:100%;border-radius:10px;background:linear-gradient(90deg,#3c618b,#9fc5f4 75%,#e1eeff);box-shadow:0 0 7px #7da7d980}.enchanted-meter img{position:absolute;left:28%;top:50%;transform:translate(-50%,-50%);width:15px;height:15px;object-fit:contain;filter:drop-shadow(0 0 4px #9ec5f5) drop-shadow(0 0 8px #7da7d97a)}
.tracker-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#8ca5c5;font:italic 10px Georgia;min-height:27px}.tracker-foot button{font:16px/1 'Segoe UI';width:27px;height:27px;padding:0;border:1px solid #52729b66;background:#7da7d909;border-radius:50%;color:#a9c8ef}.tracker-foot button:hover{box-shadow:0 0 9px #7da7d945}
@media(prefers-reduced-motion:reduce){.vl-story-sidebar .enchanted-tracker.syncing:before{animation:none}}
:root[data-theme=black-blue] .chat-layout:not(.no-drawer){grid-template-columns:minmax(0,1fr) 356px!important}
:root[data-theme=black-blue] .chat-layout.no-drawer{grid-template-columns:minmax(0,1fr)!important}
:root[data-theme=black-blue] .vl-story-sidebar{border:0!important;background:transparent!important;min-height:0;overflow:hidden}
/* Keep every detailed story tool inside the same padded, single-scroll rail. */
:root[data-theme=black-blue] .vl-story-sidebar .vl-tool-content{padding:4px 16px 20px;min-width:0;overflow-wrap:anywhere}
:root[data-theme=black-blue] .vl-story-sidebar .vl-tool-content :is(form,section,fieldset,details,div,label){min-width:0;max-width:100%;box-sizing:border-box}
:root[data-theme=black-blue] .vl-story-sidebar .vl-tool-content :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-width:0;max-width:100%;box-sizing:border-box}
:root[data-theme=black-blue] .vl-story-sidebar .vl-tool-content :is(.grid.two,.memory-pair){grid-template-columns:minmax(0,1fr);gap:12px}
:root[data-theme=black-blue] .vl-story-sidebar .vl-tool-content button{white-space:normal;overflow-wrap:anywhere;max-width:100%}
:root[data-theme=black-blue] .vl-story-sidebar .vl-tool-content .configuration-inheritance{margin:0 0 14px}
.vl-summary-review{padding:14px 0;border-top:1px solid #7da7d93d}.vl-summary-review h4{margin:0 0 8px;color:#c7ddf7}.vl-summary-review .stack{gap:8px}
/* Approved Story Tools 01: Enchanted Frame. Shared with their review dialogs. */
:root[data-theme=black-blue] .vl-enchanted-tool{position:relative;padding:14px!important;margin:4px 0 10px;border:1px solid #9ac1f0!important;border-radius:12px 12px 22px 12px;background:radial-gradient(ellipse at top,#24364b44,transparent 70%),#10151c!important;box-shadow:0 0 14px #7da7d936,inset 0 0 20px #7da7d90b}
.vl-enchanted-tool:before{content:'';position:absolute;left:-7px;top:91px;width:13px;height:13px;background:url('/accent-x.png') center/contain no-repeat;filter:drop-shadow(0 0 5px #7da7d9);pointer-events:none}
:root[data-theme=black-blue] :is(.vl-enchanted-tool .vl-tool-title,.vl-story-tool-dialog .modal-head){display:flex;align-items:center;gap:9px;border:1px solid #668db8!important;border-radius:5px;padding:10px!important;background:linear-gradient(100deg,#1a293c,#283c56,#182535)!important;box-shadow:0 0 12px #7da7d92b}
:root[data-theme=black-blue] .vl-enchanted-tool .vl-tool-title h3{font:600 12px/1.5 Georgia,serif!important;letter-spacing:1.2px;text-transform:uppercase;color:#e0edff!important;text-shadow:0 0 7px #afcffb88;margin:0!important;background:none!important;-webkit-text-fill-color:currentColor}
.vl-tool-icon{width:19px;height:19px;flex:0 0 19px;color:#aecdf2;filter:drop-shadow(0 0 5px #7da7d96b)}
:root[data-theme=black-blue] .vl-enchanted-tool .memory-intro{padding:0!important;margin:0!important;background:none!important;border:0!important}
:root[data-theme=black-blue] .vl-enchanted-tool .memory-intro-title{display:block!important;margin:0 0 10px!important}
.vl-tool-ornament{display:flex;align-items:center;gap:10px;margin:14px 0 18px;pointer-events:none}.vl-tool-ornament i{height:1px;flex:1;background:linear-gradient(90deg,transparent,#7da7d96b)}.vl-tool-ornament i:last-child{transform:rotate(180deg)}.vl-tool-ornament img{width:12px;height:12px;filter:drop-shadow(0 0 5px #7da7d9)}
:root[data-theme=black-blue] :is(.vl-enchanted-tool,.vl-story-tool-dialog) :is(p,.muted,.memory-note){color:#a9bed9!important;font-size:11px;line-height:1.75}
:root[data-theme=black-blue] .vl-enchanted-tool .memory-note{background:transparent!important;border:0!important;padding:0!important;margin:12px 0!important}
:root[data-theme=black-blue] :is(.vl-enchanted-tool,.vl-story-tool-dialog) button:not(.drawer-close){font:11px/1.4 'Segoe UI',sans-serif!important;min-height:34px;padding:8px 10px!important;border:1px solid #4d6c8f!important;border-radius:6px;background:#141e2b!important;color:#bad6f8!important;white-space:normal;overflow-wrap:anywhere;box-shadow:none;transition:box-shadow .18s,border-color .18s}
:root[data-theme=black-blue] :is(.vl-enchanted-tool,.vl-story-tool-dialog) :is(button.primary,button[type=submit],[data-story-ext=add],[data-story-ext=director]){background:linear-gradient(110deg,#2a405b,#1a293a)!important;border-color:#7da7d9!important;color:#e0edff!important;box-shadow:0 0 8px #7da7d925}
:root[data-theme=black-blue] :is(.vl-enchanted-tool,.vl-story-tool-dialog) button:hover:not(:disabled){border-color:#bedbff!important;box-shadow:0 0 12px #7da7d94d!important}
:root[data-theme=black-blue] :is(.vl-enchanted-tool,.vl-story-tool-dialog) :is(button,summary,input,textarea,select):focus-visible{outline:2px solid #b4d4fa!important;outline-offset:3px}
:root[data-theme=black-blue] :is(.vl-enchanted-tool,.vl-story-tool-dialog) :is(.danger,[data-story-ext=delete],[data-story-action=memory-inaccurate]){border-color:#9d536a!important;color:#f0c1cd!important;background:#321b26!important}
:root[data-theme=black-blue] :is(.vl-enchanted-tool,.vl-story-tool-dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#0b1017!important;border:1px solid #425a76!important;border-radius:6px;padding:8px;color:#dce7f5!important;min-width:0;max-width:100%;box-sizing:border-box;font-size:11px}
:root[data-theme=black-blue] :is(.vl-enchanted-tool,.vl-story-tool-dialog) input[type=checkbox]{accent-color:#7da7d9}
:root[data-theme=black-blue] :is(.vl-enchanted-tool,.vl-story-tool-dialog) :is(article,.story-review-controls){padding:12px!important;border:1px solid #3d5570!important;border-radius:7px;background:#121b26!important;margin:14px 0!important;min-width:0}
:root[data-theme=black-blue] :is(.vl-enchanted-tool,.vl-story-tool-dialog) :is(article h3,article h4){font:14px/1.5 Georgia,serif!important;color:#d4e4f9!important;margin:0 0 8px!important}
:root[data-theme=black-blue] .vl-enchanted-tool .story-record-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}
:root[data-theme=black-blue] :is(.vl-enchanted-tool,.vl-story-tool-dialog) details{margin:16px 0 12px!important;padding:10px 0 0!important;border:0!important;border-top:1px solid #354b65!important;border-radius:0!important;background:transparent!important}
:root[data-theme=black-blue] :is(.vl-enchanted-tool,.vl-story-tool-dialog) summary{padding:5px 2px!important;color:#abcdf3!important;font-size:11px}
:root[data-theme=black-blue] .vl-enchanted-tool :is(form,.story-review-controls){display:grid;gap:12px}
:root[data-theme=black-blue] .vl-enchanted-tool .tools-search-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
:root[data-theme=black-blue] dialog.vl-story-tool-dialog{border:1px solid #9ac1f0!important;border-radius:14px 14px 24px 14px;background:#10151c!important;box-shadow:0 0 20px #7da7d940;max-width:calc(100vw - 24px);overflow:auto}
:root[data-theme=black-blue] .vl-story-tool-dialog .modal-head{margin:16px 16px 0;position:relative}
:root[data-theme=black-blue] .vl-story-tool-dialog .modal-head h2{display:flex;align-items:center;gap:10px;font:600 16px/1.5 Georgia,serif!important;letter-spacing:1.3px;text-transform:uppercase;color:#e0edff!important;text-shadow:0 0 7px #afcffb88;background:none!important;-webkit-text-fill-color:currentColor;min-width:0}
:root[data-theme=black-blue] .vl-story-tool-dialog .modal-head h2:before{display:none!important}
:root[data-theme=black-blue] .vl-story-tool-dialog .modal-body{padding:0 20px 22px!important;overflow-wrap:anywhere}
.vl-story-tool-dialog .modal-body>.vl-tool-ornament{margin:18px 0}.vl-story-tool-dialog :is(.row,.form-actions,.extension-dialog-actions){flex-wrap:wrap;gap:9px}.vl-story-tool-dialog :is(.story-memory-text,.code-block){white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;background:#0b1017;border-radius:6px;padding:12px;color:#bed2ed}.vl-story-tool-dialog .vl-export-option button{margin-top:8px}
:root[data-theme=black-blue] .vl-story-tool-dialog .modal-head h2{margin:0!important;letter-spacing:1.3px!important;word-spacing:2px!important}
:root[data-theme=black-blue] .vl-story-tool-dialog .modal-head h2 span{font:inherit!important;letter-spacing:inherit!important;color:inherit!important;text-shadow:0 0 7px #afcffb55!important}
:root[data-theme=black-blue] .vl-story-tool-dialog .modal-head>button{flex:0 0 auto;width:auto;min-width:48px;white-space:nowrap;word-break:normal}
:root[data-theme=black-blue] .vl-story-tool-dialog.story-extension-dialog{height:fit-content!important;max-height:90dvh!important;margin:auto!important}
:root[data-theme=black-blue] .vl-story-tool-dialog.story-extension-dialog .modal-body>form{flex:none!important}
:root[data-theme=black-blue] .vl-story-tool-dialog.story-extension-dialog .modal-body{flex:0 1 auto!important;display:block!important}
:root[data-theme=black-blue] .vl-story-tool-dialog .extension-dialog-actions{margin-top:18px!important}
:root[data-theme=black-blue] .vl-enchanted-tool button.review-latest{background:linear-gradient(110deg,#2a405b99,#1a293a99) #192a3e!important}
:root[data-theme=black-blue] .vl-enchanted-tool button.review-all{background:linear-gradient(110deg,#34557899,#22354c99) #2a4360!important;border-color:#92b9e9!important}
@media(max-width:600px){:root[data-theme=black-blue] .vl-story-tool-dialog .modal-head h2{font-size:12px!important}:root[data-theme=black-blue] .vl-story-tool-dialog .modal-head{margin:12px 12px 0}:root[data-theme=black-blue] .vl-story-tool-dialog .modal-body{padding:0 16px 20px!important}.vl-story-tool-dialog .grid.two{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){:is(.vl-enchanted-tool,.vl-story-tool-dialog) button{transition:none!important}}
:root[data-theme=black-blue] .vl-story-sidebar>.drawer{padding:0!important;margin:8px 8px 8px 0;border:1px solid #729bc9!important;border-radius:14px;background:linear-gradient(145deg,#141b25,#101318 60%)!important;box-shadow:0 0 12px #7da7d925;overflow:auto;min-height:0;max-height:100%;width:auto}
.vl-story-head{display:flex;align-items:center;gap:10px;padding:16px 18px!important;margin:0!important;border-bottom:1px solid #3b506b}.vl-story-head h2{font:600 15px Georgia;letter-spacing:2px;text-transform:uppercase;margin:0;color:#dceaff;text-shadow:0 0 10px #7da7d964}.vl-story-head small{color:#8fa9c8;font-size:10px}.vl-story-head .drawer-close{margin-left:auto;padding:7px;display:flex!important}
.vl-story-sidebar #drawer-body{padding:0!important}.vl-story-sidebar #drawer-body>.configuration-inheritance{margin:12px}
.vl-story-sidebar .tracker-summary{width:auto!important;min-width:0!important;flex:none!important;max-height:none!important;transform:none!important}
.vl-story-sidebar .tracker-summary h3{margin:0;text-transform:uppercase}.vl-story-sidebar .tracker-grid{display:grid}.vl-story-sidebar .tracker-grid span{display:block}.vl-story-sidebar .affinity{display:flex;justify-content:space-between}.vl-story-sidebar .tracker-foot button{width:auto;height:auto;padding:5px 7px;font:10px 'Segoe UI';border-radius:5px}.vl-story-sidebar .status:before{content:'';display:inline-block;width:5px;height:5px;background:#a4cafa;border-radius:50%;margin:0 6px 1px 0;box-shadow:0 0 7px #7da7d9}.vl-story-sidebar .status.is-live:before{animation:vl-status-breathe 3.2s ease-in-out infinite}
@keyframes vl-status-breathe{0%,100%{opacity:.55;box-shadow:0 0 3px #7da7d966;transform:scale(.85)}50%{opacity:1;box-shadow:0 0 10px #a9cfffaa;transform:scale(1.15)}}
.vl-overview-block{padding:15px 18px;border-bottom:1px solid #2c3d52}.vl-overview-block h3{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:#c5dbf7;margin:0 0 10px}.vl-token-total{display:flex;justify-content:space-between;align-items:center;gap:10px}.vl-token-total strong{font:22px Georgia;color:#dfedff}.vl-token-total span{font-size:10px;color:#98acc5}.vl-token-meter{height:3px;border-radius:5px;background:#263343;margin:9px 0}.vl-token-meter i{height:100%;display:block;background:linear-gradient(90deg,#375172,#aacdf8)}.vl-token-details{font-size:10px;color:#99afcb}.vl-token-details dl{display:grid;grid-template-columns:1fr auto;gap:5px;margin:10px 0}.vl-token-details dd{margin:0}
.vl-active-books{list-style:none;padding:0;margin:8px 0 12px;display:grid;gap:9px}.vl-active-books li{display:flex;gap:7px;align-items:center;font-size:11px}.vl-active-books li>span{overflow-wrap:anywhere;min-width:0}.vl-active-books i{width:5px;height:5px;flex-shrink:0;border:1px solid #71849d;border-radius:50%}.vl-active-books i.contributing{background:#a1c9fa;box-shadow:0 0 5px #7da7d950}.vl-active-books small{margin-left:auto;font-size:9px;color:#8da6c7;flex-shrink:0}.vl-side-note-text{font-size:10px!important;color:#8ca2bf;line-height:1.6;margin:9px 0!important}
.vl-story-sidebar .vl-story-fold{border:0;border-bottom:1px solid #2c3d52;margin:0;padding:0;border-radius:0;background:none}.vl-story-fold>summary{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;list-style:none;font-size:11px;font-weight:600;cursor:pointer}.vl-story-fold>summary:after{content:'+';color:#8eb9ed;font-size:16px;text-shadow:0 0 7px #7da7d980}.vl-story-fold[open]>summary{background:linear-gradient(90deg,#7da7d91d,transparent);color:#dbeaff}.vl-story-fold[open]>summary:after{content:'−'}.vl-fold-body{padding:10px 18px 17px}.vl-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.vl-story-sidebar .vl-tool-grid button{font-size:10px;text-align:left;padding:7px;min-width:0}.vl-tool-return{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:12px;border-bottom:1px solid #405875;margin-bottom:12px;font-size:12px}
.vl-story-sidebar form[data-sidebar-form]{display:grid;gap:10px}.vl-story-sidebar form[data-sidebar-form] label{margin:0;font-size:11px;min-width:0}.vl-story-sidebar form[data-sidebar-form] :is(select,textarea,input:not([type=range]):not([type=checkbox])){min-width:0;width:100%;font-size:11px;border-radius:6px;padding:7px 8px}.vl-story-sidebar form[data-sidebar-form] button{padding:7px 10px;font-size:11px;border-radius:6px;min-width:0}.vl-story-sidebar form[data-sidebar-form] .primary{background:linear-gradient(110deg,#a0c2eb,#7da7d9)!important;color:#101824!important;border:1px solid #acd0fa!important;box-shadow:0 0 9px #7da7d933}
.vl-story-sidebar [data-background-preview]{overflow:hidden;border-radius:7px}.vl-story-sidebar .background-choice-preview{width:100%;height:72px;object-fit:cover}.vl-upload{display:grid;gap:4px}.vl-story-sidebar .vl-story-slider{display:block!important;position:relative;margin-top:6px!important;font-size:11px}.vl-story-slider output{float:right;color:#bdd9fc;font-size:10px}.vl-story-sidebar .vl-story-slider input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:30px;margin:0;padding:0;border:0;background:transparent!important;cursor:pointer;box-shadow:none}.vl-story-slider input::-webkit-slider-runnable-track{height:4px;border-radius:10px;background:linear-gradient(90deg,#355577,#97bdec var(--range-fill),#293341 var(--range-fill));box-shadow:0 0 6px #7da7d928}.vl-story-slider input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin-top:-6px;border:0;border-radius:0;background:url('/accent-x.png') center/contain no-repeat;filter:drop-shadow(0 0 4px #7da7d9) drop-shadow(0 0 8px #7da7d975)}.vl-story-slider input::-moz-range-track{height:4px;background:#293341}.vl-story-slider input::-moz-range-progress{height:4px;background:#97bdec}.vl-story-slider input::-moz-range-thumb{border:0;border-radius:0;width:16px;height:16px;background:url('/accent-x.png') center/contain no-repeat;filter:drop-shadow(0 0 5px #7da7d9)}.vl-slider-ends{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.8px;text-transform:uppercase;color:#7f95b0}.vl-story-sidebar :is(button,summary,input,select,textarea):focus-visible{outline:2px solid #acd0fa;outline-offset:2px}.vl-story-sidebar .lore-dropdown{min-width:0}.vl-story-sidebar [hidden]{display:none!important}
@media(max-width:1200px){:root[data-theme=black-blue] .chat-layout:not(.no-drawer){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}:root[data-theme=black-blue] .vl-story-sidebar{position:static!important;overflow:visible;grid-row:auto}:root[data-theme=black-blue] .vl-story-sidebar>.drawer{position:fixed!important;margin:0!important;width:min(356px,calc(100vw - 20px))!important;max-height:calc(100dvh - var(--workspace-top,80px) - 70px)!important}.vl-story-sidebar .vl-story-head{position:sticky;top:0;z-index:2;background:#11161e}}
@media(prefers-reduced-motion:reduce){.vl-story-sidebar .status.is-live:before{animation:none!important}.vl-story-sidebar .enchanted-tracker:before{animation:none!important}}
:root[data-theme=black-blue] #drawer-body .vl-story-fold>summary{padding:12px 18px!important;margin:0!important;min-height:44px;font-size:11px!important;line-height:1.6}
:root[data-theme=black-blue] #drawer-body .vl-token-details{border:0!important;background:none!important;padding:0!important;margin:0!important;border-radius:0}
:root[data-theme=black-blue] #drawer-body .vl-token-details>summary{padding:4px 0!important;margin:0!important}
:root[data-theme=black-blue] #drawer-body .vl-fold-body{padding:10px 18px 17px!important}
:root[data-theme=black-blue] .vl-story-sidebar .vl-story-slider input[type=range]{min-height:30px!important;height:30px!important}
/* Approved 03: compact split message actions, with secondary actions in a top-layer menu. */
:root[data-theme=black-blue] .message-actions.vl-split-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px;border-top:1px solid #7da7d92e;padding-top:10px;margin-top:14px;min-width:0}
.vl-message-primary,.vl-reply-controls,.vl-reply-pager{display:flex;align-items:center;gap:5px;min-width:0}.vl-reply-controls{border-left:1px solid #7da7d940;padding-left:8px;margin-left:auto}.vl-reply-pager{gap:1px}.vl-reply-count{font-size:10px;color:#b7cdeb;min-width:34px;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
:root[data-theme=black-blue] .vl-split-actions button{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;min-height:32px!important;height:32px;width:auto!important;min-width:0!important;padding:6px!important;margin:0!important;border:1px solid transparent!important;border-radius:4px;background:transparent!important;color:#aacbf3!important;font:11px/1.4 'Segoe UI',sans-serif!important;white-space:nowrap;box-shadow:none}
:root[data-theme=black-blue] .vl-split-actions button svg{width:15px;height:15px;flex:0 0 15px}.vl-message-more>span:first-child{font-size:17px;line-height:1;letter-spacing:1px}
:root[data-theme=black-blue] .vl-split-actions :is(.vl-regenerate,.vl-edit-action){border-color:#7da7d94f!important;background:#7da7d914!important;color:#d2e5ff!important}
:root[data-theme=black-blue] .vl-split-actions .vl-reply-pager button,:root[data-theme=black-blue] .vl-split-actions .vl-regenerate{width:32px!important;flex:0 0 32px}
:root[data-theme=black-blue] :is(.vl-split-actions,.vl-message-menu) button:hover:not(:disabled){background:#7da7d91a!important;border-color:#7da7d9!important;box-shadow:0 0 8px #7da7d926!important}
:root[data-theme=black-blue] :is(.vl-split-actions,.vl-message-menu) button:focus-visible{outline:2px solid #a9ceff;outline-offset:2px}
:root[data-theme=black-blue] .vl-split-actions button:disabled{opacity:.35;cursor:default}
.vl-greeting-lock{font-size:9px!important;color:#8d9bad;line-height:1.5}
:root[data-theme=black-blue] .vl-message-menu{position:fixed;inset:auto;margin:0;width:220px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 24px);overflow:auto;padding:8px;border:1px solid #7da7d98c;border-radius:8px;background:#131a24;color:#dce7f5;box-shadow:0 8px 28px #000a,0 0 10px #7da7d926}
.vl-message-menu:not(:popover-open){display:none}.vl-message-menu:popover-open{display:grid;gap:4px}
:root[data-theme=black-blue] .vl-message-menu button{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;min-height:36px!important;width:100%!important;height:auto!important;padding:8px!important;border:1px solid transparent!important;border-radius:4px;background:transparent!important;color:#aacbf3!important;font:11px/1.5 'Segoe UI',sans-serif!important;text-align:left;white-space:normal}
:root[data-theme=black-blue] .vl-message-menu button svg{width:15px;height:15px;flex:0 0 15px}.vl-message-menu .message-action-label{display:inline!important}
:root[data-theme=black-blue] .vl-message-menu button.vl-destructive{color:#dea0b1!important}.vl-message-menu .vl-destructive:first-of-type{border-top:1px solid #714355!important}
@media(max-width:760px){:root[data-theme=black-blue] .vl-split-actions button{height:40px;min-height:40px!important;padding:5px!important}.vl-split-actions .vl-more-label{display:none}.vl-message-primary{gap:3px}.vl-reply-controls{gap:2px;padding-left:5px}.vl-reply-count{min-width:32px}:root[data-theme=black-blue] .vl-split-actions .vl-reply-pager button,:root[data-theme=black-blue] .vl-split-actions .vl-regenerate{width:34px!important;flex-basis:34px}:root[data-theme=black-blue] .vl-message-menu button{min-height:40px!important}.vl-message-more{min-width:32px!important}}
@media(max-width:350px){.vl-bookmark-action>span{display:none}}
/* Approved 04: framed conversation title and compact extension controls. */
:root[data-theme=black-blue] .vl-chat-header{display:flex;gap:12px;height:48px!important;min-height:48px!important;padding:5px 20px!important;background:var(--bg,#0c0d11)!important;box-shadow:none!important;border-bottom:0!important}
.vl-chat-header>.row{min-width:0;flex:1;gap:10px}.vl-chat-header>.row::after{content:'';height:1px;flex:1;min-width:12px;background:linear-gradient(90deg,#7da7d94a,transparent)}
:root[data-theme=black-blue] .vl-chat-header .chat-name{display:flex;align-items:center;gap:8px;min-width:0;max-width:min(65vw,600px);padding:6px 10px;border:1px solid #7da7d975;border-radius:5px;background:linear-gradient(110deg,#7da7d925,#11141a);box-shadow:0 0 10px #7da7d91c;font:600 14px Georgia,serif;color:#dce9fb}
.vl-chat-header .chat-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vl-chat-header .chat-name img{width:15px;height:15px;flex:none;filter:drop-shadow(0 0 5px #7da7d9)}
.vl-chat-header .topbar-right{flex:none;gap:6px!important}.vl-chat-header .topbar-right>button{height:32px!important;min-height:32px!important;padding:4px 8px!important;background:transparent!important;border-color:transparent!important;font-size:11px}.vl-chat-header .topbar-right>button:hover{background:#7da7d916!important;border-color:#7da7d965!important}.vl-chat-header .topbar-right>[data-action=drawer]{border-left:1px solid #7da7d950!important;border-radius:0;margin-left:3px}.vl-chat-header button:focus-visible{outline:2px solid #acd0fa;outline-offset:1px}
:root[data-theme=black-blue] .lv-panel{top:108px;bottom:auto;max-height:calc(100dvh - 124px);width:min(360px,calc(100vw - 20px));border:1px solid #9ec4ed;border-radius:14px;background:#101319;box-shadow:0 0 15px #7da7d930,0 12px 36px #0008;color:#c8d9ed}
:root[data-theme=black-blue] .lv-panel>header{padding:10px 12px;gap:6px;background:linear-gradient(110deg,#7da7d91c,#101319);border-bottom:1px solid #7da7d944}.lv-panel #lovense-title{font:600 15px Georgia,serif;letter-spacing:.5px;color:#e2edff;text-shadow:0 0 8px #7da7d950}.lv-panel>header small{font-size:9px;margin-top:3px}.lv-panel [data-lovense=close]{width:30px;flex:none;padding:5px!important}.lv-panel [data-lovense=close] img{width:16px;height:16px;filter:drop-shadow(0 0 4px #7da7d9)}
:root[data-theme=black-blue] .lv-panel button{min-height:32px;font-size:11px;padding:6px 9px;border-radius:6px;border:1px solid #7da7d94a;background:#131922;color:#c6dcf5}.lv-panel button:not(:disabled):hover{border-color:#9dc4f4;box-shadow:0 0 8px #7da7d92b}.lv-panel button:disabled{opacity:.45}.lv-panel button.danger{color:#e4a5b7;border-color:#b85a744f;background:#28151c}.lv-panel button.primary{background:#7da7d9;color:#0e1723}.lv-panel :is(button,input,select,summary):focus-visible{outline:2px solid #acd0fa;outline-offset:2px}
.lv-panel .lv-panel-body{padding:10px 12px;scrollbar-width:thin;scrollbar-color:#7da7d980 #101319}.lv-panel .small{font-size:10px;line-height:1.6;margin:7px 0}.lv-panel details{margin:10px 0;padding-top:10px;border-color:#7da7d933}.lv-panel summary{font-size:11px;color:#bbd6f8;padding:4px 0}.lv-panel label{margin:8px 0;gap:5px;font-size:11px}.lv-panel select{min-height:34px;font-size:12px;padding:6px 8px;border-radius:6px;background:#0d1016;border:1px solid #7da7d94a}.lv-panel .lv-controls{gap:7px}.lv-panel [data-lv-status]{padding:7px 9px;border-left:2px solid #7da7d9;background:#7da7d90c}.lv-panel [data-lv-error]:empty{display:none}
.lv-panel .vl-story-slider{display:block}.lv-panel .vl-story-slider input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:30px;min-height:30px;margin:0;padding:0 8px;border:0;background:transparent;box-shadow:none;cursor:pointer}
/* Uploaded backdrops need a readable writing surface, while plain chats remain blended. */
:root[data-theme=black-blue] .conversation.has-bg .composer{background:color-mix(in srgb,var(--custom-surface,#111319) 92%,transparent)!important;backdrop-filter:blur(8px)}
@media(max-width:760px){:root[data-theme=black-blue] .vl-chat-header{padding:4px 8px!important;gap:6px;height:48px!important}.vl-chat-header>.row::after{display:none}:root[data-theme=black-blue] .vl-chat-header .chat-name{max-width:none;width:100%;font-size:12px;padding:6px;gap:5px}.vl-chat-header .chat-name img{width:12px;height:12px}.vl-chat-header .lv-launch-label{display:none}.vl-chat-header .topbar-right{gap:2px!important}.vl-chat-header .topbar-right>button{height:40px!important;min-height:40px!important;min-width:34px;padding:5px!important}.lv-panel{top:108px!important;max-height:calc(100dvh - 120px)!important}.lv-panel.lv-right{right:10px}.lv-panel.lv-left{left:10px}:root[data-theme=black-blue] .lv-panel button{min-height:40px}.lv-panel summary{padding:8px 0}}

:root[data-theme=black-blue] .lv-panel{top:var(--vl-device-top,108px)!important;max-height:calc(100dvh - var(--vl-device-top,108px) - 12px)!important}
:root[data-theme=black-blue] .conversation.has-bg .composer{background:#111319eb!important}
:root.custom-ui[data-theme=black-blue] .conversation.has-bg .composer{background:color-mix(in srgb,var(--custom-surface,#111319) 92%,transparent)!important}
/* Blend the charcoal title bar into the story artwork without dimming controls. */
:root[data-theme=black-blue] .vl-chat-header + .chat-layout .conversation::after{content:"";position:absolute;inset:0 0 auto;height:36px;z-index:2;pointer-events:none;background:linear-gradient(to bottom,var(--bg,#0c0d11) 0%,color-mix(in srgb,var(--bg,#0c0d11) 65%,transparent) 35%,transparent 100%)}
@media(max-width:760px){:root[data-theme=black-blue] .vl-chat-header + .chat-layout .conversation::after{height:26px}}
/* Approved Starlit message accents — Black Blue only; preserve name/opacity preferences. */
:root[data-theme=black-blue] #chat-scroll .message{--vl-role-blue:#7da7d9;--vl-frame:#9fc5f5b0}
:root[data-theme=black-blue] #chat-scroll .message.user{--vl-role-blue:#b4cee8;--vl-frame:#b4cee8a0}
:root[data-theme=black-blue] #chat-scroll:not([data-avatar-layout=whisper]):not([data-avatar-layout=ripple]) .message>div:last-child,
:root[data-theme=black-blue] #chat-scroll:is([data-avatar-layout=whisper],[data-avatar-layout=ripple]) .message{position:relative;border:1px solid var(--vl-frame)!important;border-radius:14px!important;box-shadow:0 0 14px #7da7d92c!important;overflow:visible}
:root[data-theme=black-blue] #chat-scroll:not([data-avatar-layout=whisper]):not([data-avatar-layout=ripple]) .message>div:last-child::before,
:root[data-theme=black-blue] #chat-scroll:is([data-avatar-layout=whisper],[data-avatar-layout=ripple]) .message::before{content:'';position:absolute;top:-6px;left:24px;width:12px;height:12px;z-index:2;pointer-events:none;background:url('/accent-x.png') center/contain no-repeat;filter:drop-shadow(0 0 5px #7da7d9)}
:root[data-theme=black-blue] #chat-scroll:not([data-avatar-layout=whisper]):not([data-avatar-layout=ripple]) .message.user>div:last-child::before,
:root[data-theme=black-blue] #chat-scroll:is([data-avatar-layout=whisper],[data-avatar-layout=ripple]) .message.user::before{left:auto;right:24px;background:#b4cee8;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-9-5.5-9-12a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 6.5-9 12-9 12Z'/%3E%3C/svg%3E") center/contain no-repeat}
:root[data-theme=black-blue] #chat-scroll .chat-identity{gap:10px;align-items:center;flex-wrap:wrap}
:root[data-theme=black-blue] #chat-scroll .chat-identity>.role{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:5px;flex:none;margin:0 0 5px;padding:5px 7px;border:0!important;border-radius:0;background:transparent!important;color:#101a28!important;font:600 9px/1.2 'Segoe UI',Arial,sans-serif!important;letter-spacing:.7px;text-shadow:none!important;box-shadow:none!important;filter:drop-shadow(0 0 5px #7da7d950);overflow:visible}
:root[data-theme=black-blue] #chat-scroll .chat-identity>.role::before{content:'';position:absolute;inset:0 0 -5px;z-index:-1;background:linear-gradient(110deg,var(--vl-role-blue),#e0edff);clip-path:polygon(4px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 9px),calc(100% - 4px) calc(100% - 5px),15px calc(100% - 5px),8px 100%,8px calc(100% - 5px),4px calc(100% - 5px),0 calc(100% - 9px),0 4px)}
:root[data-theme=black-blue] #chat-scroll .chat-identity>.role::after{content:'♡';font-size:11px;line-height:1}
:root[data-theme=black-blue] .conversation .composer{border:1px solid #9fc5f5b0!important;border-radius:14px!important;box-shadow:0 0 14px #7da7d92c!important;padding:9px!important}
:root[data-theme=black-blue] .conversation .composer:focus-within{border-color:#b4d6ff!important;box-shadow:0 0 14px #7da7d940!important}
:root[data-theme=black-blue] .composer-bottom{display:flex!important;align-items:center;justify-content:flex-start!important;gap:0!important;flex-wrap:wrap}
:root[data-theme=black-blue] .composer-bottom>button{min-height:32px!important;padding:5px 9px!important;font-size:11px!important;margin:0!important;flex:none}
:root[data-theme=black-blue] .composer-bottom>button:not(.primary){border:0!important;border-radius:0!important;background:#7da7d90a!important;color:#bddaff!important}
:root[data-theme=black-blue] .composer-bottom>button:not(.primary)+button:not(.primary){border-left:1px solid #7da7d94d!important}
:root[data-theme=black-blue] .composer-bottom>.composer-hint{flex:1;min-width:0;margin:0 12px;text-align:center;font-size:9px}
:root[data-theme=black-blue] .composer-bottom>button.primary{margin-left:auto!important;border:1px solid #a8cdf8!important;border-radius:5px!important;background:#7da7d9!important;color:#101822!important;box-shadow:0 0 8px #7da7d92b!important}
:root[data-theme=black-blue] .composer-bottom>button:hover{box-shadow:0 0 8px #7da7d940!important}
:root[data-theme=black-blue] .composer-bottom>button:focus-visible{outline:2px solid #c1dcff;outline-offset:2px}
@media(max-width:760px){:root[data-theme=black-blue] .composer-bottom>.composer-hint{display:none}:root[data-theme=black-blue] .composer-bottom>button{min-height:40px!important}:root[data-theme=black-blue] #chat-scroll .chat-identity>.role{font-size:8px!important}}
:root[data-theme=black-blue] .conversation .composer #composer-text:focus{outline:none!important;box-shadow:none!important;border-color:transparent!important}
:root[data-theme=black-blue] #chat-scroll:not([data-avatar-layout=whisper]):not([data-avatar-layout=ripple]) .message.user>div:last-child::before,
:root[data-theme=black-blue] #chat-scroll:is([data-avatar-layout=whisper],[data-avatar-layout=ripple]) .message.user::before{mask:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b4cee8' d='M12 21s-9-5.5-9-12a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 6.5-9 12-9 12Z'/%3E%3C/svg%3E") center/contain no-repeat}
/* Keep panoramic artwork inside the glowing frame without clipping its ornaments. */
:root[data-theme=black-blue] #chat-scroll[data-avatar-layout=whisper] .message>.message-avatar{border-radius:13px 13px 0 0!important;clip-path:inset(0 round 13px 13px 0 0)}
:root[data-theme=black-blue] #chat-scroll[data-avatar-layout=ripple] .message>.message-avatar{border-radius:13px 0 0 0!important;clip-path:inset(0 round 13px 0 0 0)}
:root[data-theme=black-blue] #chat-scroll:is([data-avatar-layout=whisper],[data-avatar-layout=ripple]) .message::after{content:'';position:absolute;inset:-1px;border:1px solid var(--vl-frame);border-radius:14px;pointer-events:none;z-index:1}
/* Conversations: approved compact panorama collection. */
:root[data-theme=black-blue] .shell[data-page=conversations] #page>.item-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item{position:relative;isolation:isolate;overflow:visible;display:flex;flex-wrap:wrap;align-items:center;min-width:0;min-height:88px;padding:10px 16px;gap:2px 14px;border:1px solid #94bceb99;border-radius:12px;background:#101319;box-shadow:0 0 12px #7da7d91f}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item:hover{border-color:#b4d5ff;box-shadow:0 0 16px #7da7d932}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item::before{content:'';position:absolute;left:19px;top:-6px;width:12px;height:12px;background:url('/accent-x.png') center/contain no-repeat;filter:drop-shadow(0 0 4px #7da7d9);pointer-events:none;z-index:2}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item>img.conversation-avatar{inset:0 0 0 auto;width:58%;height:100%;max-width:none;object-fit:cover;object-position:50% 38%;opacity:1;border:0;border-radius:0 11px 11px 0;clip-path:inset(0 round 0 11px 11px 0);mask-image:linear-gradient(90deg,transparent,#0009 40%,#0005 75%,transparent);pointer-events:none;z-index:0}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item>.grow{flex:1 0 100%;min-width:0}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item h3{font:600 16px/1.4 Georgia,serif;margin:0;color:#e0ebfb;overflow-wrap:anywhere}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item p{font-size:10px;line-height:1.5;margin:3px 0 0;color:#a3bcda}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item>.row{width:auto;flex:none;margin:-2px 0 0 auto;gap:10px}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item>.row button{flex:none!important;background:transparent!important;border:0!important;border-radius:5px;min-height:28px!important;height:auto;padding:4px 6px!important;font:600 10px/1.4 'Segoe UI',Arial,sans-serif;letter-spacing:.5px;color:#b6d4fa;box-shadow:none!important}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item>.row button svg{width:14px;height:14px}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item>.row button[data-action=delete-item]{width:28px;border-left:1px solid #7da7d940!important;border-radius:0;color:#9baabd;padding:5px!important}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item>.row button:hover{background:#101319bb!important;color:#e2efff}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item>.row button[data-action=delete-item]:hover{color:#efafc1;background:#381e2860!important}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .page-head button{min-height:30px!important;height:30px!important;font-size:10px!important;padding:5px 9px!important;border-radius:5px}
:root[data-theme=black-blue] .shell[data-page=conversations] #page .page-head button svg{width:14px;height:14px}
:root[data-theme=black-blue] .shell[data-page=conversations] #page>.item-list>.empty{grid-column:1/-1}
@media(max-width:700px){:root[data-theme=black-blue] .shell[data-page=conversations] #page>.item-list{grid-template-columns:minmax(0,1fr)}:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item{padding:9px 12px}:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item h3{font-size:14px;line-height:1.35}:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item>.row button{min-height:30px!important;font-size:9px}:root[data-theme=black-blue] .shell[data-page=conversations] #page .conversation-item>.row button[data-action=delete-item]{width:30px}:root[data-theme=black-blue] .shell[data-page=conversations] #page .page-head button{font-size:9px!important;padding:4px 7px!important}}
/* Let Conversations follow the available monitor width, like Characters. */
:root[data-theme=black-blue] .shell[data-page=conversations] #page.wide-limit{width:100%;max-width:none}
/* Navigation-attached workspaces: wider desktop, unchanged mobile gutters. */
:root[data-theme=black-blue] dialog.resource-drawer{width:min(1280px,calc(100vw - 32px));border-radius:0 0 14px 14px;transform-origin:top center;animation:vl-workspace-reveal .2s ease-out}
@keyframes vl-workspace-reveal{from{clip-path:inset(0 0 100% 0);opacity:.7}to{clip-path:inset(0);opacity:1}}
@media(max-width:520px){:root[data-theme=black-blue] dialog.resource-drawer{width:calc(100vw - 20px)!important}}
@media(prefers-reduced-motion:reduce){:root[data-theme=black-blue] dialog.resource-drawer{animation:none}}
/* Navigation already supplies the top divider for resource drawers. */
:root[data-theme=black-blue] dialog.resource-drawer{border-top:0}
/* Smaller close glyph, preserving the comfortable drawer button target. */
:root[data-theme=black-blue] .resource-drawer [data-close-resource] .accent-icon{width:13px;height:13px;filter:drop-shadow(0 0 3px #7da7d966)}
/* Persona library: approved Moonlit identity cards. Chat names remain user-styled. */
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list>.list-item{position:relative;isolation:isolate;display:block;min-width:0;min-height:132px;padding:21px 20px 15px!important;border:1px solid #96bdeba6!important;border-radius:12px!important;background:#101319!important;box-shadow:0 0 13px #7da7d925;overflow:visible}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list-avatar{position:absolute;inset:0 0 0 auto;width:64%!important;height:100%!important;max-width:none;object-fit:cover;object-position:50% 38%;border:0!important;border-radius:0 11px 11px 0!important;clip-path:inset(0 round 0 11px 11px 0);box-shadow:none!important;mask-image:linear-gradient(90deg,transparent,#000a 42%,#0007 80%,#0003);pointer-events:none;z-index:0}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list>.list-item::before{content:'';position:absolute;left:22px;top:-6px;width:12px;height:12px;background:url('/accent-x.png') center/contain no-repeat;filter:drop-shadow(0 0 5px #7da7d9);z-index:2;pointer-events:none}
.vl-persona-library .list-item>.grow,.vl-persona-library .list-item>.row{position:relative;z-index:1}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .vl-persona-caption{font:7px/1.5 'Segoe UI',sans-serif;letter-spacing:1.2px;color:#9dbfe7}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list h3{font:600 25px/1.3 Georgia,serif!important;letter-spacing:4px!important;text-transform:uppercase;color:#e1edff!important;margin:4px 0 9px!important;text-shadow:0 0 10px #7da7d970!important;overflow-wrap:anywhere}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list h3 .badge{font:9px 'Segoe UI',sans-serif;letter-spacing:0;text-transform:none;display:inline-block}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list>.list-item>.row{display:flex;align-items:center;gap:9px;margin:0}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list .persona-action{background:transparent!important;border:0!important;border-radius:0!important;padding:4px 0!important;min-height:28px!important;height:auto!important;font:600 9px/1.4 'Segoe UI',sans-serif!important;letter-spacing:.7px;text-transform:uppercase;color:#bbd9ff!important;box-shadow:none!important;gap:7px}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list .persona-action+.persona-action{border-left:1px solid #7da7d950!important;padding-left:10px!important}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-action:hover{text-shadow:0 0 7px #7da7d9}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .page-head button{height:30px!important;min-height:30px!important;font:9px/1.4 'Segoe UI',sans-serif!important;padding:4px 7px!important;border-radius:5px}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .page-head button svg{width:13px;height:13px}
.vl-persona-library .persona-list>.empty{grid-column:1/-1}
@media(max-width:700px){:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list{grid-template-columns:minmax(0,1fr)}:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list>.list-item{min-height:120px;padding:16px 14px 10px!important}:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list h3{font-size:22px!important;letter-spacing:3px!important}:root[data-theme=black-blue] #resource-drawer .vl-persona-library .vl-persona-caption{font-size:6px}:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list .persona-action{min-height:32px!important}}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .page-head button[data-action][data-kind=persona]{height:30px!important;min-height:30px!important;padding:4px 7px!important;font-size:9px!important}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list button.persona-action[data-action][data-kind=persona]{height:auto!important;min-height:28px!important;padding:4px 0!important}
:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list button.persona-action[data-action][data-kind=persona]+button{padding-left:10px!important}
@media(max-width:700px){:root[data-theme=black-blue] #resource-drawer .vl-persona-library .persona-list button.persona-action[data-action][data-kind=persona]{min-height:32px!important}}
