.talent-heading {
  border-bottom: 1px solid #9a713c;
  background: linear-gradient(90deg, #031018ed 0%, #04111a89 48%, #06101822 100%),
    url("artwork/news-citadel-v1.c97432c72dc5.png") center 46% / cover;
}
.talent-heading-inner {width: min(1600px, calc(100% - 48px)); margin: auto; padding: 22px 12px 26px;}
.talent-heading .eyebrow {color: #dcb777; font-size: .65rem; letter-spacing: .16em;}
.talent-heading h1 {margin: 8px 0 10px; font-size: clamp(2.1rem, 4vw, 3rem); color: #ffdda0;}
.talent-heading p:last-child {margin: 0; color: #e6e0d1; font-size: .95rem; line-height: 1.7;}
.talent-app {
  --talent-gold: #d8ac63;
  width: min(1600px, calc(100% - 40px)); margin: 20px auto 56px;
  display: grid; grid-template-columns: 190px minmax(0, 1fr) 292px; gap: 16px; align-items: start;
  color: #ddd9cb;
}
.talent-app [hidden],.talent-anchor-dialog [hidden] {display: none !important;}
.talent-app button,.talent-app input,.talent-app select {font: inherit;}
.talent-app button {
  border: 1px solid #8c6a37; background: linear-gradient(#322718, #151a1b);
  color: #f0d8a9; border-radius: 3px; cursor: pointer; padding: 9px 12px; min-height: 44px;
}
.talent-app button:hover {border-color: #edc378; background: linear-gradient(#4c361b, #20211d);}
.talent-app button:focus-visible,.talent-app input:focus-visible,.talent-app select:focus-visible {
  outline: 2px solid #ffe1a0; outline-offset: 3px;
}
.talent-app button:disabled {opacity: .45; cursor: default;}
.talent-app input:not([type=checkbox]),.talent-app select {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 9px;
  border: 1px solid #354a52; background: #061720; color: #eee4ce; border-radius: 3px;
}
.talent-app label {display: grid; min-width: 0; gap: 7px; font-size: .8rem; color: #c7c3b6;}
.talent-app h2,.talent-app h3 {color: #f1d394; font-family: Georgia, 'Songti SC', serif;}
.talent-panel {
  min-width: 0; padding: 18px; border: 1px solid #5f5039; border-radius: 4px;
  background: linear-gradient(135deg, #11212a99, #050f16f2 70%);
  box-shadow: inset 0 0 0 3px #0e171b, 0 5px 20px #0002;
}
.talent-panel h2 {margin: 5px 0 16px; font-size: 1.12rem;}
.talent-panel .eyebrow {font-size: .58rem; letter-spacing: .13em; color: #b4986c;}
.talent-panel p {line-height: 1.7; overflow-wrap: anywhere;}
.talent-sidebar {padding: 18px 14px; border-top-color: #d8ac63;}
.talent-sidebar label + label {margin-top: 18px;}
.talent-sidebar-rule {margin-top: 24px; padding-top: 22px; border-top: 1px solid #6f542b66;}
.talent-sidebar-rule > span {color: #e6b45e; font-size: 1.5rem;}
.talent-sidebar-rule h3 {margin: 8px 0; font-size: .9rem;}
.talent-sidebar-rule p {font-size: .75rem; color: #abb6b8;}
.talent-caveat {border-left: 2px solid #ad803f; padding: 9px 12px; color: #bcc1bb; font-size: .75rem; line-height: 1.7;}
.talent-workspace,.talent-inspector {min-width: 0;}
.talent-toolbar {
  display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 14px;
  border: 1px solid #8e6b35; border-radius: 4px; background: linear-gradient(110deg, #12212a, #071018);
}
.talent-toolbar label:first-child {width: 76px;}
.talent-toolbar label:nth-child(2) {flex: 1; min-width: 150px; max-width: 180px;}
#talent-points-summary {font-size: .82rem; color: #f2ce82; align-self: center; white-space: nowrap;}
.talent-toolbar-actions {display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 8px;}
.talent-toolbar-actions button {flex: 1; padding: 8px; font-size: .8rem;}
.talent-app .talent-primary {border-color: #d1a152; color: #fff0c7; background: linear-gradient(#896128, #42260f);}
.talent-app .talent-danger {background: linear-gradient(#68190f, #380c0b); border-color: #a75a2f;}
.talent-status {margin: 10px 0; min-height: 22px; color: #e0c07d; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere;}
.talent-status.is-error {color: #ffba9d;}
.talent-draft-notices {display: flex; flex-wrap: wrap; gap: 8px;}
.talent-draft-notices > p {flex-basis: 100%;}
.talent-draft-notices > button {font-size: .72rem;}
.talent-draft-notices:has(> :not([hidden])) {margin-bottom: 12px;}
.talent-draft-notices select {max-width: 100%;}
.talent-tree-tabs {display: none;}
.talent-trees {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px;}
.talent-tree {min-width: 0; border: 1px solid #9d763b; border-radius: 5px; overflow: hidden; background: #080f16;}
.talent-tree header {display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 12px; border-bottom: 1px solid #80603399; background: #151913;}
.talent-tree h2 {margin: 4px 0 0; font-size: 1rem; overflow-wrap: anywhere;}
.talent-tree .eyebrow {font-size: .55rem; letter-spacing: .1em; color: #bb9c6b;}
.talent-tree header > strong {flex-shrink: 0; font-size: .74rem; text-align: right; line-height: 1.6; color: #f0cd8d;}
.talent-tree header small {font-size: .68rem; color: #b8c8bc;}
.talent-tree-controls {display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 8px; gap: 5px; background: #061018;}
.talent-tree-controls > div {display: flex; align-items: center; flex-wrap: wrap; gap: 4px;}
.talent-tree-controls button {min-width: 44px; font-size: .65rem; padding: 6px; background: #0e1b23; border-color: #4d4c3a;}
.talent-tree-controls output {min-width: 36px; color: #c8b68e; text-align: center; font-size: .68rem;}
.talent-viewport {
  position: relative; height: 550px; overflow: hidden; touch-action: none; cursor: grab;
  background: linear-gradient(#301b1788, #120e12c9), url("artwork/news-citadel-v1.c97432c72dc5.png") 42% center / auto 100%;
}
.talent-tree[data-tree='1'] .talent-viewport {
  background: linear-gradient(#052239b0, #07111bde), url("intro-citadel.c4cc6cddb34c.png") center / cover;
}
.talent-canvas {position: absolute; transform-origin: 0 0; user-select: none; -webkit-user-select: none;}
.talent-tree.is-panning .talent-viewport {cursor: grabbing;}
.talent-canvas svg {position: absolute; inset: 0; pointer-events: none; overflow: visible;}
.talent-edge {stroke: #638664; stroke-width: 2; fill: none;}
.talent-edge.is-active {stroke: #b8dc8d;}
.talent-visual-edge {stroke: #79afd3; stroke-width: 1.5; stroke-dasharray: 5 5; fill: none; opacity: .7;}
.talent-layout-legend {font-size: .67rem; line-height: 1.7; color: #b4ce9f;}
.talent-layout-legend span:last-child {color: #8ec8ec;}
.talent-shared-anchor {position: absolute; transform: translate(-50%, calc(-50% - 8px)); height: 90px; border: 1px solid #7ca0ad; border-radius: 5px; background: #18313a66; pointer-events: none;}
.talent-shared-anchor > span {display: block; text-align: center; font-size: 10px; line-height: 20px; color: #d0e2e6;}
.talent-app .talent-node {
  position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 56px; height: 56px; min-height: 56px; padding: 3px;
  border: 2px solid #8d7956; border-radius: 4px; background: #10161c;
}
.talent-node .talent-icon {display: grid; place-items: center; width: 46px; height: 46px; color: #c9b789; background: #172630; font-size: 1.3rem;}
.talent-icon img {display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 2px;}
.talent-node .talent-node-name {
  position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%);
  width: max-content; max-width: 180px; padding: 8px 10px; border: 1px solid #bc995c; border-radius: 3px;
  background: #041018f5; color: #ffe1a1; font-size: 12px; line-height: 1.5; pointer-events: none;
  visibility: hidden; opacity: 0;
}
.talent-app .talent-node:hover,.talent-app .talent-node:focus {z-index: 5;}
.talent-node:hover .talent-node-name,.talent-node:focus-visible .talent-node-name {visibility: visible; opacity: 1;}
.talent-node .talent-rank {position: absolute; right: -5px; bottom: -6px; padding: 2px 4px; border: 1px solid #81724d; border-radius: 2px; color: #ddd4ba; background: #030c12; font-size: 11px; line-height: 1.1;}
.talent-app .talent-node.is-known {border-color: #ffc159; background: #674219; box-shadow: 0 0 12px #ee8a3866;}
.talent-app .talent-node.is-maxed .talent-rank {color: #ffe69b; border-color: #e4b05b;}
.talent-app .talent-node.is-locked {border-color: #55626a; background: #0b141b;}
.talent-node.is-locked .talent-icon {filter: grayscale(1) brightness(.65);}
.talent-app .talent-node.is-automatic {border-style: dashed; border-color: #87bad1;}
.talent-app .talent-node.is-selected {outline: 2px solid #fff1ba; outline-offset: 3px;}
.talent-node .talent-layout-warning {position: absolute; left: -4px; top: -7px; background: #10202b; border: 1px solid #c3a16b; color: #ffe2a3; padding: 1px 4px; font-size: 11px;}
.talent-layout-issues {padding: 6px 10px; border-top: 1px solid #473f30; font-size: .65rem; line-height: 1.6; color: #a9b6b6; overflow-wrap: anywhere;}
.talent-layout-issues p {margin: 3px 0;}
.talent-pan-note {padding: 0 10px; font-size: .65rem; color: #abb7bc; line-height: 1.6;}
.talent-inspector {display: grid; gap: 14px;}
.talent-summary {border-top-color: #d8ac63;}
.talent-save-toolbar {margin: 0;}
.talent-summary-values {display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin: 16px 0; font-size: .8rem;}
.talent-summary-values dt {color: #9eaeaf;}
.talent-summary-values dd {margin: 0; text-align: right; overflow-wrap: anywhere; color: #eee2c9;}
.talent-summary-points {display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid #6b542d66;}
.talent-summary-points > div {display: grid; gap: 4px; font-size: .72rem; color: #b6c4c9;}
.talent-summary-points strong {color: #efcd8c; font-size: .92rem;}
.talent-summary .text-link {font-size: .8rem;}
.talent-summary-status {color: #e0c07d; font-size: .75rem;}
.talent-summary-status.is-error {color: #ffba9d;}
.talent-summary .talent-caveat {padding-left: 10px; margin-bottom: 0; font-size: .65rem;}
.talent-details > div > .talent-icon {display: block; width: 48px; height: 48px; margin-bottom: 12px;}
.talent-details h2 {font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere;}
.talent-details dl {display: grid; grid-template-columns: 1fr; gap: 4px; font-size: .75rem;}
.talent-details dt {color: #cbb180;}
.talent-details dd {margin: 0 0 8px; overflow-wrap: anywhere;}
.talent-description {white-space: pre-wrap; color: #d7d9d3; font-size: .8rem;}
.talent-details small {color: #a1b0b4; font-size: .68rem; line-height: 1.7;}
.talent-detail-actions,.talent-save-actions {display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0;}
.talent-detail-actions button {font-size: .75rem;}
.talent-choices {display: grid; gap: 6px; margin: 12px 0;}
.talent-choices button {display: flex; align-items: center; gap: 8px; text-align: left; font-size: .75rem; overflow-wrap: anywhere;}
.talent-choices .talent-icon {display: block; width: 32px; height: 32px; flex-shrink: 0;}
.talent-section-heading {display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;}
.talent-section-heading h2 {margin-bottom: 12px;}
.talent-section-heading > button {font-size: .75rem;}
.talent-build-panel,.talent-sharing,.talent-source {grid-column: 2 / -1;}
#talent-build-list {display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;}
#talent-build-list > p {color: #aebbbc; font-size: .8rem; margin: 0;}
.talent-build-row {min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 12px; border: 1px solid #5f513c; border-radius: 3px; background: #07151d;}
.talent-build-row h3 {margin: 0; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere;}
.talent-build-row p {margin: 0; font-size: .72rem; color: #b3bfbe;}
.talent-build-row > div {display: flex; gap: 8px; flex-wrap: wrap;}
.talent-build-row button {font-size: .72rem; flex: 1;}
.talent-sharing {display: flex; align-items: center; flex-wrap: wrap; gap: 16px;}
.talent-sharing h2 {margin: 0;}
.talent-check {display: flex !important; align-items: center; gap: 8px;}
.talent-check input {width: 18px; height: 18px; accent-color: #b89150;}
.talent-sharing > button {margin-left: auto; font-size: .8rem;}
#talent-link {flex-basis: 100%;}
.talent-provenance {color: #a1b0b4; font-size: .68rem; line-height: 1.7; overflow-wrap: anywhere;}
.talent-sidebar .talent-provenance {padding-top: 16px; margin-bottom: 0; border-top: 1px solid #6b542d66;}
.talent-source summary {color: #ddc28e; font-size: .8rem; cursor: pointer; line-height: 1.7;}
.talent-source p {font-size: .75rem;}
.talent-external {border-top: 1px solid #6b542d66; padding-top: 14px; margin-top: 14px;}
.talent-external a {font-size: .8rem;}
.talent-share-banner {padding: 12px; border: 1px solid #9c7c45; margin: 12px 0; background: #312b19; font-size: .8rem;}
.talent-share-banner button {margin-left: 12px;}
.talent-anchor-dialog {box-sizing: border-box; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 22px; overflow: auto; color: #e8dfcd; background: #071720; border: 1px solid #c19b58; border-radius: 5px;}
.talent-anchor-dialog::backdrop {background: #020b12d9;}
.talent-anchor-dialog header {display: flex; align-items: center; justify-content: space-between; gap: 12px;}
.talent-anchor-dialog h2 {font-size: 1.25rem; margin: 0; color: #f3d49a;}
.talent-anchor-dialog h3 {margin: 8px 0; font-size: 1rem; overflow-wrap: anywhere; color: #f3d49a;}
.talent-anchor-dialog label {display: grid; gap: 8px; font-size: .85rem;}
.talent-anchor-dialog button,.talent-anchor-dialog select {font: inherit; min-height: 44px; padding: 9px 12px; border: 1px solid #92733f; border-radius: 3px; background: #12232a; color: #f0d6a7; cursor: pointer;}
.talent-anchor-dialog select {max-width: 100%; width: 100%;}
.talent-anchor-dialog button:disabled {opacity: .45; cursor: default;}
.talent-anchor-dialog button:focus-visible,.talent-anchor-dialog select:focus-visible {outline: 2px solid #ffe1a0; outline-offset: 2px;}
#talent-anchor-locate {margin: 12px 0;}
#talent-anchor-options {display: grid; grid-template-columns: 1fr 1fr; gap: 12px;}
.talent-anchor-option {min-width: 0; padding: 14px; border: 1px solid #5f5b46; border-radius: 3px; background: #0c1d26;}
.talent-anchor-option > .talent-icon {display: block; width: 40px; height: 40px;}
.talent-anchor-option p,.talent-anchor-option small {font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere;}
.talent-anchor-option summary {cursor: pointer; padding: 12px 0; font-size: .85rem;}
@media (max-width: 1399px) {
  .talent-app {grid-template-columns: 190px minmax(0, 1fr);}
  .talent-inspector {grid-column: 2; grid-template-columns: 1fr 1fr;}
  .talent-build-panel,.talent-sharing,.talent-source {grid-column: 2;}
}
@media (max-width: 900px) {
  .talent-app {width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); gap: 14px;}
  .talent-heading-inner {width: calc(100% - 36px); padding: 26px 0;}
  .talent-sidebar {display: grid; grid-template-columns: 1fr 1fr; gap: 12px;}
  .talent-sidebar > .eyebrow,.talent-sidebar > h2 {grid-column: 1 / -1; margin: 0;}
  .talent-sidebar label + label {margin-top: 0;}
  .talent-sidebar-rule {grid-column: 1 / -1; margin-top: 0; padding-top: 12px;}
  .talent-sidebar-rule > span {display: none;}
  .talent-sidebar-rule h3 {display: none;}
  .talent-sidebar-rule p {margin: 0;}
  .talent-sidebar .talent-provenance {grid-column: 1 / -1; padding-top: 10px; margin: 0;}
  .talent-inspector,.talent-build-panel,.talent-sharing,.talent-source {grid-column: 1;}
  .talent-tree-tabs {display: flex; gap: 8px; margin-bottom: 12px;}
  .talent-tree-tabs button {flex: 1; font-size: .8rem;}
  .talent-tree-tabs [aria-selected=true] {border-color: #ecc47d; background: linear-gradient(#735321, #2d2214);}
  .talent-app[data-active-tree='0'] .talent-tree[data-tree='1'],
  .talent-app[data-active-tree='1'] .talent-tree[data-tree='0'] {display: none;}
  .talent-trees {grid-template-columns: minmax(0, 1fr);}
  .talent-viewport {height: 500px;}
  .talent-tree-controls > div {width: auto;}
}
@media (max-width: 540px) {
  .talent-heading-inner {padding: 24px 0;}
  .talent-heading .eyebrow {font-size: .55rem;}
  .talent-sidebar {padding: 16px;}
  .talent-inspector {grid-template-columns: 1fr;}
  .talent-viewport {height: 450px;}
  .talent-toolbar {padding: 12px; gap: 10px;}
  #talent-points-summary {flex-basis: 100%;}
  .talent-toolbar-actions {display: grid; grid-template-columns: 1fr 1fr;}
  .talent-toolbar-actions button {font-size: .78rem;}
  .talent-sharing {gap: 12px;}
  .talent-sharing > button {width: 100%; margin: 0;}
  .talent-anchor-dialog {padding: 16px;}
  #talent-anchor-options {grid-template-columns: 1fr;}
}
