/* Scoped to the talent guide; matches the observed reference proportions. */
.tf-workbench{--tf-bg:#222;--tf-panel:#2a2a2a;--tf-line:rgba(255,127,80,.2);--tf-accent:#eb9e67;--tf-muted:#999;--tf-text:#ddd;max-width:1320px;margin:0 auto;padding:10px 12px;background:var(--tf-bg);border-radius:3px;font:16px/1.5 Arial,Tahoma,sans-serif;color:var(--tf-text)}
.tf-workbench *{box-sizing:border-box}.tf-workbench button,.tf-workbench a{font-family:inherit}.tf-workbench a{color:inherit}.tf-workbench button{cursor:pointer}.tf-workbench button:disabled{cursor:default;opacity:.4}
.tf-workbench .tf-title{display:flex;align-items:center;justify-content:center;padding:20px 16px;margin:0 0 10px;min-height:98px;border:1px solid var(--tf-line);border-radius:8px;background:linear-gradient(115deg,rgba(255,127,80,.12),transparent)}
.tf-workbench .tf-title h1{font:700 56px/1 Tangerine,cursive!important;color:var(--tf-accent);margin:0!important;padding:0;text-align:center}
.tf-classes{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:0 0 10px;padding:10px;background:rgba(255,127,80,.12);border:1px solid var(--tf-line);border-radius:8px}
.tf-classes a{display:flex;align-items:center;justify-content:center;width:46px;height:42px;padding:6px 8px;background:var(--tf-bg);border:1px solid transparent;border-radius:4px;transition:border-color .12s,background .12s}
.tf-classes img{display:block;width:28px;height:28px;object-fit:contain}.tf-classes a:hover,.tf-classes a[aria-current=page]{border-color:var(--tf-accent);background:rgba(255,127,80,.12);box-shadow:0 0 5px #eb9e6740}
.tf-hint{text-align:center;font-size:12.8px;color:var(--tf-muted);margin:0 0 12px;line-height:1.5}.tf-touch-hint{display:none}
.tf-board{display:grid;grid-template-columns:minmax(0,1fr) 254px minmax(0,1fr);gap:12px;align-items:stretch}
.tf-block,.tf-combinations{min-width:0;padding:12px;border:1px solid var(--tf-line);border-radius:8px;background:var(--tf-panel)}
.tf-block{display:flex;flex-direction:column;gap:8px}
.tf-workbench .tf-block-title{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 0 8px;border-bottom:1px solid var(--tf-line);font-size:12px;line-height:18px;letter-spacing:.5px;text-transform:uppercase;min-height:31px;color:var(--tf-muted);margin:0}
.tf-block-title>span{white-space:nowrap}.tf-block-title button{border:1px solid var(--tf-line);border-radius:3px;background:#0003;color:var(--tf-muted);font-size:10.4px;line-height:16px;padding:2px 6px;white-space:nowrap;text-transform:none}
.tf-levels{display:flex;align-items:center;gap:4px;letter-spacing:normal;text-transform:none}.tf-levels>span{font-size:10.4px;margin-right:2px;white-space:nowrap}
.tf-levels button{width:22px;height:22px;padding:0 4px;font-size:11.52px;line-height:17.28px;font-weight:600}.tf-levels button[aria-pressed=true]{border-color:var(--tf-accent);color:var(--tf-accent);background:rgba(255,127,80,.12)}
.tf-row{display:flex;flex-direction:column;gap:6px;padding:8px 10px;border:1px solid transparent;border-radius:4px;background:var(--tf-bg);transition:background .12s}
.tf-workbench .tf-row h3{margin:0;font-size:11.2px;font-weight:600;line-height:16.8px;letter-spacing:.3px;color:var(--tf-muted);text-transform:uppercase}
.tf-row-icons{display:flex;gap:6px;flex-wrap:wrap}.tf-chip{display:flex;align-items:center;justify-content:center;width:50px;height:50px;padding:4px;border:1px solid transparent;border-radius:4px;background:rgba(0,0,0,.3);position:relative;flex-shrink:0;text-decoration:none}
.tf-chip img{display:block;width:40px;height:40px;object-fit:contain}.tf-chip:hover,.tf-chip.equipped{border-color:var(--tf-accent);box-shadow:0 0 0 1px #eb9e6740}.tf-chip.equipped:after{content:"";position:absolute;right:-3px;top:-3px;width:6px;height:6px;background:var(--tf-accent);border:1px solid var(--tf-panel);border-radius:50%}
.tf-row[data-row="15"],.tf-row[data-row="30"]{background-image:linear-gradient(#b08a5c1f,#b08a5c1f)}.tf-row[data-row="16"],.tf-row[data-row="31"]{background-image:linear-gradient(#769cd41f,#769cd41f)}.tf-row[data-row="17"],.tf-row[data-row="32"]{background-image:linear-gradient(#aa96d41f,#aa96d41f)}.tf-row[data-row="18"],.tf-row[data-row="33"]{background-image:linear-gradient(#d4aa6024,#d4aa6024)}
.tf-ancestral .tf-block-title{color:#d4bc74}.tf-ancestral .tf-levels button[aria-pressed=true]{border-color:#d4bc74;color:#d4bc74;background:#d4bc7426}.tf-ancestral .tf-chip.equipped{border-color:#d4bc74}.tf-ancestral .tf-chip.equipped:after{background:#d4bc74}
.tf-equipped-space{display:flex;flex:1;align-items:center;justify-content:center;min-height:270px}.tf-workbench #talent-slots.tf-equipped-grid{display:grid;grid-template-columns:repeat(3,64px);grid-template-rows:repeat(3,64px);gap:8px;background:var(--tf-bg);padding:10px;border-radius:4px;width:228px;height:228px;margin:0}
.tf-equipped-cell{display:flex;align-items:center;justify-content:center;align-self:center;justify-self:center;width:64px;height:64px;background:#0003;border:1px solid var(--tf-line);border-radius:4px;text-decoration:none}.tf-equipped-cell img{width:48px;height:48px;object-fit:contain}.tf-equipped-cell:hover{border-color:var(--tf-accent)}.tf-equipped-cell.ancestral:hover{border-color:#d4bc74}.tf-equipped-cell.empty{width:52px;height:52px;background:transparent;border-color:transparent;opacity:.45}.tf-equipped-cell.empty img{width:48px;height:48px}
.tf-combo-cell{display:flex;align-items:center;justify-content:center;width:64px;height:64px}.tf-combo-indicator{position:relative;display:flex;align-items:center;justify-content:center;width:60px;height:60px}.tf-combo-indicator img{width:54px;height:54px;object-fit:contain}.tf-combo-indicator>span{position:absolute;right:-3px;bottom:-3px;background:var(--tf-accent);color:#222;min-width:16px;height:16px;line-height:16px;text-align:center;font-size:10px;font-weight:bold;border-radius:50%}.tf-combo-off{opacity:.45}.tf-combo-off>span{background:#555;color:#aaa}
.tf-legend{display:flex;gap:12px;justify-content:center;font-size:11.2px;line-height:16.8px;color:var(--tf-muted);white-space:nowrap}.tf-legend span:before{content:"";display:inline-block;border:1px solid #76533e;width:6px;height:6px;margin-right:4px}.tf-legend span+span:before{border-color:#d4bc74}
.tf-combinations{margin-top:12px}.tf-combinations>.tf-block-title{margin-bottom:10px}.tf-workbench .tf-combinations h2{font-size:12px;line-height:18px;margin:0;color:var(--tf-muted);font-weight:600}.tf-count{margin-left:5px;padding:1px 6px;background:#0003;color:var(--tf-muted);border-radius:10px;font-size:10px;letter-spacing:0}.tf-combo-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.tf-combo-card{display:flex;flex-direction:column;gap:8px;min-width:0;background:var(--tf-bg);border:1px solid var(--tf-line);border-radius:4px;padding:10px 12px;cursor:pointer}.tf-combo-card:hover{border-color:var(--tf-accent);background:#eb9e6708}.tf-combo-card.active{border-color:var(--tf-accent);box-shadow:inset 0 0 0 1px #eb9e6720;background:#eb9e6710}
.tf-combo-card>header{display:flex;align-items:center;gap:8px;padding-bottom:8px;border-bottom:1px solid var(--tf-line)}.tf-combo-card>header img{width:22px;height:22px;object-fit:contain}.tf-combo-card>header span{font-size:14.4px;font-weight:600;line-height:18px;color:var(--tf-accent)}
.tf-combo-talents{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.tf-combo-options{display:flex;gap:3px;align-items:center;flex-wrap:wrap;max-width:100%}.tf-combo-options.alternatives{padding:2px 4px;border:1px dashed var(--tf-line);border-radius:4px}.tf-combo-talent{display:flex;width:38px;height:38px;padding:2px;border:1px solid var(--tf-line);border-radius:3px;background:#0005}.tf-combo-talent img{display:block;width:32px;height:32px;object-fit:contain}.tf-combo-talent.equipped{border-color:var(--tf-accent);box-shadow:0 0 3px #eb9e6750}
.tf-workbench .tf-combo-bonus{display:block;color:var(--tf-muted);font-size:12px;line-height:1.45;white-space:pre-line;text-decoration:none}.tf-combo-bonus:hover{color:var(--tf-text)}.tf-combo-bonus em{font-style:italic}
.tf-source{font-size:11px;color:var(--tf-muted);text-align:center;margin:12px 0 0}.tf-source a{text-decoration:underline}.tf-workbench :focus-visible{outline:2px solid var(--tf-accent);outline-offset:3px}
.tf-tooltip{position:fixed;z-index:20000;max-width:min(340px,calc(100vw - 20px));padding:12px 14px;background:#191919f5;border:1px solid #846345;border-radius:5px;color:#eee;box-shadow:0 6px 24px #0008;font:13px/1.6 Arial,Tahoma,sans-serif;pointer-events:none}.tf-tooltip[hidden]{display:none}.tf-tooltip strong{display:block;color:#eb9e67;font-size:14px}.tf-tooltip small{display:block;color:#aaa;font-size:11px;margin-top:3px}.tf-tooltip p{white-space:pre-line;margin:8px 0 0;color:#e4d790}
[data-theme=light] .tf-workbench{--tf-bg:#fff;--tf-panel:#f8f6f3;--tf-line:#dac4b2;--tf-accent:#a55522;--tf-muted:#68605a;--tf-text:#302923}[data-theme=light] .tf-chip,[data-theme=light] .tf-equipped-cell{background:#d1c4b72e}[data-theme=light] .tf-combo-talent{background:#e9e0d7}[data-theme=light] .tf-levels button{background:#fff9}
@media(min-width:1200px) and (max-width:1399px){.tf-workbench{max-width:1116px}}@media(min-width:1400px){.tf-board{grid-template-columns:minmax(0,1fr) 254px minmax(0,1fr)}}
@media(max-width:1050px){.tf-board{grid-template-columns:minmax(0,1fr) 228px minmax(0,1fr);gap:8px}.tf-block{padding:10px}.tf-block-title{flex-wrap:wrap}.tf-equipped .tf-block-title{gap:4px}.tf-workbench #talent-slots.tf-equipped-grid{grid-template-columns:repeat(3,58px);grid-template-rows:repeat(3,58px);gap:6px;padding:8px;width:202px;height:202px}.tf-equipped-cell,.tf-combo-cell{width:58px;height:58px}.tf-row{padding:8px}.tf-row-icons{gap:4px}.tf-chip{width:46px;height:46px;padding:2px}.tf-combo-list{grid-template-columns:repeat(3,minmax(0,1fr))}.tf-legend{gap:6px;font-size:10px}}
@media(max-width:760px){.tf-board{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.tf-equipped{grid-column:1/-1;grid-row:2}.tf-equipped-space{min-height:230px}.tf-block-title{align-items:start}.tf-block-title>span{white-space:normal}.tf-combo-list{grid-template-columns:repeat(2,minmax(0,1fr))}.tf-classes{gap:4px}.tf-classes a{width:40px;height:40px;padding:5px}.tf-workbench{padding:8px}.tf-row{padding:6px}.tf-chip{width:42px;height:42px;padding:2px}.tf-chip img{width:36px;height:36px}.tf-row-icons{gap:3px}.tf-levels{gap:3px}.tf-levels button{width:20px;padding:0 2px}.tf-levels>span{display:none}.tf-hint{font-size:11px}.tf-workbench .tf-title{min-height:82px}.tf-workbench .tf-title h1{font-size:48px!important}.tf-block{padding:8px}.tf-row h3{font-size:10px!important}}
@media(max-width:420px){.tf-combo-list{grid-template-columns:1fr}.tf-chip{width:38px;height:38px;padding:1px}.tf-chip img{width:34px;height:34px}.tf-row{padding:5px 3px}.tf-row-icons{gap:2px}.tf-workbench{padding:6px}.tf-block{padding:6px}.tf-levels{gap:2px}.tf-levels button{width:18px;font-size:11px}.tf-row h3{font-size:9.5px!important}}
@media(pointer:coarse){.tf-desktop-hint{display:none}.tf-touch-hint{display:inline}.tf-tooltip{display:none}}

.tf-combo-talent{opacity:.55}.tf-combo-talent.equipped{opacity:1}
