/* Read-only constellation map, gilded nodes and a grimoire-style detail panel. */
.ar-tree-sanctum {
    --tree-gold: #d9b97c;
    --tree-light: #f7e3b4;
    --tree-muted: #b8b0c4;
    --tree-violet: #b5a1e1;
    --tree-teal: #8ed6ce;
    margin: 2.5rem 0;
    padding: 1.6rem;
    position: relative;
    background: linear-gradient(135deg, #1a1729ed, #111726f5 50%, #161521);
    border: 1px solid #c3a57166;
    border-radius: 4px 26px 4px 26px;
    box-shadow: 0 25px 80px #0006, inset 0 0 0 5px #d9b97c08;
}
.ar-tree-sanctum::before, .ar-tree-sanctum::after {
    content: ''; position: absolute; width: 52px; height: 52px; pointer-events: none; border-color: var(--tree-gold);
}
.ar-tree-sanctum::before { left: 8px; top: 8px; border-left: 2px solid; border-top: 2px solid; color: var(--tree-gold); }
.ar-tree-sanctum::after { right: 8px; bottom: 8px; border-right: 2px solid; border-bottom: 2px solid; color: var(--tree-gold); }
.ar-tree-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .6rem 1.5rem; }
.ar-tree-eyebrow { color: var(--tree-gold); font-size: .65rem; letter-spacing: .28em; margin-bottom: .6rem; }
.ar-tree-heading h2 { font-family: 'Cinzel', 'Noto Sans JP', serif; font-size: clamp(1.6rem, 3vw, 2.1rem); color: #f5ead3; margin: 0; font-weight: 700; }
.ar-tree-heading p:last-child { color: var(--tree-muted); font-size: .8rem; margin: .75rem 0 0; }
.ar-tree-progress { text-align: right; flex-shrink: 0; display: grid; gap: .4rem; }
.ar-tree-progress > strong { font: 2rem 'Cinzel', serif; color: var(--tree-light); }
.ar-tree-progress > strong span { font-size: 1rem; color: #998eaa; }
.ar-tree-progress > span { font-size: .65rem; color: var(--tree-muted); }
.ar-tree-toolbar { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding: .8rem 0; margin-bottom: .8rem; border-top: 1px solid #d9b97c33; }
.ar-tree-search { display: flex; align-items: center; gap: .55rem; max-width: 320px; position: relative; color: var(--tree-gold); border: 1px solid #9d86b746; border-radius: 5px; background: #090d18; }
.ar-tree-search > span { padding-left: .75rem; font-size: 1.3rem; }
.ar-tree-search input { min-width: 0; width: 100%; border: 0; background: transparent; color: #eee6f5; padding: .6rem 0; font-size: .8rem; outline-offset: 4px; }
.ar-tree-search input::placeholder { color: #a79bb9; }
.ar-tree-search > button { background: transparent; color: var(--tree-gold); padding: .5rem .8rem; border: 0; border-left: 1px solid #d9b97c33; flex-shrink: 0; font-size: .75rem; }
.ar-tree-search-results { position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); min-width: 100%; width: min(350px, 80vw); background: #191626; border: 1px solid #d9b97c77; box-shadow: 0 10px 35px #000a; padding: .5rem; border-radius: 6px; color: #c8bdd7; font-size: .75rem; }
.ar-tree-search-results button { display: block; width: 100%; text-align: left; padding: .75rem .6rem; background: none; border: 0; border-bottom: 1px solid #d9b97c1c; color: #f5e8c9; }
.ar-tree-search-results button:hover { background: #d9b97c15; }
.ar-tree-controls { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.ar-tree-controls button { padding: .55rem .65rem; min-width: 36px; color: #e0c797; border: 1px solid #d9b97c40; background: #221f2c; border-radius: 4px; font-size: .73rem; transition: background .2s, border-color .2s; }
.ar-tree-controls button:hover { border-color: #d9b97caa; background: #443544; }
.ar-tree-controls output { font-family: 'Cinzel', serif; font-size: .7rem; color: #c6bccf; min-width: 45px; text-align: center; }
.ar-tree-spacing { display: inline-flex; align-items: center; gap: .35rem; color: #c6bccf; font-size: .72rem; white-space: nowrap; }
.ar-tree-spacing input { width: 95px; accent-color: #d9b97c; }
.ar-tree-spacing output { min-width: 38px; }
.ar-tree-control-divider { height: 22px; width: 1px; margin: 0 .35rem; background: #d9b97c26; }
.ar-tree-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; border: 1px solid #d9b97c45; border-radius: 5px 16px 5px 16px; overflow: hidden; }
.ar-tree-map-shell { position: relative; min-width: 0; }
.ar-tree-viewport { position: relative; height: 690px; overflow: hidden; isolation: isolate; cursor: grab; touch-action: none; background: radial-gradient(ellipse at 45% 45%, #2c224157, #080c19 72%); }
.ar-tree-viewport:active { cursor: grabbing; }
.ar-tree-viewport:focus-visible { outline: 2px solid var(--tree-gold); outline-offset: -3px; }
.ar-tree-viewport::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#d5c6f555 .8px, transparent 1.2px), radial-gradient(#ceb47c33 1px, transparent 1.5px); background-size: 43px 59px, 107px 97px; background-position: 7px 10px, 33px 25px; }
.ar-tree-viewport::after { content: ''; pointer-events: none; position: absolute; inset: 0; box-shadow: inset 0 0 100px #02051099; }
.ar-tree-canvas { position: relative; width: 100%; height: 100%; display: block; z-index: 1; }
.ar-tree-celestial { position: absolute; left: 50%; top: 50%; width: 630px; height: 630px; translate: -50% -50%; pointer-events: none; color: #c4b2e814; }
.ar-tree-celestial i { position: absolute; inset: 0; border: 1px solid currentColor; border-radius: 50%; }
.ar-tree-celestial i:nth-child(2) { inset: 35px; border-style: dashed; border-width: 2px; animation: tree-orbit 180s linear infinite; }
.ar-tree-celestial i:nth-child(3) { inset: 120px; border-radius: 2px; transform: rotate(45deg); }
.ar-tree-celestial span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 520px; line-height: 1; font-family: serif; }
.ar-tree-edge { stroke: #6c617e; stroke-width: 2; opacity: .58; }
.ar-tree-edge.is-unlocked { stroke: #ccb37e; opacity: .7; }
.ar-tree-edge.is-connected { stroke: #fae0a3; stroke-width: 3; opacity: 1; filter: drop-shadow(0 0 4px #e9c89080); }
.ar-tree-node { cursor: pointer; outline: none; }
.ar-tree-node-aura { fill: #cbbaff04; stroke: #ae99d122; stroke-width: 1; }
.ar-tree-node-runes { fill: none; stroke: #b7a4d050; stroke-width: 1.3; stroke-dasharray: 3 12; }
.ar-tree-node-frame { fill: #18182b; stroke: #96879d; stroke-width: 1.8; }
.ar-tree-node-core { fill: #0e1322; stroke: #9880b74a; stroke-width: 1; }
.ar-tree-node-gem { fill: #9584b1; stroke: #d3bdee; stroke-width: .8; }
.ar-tree-node-status { fill: #181424; stroke: #a28dba; stroke-width: 1; }
.ar-tree-node text { text-anchor: middle; pointer-events: none; }
.ar-tree-symbol { font-size: 30px; fill: #ccbded; }
.ar-tree-node-status-mark { fill: #b5a5c7; font-size: 14px; }
.ar-tree-node-icon { image-rendering: pixelated; pointer-events: none; opacity: .78; }
.ar-tree-node-label rect { fill: #101221ed; stroke: #9983b53b; stroke-width: 1; }
.ar-tree-node-name { fill: #e0d7eb; font: 11px 'Noto Sans JP', sans-serif; }
.ar-tree-node-cost-label { fill: #ba9cdf; font: 10px 'Cinzel', serif; letter-spacing: .8px; }
.ar-tree-node[data-point-type="CP"] .ar-tree-node-cost-label { fill: #8ed6ce; }
.ar-tree-node.is-unlocked .ar-tree-node-frame { fill: #33302e; stroke: #e5c27e; stroke-width: 2; }
.ar-tree-node.is-unlocked .ar-tree-node-core { fill: #211e24; stroke: #edc68b70; }
.ar-tree-node.is-unlocked .ar-tree-node-gem { fill: #f5d18d; stroke: #fff0c7; }
.ar-tree-node.is-unlocked .ar-tree-node-runes { stroke: #d9b97c80; }
.ar-tree-node.is-unlocked .ar-tree-node-icon { opacity: 1; filter: drop-shadow(0 2px 6px #edc17b35); }
.ar-tree-node.is-unlocked .ar-tree-node-status { fill: #59482a; stroke: #e9c881; }
.ar-tree-node.is-unlocked .ar-tree-node-status-mark { fill: #fff0b8; }
.ar-tree-node.is-root .ar-tree-node-aura { stroke: #e5c487; stroke-width: 1.5; }
.ar-tree-node.is-root .ar-tree-node-frame { stroke: #f6d99d; }
.ar-tree-node.is-unmet .ar-tree-node-status { stroke: #c17e8b; }
.ar-tree-node[aria-pressed="true"] .ar-tree-node-aura { fill: #f9d8a315; stroke: #ffe2a8; stroke-width: 2; filter: drop-shadow(0 0 9px #f7c98366); }
.ar-tree-node[aria-pressed="true"] .ar-tree-node-runes { stroke: #ffe4b3; animation: tree-orbit 35s linear infinite; }
.ar-tree-node[aria-pressed="true"] .ar-tree-node-label rect { fill: #332b32; stroke: #f6d99d; }
.ar-tree-node.is-neighbor .ar-tree-node-aura { stroke: #d7bf8177; }
.ar-tree-node:hover .ar-tree-node-frame, .ar-tree-node:focus-visible .ar-tree-node-frame { stroke: white; stroke-width: 3; }
.ar-tree-node:hover .ar-tree-node-icon, .ar-tree-node:focus-visible .ar-tree-node-icon { opacity: 1; }
[data-overview="true"] .ar-tree-node-label, [data-overview="true"] .ar-tree-node-status, [data-overview="true"] .ar-tree-node-status-mark { display: none; }
.ar-tree-map-caption { position: absolute; bottom: 20px; left: 20px; display: flex; gap: .6rem; align-items: center; z-index: 2; pointer-events: none; padding: .65rem .8rem; background: #090b16d9; border-left: 2px solid #c4a57688; color: #d6c39c; font-size: .65rem; }
.ar-tree-map-caption small { display: block; font-size: .58rem; color: #b6a9c3; margin-top: .25rem; }
.ar-tree-live-mark { font-size: 1.3rem; }
.ar-tree-minimap { position: absolute; right: 16px; bottom: 16px; width: 136px; height: 108px; z-index: 2; background: #0c0d1aee; border: 1px solid #b79a655c; border-radius: 4px; box-shadow: 0 6px 18px #0006; overflow: hidden; }
.ar-tree-minimap > span { position: absolute; top: 5px; left: 7px; font-size: .5rem; color: #cdbb9a; pointer-events: none; }
.ar-tree-minimap svg { display: block; width: 100%; height: 100%; cursor: crosshair; }
.ar-tree-mini-edge { stroke: #c5b19244; stroke-width: 5; }
.ar-tree-mini-node { fill: #827291; }
.ar-tree-mini-node.is-unlocked { fill: #e3c487; }
.ar-tree-mini-node.is-selected { fill: #fff2d0; }
.ar-tree-mini-viewport { fill: #f7d49522; stroke: #f5d393; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ar-tree-detail { padding: 1.2rem; min-width: 0; max-height: 690px; overflow: auto; border-left: 1px solid #d9b97c55; background: radial-gradient(ellipse at top, #392c4277, transparent 55%), linear-gradient(170deg, #221d2b, #131522); scrollbar-color: #7c6759 #141421; }
.ar-tree-detail-header { display: flex; justify-content: space-between; color: #a89aae; font-size: .6rem; letter-spacing: .13em; border-bottom: 1px solid #d9b97c24; padding-bottom: .8rem; }
.ar-tree-detail-header span:last-child { color: #c1a875; font-family: 'Cinzel', serif; }
.ar-tree-relic { width: 122px; height: 122px; display: grid; place-items: center; position: relative; margin: 1.6rem auto 1.2rem; border: 1px solid #d6b37477; border-radius: 50%; background: radial-gradient(circle, #c49a5b32, #39293b22 55%, transparent 70%); box-shadow: 0 0 35px #ac7bb112, inset 0 0 0 8px #e1c49107; }
.ar-tree-relic::before, .ar-tree-relic::after { content: '✦'; position: absolute; color: #dac08b; font-size: .7rem; background: #221c2b; padding: 0 .3rem; }
.ar-tree-relic::before { top: -8px; }
.ar-tree-relic::after { bottom: -8px; }
.ar-tree-relic-orbit { position: absolute; inset: 10px; border: 1px dashed #d6b37466; border-radius: 50%; animation: tree-orbit 60s linear infinite; }
.ar-tree-relic img { width: 62px; height: 62px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 6px 9px #0008); }
.ar-tree-relic-fallback { color: #c2aad5; font-size: 3rem; }
.ar-tree-detail-title { text-align: center; }
.ar-tree-point-kind { display: inline-block; color: #c4aadf; font-size: .6rem; padding: .3rem .65rem; border: 1px solid #b5a1e13d; border-radius: 20px; }
[data-point-type="CP"] .ar-tree-point-kind { color: var(--tree-teal); border-color: #8ed6ce44; }
.ar-tree-detail h3 { color: #f4e7cf; font-size: 1.2rem; font-weight: 700; line-height: 1.6; margin: .7rem 0 .45rem; overflow-wrap: anywhere; }
.ar-tree-state { font-size: .68rem; color: #b8aac4; }
[data-state="unlocked"] .ar-tree-state { color: #e8c487; }
.ar-tree-detail .ar-condition-unmet { color: #f2a5a5; }
.ar-tree-lore { color: #bfb2cb; font-size: .75rem; white-space: pre-line; text-align: center; line-height: 1.9; margin: 1.2rem 0; }
.ar-tree-cost { display: flex; justify-content: space-between; align-items: center; border-block: 1px solid #d9b97c33; padding: .9rem 0; margin-top: 1.4rem; gap: 1rem; }
.ar-tree-cost > span { font-size: .65rem; color: #beb2c9; }
.ar-tree-cost strong { font: 1.3rem 'Cinzel', serif; color: #e8ce98; }
.ar-tree-detail-section { margin-top: 1.3rem; }
.ar-tree-detail-section h4 { color: #d6c4a0; font-size: .7rem; font-weight: 400; margin: 0 0 .75rem; display: flex; gap: .45rem; align-items: center; }
.ar-tree-detail-section h4 > span { color: #ab88c5; font-size: 1rem; }
.ar-tree-effect-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ar-tree-effect-list li { color: #d9d0e2; background: #b59ccb0a; border-left: 2px solid #b598cb70; padding: .65rem .75rem; font-size: .72rem; line-height: 1.75; overflow-wrap: anywhere; }
.ar-tree-detail-section p { color: #c0b3cd; font-size: .7rem; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; margin: 0; }
.ar-tree-connections > div { display: flex; flex-wrap: wrap; gap: .45rem; color: #c0b3cd; font-size: .7rem; }
.ar-tree-connections button { color: #d5c39e; background: #d9b97c08; border: 1px solid #d9b97c33; border-radius: 4px; padding: .4rem .55rem; font-size: .63rem; overflow-wrap: anywhere; text-align: left; }
.ar-tree-connections button:hover { background: #d9b97c22; border-color: #d9b97c88; }
.ar-tree-readonly-note { margin: 1.4rem 0 0; text-align: center; font-size: .58rem; color: #a799b3; }
.ar-tree-map-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem .1rem .3rem; flex-wrap: wrap; }
.ar-tree-map-footer > span { font-size: .6rem; color: #a99db7; }
.ar-tree-legend { display: flex; gap: 1.1rem; color: #bcb0c8; font-size: .65rem; }
.ar-tree-legend > span { display: inline-flex; align-items: center; gap: .35rem; }
.ar-tree-legend i { display: inline-block; width: 8px; height: 8px; border: 1px solid #9887aa; transform: rotate(45deg); }
.ar-tree-legend i.is-unlocked { background: #d8b77e; border-color: #f0d49d; }
.ar-tree-legend i.is-root { border-color: #edcd8c; box-shadow: 0 0 0 2px #edcd8c33; }
.ar-tree-accessible { margin-top: 1rem; font-size: .75rem; color: #c6b9ce; }
.ar-tree-accessible summary { padding: .5rem 0; cursor: pointer; }
.ar-tree-accessible ul { max-height: 300px; overflow: auto; padding-left: 1.4rem; }
.ar-tree-accessible li { margin: 1rem 0; line-height: 1.9; }
@keyframes tree-orbit { to { transform: rotate(360deg); } }
@media (max-width: 991px) {
    .ar-tree-sanctum { padding: 1.1rem; }
    .ar-tree-toolbar { align-items: stretch; flex-direction: column; gap: .7rem; }
    .ar-tree-search { max-width: none; }
    .ar-tree-controls { justify-content: flex-end; }
    .ar-tree-layout { grid-template-columns: minmax(0, 1fr) 255px; }
    .ar-tree-map-caption small { display: none; }
    .ar-tree-minimap { width: 105px; height: 84px; }
}
@media (max-width: 760px) {
    .ar-tree-layout { grid-template-columns: 1fr; }
    .ar-tree-viewport { height: 520px; }
    .ar-tree-detail { border-left: none; border-top: 1px solid #d9b97c55; max-height: none; padding: 1.4rem; }
    .ar-tree-relic { margin: 1.2rem auto; }
    .ar-tree-heading { padding-inline: 0; }
    .ar-tree-heading p:last-child { font-size: .7rem; max-width: 210px; line-height: 1.9; }
    .ar-tree-progress > strong { font-size: 1.5rem; }
    .ar-tree-progress > span { font-size: .55rem; }
    .ar-tree-map-caption { left: 12px; bottom: 12px; }
    .ar-tree-controls { gap: .25rem; justify-content: space-between; }
    .ar-tree-control-divider { display: none; }
    .ar-tree-controls button { font-size: .66rem; padding-inline: .5rem; }
    .ar-tree-map-footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ar-tree-sanctum *, .ar-tree-sanctum *::before, .ar-tree-sanctum *::after { animation: none !important; transition: none !important; }
}

/* Extend the original circular nodes with readable labels, preserving their visual language. */
.ar-tree-label-name { fill: #fff0ce; font: 600 14px 'Noto Sans JP', sans-serif; }
.ar-tree-label-effect { fill: #e5eaf5; font: 14px 'Noto Sans JP', sans-serif; }
.ar-tree-label-cost { fill: #b9f0e4; font: 600 14px 'Noto Sans JP', sans-serif; }
.ar-tree-label-state { fill: #d6cada; font: 13px 'Noto Sans JP', sans-serif; }
.ar-tree-edge { stroke: #a39bad; stroke-width: 1.1; stroke-dasharray: 3 7; opacity: .32; }
.ar-tree-edge.is-unlocked { stroke: #c7b38e; stroke-width: 1.5; stroke-dasharray: none; opacity: .5; }
.ar-tree-edge.is-connected { stroke: #ddc79f; stroke-width: 1.8; stroke-dasharray: none; opacity: .64; filter: none; }
.ar-tree-node-label rect { fill: #101221ed; stroke: #9983b526; }
.ar-tree-node.is-unlocked .ar-tree-node-frame { stroke-width: 2.5; }
.ar-tree-node.is-available .ar-tree-node-frame { stroke: #9fe5d1; stroke-width: 3; stroke-dasharray: 8 3; }
.ar-tree-node.is-neighbor .ar-tree-node-aura { stroke: #e5cf99; stroke-width: 3; }
.ar-tree-node[aria-pressed="true"] .ar-tree-node-aura { stroke: #fff0bc; stroke-width: 4; }
.ar-tree-detail-header button { background: transparent; border: 1px solid #a496ad; color: #efe6f4; border-radius: 4px; padding: .25rem .5rem; }
.ar-tree-detail-header { position: sticky; top: -.2rem; z-index: 2; background: #221d2b; }
.is-detail-hidden .ar-tree-detail { display: none; }
.is-detail-hidden .ar-tree-layout { grid-template-columns: minmax(0, 1fr); }
.ar-tree-expanded { overflow: hidden; }
.ar-tree-sanctum.is-expanded { position: fixed; inset: 0; z-index: 1100; margin: 0; padding: .5rem .8rem; border: none; border-radius: 0; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.is-expanded .ar-tree-heading { padding: .2rem .3rem; }
.is-expanded .ar-tree-heading h2 { font-size: 1.1rem; }
.is-expanded .ar-tree-heading p, .is-expanded .ar-tree-progress { display: none; }
.is-expanded [data-skilltree-viewer] { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.is-expanded .ar-tree-toolbar { margin: 0; padding: .4rem 0; gap: .4rem; }
.is-expanded .ar-tree-layout { flex: 1; min-height: 0; }
.is-expanded .ar-tree-map-shell, .is-expanded .ar-tree-viewport { height: 100%; min-height: 0; }
.is-expanded .ar-tree-detail { max-height: 100%; }
.is-expanded .ar-tree-map-footer { padding: .3rem; }
.is-expanded .ar-tree-accessible, .is-expanded .ar-tree-map-caption { display: none; }
.ar-tree-legend { flex-wrap: wrap; gap: .6rem 1rem; }
.ar-tree-legend .edge { width: 24px; height: 0; transform: none; border: 0; border-top: 3px dashed #aba4bd; }
.ar-tree-legend .edge.is-unlocked { border-top: 3px solid #efd099; }
.ar-tree-legend .edge.is-selected { border-top: 4px solid #fff3cb; }
.ar-skilltree-editor { padding-top: 1rem; }
.ar-tree-account-state { display: grid; gap: .45rem; padding: .5rem; background: #090f1f; border: 1px solid #8999b54a; border-radius: 5px; color: #e5eaf5; font-size: .8rem; }
.ar-tree-presence, .ar-tree-balances, .ar-tree-request-status { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ar-tree-presence small { color: #bcc6d6; }
.ar-tree-balances > span, .ar-tree-cp-list > span { padding: .3rem .55rem; border: 1px solid #8ae3db44; border-radius: 4px; background: #142b32; white-space: nowrap; }
.ar-tree-cp-list { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 90px; overflow-y: auto; }
.ar-tree-account-state p { margin: 0; color: #f0ce98; }
.ar-tree-request-status [role="status"] { font-weight: 700; margin-right: auto; }
.ar-tree-account-state button, .ar-tree-operation button { border: 1px solid #c4b28c; border-radius: 4px; background: #25323e; padding: .4rem .6rem; color: #fff1d5; }
.ar-tree-operation { padding-top: 1rem; border-top: 1px solid #d9b97c55; margin-top: 1rem; font-size: .82rem; line-height: 1.7; }
.ar-tree-operation button { min-height: 44px; }
.ar-tree-operation button:disabled { opacity: .5; cursor: not-allowed; }
.ar-tree-operation select { display: block; width: 100%; max-width: 100%; margin: .5rem 0; background: #131e2e; color: #eef7f5; padding: .6rem .25rem; }
[data-editor-preview] { color: #b6efdf; font-weight: 600; }
[data-editor-operation-reason] { color: #f3c697; }
[data-editor-confirm] { padding: .8rem; border: 1px solid #d9b97c; margin-top: 1rem; }
@media (max-width: 760px) {
    .ar-tree-layout { position: relative; }
    .ar-tree-detail { position: absolute; right: 0; top: 0; bottom: 0; width: min(285px, 80%); max-height: 100%; z-index: 4; border: 1px solid #d9b97c; padding: .8rem; }
    .ar-tree-relic { display: none; }
    .ar-tree-controls button { min-height: 40px; }
    .is-expanded .ar-tree-toolbar { flex-direction: row; flex-wrap: wrap; }
    .is-expanded .ar-tree-search { flex: 1 1 170px; }
    .is-expanded .ar-tree-controls { flex: 1 1 300px; }
    .ar-tree-sanctum.is-expanded { padding: .3rem; }
    .ar-tree-account-state { font-size: .7rem; gap: .3rem; }
    .ar-tree-cp-list { max-height: 60px; }
    .ar-tree-presence small { display: none; }
    .ar-tree-minimap { display: none; }
}

/* The ledger separates saved points from an unsent plan; location belongs to My Page. */
.ar-tree-ledger-caption { display: flex; justify-content: space-between; gap: 1rem; color: #b8afc4; font-size: .76rem; }
.ar-tree-ledger { display: grid; grid-template-columns: minmax(145px, .7fr) minmax(200px, 2fr) minmax(160px, .8fr); gap: .8rem; }
.ar-tree-ledger h3 { font: 500 .78rem 'Noto Sans JP', sans-serif; color: #b9b1c6; margin: 0 0 .4rem; }
.ar-tree-ledger h3 span { color: #dec99e; margin-left: .4rem; }
.ar-tree-point-card { padding: .6rem .85rem; border-left: 2px solid #cbb48c66; background: #d1c19d06; }
.ar-tree-point-card > strong { font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: #efe4cc; }
.ar-tree-point-card p { font-size: .75rem; margin-top: .4rem; color: #add7c8; }
.ar-tree-class-points { min-width: 0; padding: .6rem; }
.ar-tree-cp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: .4rem; max-height: 90px; overflow: auto; scrollbar-width: thin; }
.ar-tree-cp-list > span { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .1rem .5rem; padding: .35rem .6rem; border: 1px solid #c2b28d20; background: #141d2a; white-space: normal; }
.ar-tree-cp-list strong { font-size: 1.15rem; color: #dce8df; font-variant-numeric: tabular-nums; }
.ar-tree-cp-list small { grid-column: 1 / -1; color: #acccbb; }
.ar-tree-draft-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-left: auto; }
.ar-tree-request-status [role="status"] { margin-right: 0; }
.ar-tree-account-state { padding: .75rem .9rem; gap: .65rem; font-size: .8rem; }
.ar-tree-account-state button { min-height: 36px; background: #242834; border-color: #bcac8c55; }
.ar-tree-account-state button:disabled { opacity: .4; cursor: default; }
.ar-tree-account-state [data-editor-batch-review] { background: #4a4030; color: #ffebbf; }
.ar-tree-account-state p:empty { display: none; }
.ar-tree-search { flex-wrap: wrap; }
.ar-tree-search input { flex: 1 1 180px; min-width: 100px; }
.ar-tree-search select, .ar-tree-search-options select { max-width: 230px; padding: .45rem; border: 1px solid #c3b59433; border-radius: 4px; background: #191e2b; color: #d4cbdc; font-size: .75rem; }
.ar-tree-search-options { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; padding: .25rem 0 .6rem; font-size: .75rem; }
.ar-tree-search-options button { border: 1px solid #c3b59433; color: #c7bda9; background: #242430; border-radius: 4px; padding: .3rem .6rem; }
.ar-tree-search-options button:disabled { opacity: .35; }
.ar-tree-search-results { max-height: min(40vh, 300px); overflow: auto; }
.ar-tree-node.is-search-match .ar-tree-node-aura { vector-effect: non-scaling-stroke; stroke: #a4d8c2; stroke-width: 3; fill: #7cbb9e14; }
.ar-tree-node.is-search-dim { opacity: .32; }
.ar-tree-node.is-draft-unlock .ar-tree-node-frame { stroke: #9ac7aa; stroke-dasharray: 4 3; }
.ar-tree-node.is-draft-relock .ar-tree-node-frame { stroke: #c3949e; stroke-dasharray: 4 3; }
.ar-tree-node[aria-pressed="true"] .ar-tree-node-aura { stroke-width: 2; filter: none; }
.ar-tree-node[aria-pressed="true"] .ar-tree-node-runes { animation: none; }
.ar-tree-legend .edge { border-top-width: 1px; opacity: .5; }
.ar-tree-legend .edge.is-unlocked, .ar-tree-legend .edge.is-selected { border-top-width: 2px; opacity: .65; }
.ar-tree-batch-review { position: absolute; inset: auto 1rem; top: 5rem; z-index: 8; max-width: 600px; max-height: calc(100dvh - 8rem); margin: auto; padding: 1.3rem; overflow: auto; border: 1px solid #c7b289; border-radius: 8px; background: #171c2a; box-shadow: 0 20px 80px #0009; }
.ar-tree-batch-review[hidden] { display: none; }
.ar-tree-batch-review h3 { color: #ecd7ae; }
.ar-tree-batch-review ol { max-height: 35vh; overflow: auto; padding-left: 1.5rem; }
.ar-tree-batch-review li { margin: .45rem 0; }
.is-expanded .ar-tree-heading { padding: .5rem .5rem .65rem; }
.is-expanded .ar-tree-heading h2 { font-size: 1.35rem; margin: 0; }
.is-expanded .ar-tree-account-state { margin-bottom: .5rem; }
.is-expanded .ar-tree-toolbar { flex-shrink: 0; }
.is-expanded .ar-tree-account-state, .is-expanded .ar-tree-search-options { flex-shrink: 0; }
.is-panning .ar-tree-node-icon, .is-panning .ar-tree-node-aura { filter: none; }
@media (max-width: 760px) {
    .ar-tree-ledger { grid-template-columns: 1fr 1fr; gap: .35rem; }
    .ar-tree-class-points { grid-column: 1 / -1; grid-row: 2; padding: .25rem .5rem; }
    .ar-tree-cp-list { display: flex; max-height: 68px; overflow-x: auto; overflow-y: hidden; }
    .ar-tree-cp-list > span { flex: 0 0 116px; font-size: .72rem; }
    .ar-tree-point-card { padding: .35rem .5rem; }
    .ar-tree-point-card > strong { font-size: 1.4rem; }
    .ar-tree-account-state { padding: .5rem; gap: .4rem; }
    .ar-tree-account-state h3 { font-size: .68rem; }
    .ar-tree-draft-actions { gap: .3rem; }
    .ar-tree-draft-actions button { font-size: .68rem; padding: .3rem .45rem; }
    .ar-tree-search-options { padding-bottom: .35rem; }
    .is-expanded .ar-tree-heading { display: none; }
    .is-expanded .ar-tree-toolbar { padding: .2rem 0; }
    .is-expanded .ar-tree-controls button { min-height: 34px; padding: .4rem; }
    .ar-tree-search-options select { max-width: 155px; }
}

.ar-tree-heading h2 small { font: 400 .85rem 'Noto Sans JP', sans-serif; color: #b6aec0; margin-left: .7rem; }
.ar-tree-heading-balance-kind { display: none; font-size: .75rem; color: #beb6c8; }
.ar-tree-cp-list small:empty { display: none; }
.is-expanded .ar-tree-heading-balance-kind { display: block; margin-left: auto; }
.is-expanded .ar-tree-ledger-caption { display: none; }
.is-expanded .ar-tree-relic { display: none; }
.is-expanded .ar-tree-account-state { padding: .5rem .7rem; gap: .4rem; }
.is-expanded .ar-tree-point-card { padding: .35rem .65rem; }
.is-expanded .ar-tree-point-card h3 { margin-bottom: .25rem; }
.is-expanded .ar-tree-point-card > strong { font-size: 1.6rem; }
.is-expanded .ar-tree-point-card p { margin-top: .25rem; }
.is-expanded .ar-tree-class-points { padding: .35rem .5rem; }
.is-expanded .ar-tree-cp-list { max-height: 68px; }
.is-expanded .ar-tree-cp-list > span { padding: .2rem .5rem; }
.is-expanded .ar-tree-search { width: min(100%, 510px); flex: 1 1 430px; max-width: 510px; flex-wrap: nowrap; }
.is-expanded .ar-tree-search input { flex-basis: 180px; }
.is-expanded .ar-tree-search select { max-width: 115px; }
.is-expanded .ar-tree-minimap { width: 105px; padding: .35rem; right: .6rem; bottom: .6rem; opacity: .65; }
@media (max-width: 760px) {
    .is-expanded .ar-tree-heading { display: flex; padding: .2rem .4rem .35rem; }
    .is-expanded .ar-tree-heading h2 { font-size: 1rem; }
    .is-expanded .ar-tree-heading h2 small { display: none; }
    .is-expanded .ar-tree-heading-balance-kind { font-size: .65rem; }
    .is-expanded .ar-tree-search { flex-basis: 100%; }
    .is-expanded .ar-tree-search input { flex-basis: 140px; }
    .is-expanded .ar-tree-search select { max-width: 90px; }
}

@media (max-width: 760px) {
    .is-expanded .ar-tree-point-card > strong { font-size: 1.4rem; }
    .is-expanded .ar-tree-point-card { padding: .2rem .4rem; }
    .is-expanded .ar-tree-class-points { padding: .1rem .4rem; }
    .is-expanded .ar-tree-class-points h3 { margin-bottom: .25rem; }
    .is-expanded .ar-tree-cp-list > span { flex-basis: 106px; }
    .is-expanded .ar-tree-controls { flex-basis: 100%; gap: .2rem; }
    .is-expanded .ar-tree-controls output { min-width: 36px; }
    .is-expanded .ar-tree-control-divider { margin: 0 .1rem; }
}
