.tc-page { padding: 2.2rem 0 3rem; }
.tc-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.tc-eyebrow { color: var(--ft-gold); font-size: .65rem; font-weight: 700; letter-spacing: .18em; }
.tc-eyebrow span { margin-left: .35rem; color: var(--tblr-body-color); }
.tc-intro .tc-eyebrow { color: var(--tblr-link-color); }
.tc-intro h1 { margin: .45rem 0; font: 500 clamp(2rem, 4vw, 2.7rem)/1.15 Georgia, serif; letter-spacing: -.025em; color: var(--tblr-heading-color); }
.tc-intro p { margin: 0; color: var(--tblr-secondary); }
.tc-guide-link { font-size: .8rem; white-space: nowrap; }
.tc-calculator { --tc-ink: #f0e6d2; --tc-muted: #a8b8b9; --tc-gold: #c8ae80; --tc-line: #c8ae8033; color: var(--tc-ink); color-scheme: dark; }
.tc-calculator button, .tc-dialog button { font: inherit; }
.tc-loading { padding: 5rem 1rem; text-align: center; border: 1px solid var(--tc-line); background: #0f242d; }
.tc-classes { display: grid; grid-template-columns: repeat(9, 1fr); gap: .45rem; margin-bottom: 1.25rem; }
.tc-class { min-width: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem .4rem; border: 1px solid #c8ae802d; border-radius: 4px; color: #bdc9c9; background: #102630; cursor: pointer; transition: border-color .15s, background .15s; }
.tc-class img { width: 27px; height: 27px; border-radius: 3px; filter: saturate(.55); }
.tc-class span { font-size: .78rem; }
.tc-class:hover { border-color: var(--class-color); background: #20353b; }
.tc-class[aria-pressed="true"] { border-color: var(--class-color); color: var(--class-color); background: linear-gradient(150deg, color-mix(in srgb, var(--class-color) 14%, #10232b), #10232b); box-shadow: inset 0 -2px var(--class-color), 0 3px 14px #0002; }
.tc-class[aria-pressed="true"] img { filter: none; }
.tc-workbench { border: 1px solid #c8ae804d; border-radius: 5px; background: #0c1e26; box-shadow: 0 12px 40px #0002; overflow: hidden; }
.tc-build-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem 1rem; background: radial-gradient(ellipse at 0 0, #2f70681f, transparent 70%); }
.tc-build-identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .9rem; }
.tc-build-identity .tc-eyebrow { flex-basis: 100%; font-size: .6rem; }
.tc-build-identity h2 { font: 500 1.7rem/1.2 Georgia, serif; color: var(--class-color, #c69b6d); margin: 0; }
.tc-distribution { color: #c7b797; font-size: 1rem; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.tc-build-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.tc-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem .85rem; border: 1px solid #c8ae8045; border-radius: 3px; background: #173039; color: #e8ddc7; cursor: pointer; font-size: .8rem !important; line-height: 1.4; }
.tc-button:hover { background: #24434a; border-color: #c8ae8088; }
.tc-button:disabled { opacity: .4; cursor: default; }
.tc-button-primary { background: linear-gradient(#39766b, #24584f); border-color: #6b9b7f; color: #fff4dd; }
.tc-button-primary:hover { background: #397b6b; }
.tc-button-quiet { background: transparent; border-color: transparent; color: #afbab8; }
.tc-count { background: #0003; padding: 0 .35rem; border-radius: 3px; font-size: .65rem; }
.tc-build-toolbar { display: flex; align-items: center; gap: 1.5rem; padding: .9rem 1.4rem; border-block: 1px solid var(--tc-line); background: #142c33; }
.tc-level-label { display: flex; align-items: center; gap: .75rem; white-space: nowrap; color: var(--tc-muted); font-size: .8rem; }
.tc-level-label input { width: 4rem; padding: .35rem .45rem; border: 1px solid #c8ae8045; border-radius: 3px; background: #091b23; color: #f0e6d2; }
.tc-budget { display: flex; align-items: center; gap: .8rem; flex: 1; color: var(--tc-muted); font-size: .75rem; white-space: nowrap; }
.tc-budget strong { color: #f0d9a5; font-size: 1.2rem; margin-right: .15rem; }
.tc-budget-track { height: 5px; background: #040d12; border-radius: 4px; flex: 1; min-width: 35px; max-width: 160px; overflow: hidden; }
.tc-budget-track > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #548c70, #d5be86); transition: width .15s; }
.tc-search { display: flex; align-items: center; gap: .5rem; padding: .4rem .65rem; border: 1px solid #c8ae8033; border-radius: 3px; background: #0b2028; color: #9badaf; }
.tc-search input { background: transparent; color: #f0e6d2; border: 0; width: 135px; min-width: 0; font-size: .8rem; outline: none; }
.tc-search:focus-within { outline: 2px solid #b9a376; outline-offset: 2px; }
.tc-search-count { font-size: .65rem; }
.tc-help { display: flex; justify-content: space-between; gap: .5rem; padding: .85rem 1.4rem .1rem; color: #93a4a6; font-size: .7rem; }
.tc-help > :last-child { display: none; }
.tc-status { min-height: 2rem; padding: .3rem 1.4rem .6rem; font-size: .75rem; color: #c8bfaa; }
.tc-status[data-error="true"] { color: #ffb5a8; }
.tc-trees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0 1.25rem 1.25rem; }
.tc-tree { position: relative; min-width: 0; border: 1px solid #9c865861; border-radius: 3px; background: #080d10; overflow: hidden; box-shadow: inset 0 0 0 2px #000, 0 3px 10px #0005; }
.tc-tree-heading { display: flex; align-items: center; gap: .65rem; padding: .85rem .9rem; background: linear-gradient(180deg, #243535, #111f24); border-bottom: 1px solid #9c86587a; }
.tc-tree-heading img { width: 29px; height: 29px; border: 1px solid #aa9461; border-radius: 3px; }
.tc-tree-heading h3 { margin: 0; flex: 1; font: 500 1.13rem/1.2 Georgia, serif; color: #ebd7ac; }
.tc-tree-points { font-size: 1.15rem; color: #efdeb4; font-variant-numeric: tabular-nums; }
.tc-tree-grid { position: relative; height: 488px; isolation: isolate; background-color: #121a1c; background-image: linear-gradient(180deg, #06101520, #04101565), var(--tree-art); background-size: 100% 100%; background-position: center; }
.tc-tree-grid::after { position: absolute; content: ""; inset: 0; box-shadow: inset 0 0 40px 14px #0006; pointer-events: none; z-index: -1; }
.tc-row { position: absolute; left: 0; right: 0; height: calc(100% / 7); border-bottom: 1px solid #ffffff07; pointer-events: none; }
.tc-row-label { position: absolute; top: 50%; left: 6px; transform: translateY(-50%); color: #ddd7c599; font-size: .6rem; text-shadow: 0 1px 3px #000; }
.tc-row[data-locked="true"] { background: #01070933; }
.tc-connectors { position: absolute; width: 100%; height: 100%; inset: 0; overflow: visible; pointer-events: none; }
.tc-connector { fill: none; stroke: #b1a789; stroke-width: 2; opacity: .6; filter: drop-shadow(0 1px 1px #000); }
.tc-connector[data-active="true"] { stroke: #edc667; opacity: 1; }
.tc-talent { position: absolute; width: 47px; height: 47px; transform: translate(-50%, -50%); padding: 2px; border: 2px solid #787569; border-radius: 4px; background: #151712; box-shadow: 0 0 0 1px #070a07, inset 0 0 0 1px #e8e0bc40, 0 3px 7px #000c; cursor: pointer; z-index: 1; touch-action: manipulation; }
.tc-talent img { display: block; width: 100%; height: 100%; border-radius: 1px; filter: grayscale(1) brightness(.5); }
.tc-talent[data-state="available"] { border-color: #77b54b; }
.tc-talent[data-state="available"] img { filter: saturate(.9) brightness(.9); }
.tc-talent[data-state="learned"] { border-color: #80ce42; box-shadow: 0 0 8px #82c64040, 0 3px 7px #000c; }
.tc-talent[data-state="maxed"] { border-color: #e0ba54; box-shadow: 0 0 9px #ecb94940, 0 3px 7px #000c; }
.tc-talent[data-state="learned"] img, .tc-talent[data-state="maxed"] img { filter: none; }
.tc-talent:hover { z-index: 3; transform: translate(-50%, -50%) scale(1.08); }
.tc-talent:focus-visible { z-index: 3; outline: 2px solid #fff; outline-offset: 4px; }
.tc-talent[data-search="miss"] { opacity: .2; }
.tc-talent[data-search="match"] { outline: 2px solid #fff0a0; outline-offset: 5px; }
.tc-rank { position: absolute; bottom: -8px; right: -8px; min-width: 27px; padding: 0 3px; background: #070e0bed; border: 1px solid #77705a; border-radius: 2px; font: 700 .7rem/1.4 Arial, sans-serif; color: #aeafa3; box-shadow: 0 2px 3px #0008; }
.tc-talent[data-state="learned"] .tc-rank, .tc-talent[data-state="available"] .tc-rank { color: #a2e575; }
.tc-talent[data-state="maxed"] .tc-rank { color: #f0d27c; }
.tc-tree-footer { display: flex; justify-content: space-between; align-items: center; padding: .5rem .8rem; border-top: 1px solid #c8ae8045; background: #132129; font-size: .7rem; color: #a4b2ae; }
.tc-tree-reset { padding: .25rem; background: none; border: none; color: #cebd9b; cursor: pointer; font-size: .7rem !important; }
.tc-tree-reset:disabled { opacity: .4; cursor: default; }
.tc-bottom-bar { display: flex; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--tc-line); padding: .8rem 1.4rem; color: #94a8a7; font-size: .68rem; }
.tc-legend { display: flex; align-items: center; gap: .4rem; }
.tc-dot { width: 6px; height: 6px; border: 1px solid #76b651; margin-left: .5rem; }
.tc-dot-learned { background: #80ce42; border-color: #80ce42; }
.tc-dot-maxed { background: #e0ba54; border-color: #e0ba54; }
.tc-data-note { margin-top: 1.25rem; color: var(--tblr-secondary); font-size: .75rem; }
.tc-data-note > div { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.tc-data-note strong { color: var(--tblr-body-color); font-size: .76rem; font-weight: 500; }
.tc-data-note p { margin: .5rem 0; }
.tc-data-note summary { cursor: pointer; color: var(--tblr-link-color); }
:root[data-bs-theme="light"] .tc-data-note { color-scheme: light; }
.tc-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #c8ae80; }
.tc-tooltip { position: fixed; z-index: 1080; width: min(340px, calc(100vw - 20px)); max-height: calc(100vh - 24px); overflow: auto; padding: 1rem; border: 1px solid #b8a274; border-radius: 4px; background: #080e1af7; box-shadow: 0 8px 28px #0009, inset 0 0 0 2px #192638; color: #f0e6d2; pointer-events: none; font-size: .8rem; line-height: 1.5; }
.tc-tooltip h3, .tc-talent-copy h3 { color: #ffe3a3; font-size: 1rem; margin: 0 0 .15rem; }
.tc-tooltip p, .tc-talent-copy p { margin: .55rem 0 0; white-space: pre-line; }
.tc-tooltip-rank { color: #b8c0c5; font-size: .75rem; }
.tc-tooltip-label { display: block; color: #d9c798; font-size: .7rem; margin-top: .6rem; text-transform: uppercase; letter-spacing: .07em; }
.tc-tooltip-description { color: #ffe29b; }
.tc-tooltip-requirement { color: #ffb09a; }
.tc-tooltip-note { color: #c8b89b; font-style: italic; font-size: .72rem; }
.tc-dialog { width: min(470px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); padding: 1.5rem; border: 1px solid #ac9668; border-radius: 6px; color: #e6ddc8; background: #10242d; box-shadow: 0 24px 100px #000a; color-scheme: dark; }
.tc-dialog::backdrop { background: #020b10bb; backdrop-filter: blur(3px); }
.tc-dialog-wide { width: min(640px, calc(100vw - 24px)); }
.tc-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.tc-dialog h2 { margin: 0; color: #e4cfa1; font: 500 1.4rem Georgia, serif; }
.tc-dialog > p, .tc-dialog form > p { color: #aabbb9; font-size: .8rem; }
.tc-dialog label { display: block; font-size: .8rem; margin: 1rem 0 .4rem; }
.tc-close { border: 0; background: transparent; color: #c8baa0; font-size: 1.6rem !important; line-height: 1; cursor: pointer; padding: .25rem .4rem; }
.tc-input { width: 100%; padding: .65rem .75rem; border: 1px solid #c8ae8055; border-radius: 3px; background: #0a1a23; color: #f0e6d2; }
.tc-dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; }
.tc-dialog .tc-dialog-error { color: #ffb5a8; min-height: 1.2em; margin-top: .65rem; font-size: .8rem; }
.tc-copy { margin-top: .75rem; }
.tc-import-form { border-top: 1px solid #c8ae8033; margin-top: 1.4rem; padding-top: .1rem; }
.tc-import-form button { margin-top: .75rem; }
.tc-library-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid #c8ae802a; }
.tc-library-description { flex: 1; min-width: 0; }
.tc-library-description strong { display: block; overflow-wrap: anywhere; }
.tc-library-description small { display: block; color: #a8b8b9; margin-top: .2rem; }
.tc-library-empty { padding: 2rem 0; text-align: center; color: #adbaad; }
.tc-button:focus-visible, .tc-class:focus-visible, .tc-tree-reset:focus-visible, .tc-close:focus-visible, .tc-input:focus-visible, .tc-level-label input:focus-visible { outline: 2px solid #e9d29e; outline-offset: 3px; }
@media (max-width: 1100px) {
    .tc-class { flex-direction: column; gap: .35rem; }
    .tc-build-toolbar { gap: 1rem; }
    .tc-budget-track { display: none; }
    .tc-trees { gap: .6rem; padding-inline: .7rem; }
    .tc-talent { width: 43px; height: 43px; }
    .tc-tree-heading { padding-inline: .65rem; }
    .tc-tree-heading h3 { font-size: 1rem; }
}
@media (max-width: 767px) {
    .tc-page { padding-top: 1.5rem; }
    .tc-intro { align-items: flex-start; }
    .tc-guide-link { display: none; }
    .tc-classes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
    .tc-class { padding: .6rem .25rem; }
    .tc-class span { font-size: .67rem; }
    .tc-build-heading { align-items: flex-start; flex-direction: column; padding: 1rem; }
    .tc-build-actions { gap: .4rem; width: 100%; }
    .tc-button { padding: .5rem .65rem; font-size: .75rem !important; }
    .tc-build-toolbar { padding: .85rem 1rem; flex-wrap: wrap; }
    .tc-budget { justify-content: flex-end; gap: .6rem; }
    .tc-search { width: 100%; }
    .tc-search input { flex: 1; }
    .tc-help { padding-inline: 1rem; font-size: .65rem; }
    .tc-help > :nth-child(2) { display: none; }
    .tc-status { padding-inline: 1rem; }
    .tc-trees { grid-template-columns: 1fr; gap: 1.1rem; max-width: 460px; margin: auto; padding-inline: 1rem; }
    .tc-talent { width: 49px; height: 49px; }
    .tc-tree-grid { height: 500px; }
    .tc-tree-heading h3 { font-size: 1.2rem; }
    .tc-bottom-bar { flex-wrap: wrap; justify-content: center; padding: .75rem; }
    .tc-library-item { flex-wrap: wrap; gap: .5rem; }
    .tc-library-description { flex-basis: 100%; }
}
@media (pointer: coarse) {
    .tc-help > :first-child, .tc-help > :nth-child(2) { display: none; }
    .tc-help > :last-child { display: block; }
    .tc-tooltip { display: none; }
    .tc-talent { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .tc-calculator * { transition: none !important; }
}
