/* SQUAWK - Forever tracker. No web fonts, no frameworks, nothing fetched from anyone else. */
:root {
  /* One theme across Squawk Loot: dark, the same as DKP - whatever the device prefers. */
  color-scheme: dark;
  --bg: #13151a; --surface: #1b1e25; --surface-2: #232733; --line: #2e3340;
  --text: #e9e6df; --muted: #9aa1ae; --accent: #f0a63a; --accent-ink: #1a1408; --alert: #ff7a5c;
  --ok: #5fd083; --warn: #f0c04a; --bad: #ff7a5c; --info: #6fb0ff;
  --q0: #9d9d9d; --q1: #e9e6df; --q2: #4fd64f; --q3: #5aa2ff; --q4: #c07bff; --q5: #ff9a2e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}
* { box-sizing: border-box; min-width: 0; }
body { overflow-wrap: break-word; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); }
.brand b { font: 700 21px/1 var(--serif); letter-spacing: .06em; }
.brand b i { font-style: normal; color: var(--accent); }
.brand span { color: var(--muted); font-size: 13px; }
/* main menu: Database / Core / Admin, each a dropdown on hover or click */
.mm { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.mm .mi { position: relative; }
.mm .mi[hidden], .mm .sub a[hidden] { display: none; }
.mm .mt { display: inline-flex; align-items: center; gap: 6px; font: 600 14.5px var(--sans); color: var(--muted); background: none;
  border: 0; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.mm .mt svg { width: 10px; height: 6px; transition: transform .15s; }
.mm .mt:hover, .mm .mi.open .mt { color: var(--text); background: var(--surface-2); }
.mm .mi.on .mt { color: var(--accent-ink); background: var(--accent); }
.mm .sub { display: none; position: absolute; right: 0; top: 100%; padding: 6px; min-width: 190px; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.mm .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.mm .mi.open .sub { display: block; }
@media (hover: hover) { .mm .mi:hover .sub { display: block; } .mm .mi:hover .mt svg { transform: rotate(180deg); } }
.mm .sub a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.mm .sub a:hover { background: var(--surface-2); }
.mm .sub a[aria-current] { color: var(--accent); font-weight: 650; }
@media (max-width: 640px) { .mm { margin-left: 0; width: 100%; } .mm .sub { left: 0; right: auto; } .mm .mi:last-child .sub { left: auto; right: 0; } }

/* page furniture */
main { padding: 28px 0 64px; }
h1 { font: 700 34px/1.15 var(--serif); margin: 0 0 8px; letter-spacing: -.01em; text-wrap: balance; }
h2 { font: 700 22px/1.25 var(--serif); margin: 38px 0 12px; }
h3 { font: 650 16px/1.3 var(--sans); margin: 22px 0 8px; }
.lede { color: var(--muted); font-size: 16.5px; max-width: 74ch; margin: 0 0 22px; }
p { max-width: 80ch; }
.small, small { font-size: 13px; color: var(--muted); }
code { font: 13px var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stat .v { font: 700 24px/1.2 var(--serif); margin-top: 2px; }
.stat .n { font-size: 12.5px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; font-size: 17px; }
.card p { margin: 6px 0; }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .12s, border-color .12s; }
a.card:hover { transform: translateY(-2px); border-color: var(--accent); }
a.card .go { color: var(--accent); font-weight: 600; font-size: 14px; }

.note { border-left: 3px solid var(--accent); background: var(--surface); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 14px 0; max-width: 86ch; }
.note.warn { border-color: var(--warn); } .note.bad { border-color: var(--bad); }
.note b:first-child { display: block; margin-bottom: 2px; }

/* badges */
.b { display: inline-block; font-size: 11.5px; font-weight: 650; letter-spacing: .02em; padding: 1px 8px; border-radius: 99px;
  border: 1px solid currentColor; white-space: nowrap; vertical-align: 1px; }
.b.ok { color: var(--ok); } .b.warn { color: var(--warn); } .b.bad { color: var(--bad); } .b.info { color: var(--info); }
.b.mute { color: var(--muted); } .b.new { color: var(--accent); }
/* Forever only: not in Classic Era. Filled, so it stands out from the outlined tags. */
.b.fo { color: #10151c; background: #6fb0ff; border-color: #6fb0ff; }
.q0 { color: var(--q0); } .q1 { color: var(--q1); } .q2 { color: var(--q2); } .q3 { color: var(--q3); } .q4 { color: var(--q4); } .q5 { color: var(--q5); }
a.q0, a.q1, a.q2, a.q3, a.q4, a.q5 { text-decoration: none; font-weight: 600; } a[class^="q"]:hover { text-decoration: underline; }

/* timeline */
.tl { list-style: none; padding: 0; margin: 0; }
.tl > li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.tl > li:first-child { border-top: 0; }
.tl time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl .t { font-weight: 650; }
.tl .t a { color: var(--text); }
.tl .d { color: var(--muted); font-size: 14px; margin-top: 2px; }
.tl ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.tl li li.add::marker { content: "+  "; color: var(--ok); } .tl li li.del::marker { content: "\2212  "; color: var(--bad); }
.tl li li.del { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 60%, transparent); }
details { margin-top: 6px; }
details > summary { cursor: pointer; color: var(--accent); font-size: 13.5px; font-weight: 600; }
details pre { white-space: pre-wrap; font: 13.5px/1.5 var(--sans); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; max-height: 420px; overflow: auto; margin: 8px 0 0; }
@media (max-width: 560px) { .tl > li { grid-template-columns: 1fr; gap: 2px; } }

/* filters + tables */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 10px; }
.filters input[type=search], .filters select, .filters input[type=number] { font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0; }
.filters input[type=search] { flex: 1 1 220px; }
.filters input[type=number] { width: 78px; }
.filters label.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); user-select: none; }
.filters .count { margin-left: auto; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.chip { font: inherit; font-size: 13.5px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 4px 11px;
  border-radius: 99px; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2);
  white-space: nowrap; position: sticky; top: 0; }
thead th[data-sort] { cursor: pointer; user-select: none; }
thead th[data-sort]:hover { color: var(--text); }
thead th.asc::after { content: " \25B2"; font-size: 9px; } thead th.desc::after { content: " \25BC"; font-size: 9px; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.cat th { background: var(--surface-2); font: 650 13px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--text); padding-top: 12px; }
table.addons td:nth-child(3) { min-width: 300px; } table.addons td:nth-child(1) { min-width: 170px; }
td .sub { display: block; color: var(--muted); font-size: 12.5px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin: 10px 0; font-size: 13.5px; color: var(--muted); }
.pager button { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 7px; padding: 5px 11px; cursor: pointer; }
.pager button:disabled { opacity: .4; cursor: default; }
.ext { font-size: 12px; white-space: nowrap; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 28px; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: 7px 0; border-top: 1px solid var(--line); } ul.plain li:first-child { border-top: 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 22px 0 40px; }
footer p { margin: 4px 0; max-width: none; }
.card .b { white-space: normal; border-radius: 10px; }

/* global search */
.gs { position: relative; padding: 2px 0 12px; }
.gs-row { display: flex; gap: 12px; align-items: center; }
.gs-in { position: relative; flex: 1 1 auto; min-width: 0; }
.fo-tog { flex: 0 0 auto; display: inline-flex; gap: 8px; align-items: center; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface);
  font: 600 14px var(--sans); color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
.fo-tog input { accent-color: #6fb0ff; width: 16px; height: 16px; margin: 0; }
.fo-tog:has(input:checked) { color: #10151c; background: #6fb0ff; border-color: #6fb0ff; }
.fo-only .is-old { display: none; }
.fo-only .card.boss:not(:has(li:not(.is-old))) { display: none; }
.fo-none { display: none; }
.fo-only .dg:not(:has(.dq:not(.is-old))):not(:has(.drops li:not(.is-old))) .fo-none { display: block; }
.gs-fo { margin-left: 6px; color: #6fb0ff; }
.gs-fo button { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.gs-in input { width: 100%; font: 17px/1.3 var(--sans); color: var(--text); background: var(--surface); border: 2px solid var(--line);
  border-radius: 12px; padding: 13px 52px 13px 46px; box-shadow: var(--shadow); outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1ae' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 15px 50%; background-size: 20px; }
.gs-in input:focus { border-color: var(--accent); }
.gs-in input::placeholder { color: var(--muted); }
.gs kbd { position: absolute; right: 14px; top: 13px; font: 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; pointer-events: none; }
.gs-in input:focus + kbd { display: none; }
.gs-out { position: absolute; left: 0; right: 0; top: calc(100% - 6px); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35); max-height: min(72vh, 760px); overflow-y: auto; padding: 6px 0 10px; }
.gs-head { position: sticky; top: -6px; background: var(--surface); padding: 10px 16px 8px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); z-index: 1; }
.gs-head b { color: var(--text); }
.gs-head a { display: inline-block; margin: 2px 2px 0 0; padding: 1px 9px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--muted); font-size: 12.5px; }
.gs-head a:hover { color: var(--accent); border-color: var(--accent); }
.gs-out section { padding: 4px 0 2px; scroll-margin-top: 60px; }
.gs-out h4 { margin: 10px 16px 2px; font: 650 12px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.gs-out h4 span { font-weight: 400; }
.gs-out ul { list-style: none; margin: 0; padding: 0; }
.gs-out li a { display: block; padding: 7px 16px; text-decoration: none; color: var(--text); }
.gs-out li a:hover, .gs-out li a:focus { background: color-mix(in srgb, var(--accent) 12%, transparent); outline: none; }
.gs-t { font-weight: 600; } .gs-t.q0 { color: var(--q0); } .gs-t.q2 { color: var(--q2); } .gs-t.q3 { color: var(--q3); } .gs-t.q4 { color: var(--q4); } .gs-t.q5 { color: var(--q5); }
.gs-s { display: block; font-size: 13px; color: var(--muted); }
.gs-x { display: block; font-size: 13px; color: var(--muted); font-style: italic; margin-top: 1px; }
.gs-out mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.gs-more, .gs-all { display: inline-block; margin: 4px 0 4px 16px; font: 600 13px var(--sans); color: var(--accent); background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: none; }
.gs-all { margin-left: 14px; font-weight: 500; }
.gs-none { padding: 14px 16px; margin: 0; color: var(--muted); }
/* the entry a search result pointed at */
:target { scroll-margin-top: 150px; }
li:target, tr:target, .card:target { animation: hit 2.4s ease-out; }
@keyframes hit { from { background: color-mix(in srgb, var(--accent) 38%, transparent); } to { background: transparent; } }
@media (max-width: 640px) { .gs-row { flex-wrap: wrap; gap: 8px; } .fo-tog { padding: 7px 12px; } .gs-in { flex-basis: 100%; } .gs-in input { font-size: 16px; padding: 11px 14px 11px 42px; } .gs kbd { display: none; } .top { position: static; } }
.top .wrap .gs { flex: 1 1 100%; width: 100%; }
.top .wrap:has(.gs) { padding-block: 0; }

/* hover tooltips: always dark, like the game's own */
.tt { position: fixed; z-index: 80; display: flex; gap: 10px; max-width: 340px; min-width: 210px; padding: 10px 12px; pointer-events: none;
  background: rgba(10, 12, 20, .97); color: #e9e6df; border: 1px solid #55575f; border-radius: 8px; box-shadow: 0 10px 34px rgba(0, 0, 0, .55);
  font: 13px/1.45 var(--sans); }
.tt[hidden] { display: none; }
.tt-icon { width: 38px; height: 38px; border-radius: 6px; border: 1px solid #55575f; flex: none; background: #1b1e25; }
.tt-body { flex: 1; }
.tt-name { font: 650 15px/1.3 var(--sans); margin-bottom: 2px; color: #e9e6df; }
.tt-name.q0 { color: #9d9d9d; } .tt-name.q1 { color: #ffffff; } .tt-name.q2 { color: #1eff00; } .tt-name.q3 { color: #3d9bff; }
.tt-name.q4 { color: #b56bff; } .tt-name.q5 { color: #ff8000; }
.tt-l { color: #e9e6df; } .tt-dim { color: #a9adb8; } .tt-fx { color: #1eff00; } .tt-desc { color: #ffd100; font-style: italic; }
.tt-2 { display: flex; justify-content: space-between; gap: 16px; } .tt-in { padding-left: 12px; color: #c9ccd4; }
.tt-sp { height: 6px; }
.tt-embed { margin-top: 6px; padding: 7px 9px; border: 1px solid #3a3d47; border-radius: 6px; background: rgba(255, 255, 255, .03); }
.tt-embed .tt-name { font-size: 14px; }
.tt-src { margin-top: 7px; padding-top: 5px; border-top: 1px solid #2e3340; font-size: 11px; color: #7f8592; }

/* loot by dungeon and boss */
.dgpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin: 16px 0 6px; }
.dgpick button { text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; cursor: pointer; }
.dgpick button b { display: block; font-size: 14px; font-weight: 650; }
.dgpick button span { font-size: 12px; color: var(--muted); }
.dgpick button:hover { border-color: var(--accent); }
.dgpick button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dgpick button[aria-pressed=true] span { color: var(--accent-ink); opacity: .8; }
.dgpick button.empty { opacity: .55; }
.dg h2 { margin-top: 22px; } .dg h2 small { font: 400 14px var(--sans); color: var(--muted); margin-left: 6px; }
.bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.boss h3 { font: 700 17px var(--serif); margin: 0 0 8px; } .boss h3 small { font: 400 12.5px var(--sans); color: var(--muted); margin-left: 4px; }
.drops { list-style: none; margin: 0; padding: 0; } .drops li { padding: 5px 0; border-top: 1px solid var(--line); } .drops li:first-child { border-top: 0; }
.drops .sub { display: block; font-size: 12.5px; color: var(--muted); }

/* dungeon quests */
.dq h3 { font: 700 17px var(--serif); margin: 0 0 6px; } .dq h3 small { font: 400 12.5px var(--sans); color: var(--muted); margin-left: 4px; }
.dq h3 a { color: var(--text); text-decoration: none; } .dq h3 a:hover { text-decoration: underline; }
.dq-chain { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.dq p { margin: 4px 0; }
.dq-obj { margin: 6px 0; padding-left: 18px; font-size: 13.5px; } .dq-obj li { margin: 2px 0; }
.dq-then { font-size: 13.5px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 8px; }
.dq-pay { font-size: 14px; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 8px; }
.dq-tips { background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 8px 14px 8px 30px; margin: 10px 0; max-width: 90ch; }
.dq-tips li { margin: 4px 0; }

/* scrollbars in the site's colours: slim, rounded, no plain grey gutter */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 40%, transparent); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--accent) 70%, transparent); }

/* phones: the footer's Sign out link sits on its own line instead of floating over the text */
@media (max-width: 640px) {
  footer a[style*="float"] { float: none !important; display: block; width: max-content; margin-bottom: 8px; }
  footer p { overflow-wrap: anywhere; }
}

/* Squawk Loot wordmark: SQUAWK + Loot */
.brand em.prod { font: 700 21px/1 var(--serif); font-style: normal; color: var(--accent); margin-left: -4px; }

/* signed-in person, right end of the top menu: avatar + name, bordered in their Discord role colour */
.mm .mu .uchip { gap: 7px; padding: 4px 11px 4px 4px; border: 1px solid color-mix(in srgb, var(--rc, var(--line)) 70%, transparent); border-radius: 999px; color: var(--text); }
.mm .mu .uchip:hover, .mm .mu.open .uchip { background: var(--surface-2); }
.mm .mu .uav { width: 26px; height: 26px; border-radius: 50%; display: block; object-fit: cover; }
.mm .mu .uav-x { display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 13px; }
.mm .mu .un { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm .mu .uhead { padding: 6px 10px 9px; margin-bottom: 4px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.mm .mu .uhead b { flex-basis: 100%; }
.mm .mu .urole { font-size: 12.5px; font-weight: 650; }
.mm .mu .urank { font-size: 12.5px; color: var(--muted); }
.mm .mu .uout:hover { color: var(--bad); }
.mm .mlogin { font: 600 14px var(--sans); padding: 6px 14px; border-radius: 999px; background: #5865F2; color: #fff; text-decoration: none; margin-left: 4px; }
@media (max-width: 640px) { .mm .mu .un { display: none; } .mm .mu .uchip { padding-right: 6px; } }

/* The installation's identity next to the Squawk Loot mark: guild, realm, game, faction */
.sq-id { display: inline-flex; align-items: center; gap: 7px; margin-left: 14px; padding: 3px 10px 3px 6px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); font: 600 13px/1.2 var(--sans); color: var(--text); white-space: nowrap; min-width: 0; }
.sq-id .sq-emb { width: 22px; height: 22px; flex: none; border-radius: 50%; }
.sq-id b { font-weight: 700; }
.sq-id .sq-rl { color: var(--muted); font-weight: 500; }
.sq-id .sq-rl::before { content: "·"; margin-right: 6px; }
@media (max-width: 720px) { .sq-id .sq-rl { display: none; } .sq-id { margin-left: 8px; } }

.dq-route { margin: 12px 0; }
.dq-route h3 { margin: 0 0 4px; }
.dq-route-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.dq-route h4 { margin: 0 0 6px; }
.dq-route ol { margin: 0; padding-left: 22px; font-size: 14px; } .dq-route li { margin: 4px 0; }

/* phone: an open menu spans the screen under the header, so it never runs off an edge */
@media (max-width: 640px) {
  .mm .sub { position: fixed; left: 8px; right: 8px; top: var(--subtop, auto); min-width: 0; }
  .mm .mi:hover .sub { display: none; } .mm .mi.open .sub { display: block; }   /* narrow windows: open on tap only */
  .tw { overflow-x: auto; }
}

/* officers' pages: what the latest update brought */
.note.new-box { border-left-color: #3fbf7f; }
.note.new-box ul { margin: 6px 0 0; padding-left: 20px; }
.dq-tips li.is-new, table.refs tr.is-new td { background: color-mix(in srgb, #3fbf7f 9%, transparent); }
.upd-hist > li { margin: 6px 0; } .upd-hist ul { margin: 4px 0; }

/* Datamine (officers) */
.dm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.card.dm h3 { margin: 0 0 4px; }
.card.mech h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.card.mech.is-new { border-color: color-mix(in srgb, #3fbf7f 55%, var(--line)); }

/* Datamine: the level 60 test plan */
.tp-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 10px 0 6px; position: sticky; top: 0; background: var(--bg); padding: 6px 0; z-index: 5; }
.tp-status.bad { color: var(--bad); }
.tp-list { display: grid; gap: 8px; }
.tp-row { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.tp-row.done { opacity: .62; border-color: color-mix(in srgb, #3fbf7f 55%, var(--line)); }
.tp-row.done .tp-h b { text-decoration: line-through; }
.tp-cb input { width: 20px; height: 20px; margin-top: 2px; accent-color: #3fbf7f; cursor: pointer; }
.tp-main { flex: 1; min-width: 0; }
.tp-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.tp-who { color: var(--muted); font-size: 12.5px; }
.tp-main p { margin: 4px 0; }
.tp-main textarea { width: 100%; box-sizing: border-box; margin-top: 6px; min-height: 32px; font: inherit; font-size: 13.5px; resize: vertical; }
.tp-by { color: var(--muted); }
.tp-row[hidden] { display: none; }
.tp-bar .fm-chart { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tp-bar .fm-chart button { border: 0; border-radius: 0; padding: 5px 12px; font: 600 13px var(--sans); background: none; color: var(--muted); cursor: pointer; }
.tp-bar .fm-chart button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); }

/* Datamine: who can read what (officers set it on the page) */
.dm-acc { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 8px 12px; margin: 6px 0 14px; border: 1px dashed var(--line); border-radius: 10px; }
.dm-acc[hidden], .dm-part.dm-off { display: none; }
.dm-acc .bad, .dm-st.bad { color: var(--bad); }
.dm-acc label { display: inline-flex; gap: 6px; align-items: center; }
.dm-part { position: relative; }
.dm-sel { position: absolute; top: 4px; right: 6px; z-index: 3; font-size: 12px; max-width: 46%; }
.dm-part.dm-tight { outline: 2px dashed #e0a030; outline-offset: 3px; border-radius: 10px; }
