/* Guide workspace composition. Native data and shared control tokens stay intact. */
body[data-ui-page=guide] .wiki-layout{grid-template-columns:minmax(0,1fr)}
body[data-ui-page=guide] #page-toc,body[data-ui-page=guide] #mobile-toc{display:none}
body[data-ui-page=guide] #main{min-width:0}

.guide-root{min-width:0;color:var(--u-ink);max-width:1100px;margin-inline:auto}
.guide-intro{margin-bottom:24px}
.guide-root .guide-panel{min-width:0;padding:20px;margin:0 0 24px;border:1px solid var(--u-line);border-radius:var(--u-radius);background:#fff}
.guide-root .guide-auth{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.8fr);gap:36px;max-width:940px;margin:0 0 28px;padding:28px;border:1px solid var(--u-line);border-radius:var(--u-radius);background:#fff;align-items:start}
.guide-auth-main{min-width:0;max-width:430px}
.guide-auth-title,.guide-method-heading,.guide-editor-heading,.guide-gear-heading{display:flex;align-items:center;gap:12px}
.guide-auth-title{margin-bottom:22px;align-items:flex-start}
.guide-auth-title p,.guide-method-heading p{margin:4px 0 0;color:var(--u-muted)}
.guide-auth-about{align-self:stretch;padding:22px;background:var(--u-surface);border:0;border-radius:var(--u-radius)}
.guide-auth-about>div+div{margin-top:24px;padding-top:20px;border-top:1px solid var(--u-line)}
.guide-auth-about p{margin:8px 0 0;color:var(--u-muted);font-size:14px;line-height:1.8}
.guide-auth-tabs,.guide-workspace-tabs{display:flex;align-items:stretch;gap:6px;margin:0 0 20px;max-width:100%;overflow-x:auto;scrollbar-width:thin}
.guide-workspace-tabs{margin-bottom:24px;padding-bottom:12px;border-bottom:1px solid var(--u-line)}
.guide-workspace-tabs>button{flex:none}
.guide-workspace-tabs>button>small{font-variant-numeric:tabular-nums}
.guide-root form{display:grid;gap:16px;min-width:0}
.guide-root label{display:flex;flex-direction:column;gap:5px;min-width:0}
.guide-root input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),.guide-root select{width:100%;min-width:0}
.guide-root [data-account-unlink]>label:has(input[type=checkbox]){flex-direction:row;align-items:center;gap:8px}
.guide-root [type=checkbox]{flex:none}
.guide-root [role=status]{color:var(--u-muted);min-height:20px}
.guide-root [role=status]:empty{display:none}
.guide-root details{padding:10px 0}
.guide-small{color:var(--u-muted)}
.guide-account-bar,.guide-account-identity,.guide-account-actions,.guide-section-title,.guide-actions,.guide-import-download,.guide-import-preview>div,.guide-root .ui-actions{display:flex;align-items:center;gap:8px}
.guide-account-bar{justify-content:space-between;flex-wrap:wrap;padding:4px 0 16px;margin-bottom:12px;border-bottom:1px solid var(--u-line)}
.guide-account-identity{min-width:0;flex-wrap:wrap}
.guide-account-identity strong{overflow-wrap:anywhere}
.guide-account-identity>span:last-child{color:var(--u-muted)}
.guide-account-actions,.guide-actions,.guide-root .ui-actions{flex-wrap:wrap}
.guide-section-title{justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.guide-section-title>h2{flex:1 1 auto}
.guide-section-title>.guide-small,.guide-section-title>.guide-actions,.guide-development-status{margin-left:auto}
.guide-section-title small{color:var(--u-muted);font-variant-numeric:tabular-nums}
.guide-section-title form{display:flex;gap:8px;max-width:320px}
.guide-symbol{display:inline-flex;flex:none;width:30px;height:30px;align-items:center;justify-content:center;background:var(--u-ink);border-radius:50%;vertical-align:middle}
.guide-symbol img{width:22px;height:22px;object-fit:contain}
.guide-workspace-tabs .guide-symbol,.guide-root [data-guide-inventory-kind] .guide-symbol{width:22px;height:22px}
.guide-workspace-tabs .guide-symbol img,.guide-root [data-guide-inventory-kind] .guide-symbol img{width:17px;height:17px}
.guide-auth-title>.guide-symbol{width:40px;height:40px}
.guide-auth-title>.guide-symbol img{width:28px;height:28px}
.guide-import-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.guide-import-method{min-width:0}
.guide-import-method+.guide-import-method{border-left:1px solid var(--u-line);padding-left:28px}
.guide-method-heading{margin-bottom:20px}
.guide-method-heading>.guide-symbol{width:42px;height:42px;border-radius:3px}
.guide-method-heading>.guide-symbol img{width:29px;height:29px}
.guide-file{position:relative;display:flex;justify-content:center;min-height:78px;padding:14px 18px;margin:0 0 16px;border:1px dashed var(--u-line);background:var(--u-surface);cursor:pointer}
.guide-file:hover{border-color:var(--u-focus)}
.guide-file:focus-within{outline:2px solid var(--u-focus);outline-offset:2px}
.guide-file-label{display:flex;align-items:center;justify-content:space-between;width:100%}
.guide-file-label>span{color:var(--u-muted)}
.guide-file input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%)}
.guide-import-download{flex-wrap:wrap;margin-bottom:12px}
.guide-import-preview{padding:16px 18px;margin-top:20px;background:var(--u-surface);border-left:3px solid var(--u-line)}
.guide-import-preview>div{flex-wrap:wrap;margin-top:16px}
.guide-import-preview ul{padding-left:20px}
.guide-add-character{position:relative;padding:0;margin-left:auto}
.guide-add-character>form{position:absolute;z-index:5;right:0;top:calc(100% + 8px);display:flex;width:310px;max-width:calc(100vw - 70px);padding:12px;background:#fff;border:1px solid var(--u-line);box-shadow:0 5px 18px #29334016}
.guide-add-character select{flex:1;min-width:0}
.guide-add-character button{flex:none}
.guide-character-workspace{display:grid;grid-template-columns:196px minmax(0,1fr);gap:24px;align-items:start}
.guide-roster{min-width:0;border-right:1px solid var(--u-line);padding-right:16px}
.guide-roster-search{margin-bottom:12px}
.guide-character-list{display:flex;flex-direction:column;gap:6px;max-height:620px;overflow:auto;scrollbar-width:thin;padding-right:3px}
.guide-character-list button{display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;text-align:left}
.guide-character-list button>img{grid-area:1/1/3/2;width:46px;height:46px;object-fit:contain}
.guide-character-list button>strong{grid-area:1/2;min-width:0;overflow-wrap:anywhere}
.guide-character-list button>span{grid-area:2/2;display:flex;align-items:center;justify-content:space-between;gap:6px;color:var(--u-muted)}
.guide-character-list button>span small{white-space:nowrap}
.guide-promotion-pending{grid-column:2;color:var(--u-muted)}
.guide-filter-empty{text-align:center;padding:15px 0;color:var(--u-muted)}
.guide-root [data-guide-editor],.guide-character-heading-copy{min-width:0}
.guide-editor-heading{padding-bottom:16px;margin-bottom:20px;border-bottom:1px solid var(--u-line)}
.guide-editor-heading>img{width:64px;height:64px;object-fit:contain;flex:none}
.guide-editor-heading>a{margin-left:auto;white-space:nowrap}
.guide-editor-affinities{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.guide-editor-affinities>span{display:flex;gap:5px;align-items:center;color:var(--u-muted)}
.guide-editor-affinities img{width:19px;height:19px;object-fit:contain}
.guide-path-icon{filter:brightness(.38)}
.guide-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.guide-editor form>details{border-top:1px solid var(--u-line);padding-top:12px;margin:0}
.guide-trace-grid,.guide-relic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.guide-trace-grid label{flex-direction:row;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--u-line)}
.guide-trace-grid img{width:28px;height:28px;flex:none;object-fit:contain;background:var(--u-ink);border-radius:50%}
.guide-trace-grid span{flex:1;min-width:0}
.guide-trace-grid .ui-field-label{display:flex;align-items:center;gap:8px}
.guide-root .guide-trace-grid input{width:64px;flex:none}
.guide-relic-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.guide-relic-list article{padding:12px;background:var(--u-surface)}
.guide-relic-list label{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.guide-root .guide-relic-list input{width:95px}
.guide-actions select{width:auto;max-width:220px}
.guide-inventory-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(250px,.9fr);gap:24px;align-items:start}
.guide-inventory-layout>div{min-width:0}
.guide-inventory-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:560px;overflow:auto;scrollbar-width:thin}
.guide-inventory-items button{display:grid;grid-template-columns:42px minmax(0,1fr);text-align:left;align-content:start}
.guide-inventory-items img{width:42px;height:58px;object-fit:contain;grid-row:span 4}
.guide-inventory-items strong{overflow-wrap:anywhere}
.guide-inventory-items span,.guide-inventory-items small{color:var(--u-muted)}
.guide-inventory-pagination{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:16px}
.guide-root [data-guide-inventory-search]{display:flex;gap:8px;max-width:370px;margin-bottom:18px}
.guide-root [data-guide-inventory-search]>input{flex:1;min-width:0}
.guide-root [data-guide-inventory-editor]{border-left:1px solid var(--u-line);padding-left:22px;align-self:start}
.guide-gear-heading{padding-bottom:16px;border-bottom:1px solid var(--u-line)}
.guide-gear-heading>img{width:50px;height:66px;object-fit:contain}
.guide-gear-heading small{color:var(--u-muted)}
.guide-inventory-affix{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:10px}
.guide-root [data-guide-inventory-editor] .guide-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.guide-team-name{max-width:420px}
.guide-team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:7px 0 12px}
.guide-team-slot{padding:12px 9px;background:var(--u-surface);border-bottom:1px solid var(--u-line);gap:10px;min-width:0}
.guide-slot-number,.guide-development-status{color:var(--u-muted)}
.guide-team-portrait{height:100px;display:flex;align-items:center;justify-content:center;min-width:0}
.guide-team-portrait>img{width:100%;height:100%;object-fit:contain}
.guide-team-portrait>.guide-symbol{width:52px;height:52px;opacity:.25}
.guide-team-portrait .guide-symbol img{width:36px;height:36px}
.guide-simulator-note{display:flex;align-items:center;gap:24px;padding:20px 0}
.guide-simulator-note>.guide-symbol{width:64px;height:64px;background:var(--u-surface);border-radius:0}
.guide-simulator-note>.guide-symbol img{width:44px;height:44px;filter:brightness(.4)}
.guide-simulator-note p{color:var(--u-muted);margin:8px 0 12px}
.guide-empty-state{display:flex;align-items:center;flex-direction:column;text-align:center;gap:12px;padding:32px 15px}
.guide-empty-state>.guide-symbol{width:60px;height:60px}
.guide-empty-state>.guide-symbol img{width:42px;height:42px}
.guide-empty-state p{margin:0;color:var(--u-muted)}
.guide-model-note{padding:12px 16px;border-left:3px solid var(--u-line);background:var(--u-surface)}
.guide-results,.guide-stat-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--u-line);margin:18px 0}
.guide-results>div,.guide-stat-results>div{padding:14px;border:1px solid var(--u-line)}
.guide-results span,.guide-stat-results dt{display:block;color:var(--u-muted)}
.guide-results strong,.guide-stat-results dd{display:block;font-variant-numeric:tabular-nums;margin:6px 0 0}
.guide-event-log{max-height:420px;overflow:auto;margin-top:12px}
.guide-event-log table{width:100%;border-collapse:collapse}
.guide-event-log th,.guide-event-log td{padding:8px 10px;text-align:left;border-bottom:1px solid var(--u-line)}
.guide-enhancement-row{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 24px;padding-bottom:16px;border-bottom:1px solid var(--u-line)}
.guide-root .guide-version-field{flex-direction:row;align-items:center;gap:12px;white-space:nowrap}
.guide-version-field select{min-width:112px;width:auto}
.guide-enhancement-summary{flex:1 1 180px;min-width:0;color:var(--u-muted)}
.guide-enhancement-summary:empty{display:none}
.guide-enhancement-summary details{padding:0}
.guide-enhancement-summary ul{margin:8px 0 0;padding-left:18px}
.guide-enhancement-summary li+li{margin-top:6px}
.guide-root .ui-facts{display:grid;gap:10px;margin:16px 0 24px}
.guide-root .ui-facts>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px}
.guide-root .ui-facts dt{color:var(--u-muted)}
.guide-root .ui-facts dd{margin:0;overflow-wrap:anywhere}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.guide-root .guide-auth-title h2{margin:0;font-size:21px;line-height:30px;border:0;padding:0}
.guide-root .guide-auth-title p{font-size:14px;line-height:23px}
.guide-root .guide-auth-about h3{font-size:16px;line-height:24px;margin:12px 0 0;padding:0;border:0}
.guide-root .guide-auth form{gap:14px}
.guide-root .guide-auth form .guide-small{margin:0;font-size:12px;line-height:20px}
.guide-root .guide-auth form>button{justify-self:start;min-width:108px}
.guide-root .guide-auth-tabs{margin-bottom:18px}
.guide-root .guide-auth-about .guide-symbol{width:30px;height:30px}
.guide-root .guide-auth-about .guide-symbol img{width:21px;height:21px}
.guide-root .guide-account-bar{padding:0 0 16px;margin-bottom:16px;background:none}
.guide-root .guide-section-title h2{margin:0;border:0;padding:0}
.guide-root .guide-character-list button{padding:9px;min-height:70px;gap:4px 10px;border-radius:var(--u-radius);background:var(--u-surface);border:1px solid transparent}
.guide-root .guide-character-list button[aria-pressed=true]{border-color:#bccfdd;background:var(--u-selected)}
.guide-root .guide-character-list button>strong{font-size:14px;line-height:22px;font-weight:600}
.guide-root .guide-character-list button>span{font-size:12px;line-height:19px}
.guide-root .guide-editor-heading h3,.guide-root .guide-gear-heading h3{font-size:19px;line-height:28px;margin:0;border:0;padding:0}
.guide-root .guide-inventory-items button{padding:10px;gap:3px 9px;min-height:84px;border:1px solid var(--u-line);background:#fff}
.guide-root .guide-inventory-items strong{font-size:14px;line-height:22px;font-weight:600}
.guide-root .guide-inventory-items span,.guide-root .guide-inventory-items small{font-size:12px;line-height:18px}

@media(max-width:1000px){.guide-character-workspace{grid-template-columns:172px minmax(0,1fr);gap:18px}.guide-roster{padding-right:12px}.guide-inventory-layout{grid-template-columns:minmax(0,1fr) minmax(230px,1fr);gap:18px}}
@media(max-width:760px){.guide-root .guide-auth,.guide-import-grid{grid-template-columns:minmax(0,1fr);gap:24px}.guide-root .guide-auth{padding:22px;gap:24px}.guide-auth-main{max-width:none}.guide-auth-about{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding:18px}.guide-auth-about>div{flex:1}.guide-auth-about>div+div{margin:0;padding:0;border:0}.guide-import-method+.guide-import-method{border-left:0;border-top:1px solid var(--u-line);padding:24px 0 0}.guide-inventory-layout{grid-template-columns:minmax(0,1fr)}.guide-root [data-guide-inventory-editor]{border-left:0;border-top:1px solid var(--u-line);padding:20px 0 0}.guide-inventory-items{max-height:400px}}
@media(max-width:560px){.guide-root .guide-panel{padding:16px}.guide-root .guide-auth{padding:18px;margin-bottom:20px}.guide-auth-title{gap:10px}.guide-auth-about{grid-template-columns:1fr;gap:18px}.guide-auth-about>div+div{padding-top:18px;border-top:1px solid var(--u-line)}.guide-root .guide-auth-title h2{font-size:19px;line-height:28px}.guide-root .guide-auth form>button{width:100%;justify-self:stretch}.guide-root .guide-workspace-tabs{gap:4px;margin-bottom:18px}.guide-root .guide-workspace-tabs .guide-symbol{display:none}.guide-root .guide-workspace-tabs>button{padding-inline:12px}.guide-root .guide-character-list button{min-height:96px;padding:10px 8px}.guide-root .guide-editor-heading h3{font-size:18px;line-height:27px}.guide-account-identity>span:last-child{display:none}.guide-account-actions{margin-left:0}.guide-workspace-tabs{margin-bottom:20px}.guide-character-workspace{grid-template-columns:minmax(0,1fr);gap:20px}.guide-roster{border:0;padding:0}.guide-character-list{display:grid;grid-auto-flow:column;grid-auto-columns:130px;max-height:none;overflow-x:auto;overflow-y:hidden;padding-bottom:8px}.guide-character-list button{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}.guide-character-list button>img{grid-area:auto;width:42px;height:42px}.guide-character-list button>strong,.guide-character-list button>span{grid-area:auto;max-width:100%}.guide-character-list button>span{flex-wrap:wrap}.guide-promotion-pending{display:none}.guide-editor-heading{flex-wrap:wrap}.guide-editor-heading>img{width:53px;height:53px}.guide-editor-heading>a{margin-left:0}.guide-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-trace-grid,.guide-relic-grid,.guide-relic-list{grid-template-columns:minmax(0,1fr)}.guide-team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.guide-team-portrait{height:90px}.guide-section-title>.guide-small{flex-basis:100%;margin:0}.guide-actions select{max-width:100%}.guide-simulator-note{gap:15px;align-items:flex-start}.guide-simulator-note>.guide-symbol{width:48px;height:48px}.guide-simulator-note>.guide-symbol img{width:32px;height:32px}.guide-enhancement-summary{flex-basis:100%}.guide-root .ui-facts>div{grid-template-columns:80px minmax(0,1fr)}}
