/* Quest Tree (/progression/quest-tree/): the interactive unlock graph drawn by questtree.js.
   Loaded on that page only, so the layout overrides at the top touch nothing else. */

:root {
  /* one colour per trader, spread round the wheel so neighbours never look alike on the dark ground */
  --qt-arrival: #b7b09d; --qt-prapor: #d9603f; --qt-therapist: #4fbfa6; --qt-skier: #d6c04c;
  --qt-peacekeeper: #6d97e2; --qt-mechanic: #e69a3a; --qt-ragman: #ac86e2; --qt-jaeger: #92b55f;
  --qt-fence: #b5a07a; --qt-lightkeeper: #74d3ea; --qt-ref: #e2699c;
  --qt-ground: #0a0b09; --qt-card: #161714; --qt-card2: #1d1e1a;
  --qt-w: 224px; --qt-h: 74px;
}

/* the tree wants the width the table of contents would have had */
@media (min-width: 901px) { .layout { max-width: 1760px; grid-template-columns: 250px minmax(0, 1fr); } }
@media (min-width: 901px) and (max-width: 1180px) { .layout { grid-template-columns: 240px minmax(0, 1fr); } }
.prose > .qt-wrap, .prose > .qt-rot { max-width: none; }

.qt-wrap { margin: 18px 0 30px; }
.qt-app { position: relative; display: flex; flex-direction: column; background: var(--qt-ground); border: 1px solid var(--line2);
  font: 14px/1.4 var(--font-b); color: var(--text); --stage-h: clamp(520px, calc(100vh - 210px), 1000px); }
.qt-app *, .qt-app *::before, .qt-app *::after { box-sizing: border-box; }
.qt-app button { font: inherit; color: inherit; }
.qt-app .qt-noscript, .qt-app .qt-boot { margin: 0; padding: 40px 20px; text-align: center; color: var(--dim); }
.qt-app.qt-full { position: fixed; inset: 0; z-index: 90; border: 0; --stage-h: auto; }
.qt-app.qt-full .qt-stage { flex: 1; height: auto; }
body.qt-locked { overflow: hidden; }

/* ---------------------------------------------------------------- toolbar */
.qt-bar { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 8px; background: var(--panel); border-bottom: 1px solid var(--line2); }
.qt-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.qt-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line2); background: var(--bg2);
  font: 600 12px/1 var(--font-d) !important; letter-spacing: .07em; text-transform: uppercase; color: var(--text2) !important; cursor: pointer; border-radius: 3px; white-space: nowrap; }
.qt-tab i { width: 9px; height: 9px; border-radius: 2px; background: var(--c, var(--gold)); flex: none; }
.qt-tab b { font-weight: 400; color: var(--dim); letter-spacing: 0; }
.qt-tab:hover { border-color: var(--c, var(--gold)); color: var(--gold2) !important; }
.qt-tab[aria-selected="true"] { background: var(--qt-card2); border-color: var(--c, var(--gold)); color: var(--gold2) !important; box-shadow: inset 0 -2px 0 var(--c, var(--gold)); }
.qt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qt-search { position: relative; flex: 1 1 260px; min-width: 200px; }
.qt-search input { width: 100%; height: 34px; padding: 0 34px 0 32px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 3px; color: var(--gold2);
  font: 14px var(--font-b); outline: none; }
.qt-search input:focus { border-color: var(--gold); }
.qt-search > svg { position: absolute; left: 9px; top: 9px; width: 16px; height: 16px; color: var(--dim); pointer-events: none; }
.qt-search kbd { position: absolute; right: 8px; top: 7px; pointer-events: none; }
.qt-search input:focus ~ kbd { display: none; }
.qt-results { position: absolute; z-index: 30; left: 0; right: 0; top: 38px; max-height: min(60vh, 420px); overflow-y: auto; margin: 0; padding: 4px; list-style: none;
  background: var(--bg2); border: 1px solid var(--line2); box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.qt-results[hidden] { display: none; }
.qt-results li { display: flex; align-items: center; gap: 9px; padding: 7px 9px; cursor: pointer; border-radius: 2px; margin: 0; }
.qt-results li i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.qt-results li span { flex: 1; min-width: 0; }
.qt-results li b { display: block; font-weight: 600; color: var(--gold2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt-results li small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt-results li[aria-selected="true"], .qt-results li:hover { background: var(--qt-card2); }
.qt-results .qt-none { color: var(--dim); cursor: default; }
.qt-toggle, .qt-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border: 1px solid var(--line2); background: var(--bg2); border-radius: 3px;
  font: 600 12px/1 var(--font-d) !important; letter-spacing: .07em; text-transform: uppercase; color: var(--text2) !important; cursor: pointer; white-space: nowrap; }
.qt-toggle:hover, .qt-btn:hover { border-color: var(--gold); color: var(--gold2) !important; }
.qt-toggle svg, .qt-btn svg { width: 15px; height: 15px; flex: none; }
.qt-toggle[aria-pressed="true"] { background: var(--goldbg); border-color: var(--gold); color: var(--gold2) !important; }
.qt-toggle.lk[aria-pressed="true"] { background: #10252b; border-color: var(--qt-lightkeeper); }
.qt-level { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 11px; border: 1px solid var(--line2); background: var(--bg2); border-radius: 3px; }
.qt-level label { font: 600 12px/1 var(--font-d); letter-spacing: .07em; text-transform: uppercase; color: var(--text2); white-space: nowrap; }
.qt-level output { font: 700 13px/1 var(--font-d); color: var(--gold2); min-width: 46px; font-variant-numeric: tabular-nums; }
.qt-level input { width: 130px; accent-color: var(--gold); }

/* the loyalty strip under the toolbar, for one trader */
.qt-loyal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 9px 12px; border-bottom: 1px solid var(--line2); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, var(--panel)), var(--panel) 60%);
  font-size: 13px; }
.qt-loyal[hidden] { display: none; }
.qt-loyal .nm { font: 700 15px/1 var(--font-d); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.qt-ll { display: flex; align-items: stretch; gap: 0; }
.qt-ll span { display: grid; gap: 1px; padding: 4px 10px; border: 1px solid var(--line2); margin-left: -1px; background: var(--bg2); font-size: 12px; line-height: 1.25; color: var(--text2); }
.qt-ll span:first-child { margin-left: 0; border-radius: 3px 0 0 3px; }
.qt-ll span:last-child { border-radius: 0 3px 3px 0; }
.qt-ll span b { font: 700 12px/1.1 var(--font-d); letter-spacing: .1em; color: var(--gold2); }
.qt-ll span.off { opacity: .45; }
.qt-ll span.met b { color: var(--c); }
.qt-meter { display: grid; gap: 3px; min-width: 220px; flex: 1 1 240px; max-width: 420px; }
.qt-meter .bar { position: relative; height: 8px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 4px; }
.qt-meter .fill { position: absolute; inset: 0 auto 0 0; background: var(--c); border-radius: 4px; opacity: .8; }
.qt-meter .tick { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--gold2); }
.qt-meter .tick em { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); font: 600 10px/1 var(--font-d); color: var(--dim); font-style: normal; letter-spacing: .06em; }
.qt-meter small { font-size: 12px; color: var(--dim); margin-top: 10px; }
.qt-meter small b { color: var(--text); }
.qt-loyal .qt-link { font-size: 13px; }

/* ---------------------------------------------------------------- stage */
.qt-stage { position: relative; height: var(--stage-h); overflow: hidden; background:
  radial-gradient(circle at 1px 1px, rgba(239, 229, 201, .06) 1px, transparent 1.4px) 0 0 / 28px 28px, var(--qt-ground); }
.qt-view { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; outline: none; user-select: none; -webkit-user-select: none; }
.qt-view.dragging { cursor: grabbing; }
.qt-view:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.qt-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.qt-edges { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.qt-edges path { fill: none; stroke: var(--c); stroke-width: 1.6; opacity: .5; transition: opacity .15s, stroke-width .15s; }
.qt-edges path.acc { stroke-dasharray: 7 5; }
.qt-edges path.fail { stroke: var(--rust) !important; stroke-dasharray: 7 5; }
.qt-edges path.any { stroke-dasharray: 2 5; stroke-linecap: round; }
.qt-edges path.x { display: none; stroke-width: 1.4; }
.qt-edges path.head { stroke-dasharray: none; }
.qt-hl .qt-edges path { opacity: .08; }
.qt-hl .qt-edges path.on { opacity: 1; stroke-width: 2.6; display: inline; }
.qt-hl .qt-edges path.x.on { display: inline; }

.qt-node { position: absolute; width: var(--qt-w); height: var(--qt-h); padding: 7px 9px 6px 13px; display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: var(--qt-card); border: 1px solid #2e2f29; border-radius: 4px; cursor: pointer; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.4); transition: opacity .15s, border-color .15s, background .15s; }
.qt-node::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.qt-node:hover { border-color: var(--c); background: var(--qt-card2); }
.qt-node:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.qt-n-top { display: flex; align-items: center; gap: 5px; font: 600 10.5px/1 var(--font-d); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; min-height: 12px; }
.qt-n-top .id { color: var(--c); }
.qt-n-top .lv { margin-left: auto; color: var(--text2); }
.qt-n-t { font: 600 13px/1.22 var(--font-d); color: var(--gold2); letter-spacing: .01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qt-n-m { margin-top: auto; font-size: 11px; line-height: 1.1; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt-bdg { display: inline-flex; align-items: center; justify-content: center; height: 14px; min-width: 14px; padding: 0 4px; border-radius: 2px;
  font: 700 9.5px/1 var(--font-d); letter-spacing: .06em; text-transform: uppercase; }
.qt-bdg.k { background: var(--gold); color: #14161a; }
.qt-bdg.lk { background: var(--qt-lightkeeper); color: #0b1a1f; }
.qt-bdg.pvp { background: var(--rustbg); color: var(--rust2); border: 1px solid var(--rust); }
.qt-bdg.box { background: var(--goldbg); color: var(--gold2); border: 1px solid var(--gold); }
.qt-bdg.tr { background: #102a1c; color: #9fe0b5; border: 1px solid #3f9a62; }
.qt-node.sel { border-color: var(--gold2); background: var(--qt-card2); box-shadow: 0 0 0 2px var(--gold2), 0 0 26px color-mix(in srgb, var(--c) 40%, transparent); }
.qt-hl .qt-node { opacity: .2; }
.qt-hl .qt-node.up, .qt-hl .qt-node.down, .qt-hl .qt-node.sel, .qt-hl .qt-node.in { opacity: 1; }
.qt-node.up { border-color: color-mix(in srgb, var(--c) 70%, #2e2f29); }
.qt-node.down { border-style: dashed; border-color: color-mix(in srgb, var(--c) 70%, #2e2f29); }
.qt-node.locked { opacity: .22; }
.qt-node.locked .qt-n-top .lv { color: var(--rust2); }
.qt-hl .qt-node.locked.up, .qt-hl .qt-node.locked.down, .qt-hl .qt-node.locked.in { opacity: .45; }
.qt-node.found { animation: qt-ping 1.2s ease-out 2; }
@keyframes qt-ping { 0% { box-shadow: 0 0 0 0 var(--gold2); } 100% { box-shadow: 0 0 0 18px transparent; } }

/* tags for a link to another trader's task: before it on the left, after it on the right */
.qt-stub { position: absolute; height: 18px; min-width: 30px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  background: var(--qt-card2); border: 1px solid var(--c); border-radius: 9px; font: 700 9.5px/1 var(--font-d) !important; letter-spacing: .05em;
  color: var(--c) !important; cursor: pointer; transition: opacity .15s; }
.qt-stub:hover { background: var(--c); color: #111 !important; }
.qt-hl .qt-world .qt-stub { opacity: .15; }
.qt-hl .qt-world .qt-stub.on { opacity: 1; }

.qt-label { position: absolute; pointer-events: none; white-space: nowrap; }
/* a trader's name stays readable however far out: it grows as the map shrinks, upwards from its baseline */
.qt-label.lane { transform: translateY(-100%); font: 700 calc(30px * var(--inv, 1))/1 var(--font-d); letter-spacing: .06em; text-transform: uppercase; color: var(--c);
  background: none; border: 0; padding: 0; margin: 0; text-align: left; z-index: 3; text-shadow: 0 0 calc(6px * var(--inv, 1)) #0a0b09, 0 0 2px #0a0b09; }
.qt-label.lane small { display: block; margin-top: calc(6px * var(--inv, 1)); font: 500 calc(14px * var(--inv, 1))/1 var(--font-b); letter-spacing: 0; text-transform: none; color: var(--dim); }
button.qt-label.lane { pointer-events: auto; cursor: pointer; color: var(--c) !important; }
button.qt-label.lane:hover { text-decoration: underline; text-decoration-thickness: calc(2px * var(--inv, 1)); text-underline-offset: calc(5px * var(--inv, 1)); }
.qt-label.sec { font: 600 13px/1 var(--font-d); letter-spacing: .16em; text-transform: uppercase; color: var(--text2); border-top: 1px solid var(--line2); padding-top: 10px; }
.qt-label.sec small { margin-left: 10px; font: 13px var(--font-b); letter-spacing: 0; text-transform: none; color: var(--dim); }
.qt-label.lvl { font: 700 12px/1 var(--font-d); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.qt-lanebox { position: absolute; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.012); pointer-events: none; }

/* far out, a card is a coloured tile: the text could not be read anyway */
.qt-far .qt-node { background: color-mix(in srgb, var(--c) 32%, var(--qt-card)); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.qt-far .qt-node > * { visibility: hidden; }
.qt-far .qt-world .qt-stub { visibility: hidden; }
.qt-far .qt-label.sec, .qt-far .qt-label.lvl { color: transparent; }
.qt-far .qt-label.sec small { visibility: hidden; }
/* far out, a lit chain is drawn in full colour so it reads across the whole map */
.qt-far.qt-hl .qt-node { opacity: .12; }
.qt-far.qt-hl .qt-node.in, .qt-far.qt-hl .qt-node.up, .qt-far.qt-hl .qt-node.down, .qt-far.qt-hl .qt-node.sel { opacity: 1; background: var(--c); border-color: var(--gold2); }
.qt-far.qt-hl .qt-edges path.on { stroke-width: calc(2.6px * var(--inv, 1)); }

/* zoom controls and the key, bottom left; the overview, bottom right */
.qt-ctl { position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 5; }
.qt-ctl .qt-btn { width: 34px; padding: 0; justify-content: center; font-size: 17px !important; background: rgba(13,14,12,.9); }
.qt-mini { position: absolute; right: 10px; bottom: 10px; z-index: 5; border: 1px solid var(--line2); background: rgba(8,9,8,.92); cursor: crosshair; touch-action: none; border-radius: 3px; transition: right .2s; }
.qt-panel-open .qt-mini { display: none; }
.qt-key { position: absolute; left: 54px; bottom: 10px; z-index: 5; max-width: min(560px, calc(100% - 300px)); }
.qt-key summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 3px;
  background: rgba(13,14,12,.9); font: 600 11.5px/1 var(--font-d); letter-spacing: .1em; text-transform: uppercase; color: var(--text2); }
.qt-key summary::-webkit-details-marker { display: none; }
.qt-key[open] summary { color: var(--gold2); border-color: var(--gold); }
.qt-key .in { position: absolute; bottom: 36px; left: 0; width: min(420px, 82vw); padding: 12px 14px; background: rgba(13,14,12,.97); border: 1px solid var(--line2); border-radius: 3px;
  display: grid; grid-template-columns: 56px 1fr; gap: 7px 10px; align-items: center; font-size: 12.5px; color: var(--text2); box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.qt-key svg { width: 56px; height: 12px; }
.qt-key .sw { display: flex; gap: 3px; flex-wrap: wrap; }
.qt-count { position: absolute; top: 10px; left: 10px; z-index: 4; padding: 5px 9px; background: rgba(13,14,12,.85); border: 1px solid var(--line); border-radius: 3px;
  font: 600 11.5px/1.2 var(--font-d); letter-spacing: .06em; color: var(--text2); pointer-events: none; }
.qt-count b { color: var(--gold2); }

/* ---------------------------------------------------------------- the side panel */
.qt-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 390px; z-index: 20; display: flex; flex-direction: column; background: rgba(12,13,11,.98);
  border-left: 1px solid var(--line2); box-shadow: -18px 0 40px rgba(0,0,0,.45); transform: translateX(105%); transition: transform .2s ease; visibility: hidden; }
.qt-panel-open .qt-panel { transform: none; visibility: visible; }
.qt-ph { position: relative; padding: 14px 44px 12px 16px; border-bottom: 1px solid var(--line2); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, transparent), transparent); }
.qt-ph::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.qt-ph .who { font: 600 11.5px/1 var(--font-d); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.qt-ph .who span { color: var(--dim); margin-left: 6px; }
.qt-ph h3 { margin: 6px 0 6px !important; padding: 0 !important; border: 0 !important; font: 700 21px/1.15 var(--font-d) !important; color: var(--gold2) !important; letter-spacing: .01em !important; }
.qt-ph .bd { display: flex; flex-wrap: wrap; gap: 4px; }
.qt-ph .bd .qt-bdg { height: 18px; padding: 0 6px; font-size: 10.5px; }
.qt-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line2); border-radius: 3px; cursor: pointer; color: var(--text2) !important; }
.qt-close:hover { border-color: var(--gold); color: var(--gold2) !important; }
.qt-close svg { width: 16px; height: 16px; }
.qt-pb { flex: 1; overflow-y: auto; padding: 4px 16px 24px; scrollbar-width: thin; overscroll-behavior: contain; }
.qt-sec { padding: 12px 0 2px; border-bottom: 1px solid var(--line); }
.qt-sec:last-child { border-bottom: 0; }
.qt-sec > h4 { margin: 0 0 8px !important; font: 600 11.5px/1 var(--font-d) !important; letter-spacing: .16em !important; text-transform: uppercase; color: var(--gold) !important; }
.qt-ul { list-style: none; margin: 0 0 10px !important; padding: 0 !important; display: grid; gap: 6px; }
.qt-ul > li { margin: 0 !important; display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; font-size: 13.5px; line-height: 1.4; }
.qt-ul > li::marker { content: none; }
.qt-ul > li > i { width: 18px; height: 18px; display: grid; place-items: center; color: var(--dim); font-style: normal; }
.qt-ul > li > i svg { width: 15px; height: 15px; }
.qt-ul .sub { display: block; font-size: 12.5px; color: var(--dim); }
.qt-ul .sub b { color: var(--text2); font-weight: 600; }
.qt-link { display: inline; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--gold2) !important; font-weight: 600;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c, var(--gold)) 70%, transparent); text-underline-offset: 3px; }
.qt-link:hover { color: #fff !important; text-decoration-color: currentColor; }
.qt-link .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.qt-st { font: 600 10.5px/1 var(--font-d); letter-spacing: .08em; text-transform: uppercase; padding: 2px 5px; border-radius: 2px; border: 1px solid var(--line2); color: var(--text2); margin-left: 4px; white-space: nowrap; }
.qt-st.fail { color: var(--rust2); border-color: var(--rust); }
.qt-st.acc { color: var(--steel2); border-color: var(--steel); }
.qt-pays { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.qt-pays span { padding: 4px 8px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 3px; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.qt-pays span b { color: var(--gold2); }
.qt-pays span.neg b { color: var(--rust2); }
.qt-pays span.st { border-color: color-mix(in srgb, var(--c) 60%, var(--line2)); }
.qt-pays span.box { border-color: var(--gold); background: var(--goldbg); }
.qt-app p.qt-note { margin: 0 0 10px; font-size: 13px; color: var(--text2); }
.qt-app p.qt-brief { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--text2); white-space: pre-line; }
.qt-more { padding: 0; border: 0; background: none; cursor: pointer; color: var(--gold) !important; font: 600 12px/1 var(--font-d) !important; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.qt-map { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line2); border-radius: 3px; background: #1a1c17; margin: 0 0 8px; }
.qt-map img { position: absolute; max-width: none; height: auto; display: block; filter: saturate(.8) brightness(.85); }
.qt-map .pin { position: absolute; width: 22px; height: 22px; margin: -22px 0 0 -11px; color: var(--c); filter: drop-shadow(0 1px 2px #000); }
.qt-map .pin svg { width: 22px; height: 22px; }
.qt-map .pin b { position: absolute; top: 3px; left: 0; right: 0; text-align: center; font: 700 10px/1 var(--font-d); color: #111; }
.qt-map .scale { position: absolute; left: 8px; bottom: 6px; font: 600 10px/1 var(--font-d); letter-spacing: .08em; color: var(--gold2); text-shadow: 0 1px 2px #000; }
.qt-panel .qt-link-out { display: inline-block; margin: 2px 0 12px; font-size: 13px; }

/* ---------------------------------------------------------------- dailies and weeklies, under the tree */
.qt-rot { display: grid; gap: 14px; margin: 14px 0 24px; }
.qt-pool { border: 1px solid var(--line); background: var(--panel); padding: 12px 14px 14px; }
.qt-pool h3 { margin: 0 0 2px !important; }
.qt-pool .qt-pool-sub { margin: 0 0 10px !important; font-size: 13px; color: var(--dim); }
.qt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qt-chip { display: inline-grid; gap: 1px; padding: 6px 10px 6px 12px; border: 1px solid var(--line2); border-left: 3px solid var(--c); background: var(--bg2); border-radius: 3px;
  text-align: left; cursor: pointer; font: inherit; color: inherit; }
.qt-chip:hover { border-color: var(--c); background: var(--panel2); }
.qt-chip-t { font: 600 13px/1.2 var(--font-d); color: var(--gold2); }
.qt-chip-m { font-size: 11.5px; color: var(--dim); }
/* the panel, opened from a chip below the tree, floats over the page */
.qt-panel.qt-float { position: fixed; top: auto; bottom: 0; right: 0; height: min(86vh, 760px); z-index: 95; border-top: 1px solid var(--line2); }

/* ---------------------------------------------------------------- phones */
@media (max-width: 720px) {
  .qt-app { --stage-h: max(460px, calc(100svh - 150px)); margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .qt-bar { padding: 8px; }
  .qt-search { flex-basis: 100%; }
  .qt-level { flex: 1 1 100%; order: 2; }
  .qt-tools .qt-fs { margin-left: auto; }
  .qt-level input { flex: 1; width: auto; }
  .qt-tools .qt-btn span, .qt-toggle span.long { display: none; }
  .qt-panel { top: auto; left: 0; width: auto; height: 74%; border-left: 0; border-top: 1px solid var(--line2); transform: translateY(105%); box-shadow: 0 -18px 40px rgba(0,0,0,.5); }
  .qt-panel.qt-float { height: 80vh; }
  .qt-mini { display: none; }
  .qt-key { left: 54px; max-width: calc(100% - 64px); }
  .qt-loyal { font-size: 12px; gap: 6px 12px; }
  .qt-ll span { padding: 3px 7px; }
  .qt-meter { min-width: 0; flex-basis: 100%; }
  .qt-meter .bar { display: none; }
  .qt-meter small { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .qt-panel, .qt-node, .qt-edges path, .qt-mini { transition: none; } .qt-node.found { animation: none; } }
