/* Stark Gate dashboard: the release marker next to the search box and the Changelog (release.js; the owner's rule of
   16 Oct 2026 for every dashboard). The popup hangs flush under the button (top:100%) and makes the gap with its own
   padding, so the pointer never falls out on its way down; only the card inside it scrolls. */
.rel-m{position:relative;flex:0 0 auto;display:flex;align-items:center;margin-left:8px}
.rel-b{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 9px 0 12px;border:1px solid var(--border-2);border-radius:99px;background:var(--surface);color:var(--dim);font:500 12px/1 var(--mono);white-space:nowrap;cursor:pointer;transition:background-color .12s}
.rel-b:hover,.rel-b[aria-expanded="true"]{background:var(--hover)}
.rel-b:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.rel-ar{flex:0 0 auto;transition:transform .15s}
.rel-b[aria-expanded="true"] .rel-ar{transform:rotate(180deg)}
.rel-p{position:absolute;top:100%;left:0;z-index:60;width:min(380px,calc(100vw - 32px));padding-top:8px}
.rel-c{max-height:min(70vh,460px);overflow:auto;padding:14px 16px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 8px 28px rgba(0,0,0,.14),0 1px 3px rgba(0,0,0,.08);font-size:13px;line-height:1.5;color:var(--ink)}
.rel-s{margin:0 0 6px;font:12px/1.45 var(--mono);color:var(--dim)}
.rel-s b{font-weight:500;color:var(--ink)}
.rel-sum{margin:0}
.rel-h{margin:12px 0 4px;font-size:12px;font-weight:500;line-height:1.3;color:var(--mute)}
.rel-l{margin:0;padding-left:18px}
.rel-l li + li{margin-top:4px}

/* the Changelog item: a button in the rail, the same size and weight as the links in it (every button inherits its font) */
.rail button.ri{margin:0;border:0;background:none;font:inherit;cursor:pointer}
.rail button.ri .lbl{font-size:11px}
.rail button.ri:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}

/* the Changelog dialog: one release per row, the newest open */
.rel-log{display:grid;gap:8px;margin-bottom:4px}
.rel-d{border:1px solid var(--card-line);border-radius:10px;background:var(--surface)}
.rel-ds{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;font:500 13px/1.3 var(--mono);color:var(--ink);cursor:pointer;list-style:none}
.rel-ds::-webkit-details-marker{display:none}
.rel-ds:hover{background:var(--hover)}
.rel-ds .rel-ar{transform:rotate(-90deg)}
.rel-d[open] > .rel-ds .rel-ar{transform:none}
.rel-n{padding:2px 14px 14px 34px;font-size:13px;line-height:1.5}

/* tablets: the bar takes two rows (the brand and the tools, then the search box with the marker beside it) and grows
   with them instead of keeping the desktop's 52 px; the view list that opens on hover starts under it */
@media (min-width:601px) and (max-width:1024px){
  .shell{grid-template-rows:auto minmax(0,1fr)}
  .top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"brand . tools" "search search rel";gap:8px;min-height:96px;padding:8px 12px 8px 16px}
  .top-l{grid-area:brand}
  .tools{grid-area:tools;margin-left:0}
  .search{grid-area:search;margin-left:0}
  .rel-m{grid-area:rel;margin-left:0}
  .rel-p{left:auto;right:0}
  .shell.panel-hover.panel-off .rail:focus-within ~ .panel,.shell.panel-hover.panel-off .panel:focus-within{top:96px}
}
/* phones: the marker stays next to the search box, on the search row; its notes open to the left */
@media (max-width:600px){
  .top{grid-template-areas:"brand tools" "search rel"}
  .rel-m{grid-area:rel;margin-left:0}
  .rel-b{height:40px;padding:0 9px 0 11px;font-size:11.5px}
  .rel-p{left:auto;right:0}
  .rel-n{padding-left:14px}
}
@media (prefers-reduced-motion:reduce){
  .rel-ar{transition:none}
}
