.world-list{container:world-list/size;display:flex;flex-direction:column;height:100%;min-height:32rem;overflow:hidden;width:100%;max-width:1244px;margin-inline:auto;padding:28px 32px 40px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--text-primary);--world-list-action:var(--accent);--world-list-action-text:var(--text-inverse)}.world-list :is(button,input,[tabindex="0"]):focus-visible{outline:2px solid var(--world-list-action);outline-offset:4px}.world-list-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;margin-bottom:20px}.world-list-heading{display:flex;align-items:baseline;gap:16px}.world-list-heading h2{font-size:calc((1rem) / var(--text-inflation, 1));font-weight:600;line-height:1.5}.world-list-count,.world-list-limit{color:var(--text-secondary);font-size:calc((.875rem) / var(--text-inflation, 1));font-variant-numeric:tabular-nums}.world-list-create{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;min-height:42px;border-radius:10px;background:var(--world-list-action);color:var(--world-list-action-text);font-size:calc((.9375rem) / var(--text-inflation, 1));font-weight:600}.world-list-create:hover{filter:brightness(.94)}.world-list-create svg{flex:none}.world-list-collection-heading{display:flex;align-items:baseline;gap:12px;margin:26px 0 14px}.world-list-collection-title{font-size:calc((1rem) / var(--text-inflation, 1));line-height:1.5;font-weight:600}.world-list>:not(.world-list-scroll){flex-shrink:0}.world-list-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:6px;margin:-6px -6px 0;scroll-padding:6px}.world-list-collection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}.world-list-row{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid var(--border);border-radius:16px;background:var(--surface-raised)}.world-list-row[data-selected=true]{border-color:color-mix(in oklab,var(--accent) 50%,var(--border))}.world-list-row:has(.world-list-open:focus-visible){outline:2px solid var(--world-list-action);outline-offset:4px}.world-list-row:not([data-selected=true]):has(.world-list-open:hover){border-color:var(--border-strong)}.world-list-info{min-width:0;padding:22px 26px 0}.world-list-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.world-list-title-row h3{min-width:0}.world-list-meta{margin-top:7px;min-height:1.5em;display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;color:var(--text-secondary);font-size:calc((.8125rem) / var(--text-inflation, 1));line-height:1.5}.world-list-current{display:inline-flex;justify-content:center;align-items:center;gap:4px;flex-shrink:0;width:7em;white-space:nowrap;margin-top:2px;font-size:calc((.75rem) / var(--text-inflation, 1));line-height:1.5;font-weight:500;color:var(--world-list-action);padding:3px 6px;border-radius:6px;background:var(--accent-bg)}.world-list-current[data-visible=false]{visibility:hidden}.world-list-open{display:flex;text-align:left;color:var(--text-primary);font-size:calc((1.125rem) / var(--text-inflation, 1));line-height:1.5;font-weight:650}.world-list-open>span{overflow-wrap:anywhere}.world-list-open:after{content:"";position:absolute;inset:0;border-radius:16px}.world-list-open:disabled{cursor:default}.world-list-date{font-variant-numeric:tabular-nums}.world-list-companions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 26px 20px;list-style:none;padding:0;flex:1}.world-list-companions li{display:flex;align-items:center;flex-direction:column;gap:8px;min-width:0}.world-list-portrait{display:grid;place-items:center;width:64px;height:64px;flex:none;overflow:hidden;border-radius:12px;background:var(--surface-raised);color:var(--text-secondary);font-size:calc((1.5rem) / var(--text-inflation, 1))}.world-list-portrait img{width:100%;height:100%;object-fit:cover}.world-list-companion-name{font-size:calc((.8125rem) / var(--text-inflation, 1));line-height:1.5;color:var(--text-secondary);text-align:center;overflow-wrap:anywhere}.world-list-companions .world-list-no-companions{grid-column:1/-1;font-size:calc((.875rem) / var(--text-inflation, 1));color:var(--text-secondary);align-items:flex-start;min-height:88px;justify-content:center}.world-list-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;margin:auto 22px 0;border-top:1px solid color-mix(in oklab,var(--border) 65%,transparent)}.world-list-enter{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;min-width:7.25rem;padding:8px 12px;font-size:calc((.8125rem) / var(--text-inflation, 1));font-weight:550;line-height:1.4;color:var(--world-list-action);background:var(--accent-bg);border:1px solid color-mix(in oklab,var(--accent) 15%,transparent);border-radius:8px}.world-list-enter svg{flex:none}.world-list-enter:hover{background:var(--surface-active)}.world-list-enter:disabled{opacity:.5;cursor:default}.world-list-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px;min-height:36px}.world-list-icon{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;width:36px;min-height:36px;border-radius:8px;color:var(--text-secondary);flex:none}.world-list-icon:hover{background:var(--surface-active);color:var(--text-primary)}.world-list-icon:disabled{opacity:.45;cursor:default}.world-list-icon:disabled:hover{background:transparent;color:var(--text-secondary)}.world-list-delete:hover{background:var(--danger-soft);color:var(--danger)}.world-list-rename-shell{flex:1;min-width:0;container:world-rename/inline-size}.world-list-rename{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 36px 36px;align-items:center;gap:2px;min-width:0;padding:3px;border:1px solid var(--border-strong);border-radius:10px;background:var(--surface-raised)}.world-list-rename:focus-within{border-color:var(--focus-ring);box-shadow:inset 0 0 0 1px var(--focus-ring)}.world-list-rename input{min-width:0;width:100%;padding:7px 9px;font-size:calc((1rem) / var(--text-inflation, 1));line-height:1.5;color:var(--text-primary);background:transparent;border:0;border-radius:6px}.world-list .world-list-rename input:focus-visible{outline:none;box-shadow:none}.world-list .world-list-rename button:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--focus-ring)}.world-list-rename-status{min-height:0;padding:0 4px;color:var(--text-secondary);font-size:calc((.75rem) / var(--text-inflation, 1));line-height:1.4}.world-list-rename-status:not(:empty){padding-top:5px}.world-list-featured .world-list-title-row:has(.world-list-rename-shell){max-height:none;overflow:visible}@container world-rename (max-width: 220px){.world-list-rename input{grid-column:1/-1}.world-list-rename [data-save-world-rename]{grid-column:2}.world-list-rename [data-cancel-world-rename]{grid-column:3}}@supports not (container-type:inline-size){@media (max-width:220px){.world-list-rename input{grid-column:1/-1}.world-list-rename [data-save-world-rename]{grid-column:2}.world-list-rename [data-cancel-world-rename]{grid-column:3}}}@container world-rename (max-width: 100px){.world-list-rename{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.world-list-rename [data-save-world-rename]{grid-column:1;justify-self:end}.world-list-rename [data-cancel-world-rename]{grid-column:2}.world-list .world-list-rename .world-list-icon{width:min(36px,100%)}}@supports not (container-type:inline-size){@media (max-width:100px){.world-list-rename{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.world-list-rename [data-save-world-rename]{grid-column:1;justify-self:end}.world-list-rename [data-cancel-world-rename]{grid-column:2}.world-list .world-list-rename .world-list-icon{width:min(36px,100%)}}}.world-list-empty{padding:64px 0;border-top:1px solid var(--border);display:flex;flex-direction:column;align-items:flex-start;gap:24px}.world-list-empty p{font-size:calc((1.25rem) / var(--text-inflation, 1));color:var(--text-secondary)}.world-list-featured{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr) minmax(0,.95fr);align-items:center;gap:26px;height:13.5rem;padding:28px 30px;background:color-mix(in oklab,var(--accent) 4%,var(--surface-raised))}.world-list-featured .world-list-info{padding:0}.world-list-featured .world-list-title-row{min-height:2.5rem;max-height:5rem;overflow-y:auto}.world-list-featured .world-list-open{font-size:calc((1.875rem) / var(--text-inflation, 1));line-height:1.25;letter-spacing:-.02em}.world-list-featured .world-list-open:after{content:none}.world-list-featured .world-list-meta{margin-top:10px}.world-list-featured .world-list-companions{margin:0;align-self:center}.world-list-featured .world-list-portrait{width:76px;height:76px;border-radius:14px}.world-list-featured .world-list-companion-name{font-size:calc((.875rem) / var(--text-inflation, 1));max-height:2.8em;overflow-y:auto}.world-list-featured .world-list-footer{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:16px;align-self:stretch;margin:0;padding:0 0 0 26px;border-top:0;border-left:1px solid var(--border)}.world-list-featured .world-list-enter{min-height:48px;background:var(--world-list-action);color:var(--world-list-action-text);font-size:calc((.9375rem) / var(--text-inflation, 1));border-color:transparent}.world-list-featured .world-list-enter:hover{filter:brightness(.94)}.world-list-featured .world-list-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.world-list-featured .world-list-actions>span{min-width:0}.world-list-featured .world-list-icon{width:100%;gap:6px;padding:4px;font-size:calc((.75rem) / var(--text-inflation, 1));line-height:1.4}.world-list-featured .world-list-icon svg{flex:none}@keyframes world-heading-arrive{0%{opacity:.55}to{opacity:1}}@media (prefers-reduced-motion:no-preference){.world-list-featured .world-list-title-row h3{animation:world-heading-arrive .14s cubic-bezier(.16,1,.3,1)}}.dark .world-list{--world-list-action:var(--accent-readable,color-mix(in srgb,var(--accent) 40%,var(--text-primary)));--world-list-action-text:var(--surface-canvas)}@container world-list (max-width: 1080px){.world-list-featured{grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:18rem;gap:18px;padding:24px}.world-list-featured .world-list-footer{grid-column:1/-1;flex-direction:row;align-items:center;padding:12px 0 0;border-left:0;border-top:1px solid var(--border)}.world-list-featured .world-list-actions,.world-list-featured .world-list-enter{flex:1}.world-list-featured .world-list-icon{min-height:42px}}@supports not (container-type:inline-size){@media (max-width:1080px){.world-list-featured{grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:18rem;gap:18px;padding:24px}.world-list-featured .world-list-footer{grid-column:1/-1;flex-direction:row;align-items:center;padding:12px 0 0;border-left:0;border-top:1px solid var(--border)}.world-list-featured .world-list-actions,.world-list-featured .world-list-enter{flex:1}.world-list-featured .world-list-icon{min-height:42px}}}@container world-list (max-width: 660px){.world-list-collection{grid-template-columns:minmax(0,1fr)}.world-list-featured{grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:17.5rem;gap:12px;padding:16px}.world-list-featured .world-list-open{font-size:calc((1.375rem) / var(--text-inflation, 1))}.world-list-featured .world-list-companions{gap:6px}.world-list-featured .world-list-portrait{width:min(44px,100%);height:auto;aspect-ratio:1;border-radius:10px}.world-list-featured .world-list-companion-name{font-size:calc((.75rem) / var(--text-inflation, 1))}.world-list-featured .world-list-footer{flex-direction:column;gap:8px}.world-list-featured .world-list-actions,.world-list-featured .world-list-enter{width:100%;flex:none}.world-list-icon{width:44px;min-height:44px}.world-list-enter{min-height:44px}}@supports not (container-type:inline-size){@media (max-width:660px){.world-list-collection{grid-template-columns:minmax(0,1fr)}.world-list-featured{grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:17.5rem;gap:12px;padding:16px}.world-list-featured .world-list-open{font-size:calc((1.375rem) / var(--text-inflation, 1))}.world-list-featured .world-list-companions{gap:6px}.world-list-featured .world-list-portrait{width:min(44px,100%);height:auto;aspect-ratio:1;border-radius:10px}.world-list-featured .world-list-companion-name{font-size:calc((.75rem) / var(--text-inflation, 1))}.world-list-featured .world-list-footer{flex-direction:column;gap:8px}.world-list-featured .world-list-actions,.world-list-featured .world-list-enter{width:100%;flex:none}.world-list-icon{width:44px;min-height:44px}.world-list-enter{min-height:44px}}}@container world-list (max-height: 550px){.world-list-header{gap:10px;margin-bottom:12px}.world-list-collection-heading{margin:14px 0 10px}.world-list-featured{height:11rem;padding:12px 16px;gap:12px}.world-list-featured .world-list-open{font-size:calc((1.25rem) / var(--text-inflation, 1))}.world-list-featured .world-list-title-row{max-height:3.5rem}.world-list-featured .world-list-meta{margin-top:4px}.world-list-featured .world-list-portrait{width:40px;height:40px}.world-list-featured .world-list-companion-name{font-size:calc((.75rem) / var(--text-inflation, 1))}.world-list-featured .world-list-footer{gap:4px;padding-top:4px}.world-list-featured .world-list-enter,.world-list-featured .world-list-icon{min-height:36px}}@container world-list (max-width: 1080px) and (max-height: 550px){.world-list-featured{height:13.5rem}.world-list-featured .world-list-footer{flex-direction:row}.world-list-featured .world-list-enter{width:auto;min-width:0;flex:1}.world-list-featured .world-list-actions{display:flex;justify-content:flex-end;width:auto;flex:none}.world-list-featured .world-list-icon{min-width:36px}.world-list-featured .world-list-icon>span{display:none}}@media (max-width:900px){.world-list{padding:24px 20px 32px}}.dark[data-theme=charcoal] .world-list :is(.world-list-create,.world-list-enter){background:var(--primary-action-bg,var(--accent));color:var(--primary-action-fg,#fff);border-color:transparent}.dark[data-theme=charcoal] .world-list :is(.world-list-create,.world-list-enter):hover:not(:disabled){background:var(--primary-action-hover,var(--accent));filter:none}.dark[data-theme=charcoal] .world-list .world-list-enter:disabled:hover{filter:none}@media (min-width:701px){.world-list:has(.world-list-featured){display:grid;grid-template-columns:minmax(210px,.85fr) minmax(260px,1.15fr);grid-template-rows:auto auto auto minmax(0,1fr);column-gap:18px;row-gap:12px;width:100%;max-width:1244px;min-height:0;padding:28px 32px 16px}.world-list:has(.world-list-featured) .world-list-header{display:contents}.world-list:has(.world-list-featured) .world-list-header .world-list-heading{grid-column:1;grid-row:3;align-self:end}.world-list:has(.world-list-featured) .world-list-header :is(.world-list-create,.world-list-limit){grid-column:1/-1;grid-row:1;justify-self:end}.world-list-notice{grid-column:1/-1;grid-row:2;min-width:0}.world-list-featured{grid-column:1;grid-row:4;display:flex;flex-direction:column;align-items:stretch;height:auto;min-height:0;padding:14px 20px;gap:7px}.world-list-featured .world-list-open{font-size:calc((1.25rem) / var(--text-inflation, 1))}.world-list-featured .world-list-meta{margin-top:4px}.world-list-featured .world-list-companions{flex:1 1 auto;min-height:0;width:100%;margin:0;overflow-y:auto;grid-template-columns:minmax(0,1fr);align-content:center;gap:2px}.world-list-featured .world-list-companions:has(li:nth-child(2)){align-content:safe center;grid-auto-rows:max-content;gap:16px}.world-list-featured .world-list-companions li{flex-direction:column;justify-content:center;min-width:0;gap:6px}.world-list-featured .world-list-portrait{width:clamp(144px,25cqh,200px);height:clamp(144px,25cqh,200px)}@supports not (container-type:inline-size){.world-list-featured .world-list-portrait{width:clamp(144px,25vh,200px);height:clamp(144px,25vh,200px)}}.world-list-featured .world-list-companions:has(li:nth-child(2)) .world-list-portrait{width:clamp(120px,19cqh,150px);height:clamp(120px,19cqh,150px)}@supports not (container-type:inline-size){.world-list-featured .world-list-companions:has(li:nth-child(2)) .world-list-portrait{width:clamp(120px,19vh,150px);height:clamp(120px,19vh,150px)}}.world-list-featured .world-list-companions:has(li:nth-child(3)) .world-list-portrait{width:clamp(100px,15cqh,120px);height:clamp(100px,15cqh,120px)}@supports not (container-type:inline-size){.world-list-featured .world-list-companions:has(li:nth-child(3)) .world-list-portrait{width:clamp(100px,15vh,120px);height:clamp(100px,15vh,120px)}}.world-list-featured .world-list-companion-name{font-size:calc((.8125rem) / var(--text-inflation, 1));font-weight:600;line-height:1.2;max-height:3.3em;overflow:auto;overflow-wrap:anywhere;text-align:center}.world-list-featured:has(.world-list-companions li:nth-child(3)){padding-top:6px;padding-bottom:6px;gap:3px}.world-list-featured:has(.world-list-companions li:nth-child(3)) .world-list-meta{margin-top:0}.world-list-featured .world-list-companions:has(li:nth-child(3)){gap:16px;grid-auto-rows:max-content;align-content:safe center}.world-list-featured .world-list-footer{flex:none;flex-direction:column;align-items:stretch;margin:0;padding:6px 0 0;border:0;border-top:1px solid var(--border);gap:4px}.world-list-featured .world-list-enter{width:100%;flex:none;min-height:38px}.world-list-featured .world-list-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.world-list-featured .world-list-icon{width:100%}.world-list-featured .world-list-rename .world-list-icon{width:36px;min-height:36px}.world-list-featured .world-list-icon>span{display:none}.world-list-collection-heading{grid-column:2;grid-row:3;align-self:end;margin:0}.world-list-scroll{grid-column:2;grid-row:4;overflow-y:auto}.world-list-collection{grid-template-columns:1fr}.world-list-collection .world-list-portrait{width:52px;height:52px}}.world-setup{container:world-setup/inline-size;color-scheme:inherit;height:100%;min-height:0;width:100%;max-width:1240px;margin-inline:auto;display:flex;flex-direction:column;overflow:hidden;--world-gutter:clamp(20px,4vw,56px)}.world-setup-header{flex:none;padding:22px var(--world-gutter) 0}.world-setup-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px}.world-setup-heading>span{font-size:calc((1rem) / var(--text-inflation, 1));font-weight:600;color:var(--text-secondary)}.world-setup-progress{display:flex;gap:12px;margin-top:16px;border-bottom:1px solid var(--border)}.world-setup-progress button{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 0 12px;flex:1;border-bottom:2px solid transparent;margin-bottom:-1px;text-align:left;color:var(--text-secondary);font-size:calc((.875rem) / var(--text-inflation, 1))}.world-setup-progress button:disabled{cursor:default}.world-setup-progress button[aria-current=step]{color:var(--accent-strong);border-color:var(--accent);font-weight:600}.world-setup-progress button:not(:disabled):hover{color:var(--accent)}.world-step-number{font-size:calc((.75rem) / var(--text-inflation, 1));font-variant-numeric:tabular-nums}.world-setup-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;padding:36px var(--world-gutter);scrollbar-gutter:stable}.world-setup-content{width:100%;flex:none;margin-block:auto}.world-setup-footer{flex:none;margin-inline:var(--world-gutter);padding:18px 0 max(18px,var(--safe-area-bottom,0px));border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:16px}.world-setup-footer>*{min-width:0;overflow-wrap:anywhere}.world-setup-footer svg{flex:none}.world-setup-back{display:inline-flex;align-items:center;gap:8px;text-align:left}.world-setup :is(button,input):disabled{cursor:not-allowed}.world-setup .welcome-secondary:disabled{opacity:.45}.world-setup-error{color:var(--danger);font-size:calc((.9375rem) / var(--text-inflation, 1));line-height:1.7;margin:24px auto 0;max-width:65ch}.world-setup-status{display:flex;align-items:center;gap:12px;margin-top:24px;color:var(--text-secondary);line-height:1.7}.world-setup .welcome-question h2{font-size:calc((clamp(1.75rem, 3.8cqi, 3.25rem)) / var(--text-inflation, 1));margin-block:28px 36px}@supports not (container-type:inline-size){.world-setup .welcome-question h2{font-size:calc((clamp(1.75rem, 3.8vw, 3.25rem)) / var(--text-inflation, 1))}}.world-setup .welcome-question-mark{font-size:calc((210px) / var(--text-inflation, 1));padding-top:40px}.world-setup .welcome-discovery-story h2{font-size:calc((clamp(1.5rem, 3cqi, 2.5rem)) / var(--text-inflation, 1))}@supports not (container-type:inline-size){.world-setup .welcome-discovery-story h2{font-size:calc((clamp(1.5rem, 3vw, 2.5rem)) / var(--text-inflation, 1))}}.world-setup .welcome-lab-story h2{font-size:calc((clamp(1.75rem, 3.5cqi, 2.75rem)) / var(--text-inflation, 1))}@supports not (container-type:inline-size){.world-setup .welcome-lab-story h2{font-size:calc((clamp(1.75rem, 3.5vw, 2.75rem)) / var(--text-inflation, 1))}}.world-setup .welcome-method-equation{white-space:normal;overflow-wrap:anywhere}.world-setup .welcome-keep-phrase{white-space:normal}.world-setup .welcome-casting{gap:32px}.world-setup .welcome-person-detail{display:none}.world-setup .welcome-categories{flex-wrap:wrap;gap:8px 20px}.world-name-hint{display:block;margin-top:10px;font-size:calc((.875rem) / var(--text-inflation, 1));line-height:1.7}.world-name-hint,.world-name-optional{font-weight:400;color:var(--text-secondary)}.world-name-optional{margin-left:10px}.world-template{max-width:640px;margin-inline:auto}.world-template-options{margin-top:32px;border-top:1px solid var(--border)}.world-template-option{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;padding:26px 12px;text-align:left;border-bottom:1px solid var(--border);transition:background .18s ease}.world-template-option strong{display:block;font-size:calc((1.1875rem) / var(--text-inflation, 1));font-weight:600;color:var(--text-primary)}.world-template-option span>span{display:block;margin-top:10px;font-size:calc((.9375rem) / var(--text-inflation, 1));color:var(--text-secondary);line-height:1.8}.world-template-option svg{flex:none;color:var(--accent)}.world-template-option:hover:not(:disabled){background:var(--surface-hover)}.world-template-option:disabled{opacity:.5}.dark .world-setup{--world-dark-accent:var(--accent-readable,color-mix(in srgb,var(--accent) 40%,var(--text-primary)))}.dark .world-setup :is(.welcome-question-emphasis,.welcome-discovery-story h2,.welcome-lab-story h2,.welcome-lab-invitation strong,.welcome-method-terms dt,.welcome-categories button[aria-pressed=true],.world-setup-progress button[aria-current=step]){color:var(--world-dark-accent)}.dark .world-setup .welcome-primary{background:var(--world-dark-accent);color:var(--surface-canvas)}.dark .world-setup .welcome-primary:hover:not(:disabled){background:var(--text-primary)}.dark .world-setup :is(button,input):focus-visible{outline-color:var(--world-dark-accent)}@container world-setup (max-width: 900px){.world-setup .welcome-casting{grid-template-columns:1fr}.world-setup .welcome-invitations{border-left:0;border-top:1px solid var(--border);padding:24px 0 0}.world-setup .welcome-invitation-slots{max-width:450px}}@supports not (container-type:inline-size){@media (max-width:900px){.world-setup .welcome-casting{grid-template-columns:1fr}.world-setup .welcome-invitations{border-left:0;border-top:1px solid var(--border);padding:24px 0 0}.world-setup .welcome-invitation-slots{max-width:450px}}}@container world-setup (max-width: 680px){.world-setup-header{padding-top:12px}.world-setup-progress{gap:8px;margin-top:8px}.world-setup-progress button{justify-content:center}.world-step-label{display:none}.world-setup-progress [aria-current=step]{flex:3}.world-setup-progress [aria-current=step] .world-step-label{display:inline}.world-setup-body{padding-block:24px}.world-setup .welcome-question{display:block}.world-setup .welcome-question-mark{display:none}.world-setup :is(.welcome-discovery,.welcome-lab){grid-template-columns:1fr;gap:28px}.world-setup :is(.welcome-discovery-method,.welcome-lab-invitation){border-left:0;border-top:1px solid var(--border);padding:24px 0 0}.world-setup-footer{padding-block:12px max(12px,var(--safe-area-bottom,0px));gap:8px}.world-setup-footer .welcome-primary{padding-inline:16px}}@supports not (container-type:inline-size){@media (max-width:680px){.world-setup-header{padding-top:12px}.world-setup-progress{gap:8px;margin-top:8px}.world-setup-progress button{justify-content:center}.world-step-label{display:none}.world-setup-progress [aria-current=step]{flex:3}.world-setup-progress [aria-current=step] .world-step-label{display:inline}.world-setup-body{padding-block:24px}.world-setup .welcome-question{display:block}.world-setup .welcome-question-mark{display:none}.world-setup :is(.welcome-discovery,.welcome-lab){grid-template-columns:1fr;gap:28px}.world-setup :is(.welcome-discovery-method,.welcome-lab-invitation){border-left:0;border-top:1px solid var(--border);padding:24px 0 0}.world-setup-footer{padding-block:12px max(12px,var(--safe-area-bottom,0px));gap:8px}.world-setup-footer .welcome-primary{padding-inline:16px}}}@media (max-height:600px){.world-setup-header{padding-top:4px}.world-setup-progress{margin-top:0}.world-setup-body{padding-block:16px}.world-setup-footer{padding-block:10px}}.world-setup-desktop .world-setup-heading{justify-content:flex-end}.world-setup-desktop:is([data-world-step=language],[data-world-step=template],[data-world-step=confirm-custom]){--world-form-width:680px}.world-setup-desktop[data-world-step=confirm-custom] .welcome-setup-sheet,.world-setup-desktop[data-world-step=language] .welcome-setup-sheet,.world-setup-desktop[data-world-step=template] .world-template{max-width:var(--world-form-width);margin-inline:auto}.world-setup-desktop:is([data-world-step=language],[data-world-step=template],[data-world-step=confirm-custom]) .world-setup-body{padding-block:clamp(28px,6vh,64px)}.world-setup-desktop:is([data-world-step=language],[data-world-step=template],[data-world-step=confirm-custom]) .world-setup-footer{width:calc(100% - 2 * var(--world-gutter));max-width:var(--world-form-width);margin-inline:auto;padding-block:20px 28px}.world-setup-desktop[data-world-step=language] .welcome-language-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:32px}.world-setup-desktop[data-world-step=language] .welcome-language-option{min-width:0;min-height:76px;padding:20px 16px;gap:12px;border-radius:12px;overflow-wrap:anywhere}.world-setup-desktop[data-world-step=language] .welcome-language-indicator{flex-shrink:0}.world-setup-desktop[data-world-step=template] .world-template-option{padding:26px 16px;border-radius:8px}@container world-setup (max-width: 620px){.world-setup-desktop[data-world-step=language] .welcome-language-options{grid-template-columns:1fr}.world-setup-desktop[data-world-step=language] .welcome-language-option{min-height:56px;padding-block:14px}}@supports not (container-type:inline-size){@media (max-width:620px){.world-setup-desktop[data-world-step=language] .welcome-language-options{grid-template-columns:1fr}.world-setup-desktop[data-world-step=language] .welcome-language-option{min-height:56px;padding-block:14px}}}@media (max-height:600px){.world-setup-desktop:is([data-world-step=language],[data-world-step=template],[data-world-step=confirm-custom]) .world-setup-body{padding-block:20px}.world-setup-desktop:is([data-world-step=language],[data-world-step=template],[data-world-step=confirm-custom]) .world-setup-footer{padding-block:12px}}.dark[data-theme=charcoal] .world-setup .welcome-primary{background:var(--primary-action-bg,var(--accent));color:var(--primary-action-fg,#fff)}.dark[data-theme=charcoal] .world-setup .welcome-primary:hover:not(:disabled){background:var(--primary-action-hover,var(--accent));filter:none}.bookshelf-empty{container-type:inline-size;width:100%;max-width:960px;margin:0 auto;padding:clamp(48px,10vh,112px) 0 3rem}.bookshelf-empty h2{margin:0;color:var(--text-primary);font-size:calc((clamp(1.75rem, 4cqi, 2.5rem)) / var(--text-inflation, 1));font-weight:650;letter-spacing:-.025em;line-height:1.4;text-wrap:balance;overflow-wrap:anywhere}@supports not (container-type:inline-size){.bookshelf-empty h2{font-size:calc((clamp(1.75rem, 4vw, 2.5rem)) / var(--text-inflation, 1))}}.bookshelf-empty__intro{max-width:38rem;margin:1rem 0 0;color:var(--text-secondary);font-size:calc((1rem) / var(--text-inflation, 1));line-height:1.9;text-wrap:pretty}.bookshelf-empty__paths{display:flex;flex-direction:column;margin-top:2.75rem}.bookshelf-empty__own{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem}.bookshelf-empty__path{display:flex;align-items:center;min-width:0;gap:1rem;padding:1.25rem 1.375rem;border:1px solid var(--border);border-radius:16px;background:var(--surface-raised);color:var(--text-primary);text-align:left;cursor:pointer;transition:background-color .18s,border-color .18s,transform .18s,box-shadow .18s}.bookshelf-empty__path--library{justify-content:space-between;padding:clamp(26px,3.4cqi,36px) clamp(26px,3.6cqi,40px);border-color:var(--accent-border);background:radial-gradient(120% 140% at 100% 0,color-mix(in oklab,var(--accent-solid) 10%,transparent) 0,transparent 60%),var(--accent-soft)}@supports not (container-type:inline-size){.bookshelf-empty__path--library{padding:clamp(26px,3.4vw,36px) clamp(26px,3.6vw,40px)}}.bookshelf-empty__lead{display:flex;align-items:center;gap:1.25rem;min-width:0}.bookshelf-empty__lead-text{display:flex;flex:1;flex-direction:column;gap:.25rem;min-width:0}.bookshelf-empty__path-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:2.5rem;height:2.5rem;border-radius:12px;background:color-mix(in oklab,var(--accent-solid) 9%,transparent);color:var(--accent)}.bookshelf-empty__path-icon svg{width:1.2rem;height:1.2rem}.bookshelf-empty__path--library .bookshelf-empty__path-icon{width:3.25rem;height:3.25rem;border-radius:15px;background:var(--accent-solid);color:var(--text-inverse)}.bookshelf-empty__path--library .bookshelf-empty__path-icon svg{width:1.5rem;height:1.5rem}.bookshelf-empty__path-title{font-size:calc((1.0625rem) / var(--text-inflation, 1));font-weight:600;line-height:1.45;overflow-wrap:anywhere}.bookshelf-empty__path--library .bookshelf-empty__path-title{font-size:calc((clamp(1.25rem, 2.4cqi, 1.5rem)) / var(--text-inflation, 1));letter-spacing:-.01em}@supports not (container-type:inline-size){.bookshelf-empty__path--library .bookshelf-empty__path-title{font-size:calc((clamp(1.25rem, 2.4vw, 1.5rem)) / var(--text-inflation, 1))}}.bookshelf-empty__path-detail{color:var(--text-secondary);font-size:calc((.8125rem) / var(--text-inflation, 1));line-height:1.6;overflow-wrap:anywhere}.bookshelf-empty__path--library .bookshelf-empty__path-detail{font-size:calc((.9375rem) / var(--text-inflation, 1))}.bookshelf-empty__go{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:2rem;height:2rem;border-radius:999px;color:var(--text-muted);transition:color .18s,background-color .18s,transform .18s}.bookshelf-empty__go svg{width:1.05rem;height:1.05rem}.bookshelf-empty__path--library .bookshelf-empty__go{width:2.75rem;height:2.75rem;border:1px solid var(--accent-border);color:var(--accent)}.bookshelf-empty__own-label{display:flex;align-items:center;gap:1rem;margin:2.25rem 0 1rem;color:var(--text-muted);font-size:calc((.8125rem) / var(--text-inflation, 1));letter-spacing:.04em}.bookshelf-empty__own-label:after{content:"";flex:1;height:1px;background:var(--border)}.bookshelf-empty__path:hover:not(:disabled){border-color:var(--accent-border);background:var(--surface-hover);transform:translateY(-1px);box-shadow:0 10px 24px -18px rgba(0,0,0,.35)}.bookshelf-empty__path--library:hover:not(:disabled){border-color:var(--accent);background:radial-gradient(120% 140% at 100% 0,color-mix(in oklab,var(--accent-solid) 14%,transparent) 0,transparent 60%),var(--accent-soft)}.bookshelf-empty__path:hover:not(:disabled) .bookshelf-empty__go{color:var(--accent);transform:translateX(2px)}.bookshelf-empty__path--library:hover:not(:disabled) .bookshelf-empty__go{background:var(--accent-solid);border-color:var(--accent-solid);color:var(--text-inverse)}.bookshelf-empty__path:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.bookshelf-empty__path:disabled{opacity:.5;cursor:wait}.bookshelf-empty--mobile{padding:3rem 0}@media (prefers-reduced-motion:reduce){.bookshelf-empty__go,.bookshelf-empty__path{transition:none}.bookshelf-empty__path:hover:not(:disabled),.bookshelf-empty__path:hover:not(:disabled) .bookshelf-empty__go{transform:none}}.bookshelf-elsewhere{list-style:none;margin:2.25rem 0 0;padding:0;display:grid;gap:.75rem}.bookshelf-elsewhere__world{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head go" "titles go";align-items:center;column-gap:1.5rem;row-gap:.375rem;width:100%;padding:1.25rem 1.5rem;border:1px solid var(--accent-border);border-radius:16px;background:var(--accent-soft);color:var(--text-primary);text-align:left;cursor:pointer;transition:background-color .16s,border-color .16s}.bookshelf-elsewhere__world:hover:not(:disabled){border-color:var(--accent)}.bookshelf-elsewhere__world:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.bookshelf-elsewhere__world:disabled{cursor:wait}.bookshelf-elsewhere__world:disabled:not(.is-busy){opacity:.55}.bookshelf-elsewhere__head{grid-area:head;display:flex;align-items:baseline;gap:.75rem;min-width:0}.bookshelf-elsewhere__name{font-size:calc((1.125rem) / var(--text-inflation, 1));font-weight:600;line-height:1.5;overflow-wrap:anywhere}.bookshelf-elsewhere__count{flex-shrink:0;color:var(--accent);font-size:calc((.875rem) / var(--text-inflation, 1));font-weight:600;font-variant-numeric:tabular-nums}.bookshelf-elsewhere__titles{grid-area:titles;min-width:0;color:var(--text-secondary);font-size:calc((.875rem) / var(--text-inflation, 1));line-height:1.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bookshelf-elsewhere__go{grid-area:go;display:inline-flex;align-items:center;gap:.375rem;color:var(--accent);font-size:calc((.9375rem) / var(--text-inflation, 1));font-weight:600;white-space:nowrap}.bookshelf-elsewhere__go svg{width:1.0625rem;height:1.0625rem;flex-shrink:0}.bookshelf-elsewhere__or{margin:2.5rem 0 0;color:var(--text-muted);font-size:calc((.875rem) / var(--text-inflation, 1));letter-spacing:.02em}.bookshelf-empty__paths--after{margin-top:1rem}.bookshelf-empty__paths--after .bookshelf-empty__path--library{padding:1.25rem 1.375rem;background:var(--surface-raised);border-color:var(--border)}.bookshelf-empty__paths--after .bookshelf-empty__path--library .bookshelf-empty__path-icon{width:2.5rem;height:2.5rem;border-radius:12px;background:color-mix(in oklab,var(--accent-solid) 9%,transparent);color:var(--accent)}.bookshelf-empty__paths--after .bookshelf-empty__path--library .bookshelf-empty__path-title{font-size:calc((1.0625rem) / var(--text-inflation, 1))}.bookshelf-empty__paths--after .bookshelf-empty__path--library .bookshelf-empty__go{width:2rem;height:2rem;border:0;color:var(--text-muted)}.bookshelf-empty__paths--after .bookshelf-empty__own-label{margin-top:1.25rem}.bookshelf-elsewhere--mobile{margin:0}.bookshelf-elsewhere--mobile .bookshelf-elsewhere__world{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "titles" "go";padding:1rem 1.125rem;row-gap:.25rem}.bookshelf-elsewhere--mobile .bookshelf-elsewhere__titles{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.bookshelf-elsewhere--mobile .bookshelf-elsewhere__go{margin-top:.5rem;font-size:calc((.9375rem) / var(--text-inflation, 1));min-height:28px}@media (prefers-reduced-motion:reduce){.bookshelf-elsewhere__world{transition:none}}.bookshelf-manager{container:bookshelf/inline-size}.bookshelf-import-action{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:var(--text-secondary);font-size:calc((.8125rem) / var(--text-inflation, 1));white-space:nowrap;cursor:pointer}.bookshelf-import-action:hover{background:var(--surface-hover);color:var(--accent)}.bookshelf-import-action:disabled{opacity:.5;cursor:not-allowed}.bookshelf-import-action:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.bookshelf-search-tools{display:flex;align-items:center;gap:16px;padding:20px 24px 16px;flex-shrink:0;flex-wrap:wrap}.bookshelf-heading .bookshelf-search-tools{padding:0}.bookshelf-toolbar-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;max-width:100%;margin-left:auto}.bookshelf-search{display:flex;align-items:center;gap:10px;flex:1 1 320px;min-width:0;border-bottom:1px solid var(--border);color:var(--text-secondary)}.bookshelf-search:focus-within{border-color:var(--accent)}.bookshelf-search input{min-width:0;width:100%;min-height:40px;background:transparent;border:0;color:var(--foreground);font-size:calc((.875rem) / var(--text-inflation, 1));outline:none}.bookshelf-search button{display:grid;place-items:center;min-width:32px;min-height:36px;border:0;background:transparent;color:var(--text-secondary)}.bookshelf-search button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}@container bookshelf (max-width:600px){.bookshelf-search-tools{gap:8px;padding-inline:16px}.bookshelf-heading{padding-inline:16px}.bookshelf-search{flex-basis:100%}}@supports not (container-type:inline-size){@media (max-width:600px){.bookshelf-search-tools{gap:8px;padding-inline:16px}.bookshelf-heading{padding-inline:16px}.bookshelf-search{flex-basis:100%}}}.bookshelf-browser{display:flex;flex:1;min-height:0;min-width:0}.bookshelf-browser>:first-child{min-width:0}.bookshelf-filter-rail{flex:0 0 248px;min-width:0;padding:20px 24px 32px;border-left:1px solid var(--border);overflow-y:auto}.bookshelf-filter-rail h2{margin:0 0 1.25rem;font-size:calc((1rem) / var(--text-inflation, 1));font-weight:600;color:var(--text-primary)}.bookshelf-filter-rail section{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--border)}.bookshelf-filter-rail h3{margin:0 0 .75rem;font-size:calc((.75rem) / var(--text-inflation, 1));font-weight:550;color:var(--text-secondary)}.bookshelf-filter-option{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;width:100%;min-height:36px;padding:.4375rem .625rem;border-radius:8px;text-align:left;font-size:calc((.8125rem) / var(--text-inflation, 1));line-height:1.6;color:var(--text-secondary);cursor:pointer}.bookshelf-filter-option>:first-child{overflow-wrap:anywhere}.bookshelf-filter-option>:last-child{flex-shrink:0;font-size:calc((.75rem) / var(--text-inflation, 1));font-variant-numeric:tabular-nums}.bookshelf-filter-option:hover{background:var(--surface-hover)}.bookshelf-filter-option[aria-pressed=true]{background:var(--accent-soft);color:var(--text-primary);font-weight:600}.bookshelf-filter-compact{display:none}.bookshelf-filter-rail :is(button,select):focus-visible{outline:2px solid var(--accent);outline-offset:2px}.bookshelf-filter-status{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1rem;color:var(--text-secondary);font-size:calc((.8125rem) / var(--text-inflation, 1));line-height:1.7}.bookshelf-filter-empty button,.bookshelf-filter-status button{color:var(--accent);min-height:44px;padding:.5rem .75rem;border-radius:10px}.bookshelf-filter-empty button:hover,.bookshelf-filter-status button:hover{background:var(--surface-hover)}.bookshelf-filter-empty{padding:4rem 1rem;text-align:center}.bookshelf-filter-empty p{font-size:calc((1rem) / var(--text-inflation, 1));line-height:1.7;color:var(--text-secondary);margin-bottom:1rem}.bookshelf-custom{margin-top:.75rem;min-width:0}.bookshelf-custom-heading,.bookshelf-custom-row{display:flex;align-items:center;gap:.125rem}.bookshelf-custom-trigger{justify-content:space-between;flex:1;min-height:40px;padding:.5rem .625rem;border-radius:8px;text-align:left;font-size:calc((.8125rem) / var(--text-inflation, 1));color:var(--text-secondary)}.bookshelf-custom-trigger,.bookshelf-custom-trigger-label{display:flex;align-items:center;gap:.5rem;min-width:0}.bookshelf-custom-trigger svg{flex-shrink:0}.bookshelf-custom-edit:hover,.bookshelf-custom-form button:hover,.bookshelf-custom-trigger:hover{background:var(--surface-hover)}.bookshelf-custom-trigger[data-selected=true]{background:var(--accent-soft);color:var(--text-primary);font-weight:600}.bookshelf-color-dot{display:inline-block;width:10px;height:10px;flex:0 0 10px;border-radius:50%;box-shadow:inset 0 0 0 1px rgb(0 0 0/8%)}.bookshelf-custom-current{margin:.25rem .625rem 0;font-size:calc((.75rem) / var(--text-inflation, 1));color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bookshelf-custom-menu{margin-top:.375rem;padding:.625rem .375rem;background:var(--surface-raised);border:1px solid var(--border);border-radius:12px}.bookshelf-custom-help,.bookshelf-custom-hint{margin:0 .375rem .625rem;font-size:calc((.75rem) / var(--text-inflation, 1));line-height:1.7;color:var(--text-secondary)}.bookshelf-custom-help{margin:.5rem .625rem}.bookshelf-custom-option{display:flex;align-items:center;gap:.4375rem;flex:1;min-width:0;min-height:40px;padding:.5rem .375rem;border-radius:8px;font-size:calc((.8125rem) / var(--text-inflation, 1));text-align:left;color:var(--text-secondary)}.bookshelf-custom-option:hover{background:var(--surface-hover)}.bookshelf-custom-option[aria-pressed=true]{color:var(--accent);background:var(--accent-soft);font-weight:600}.bookshelf-custom-name{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.5}.bookshelf-custom-count{flex-shrink:0;font-size:calc((.75rem) / var(--text-inflation, 1));font-variant-numeric:tabular-nums}.bookshelf-custom-edit{display:grid;place-items:center;width:28px;height:40px;flex-shrink:0;border-radius:8px;color:var(--text-secondary)}.bookshelf-custom-form{padding:.75rem .375rem}.bookshelf-custom-form label{display:block;margin-bottom:.375rem;font-size:calc((.75rem) / var(--text-inflation, 1));color:var(--text-primary)}.bookshelf-custom-form input{width:100%;min-width:0;min-height:36px;padding:.375rem .5rem;border:1px solid var(--border);border-radius:8px;background:var(--background);color:var(--text-primary);font-size:calc((.8125rem) / var(--text-inflation, 1))}.bookshelf-custom-form p{margin:.5rem 0;font-size:calc((.75rem) / var(--text-inflation, 1));line-height:1.7;color:var(--text-secondary)}.bookshelf-custom-form>div{display:flex;justify-content:flex-end;gap:.375rem}.bookshelf-custom-form button{min-height:36px;padding:.375rem .625rem;border-radius:8px;font-size:calc((.75rem) / var(--text-inflation, 1));color:var(--text-secondary)}.bookshelf-custom-form button[type=submit]{color:var(--accent);background:var(--accent-bg)}.bookshelf-custom :disabled{opacity:.45;cursor:default}.bookshelf-custom .bookshelf-custom-error{margin:.5rem .375rem;color:var(--danger);font-size:calc((.75rem) / var(--text-inflation, 1));line-height:1.7}.bookshelf-custom-error button{text-decoration:underline;text-underline-offset:3px}.bookshelf-custom input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.bookshelf-custom-editor{padding-bottom:.625rem}.bookshelf-custom-recolor{padding:.5rem 0 .75rem;min-width:0;border:0}.bookshelf-custom-recolor legend{font-size:calc((.75rem) / var(--text-inflation, 1));color:var(--text-primary)}.bookshelf-custom-confirm p,.bookshelf-custom-recolor p{margin:0 0 .625rem;font-size:calc((.75rem) / var(--text-inflation, 1));line-height:1.7;color:var(--text-secondary)}.bookshelf-custom-swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.25rem;max-width:208px}.bookshelf-custom-swatches button{display:grid;place-items:center;min-height:36px;border-radius:8px}.bookshelf-custom-swatches button:hover{background:var(--surface-hover)}.bookshelf-custom-swatches span{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;box-shadow:inset 0 0 0 1px rgb(0 0 0/10%);color:#fff}.bookshelf-custom-swatches button[aria-pressed=true]{outline:1px solid var(--accent);outline-offset:-2px}.bookshelf-custom-footer{margin-top:.5rem;padding:.5rem .375rem 0;border-top:1px solid var(--border)}.bookshelf-custom-delete{width:100%;min-height:36px;text-align:left;color:var(--text-secondary);font-size:calc((.75rem) / var(--text-inflation, 1));border-radius:8px}.bookshelf-custom-delete:hover{color:var(--danger)}.bookshelf-custom-confirm>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.25rem}.bookshelf-custom-confirm button{min-height:36px;padding:.375rem .5rem;font-size:calc((.75rem) / var(--text-inflation, 1));border-radius:8px;color:var(--text-secondary)}.bookshelf-custom-confirm button:hover{background:var(--surface-hover)}.bookshelf-custom-confirm .bookshelf-custom-danger{color:var(--danger);border:1px solid var(--border)}@container bookshelf (max-width: 900px){.bookshelf-browser{flex-direction:column}.bookshelf-filter-rail{order:-1;flex:none;padding:12px 24px;border-left:0;border-bottom:1px solid var(--border);overflow:visible}.bookshelf-filter-wide{display:none}.bookshelf-custom-menu{max-height:45vh;overflow-y:auto}.bookshelf-custom-edit{width:40px}.bookshelf-filter-compact{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;color:var(--text-secondary);font-size:calc((.875rem) / var(--text-inflation, 1))}.bookshelf-filter-compact select{flex:1;min-width:0;max-width:100%;min-height:44px;border:1px solid var(--border);border-radius:10px;background:var(--surface-raised);color:var(--text-primary);padding:.5rem .75rem}}@supports not (container-type:inline-size){@media (max-width:900px){.bookshelf-browser{flex-direction:column}.bookshelf-filter-rail{order:-1;flex:none;padding:12px 24px;border-left:0;border-bottom:1px solid var(--border);overflow:visible}.bookshelf-filter-wide{display:none}.bookshelf-custom-menu{max-height:45vh;overflow-y:auto}.bookshelf-custom-edit{width:40px}.bookshelf-filter-compact{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;color:var(--text-secondary);font-size:calc((.875rem) / var(--text-inflation, 1))}.bookshelf-filter-compact select{flex:1;min-width:0;max-width:100%;min-height:44px;border:1px solid var(--border);border-radius:10px;background:var(--surface-raised);color:var(--text-primary);padding:.5rem .75rem}}}.bookshelf-view-switch{gap:2px;flex:none}.bookshelf-view-switch,.bookshelf-view-switch button{position:relative;display:inline-flex;align-items:center}.bookshelf-view-switch button{justify-content:center;width:32px;height:32px;border-radius:8px;background:transparent;color:var(--text-muted);transition:color .18s ease,background-color .18s ease}.bookshelf-view-switch button:hover{color:var(--text-primary);background:var(--surface-hover)}.bookshelf-view-switch button[aria-pressed=true]{color:var(--text-primary)}.bookshelf-view-switch button[aria-pressed=true]:hover{background:transparent}.bookshelf-view-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.bookshelf-view-switch button:active svg{transform:scale(.92)}.bookshelf-view-switch svg{transition:transform .12s ease}.bookshelf-view-switch.is-mobile{isolation:isolate;gap:2px;padding:3px;border-radius:9999px;background:var(--surface-sunken);box-shadow:inset 0 1px 1.5px rgb(0 0 0/.06)}.bookshelf-view-switch.is-inline button[aria-pressed=true],.bookshelf-view-switch.is-mobile button[aria-pressed=true]{color:var(--accent)}.bookshelf-view-switch.is-inline button:hover,.bookshelf-view-switch.is-mobile button:hover{background:transparent}.bookshelf-view-switch.is-mobile button{width:44px;height:32px;border-radius:9999px}.bookshelf-view-switch.is-inline{isolation:isolate;flex:none;gap:0;margin-right:3px;padding:0;border-radius:9999px;background:transparent;box-shadow:none}.bookshelf-view-switch.is-inline button{width:40px;height:30px;border-radius:9999px}.bookshelf-view-switch.is-inline:before{content:"";align-self:center;width:1px;height:16px;margin:0 4px 0 2px;background:var(--border);order:-1}.bookshelf-view-row{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:-2px 0 8px}.shelf-arrange-key{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:9px;font-size:calc((13px) / var(--text-inflation, 1));color:var(--text-secondary);background:var(--surface-sunken);transition:color .15s,background-color .15s}.shelf-arrange-key:hover:not(:disabled){color:var(--text-primary)}.shelf-arrange-key:disabled{opacity:.5;cursor:not-allowed}.shelf-arrange-key.is-mobile{height:32px;border-radius:9999px}.shelf-arrange-row{display:flex;justify-content:flex-end;margin:0 0 6px}.shelf-arrange-bar{position:sticky;top:8px;z-index:20;display:flex;align-items:center;gap:12px;margin:0 0 10px;padding:8px 8px 8px 16px;border-radius:14px;background:color-mix(in srgb,var(--surface-raised,#fff) 92%,transparent);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);box-shadow:var(--shadow-2,0 6px 24px rgb(0 0 0/.12)),0 0 0 1px var(--border-subtle,rgb(0 0 0/.06));animation:shelf-arrange-in .18s cubic-bezier(.2,.7,.3,1)}@keyframes shelf-arrange-in{0%{opacity:0;transform:translateY(-4px)}}.shelf-arrange-hint{flex:1;min-width:0;font-size:calc((13px) / var(--text-inflation, 1));color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shelf-arrange-actions{display:flex;align-items:center;gap:2px;flex:none}.shelf-arrange-actions button{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border-radius:9px;font-size:calc((13px) / var(--text-inflation, 1));color:var(--text-secondary);white-space:nowrap;transition:background-color .15s,color .15s}.shelf-arrange-actions button:hover{background:var(--surface-hover);color:var(--text-primary)}.shelf-arrange-actions button.is-done{margin-left:6px;padding:0 14px;background:var(--accent);color:#fff;font-weight:600}.shelf-arrange-actions button.is-done:hover{background:color-mix(in srgb,var(--accent) 88%,#000);color:#fff}.shelf-arrange-pick{position:relative}.shelf-figurine-picker{position:absolute;top:calc(100% + 8px);right:0;z-index:30;display:grid;grid-template-columns:repeat(3,60px);gap:6px;padding:10px;border-radius:14px;background:var(--surface-raised,#fff);box-shadow:var(--shadow-3,0 12px 32px rgb(0 0 0/.18)),0 0 0 1px var(--border-subtle,rgb(0 0 0/.06))}.shelf-figurine-picker button{width:60px;height:60px;padding:4px;border-radius:12px;justify-content:center}.shelf-figurine-picker img{width:52px;height:52px;object-fit:contain}.shelf-arrange-hint.is-touch{display:none}@media (pointer:coarse){.shelf-arrange-hint.is-touch{display:block}.shelf-arrange-hint.is-pointer{display:none}}@media (max-width:640px){.shelf-arrange-bar{position:fixed;left:10px;right:10px;top:auto;bottom:calc(10px + var(--safe-area-bottom, env(safe-area-inset-bottom)));flex-direction:column;align-items:stretch;gap:6px;padding:10px;border-radius:18px}.shelf-arrange-bar .shelf-arrange-hint{text-align:center;white-space:normal;font-size:calc((12px) / var(--text-inflation, 1))}.shelf-arrange-bar .shelf-arrange-actions{justify-content:space-between}.shelf-arrange-bar .shelf-arrange-actions button{flex-direction:column;gap:3px;height:50px;padding:0 6px;font-size:calc((11px) / var(--text-inflation, 1))}.shelf-arrange-bar .shelf-arrange-actions button.is-done{margin-left:0;padding:0 12px;border-radius:12px}.shelf-arrange-bar .shelf-figurine-picker{top:auto;bottom:calc(100% + 10px);right:auto;left:50%;transform:translateX(-50%)}.mobile-app-shell .shelf-arrange-bar{bottom:calc(72px + var(--safe-area-bottom, env(safe-area-inset-bottom)))}.cs-shelf[data-editing="1"]{padding-bottom:170px}}.bookshelf-manager{position:relative}.bookshelf-file-drop{position:absolute;inset:10px;z-index:40;pointer-events:none;display:flex;align-items:center;justify-content:center;border:1.5px dashed color-mix(in srgb,var(--accent) 70%,transparent);border-radius:18px;background:color-mix(in srgb,var(--accent) 6%,color-mix(in srgb,var(--background) 68%,transparent));animation:bookshelf-file-drop-in .14s ease-out}.bookshelf-file-drop-card{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:22px 30px;border-radius:16px;background:var(--surface-raised);color:var(--text-primary);box-shadow:0 10px 30px color-mix(in srgb,var(--foreground) 10%,transparent),0 0 0 1px var(--border)}.bookshelf-file-drop-card svg{color:var(--accent);margin-bottom:2px}.bookshelf-file-drop-card strong{font-size:calc((15px) / var(--text-inflation, 1));font-weight:600}.bookshelf-file-drop-card span{font-size:calc((12.5px) / var(--text-inflation, 1));color:var(--text-muted)}@keyframes bookshelf-file-drop-in{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.bookshelf-file-drop{animation:none}}.web-link-import-title{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:calc((1rem) / var(--text-inflation, 1));font-weight:600;color:var(--foreground)}.web-link-import-intro{margin:0 0 14px;font-size:calc((.8125rem) / var(--text-inflation, 1));line-height:1.6;color:var(--text-secondary)}.web-link-import-row{display:flex;gap:8px;margin:0 0 12px}.web-link-import-row input{flex:1;min-width:0;min-height:40px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:var(--background);color:var(--foreground);font-size:calc((.875rem) / var(--text-inflation, 1));outline:none}.web-link-import-row input:focus{border-color:var(--accent)}.web-link-import-row button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 16px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--foreground);font-size:calc((.875rem) / var(--text-inflation, 1));white-space:nowrap;cursor:pointer}.web-link-import-row button:hover:not(:disabled){background:var(--surface-hover)}.web-link-import-row button:disabled{opacity:.5;cursor:not-allowed}.web-link-import-error{display:flex;align-items:flex-start;gap:8px;margin:0 0 12px;padding:8px 12px;border-radius:8px;font-size:calc((.8125rem) / var(--text-inflation, 1));line-height:1.6;color:var(--danger);background:color-mix(in srgb,var(--danger) 8%,transparent)}.web-link-import-error svg{flex-shrink:0;margin-top:3px}.web-link-import-preview{margin:0 0 14px;padding:14px 16px;border:1px solid var(--border);border-radius:10px}.web-link-import-preview h3{margin:0 0 4px;font-size:calc((.9375rem) / var(--text-inflation, 1));font-weight:600;line-height:1.45;color:var(--foreground);overflow-wrap:anywhere}.web-link-import-meta{margin:0 0 8px;font-size:calc((.75rem) / var(--text-inflation, 1));color:var(--text-secondary);overflow-wrap:anywhere}.web-link-import-opening{margin:0 0 8px;font-size:calc((.8125rem) / var(--text-inflation, 1));line-height:1.7;color:var(--text-secondary)}.web-link-import-toc{margin:0;padding-left:20px;font-size:calc((.78rem) / var(--text-inflation, 1));line-height:1.8;color:var(--text-secondary)}.web-link-import-toc li.more{list-style:none}.web-link-import-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:calc((.75rem) / var(--text-inflation, 1));color:var(--text-secondary)}.web-link-import-primary{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;min-height:40px;padding:8px 16px;border:0;border-radius:8px;background:var(--accent);color:var(--text-inverse);font-size:calc((.875rem) / var(--text-inflation, 1));font-weight:500;cursor:pointer}.web-link-import-primary:hover{filter:brightness(.94)}.mwi{padding:2px 10px 18px;color:var(--text-primary)}.mwi-intro{margin:0 0 16px;font-size:calc((14px) / var(--text-inflation, 1));line-height:1.7;color:var(--text-secondary)}.mwi-form{margin:0}.mwi-field{display:flex;align-items:center;gap:10px;min-height:54px;padding:0 6px 0 14px;border-radius:16px;background:var(--surface-sunken);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--border) 70%,transparent);transition:box-shadow .18s ease,background-color .18s ease}.mwi-field:focus-within{background:var(--surface-raised);box-shadow:inset 0 0 0 1.5px var(--accent),0 0 0 4px var(--accent-soft)}.mwi-field.is-invalid{box-shadow:inset 0 0 0 1.5px var(--danger)}.mwi-field.is-locked{opacity:.72}.mwi-field-icon{flex-shrink:0;color:var(--text-muted)}.mwi-field:focus-within .mwi-field-icon{color:var(--accent)}.mwi-field input{flex:1;min-width:0;height:52px;padding:0;border:0;outline:none;background:transparent;color:var(--text-primary);font-size:calc((16px) / var(--text-inflation, 1));letter-spacing:.005em;text-overflow:ellipsis}.mwi-field input::placeholder{color:var(--text-muted);opacity:.85}.mwi-field-clear{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;border:0;border-radius:999px;background:transparent;color:var(--text-muted)}.mwi-field-clear:active{background:var(--surface-active)}.mwi-field-error{margin:8px 4px 0;font-size:calc((13px) / var(--text-inflation, 1));line-height:1.5;color:var(--danger)}.mwi-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border:0;border-radius:999px;font-size:calc((15.5px) / var(--text-inflation, 1));font-weight:600;letter-spacing:.02em;-webkit-tap-highlight-color:transparent;transition:transform .12s ease,opacity .12s ease,filter .12s ease}.mwi-button:active:not(:disabled){transform:scale(.985)}.mwi-button:disabled{opacity:.45}.mwi-button--primary{background:var(--accent-solid,var(--accent));color:var(--text-inverse,#fff)}.mwi-button--quiet{background:transparent;color:var(--text-secondary);font-weight:500}.mwi-button--quiet:active{background:var(--surface-active)}.mwi-read{width:100%;margin-top:12px}.mwi-hints{list-style:none;margin:18px 2px 0;padding:0;display:grid;gap:9px}.mwi-hints li{display:flex;align-items:flex-start;gap:10px;font-size:calc((13px) / var(--text-inflation, 1));line-height:1.6;color:var(--text-secondary)}.mwi-hint-mark{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:18px;height:18px;margin-top:2px;border-radius:999px;background:var(--surface-sunken);color:var(--text-muted)}.mwi-hint-mark.is-yes{background:var(--accent-soft);color:var(--accent)}.mwi-progress{position:relative;overflow:hidden;margin-top:14px;padding:16px 16px 8px;border-radius:16px;background:var(--surface-raised);box-shadow:0 0 0 1px var(--border),0 6px 20px color-mix(in srgb,var(--text-primary) 6%,transparent)}.mwi-progress-track{position:absolute;inset:0 0 auto 0;height:2px;background:var(--accent-soft);overflow:hidden}.mwi-progress-track span{position:absolute;top:0;bottom:0;width:38%;border-radius:2px;background:var(--accent);animation:mwi-sweep 1.35s cubic-bezier(.45,0,.25,1) infinite}@keyframes mwi-sweep{0%{left:-40%}to{left:102%}}.mwi-progress-row{display:flex;align-items:center;gap:12px}.mwi-progress-globe{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:12px;background:var(--accent-soft);color:var(--accent)}.mwi-progress-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.mwi-progress-text strong{font-size:calc((14.5px) / var(--text-inflation, 1));font-weight:600;color:var(--text-primary)}.mwi-progress-host{font-size:calc((12.5px) / var(--text-inflation, 1));color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mwi-progress-spin{flex-shrink:0;color:var(--text-muted)}.mwi-progress-slow{margin:12px 0 0 48px;font-size:calc((12.5px) / var(--text-inflation, 1));line-height:1.55;color:var(--text-secondary)}.mwi-progress-cancel{display:flex;margin:6px 0 0 auto;min-height:40px;padding:0 14px;font-size:calc((14px) / var(--text-inflation, 1))}.mwi-error{display:flex;gap:12px;margin-top:14px;padding:14px 16px;border-radius:16px;background:color-mix(in srgb,var(--danger) 7%,var(--surface-raised));box-shadow:0 0 0 1px color-mix(in srgb,var(--danger) 18%,transparent)}.mwi-error-icon{display:inline-flex;flex-shrink:0;margin-top:1px;color:var(--danger)}.mwi-error-body{min-width:0}.mwi-error-body strong{display:block;font-size:calc((14.5px) / var(--text-inflation, 1));font-weight:600;color:var(--text-primary)}.mwi-error-body p{margin:4px 0 0;font-size:calc((13.5px) / var(--text-inflation, 1));line-height:1.65;color:var(--text-secondary);overflow-wrap:anywhere}.mwi-source{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:var(--text-muted);font-size:calc((13px) / var(--text-inflation, 1))}.mwi-source-host{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mwi-book{padding:22px 20px 18px;border-radius:18px;background:var(--surface-raised);box-shadow:0 0 0 1px var(--border),0 10px 28px color-mix(in srgb,var(--text-primary) 7%,transparent);animation:mwi-rise .28s cubic-bezier(.2,.8,.2,1)}@keyframes mwi-rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.mwi-book-kicker{margin:0 0 10px;font-size:calc((11.5px) / var(--text-inflation, 1));font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mwi-book-title{margin:0;font-family:ui-serif,Songti SC,"Noto Serif SC","Source Han Serif SC","Noto Serif CJK SC",Georgia,serif;font-size:calc((21px) / var(--text-inflation, 1));line-height:1.42;font-weight:700;letter-spacing:.01em;color:var(--text-primary);overflow-wrap:anywhere;text-wrap:balance;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.mwi-book-byline{margin:8px 0 0;font-size:calc((13px) / var(--text-inflation, 1));color:var(--text-secondary);overflow-wrap:anywhere}.mwi-book-stats{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 0}.mwi-book-stats span{padding:4px 10px;border-radius:999px;background:var(--surface-sunken);font-size:calc((12px) / var(--text-inflation, 1));font-variant-numeric:tabular-nums;color:var(--text-secondary)}.mwi-book-opening{margin:16px 0 0;padding:2px 0 2px 14px;border-left:2px solid var(--accent);font-family:ui-serif,Songti SC,"Noto Serif SC","Source Han Serif SC","Noto Serif CJK SC",Georgia,serif;font-size:calc((14.5px) / var(--text-inflation, 1));line-height:1.8;color:var(--text-secondary);overflow-wrap:anywhere}.mwi-book-toc{list-style:none;margin:16px 0 0;padding:12px 0 0;border-top:1px solid var(--border);display:grid;gap:2px}.mwi-book-toc li{display:flex;gap:12px;align-items:baseline;padding:5px 0;font-size:calc((13.5px) / var(--text-inflation, 1));line-height:1.5;color:var(--text-primary)}.mwi-book-toc li>span:last-child{min-width:0;overflow-wrap:anywhere}.mwi-book-toc-n{flex-shrink:0;font-size:calc((11.5px) / var(--text-inflation, 1));font-variant-numeric:tabular-nums;letter-spacing:.04em;color:var(--text-muted)}.mwi-book-toc-more button{min-height:36px;margin-left:24px;padding:0;border:0;background:transparent;color:var(--accent);font-size:calc((13.5px) / var(--text-inflation, 1));font-weight:600}.mwi-footer{padding:0}.mwi-footer-note{margin:0 0 10px;font-size:calc((12px) / var(--text-inflation, 1));line-height:1.55;color:var(--text-muted);text-align:center}.mwi-footer-actions{display:flex;gap:8px}.mwi-footer-actions .mwi-button--primary{flex:1}@media (prefers-reduced-motion:reduce){.mwi-progress-track span{animation-duration:2.6s}.mwi-book{animation:none}.mwi-button,.mwi-field{transition:none}}.mwi-progress:focus{outline:none}