/* Kit v3 Heritage (heritage.html). Tokens from v3.css only; logical properties only; one radius (var(--r)). */

/* The console: register, memories and city pages */
.hg-con { inset-block: 76px 120px; inset-inline-start: 76px; width: 380px; }
.hg-con__hd { padding: 14px 14px 10px; }
.hg-hd { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.hg-hd .title { font-size: 22px; white-space: nowrap; }
.hg-add { flex: none; height: 32px; padding-inline: 10px; }
.hg-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block-start: 12px; }
.hg-stats .stat { padding: 9px 10px; }
.hg-stats .stat b { font-size: 24px; }
.hg-stats .stat span { font-size: 11.5px; margin-block-start: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-tabs { margin-block-start: 12px; }
.hg-kinds { display: flex; flex-wrap: wrap; gap: 4px; margin-block-start: 10px; }
.hg-kinds::-webkit-scrollbar { display: none; }
.hg-kinds[hidden] { display: none; }
.hg-kinds button { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding-inline: 8px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.hg-kinds button:hover { border-color: var(--line-2); color: var(--ink); }
.hg-kinds button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.hg-kinds button em { font-style: normal; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hg-kinds button[aria-pressed="true"] em { color: var(--bg); opacity: .7; }
.hg-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-block-start: 8px; }
.hg-sel { position: relative; display: flex; align-items: center; gap: 8px; height: 32px; padding-inline: 10px 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); min-width: 0; }
.hg-sel:focus-within { border-color: var(--line-2); }
.hg-sel select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: 0; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.hg-sel select option, .hg-sel select optgroup { background: var(--bg-1); color: var(--ink); }
.hg-sel__fl { display: inline-flex; color: var(--ink-3); }
.hg-con .panel__bd { padding-block-end: 4px; }
.hg-row { grid-template-columns: 24px minmax(0, 1fr) auto; padding: 7px 8px; }
.hg-row__fl { display: grid; place-items: center; width: 24px; }
.hg-row__fl .fl { width: 21px; height: 14px; }
.hg-ico { color: var(--ink-3); display: grid; place-items: center; }
.hg-row__t { min-width: 0; }
.hg-row__t b { display: block; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hg-row__t small { display: block; color: var(--ink-3); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hg-row[aria-selected="true"] .hg-row__t b { color: var(--ink); font-weight: 600; }
.hg-row--c { grid-template-columns: 24px minmax(0, 1fr) auto 64px; }
.hg-row--city, .hg-row--draft { cursor: default; }
.hg-row--city:hover, .hg-row--draft:hover { background: transparent; }
.hg-tag { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding-inline: 5px; border-radius: var(--r); border: 1px solid var(--line-2); font: 500 10.5px/1 var(--m); color: var(--ink-2); }
.hg-tag--l { color: var(--ink-3); border-color: var(--line); font: 500 10.5px/1 var(--f); }
.hg-tag--l.hg-l--to-verify { border-style: dashed; }
.hg-tag--ver { border-style: dashed; color: var(--ink-2); }
.hg-mini { height: 28px; padding-inline: 10px; font-size: 12px; }
.hg-more { display: block; width: calc(100% - 16px); margin: 6px 8px 8px; height: 32px; border-radius: var(--r); border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); font-size: 12.5px; }
.hg-more:hover { color: var(--ink); border-color: var(--ink-3); }
.hg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-block-start: 1px solid var(--line); }
.hg-foot__n { color: var(--ink-3); font-size: 12px; }
.hg-foot__n b { color: var(--ink); font-weight: 600; }
.hg-foot .btn { height: 30px; font-size: 12.5px; }
.hg-empty { display: grid; justify-items: center; gap: 8px; padding: 34px 20px; text-align: center; color: var(--ink-3); }
.hg-empty b { color: var(--ink); font-weight: 600; }
.hg-note { margin: 6px 16px 10px; color: var(--ink-3); font-size: 11.5px; }

/* Memories: the moderation flow and the first-record action */
.hg-mem { padding: 10px 8px 0; }
.hg-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; margin-inline: 8px; }
.hg-flow__s { background: var(--bg-1); padding: 10px; min-width: 0; position: relative; }
.hg-flow__s b { display: block; font: 600 26px/1 var(--f); letter-spacing: -.03em; margin-block-start: 8px; }
.hg-flow__s small { display: block; margin-block-start: 6px; color: var(--ink-3); font-size: 11px; line-height: 1.35; }
.hg-first { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; margin: 10px 8px 4px; padding: 14px; border-radius: var(--r); border: 1px dashed var(--line-2); }
.hg-first > div:first-child { color: var(--ink-2); padding-block-start: 2px; }
.hg-first b { display: block; font-weight: 600; }
.hg-first span { display: block; color: var(--ink-3); font-size: 12px; margin-block-start: 2px; }
.hg-first .btn { grid-column: 1 / -1; justify-content: center; margin-block-start: 8px; }
.hg-first--in { margin: 14px 16px 0; }

/* Inspector */
.hg-insp { inset-block: 76px 120px; max-height: none; }
.hg-ih { padding: 14px 16px 12px; padding-inline-end: 52px; }
.hg-ih .title { font-size: 24px; margin-block-start: 6px; }
.hg-ih .title span { min-width: 0; overflow-wrap: anywhere; }
.hg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; }
.hg-chips .chip svg { margin-inline-end: -2px; }
.hg-l--verified { color: var(--ink); border-color: var(--ink-3); }
.hg-l--to-verify { border-style: dashed; }
.hg-ver-chip { border-style: dashed; color: var(--ink); }
.hg-yr { margin-block-start: 10px; }
.hg-nat { color: var(--ink-2); margin-block-start: 4px; font-size: 14px; }
.hg-stage { position: relative; margin: 12px 12px 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg); aspect-ratio: 4 / 3; }
.hg-stage__load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--ink-3); font-size: 12px; z-index: 0; }
.hg-k3d { position: absolute; inset: 0; margin: 0 !important; z-index: 1; }
.hg-k3d .k3d-stage { aspect-ratio: auto !important; max-height: none !important; height: 100%; border: 0; background: transparent; }
.hg-k3d .k3d-cap { display: none; }
.hg-k3d, .hg-k3d * { border-radius: var(--r); }
.hg-k3d .k3d-bar { inset-inline-end: 8px; inset-block-end: 8px; }
.hg-k3d .k3d-btn { font: 500 11.5px/1 var(--f); }
.hg-cap { margin: 8px 16px 0; display: grid; gap: 2px; }
.hg-cap b { font-weight: 600; font-size: 12.5px; }
.hg-cap span { color: var(--ink-3); font-size: 11.5px; }
.hg-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 16px 0; }
.hg-figs .fig { margin: 0; padding: 12px; min-width: 0; }
.hg-figs .fig b { font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.hg-insp .line1 { margin-block-start: 12px; }
.hg-sec { margin: 16px 16px 0; }
.hg-sec__h { padding-block-end: 6px; border-block-end: 1px solid var(--line); margin-block-end: 6px; }
.hg-sec__h .eyebrow b { color: var(--ink); font-weight: 600; margin-inline-start: 6px; }
.hg-srcs { display: grid; gap: 2px; }
.hg-src { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 5px 0; font-size: 12.5px; color: var(--ink-2); }
.hg-src b { color: var(--ink); font-weight: 500; }
.hg-src a, .hg-small a, a.hg-small { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.hg-src .chip, .hg-dims .chip { height: 20px; font-size: 11px; padding-inline: 7px; }
.hg-none { color: var(--ink-3); font-size: 12.5px; padding-block: 4px; }
.hg-inl { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; font-size: 12.5px; }
.hg-dims > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 12.5px; border-block-end: 1px solid var(--line); }
.hg-dims > div:last-child { border-block-end: 0; }
.hg-dims span { color: var(--ink-2); }
.hg-dims b { font-weight: 600; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.hg-cont { padding-block: 4px 8px; }
.hg-cont > b { display: block; font-weight: 600; font-size: 12.5px; margin-block-end: 4px; }
.hg-view { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding-block: 4px; font-size: 12.5px; color: var(--ink-2); }
.hg-view i { font: 500 10.5px/20px var(--m); font-style: normal; text-align: center; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r); height: 20px; }
.hg-view small { display: block; color: var(--ink-3); font-size: 11px; margin-block-start: 2px; }
.hg-scan { display: grid; gap: 0; }
.hg-kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 5px 0; font-size: 12.5px; }
.hg-kv span { color: var(--ink-3); }
.hg-kv b { font-weight: 500; overflow-wrap: anywhere; }
.hg-kv--wide { margin: 8px 16px 0; }
.hg-small { display: block; margin: 4px 0 0; color: var(--ink-3); font-size: 11.5px; line-height: 1.45; }
a.hg-small { display: inline-flex; gap: 6px; align-items: center; margin-block-start: 6px; }
.hg-basis { margin: 14px 16px 0; color: var(--ink-3); font-size: 12px; }
.hg-basis summary { cursor: pointer; color: var(--ink-2); }
.hg-basis p { margin: 6px 0 0; line-height: 1.45; }
.hg-places { display: flex; flex-wrap: wrap; gap: 6px; }
.hg-pl { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding-inline: 8px 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); font-size: 12.5px; }
.hg-pl:hover { border-color: var(--line-2); }
.hg-links { display: grid; gap: 1px; }
.hg-link { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 6px; border: 0; border-radius: var(--r); background: transparent; text-align: start; font-size: 12.5px; color: var(--ink); }
.hg-link svg { color: var(--ink-3); }
.hg-link span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hg-link small { color: var(--ink-3); font-size: 11.5px; }
.hg-link:hover { background: var(--bg-2); }
.hg-link--ver span { color: var(--ink-2); }
.hg-fig-ver { border-style: dashed; border-color: var(--line-2); }
.hg-flags { margin-block-start: 10px; padding-block-start: 10px; border-block-start: 1px solid var(--line); display: grid; gap: 6px; font-size: 12px; color: var(--ink-2); }
.hg-flags > div { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; align-items: start; }
.hg-flags > div.hg-small { display: block; }
.hg-flags svg { margin-block-start: 2px; color: var(--ink-3); }
.hg-acts { padding: 16px; }
.hg-acts .btn { justify-content: center; }
.hg-acts .hg-span { grid-column: 1 / -1; }
.hg-cstats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 16px 0; }
.hg-cstats .stat { padding: 10px; }
.hg-cstats .stat b { font-size: 24px; }
.hg-cstats .stat span { font-size: 11px; white-space: nowrap; }

/* Map layers (Home position) and the attribution sit between the panels */
.hg-lk { flex: none; }
.layers button .hg-lk--sites { border-radius: var(--r-dot); }
.layers button .hg-lk--cities { width: 5px; height: 5px; border-radius: var(--r-dot); }
.layers button .hg-lk--tl { background: transparent; border: 1.3px solid var(--ink-3); border-radius: var(--r-dot); }
.layers button[aria-pressed="true"] .hg-lk--tl { background: transparent; border-color: var(--ink); }
.layers button .hg-lk--ver { background: transparent; border: 1.3px dashed var(--ink-3); border-radius: var(--r-dot); }
.layers button[aria-pressed="true"] .hg-lk--ver { background: transparent; border-color: var(--ink-2); }
.layers button .hg-lk--days { border-radius: var(--r-dot); background: transparent; border: 1px solid var(--ink-3); width: 10px; height: 10px; }
.layers button[aria-pressed="true"] .hg-lk--days { border-color: var(--ink); background: transparent; }
.hg-attr { inset-block-end: 118px; inset-inline-end: 460px; }
.app:has(.hg-insp[hidden]) .hg-attr { inset-inline-end: 16px; }

/* Time axis */
.hg-time { grid-template-columns: 236px minmax(0, 1fr) 200px; }
.hg-ver { cursor: default; }
.hg-ver__b { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; border: 0; background: transparent; padding: 0; text-align: start; color: var(--ink); }
.hg-ver__b b { font: 600 26px/1 var(--f); letter-spacing: -.03em; grid-row: span 2; }
.hg-ver__b span { font-size: 12px; color: var(--ink-2); }
.hg-ver__b small { font-size: 11.5px; color: var(--ink-3); }
.hg-ver__b:hover span { color: var(--ink); }

/* The wizards */
.hg-wiz { place-items: center; padding: 16px; }
.hg-wiz__box { width: min(720px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; background: var(--glass-2); }
.hg-wiz__hd { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 16px 18px 10px; }
.hg-wiz__hd .title { font-size: 22px; }
.hg-wiz__note { display: flex; align-items: center; gap: 10px; margin: 0 18px; padding: 9px 12px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 12.5px; }
.hg-wiz__note svg { flex: none; color: var(--ink-3); }
.hg-steps { list-style: none; margin: 14px 18px 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hg-steps button { width: 100%; display: grid; justify-items: start; gap: 6px; padding: 8px 0 0; border: 0; border-block-start: 2px solid var(--line-2); background: none; color: var(--ink-3); font-size: 11.5px; text-align: start; }
.hg-steps button:disabled { cursor: default; opacity: .6; }
.hg-steps i { font-style: normal; font: 500 10.5px/1 var(--m); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: var(--r-dot); border: 1px solid var(--line-2); }
.hg-steps .is-done button { border-block-start-color: var(--ink-3); color: var(--ink-2); }
.hg-steps [aria-current] button { border-block-start-color: var(--red); color: var(--ink); font-weight: 600; }
.hg-steps [aria-current] i { border-color: var(--red); color: var(--ink); }
.hg-steps span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
.hg-wiz__bd { flex: 1; min-height: 0; overflow: auto; padding: 16px 18px; }
.hg-wiz__ft { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-block-start: 1px solid var(--line); }
.hg-wiz__st { flex: 1; color: var(--ink-3); font-size: 12px; text-align: center; }
.hg-opts { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.hg-opts legend { padding: 0 0 8px; }
.hg-opts--col { grid-template-columns: 1fr; }
.hg-opts--per { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.hg-opts[disabled] { opacity: .45; }
.hg-opt { position: relative; display: block; cursor: pointer; }
.hg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.hg-opt > span { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); }
.hg-opt > span svg { flex: none; color: var(--ink-3); }
.hg-opt b { font-weight: 500; }
.hg-opt small { display: block; color: var(--ink-3); font-size: 11.5px; margin-block-start: 2px; }
.hg-opt small a { color: var(--ink-2); }
.hg-opts--col .hg-opt > span { display: block; }
.hg-opt:hover > span { border-color: var(--line-2); }
.hg-opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.hg-opt input:checked + span svg { color: var(--ink); }
.hg-opt input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.hg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hg-field { display: grid; gap: 8px; position: relative; }
.hg-field .hg-sel { height: 40px; }
.hg-field input:not([type]) , .hg-field input[inputmode] { height: 44px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-1); font-size: 15px; outline: 0; }
.hg-field input:focus { border-color: var(--ink-3); }
.hg-field small { position: absolute; inset-inline-end: 12px; inset-block-end: 14px; color: var(--ink-3); font-size: 11px; }
.hg-field--yr { margin-block-start: 14px; max-width: 220px; }
.hg-check { display: flex; gap: 10px; align-items: start; margin-block-start: 12px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.hg-check input { margin: 2px 0 0; accent-color: var(--ink); }
.hg-photo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.hg-photo .hg-check { margin: 0 0 12px; }
.hg-drop { position: relative; display: grid; place-content: center; justify-items: center; gap: 6px; aspect-ratio: 4 / 3; border-radius: var(--r); border: 1px dashed var(--line-2); background: var(--bg-1); color: var(--ink-3); text-align: center; padding: 12px; cursor: pointer; overflow: hidden; font-size: 12px; }
.hg-drop b { color: var(--ink); font-weight: 600; font-size: 13px; }
.hg-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hg-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hg-rev { display: grid; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.hg-rev > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 9px 12px; background: var(--bg-1); font-size: 13px; }
.hg-rev span { color: var(--ink-3); }
.hg-rev b { font-weight: 500; overflow-wrap: anywhere; }
.hg-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block-start: 16px; position: relative; }
.hg-track__s { position: relative; padding-block-start: 18px; }
.hg-track__s::before { content: ""; position: absolute; inset-block-start: 5px; inset-inline: 0; height: 1px; background: var(--line-2); }
.hg-track__s i { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 11px; height: 11px; border-radius: var(--r-dot); border: 1px solid var(--ink-3); background: var(--bg-1); }
.hg-track__s.is-on i { background: var(--red); border-color: var(--red); }
.hg-track__s b { display: block; font-weight: 600; font-size: 12.5px; }
.hg-track__s small { display: block; color: var(--ink-3); font-size: 11.5px; line-height: 1.35; margin-block-start: 2px; }

/* Phone: the globe stays full screen; the console is a bottom sheet, the inspector a sheet over it */
@media (max-width: 760px) {
  .hg-con { max-height: 50vh !important; }
  .hg-con__hd { padding: 12px 12px 8px; }
  .hg-hd .title { font-size: 18px; }
  .hg-stats { margin-block-start: 8px; }
  .hg-stats .stat { padding: 7px 8px; }
  .hg-stats .stat b { font-size: 19px; }
  .hg-stats .stat span { font-size: 10.5px; }
  .hg-tabs { margin-block-start: 8px; }
  .hg-stats .stat:nth-child(n+4) { display: none; }
  .hg-kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hg-kinds::-webkit-scrollbar { display: none; }
  .hg-foot { padding: 8px 12px; }
  .hg-insp { inset-block: auto 8px; max-height: 64vh; width: auto; }
  .hg-ih .title { font-size: 20px; }
  .hg-stage { aspect-ratio: 16 / 10; }
  .hg-time { display: none; }
  .hg-wiz { padding: 8px; place-items: end center; }
  .hg-wiz__box { max-height: calc(100vh - 16px); }
  .hg-steps { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .hg-steps span { display: none; }
  .hg-photo, .hg-grid2 { grid-template-columns: 1fr; }
  .hg-photo .hg-drop { max-height: 180px; }
  .hg-wiz__st { display: none; }
  .hg-wiz__ft { flex-wrap: wrap; }
  .hg-wiz__ft .btn--red { flex: 1; justify-content: center; }
}

/* Context: the reader's places first (SPINE.context) */
.group--ctx .group__h .eyebrow { color: var(--ink-2); }
.hg-ctx { display: inline-flex; align-items: center; gap: 6px; }
/* The 3D stage full bleed over the globe, under the shell */
.hg-full { position: absolute; inset-block-start: 8px; right: 8px; z-index: 3; height: 28px; padding-inline: 9px; font-size: 12px; background: var(--glass-2); }
.hg-stage.is-full { position: fixed; z-index: 14; inset: 0; margin: 0; aspect-ratio: auto; border: 0; background: var(--bg); }
.hg-stage.is-full .hg-full { inset-block-start: 76px; right: auto; inset-inline-end: 76px; height: 34px; padding-inline: 12px; }
@media (max-width: 760px) { .hg-stage.is-full .hg-full { inset-block-start: 114px; inset-inline-end: 8px; } }
.hg-stage.is-full .hg-k3d { inset-block: 72px 8px; inset-inline: 80px 72px; }
@media (max-width: 760px) { .hg-stage.is-full .hg-k3d { inset: 112px 0 0 0; } }
.hg-wiz .btn:disabled, .hg-acts .btn:disabled { opacity: .4; cursor: not-allowed; }

/* The studio (owner R89): modes, the stage's own layers, the story and the part cards */
.hg-studio { margin: 10px 12px 0; display: grid; gap: 8px; }
.hg-modes button:disabled { opacity: .4; cursor: not-allowed; }
.hg-sl { display: flex; flex-wrap: wrap; gap: 4px; }
.hg-sl button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 8px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--ink-3); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.hg-sl button i { width: 7px; height: 7px; border-radius: var(--r-dot); border: 1px solid var(--ink-3); }
.hg-sl button[aria-pressed="true"] { color: var(--ink); border-color: var(--line-2); background: var(--bg-2); }
.hg-sl button[aria-pressed="true"] i { background: var(--ink); border-color: var(--ink); }
.hg-alt { margin: 10px 12px 0; }
.hg-story { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.hg-story button { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 6px; border: 0; border-radius: var(--r); background: transparent; text-align: start; color: var(--ink); }
.hg-story button:hover { background: var(--bg-2); }
.hg-story button[aria-current="step"] { background: var(--red-soft); }
.hg-story button[aria-current="step"] i { color: var(--red); }
.hg-story i { font: 500 10.5px/18px var(--m); font-style: normal; color: var(--ink-3); }
.hg-story b { display: block; font-weight: 600; font-size: 12.5px; }
.hg-story span span { display: block; color: var(--ink-2); font-size: 12.5px; margin-block-start: 2px; }
.hg-story small, .hg-card small { display: block; color: var(--ink-3); font-size: 11px; margin-block-start: 3px; overflow-wrap: anywhere; }
.hg-story .chip, .hg-card .chip { height: 20px; font-size: 11px; padding-inline: 7px; }
.hg-cards { display: grid; gap: 1px; }
.hg-card { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 6px; border: 0; border-radius: var(--r); background: transparent; text-align: start; color: var(--ink); }
.hg-card:hover { background: var(--bg-2); }
.hg-card.is-on { background: var(--red-soft); }
.hg-card.is-more { display: none; }
.hg-card b { display: block; font-weight: 600; font-size: 12.5px; }
.hg-card span span { display: block; color: var(--ink-2); font-size: 12.5px; margin-block-start: 2px; }
.hg-card__src { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hg-stage.no-call .nxo-cad-call, .hg-stage.no-cards .nxo-cad-card, .hg-stage.no-lbl .k3d-lbl, .hg-stage.no-bar .k3d-bar { display: none !important; }
.hg-stage.no-hud .nxo-cad-triad, .hg-stage.no-hud .nxo-cad-ro, .hg-stage.no-hud .nxo-cad-scale, .hg-stage.no-hud .nxo-cad-hint { display: none !important; }
/* Presentation: the steps play full bleed with their caption; compare: drawing and reality on one camera */
.hg-pcap { position: absolute; z-index: 4; inset-inline-start: 80px; inset-block-end: 76px; width: min(520px, calc(100% - 160px)); padding: 14px 16px; }
.hg-pcap b { display: block; font: 600 20px/1.25 var(--f); letter-spacing: -.01em; margin-block-start: 6px; }
.hg-pcap p { margin: 6px 0 0; color: var(--ink-2); }
.hg-pcap small { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block-start: 10px; color: var(--ink-3); font-size: 11.5px; overflow-wrap: anywhere; }
.hg-cmp { position: absolute; z-index: 4; inset-block-start: 76px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
[dir="rtl"] .hg-cmp { transform: translateX(50%); }
.hg-cmp .seg { width: 260px; }
.hg-mini[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 760px) {
  .hg-pcap { inset-inline: 8px; inset-block-end: 8px; width: auto; }
  .hg-pcap b { font-size: 16px; }
  .hg-cmp { inset-block-start: 160px; flex-wrap: wrap; justify-content: center; width: calc(100% - 16px); }
  .hg-cmp .seg { width: 100%; }
}
