/* Storyblok Curator (#265). Prefix sbc-. Read-only views of the whole Storyblok stock. Mobile is a
   requirement: 16 px gutter on a phone, nothing scrolls the page sideways, the tree and the facets
   fold into a panel, results are cards, wide tables scroll inside their own box. */

.sbc-page { font-family: var(--font-sans); padding: 0 clamp(16px, 3vw, 48px) 48px; color: var(--fill-primary); min-width: 0; max-width: 100%; box-sizing: border-box; }
.sbc-page *, .sbc-page *::before, .sbc-page *::after { box-sizing: border-box; }
.sbc-header { border-bottom: var(--underline-bar) solid var(--bm-main); padding-bottom: .9rem; display: grid; gap: .45rem; min-width: 0; }
.sbc-kicker { margin: 0; font-family: ui-monospace, monospace; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bm-main); font-weight: 700; }
.sbc-header h1 { margin: 0; font-size: 1.6rem; font-weight: 600; color: var(--bm-main); overflow-wrap: anywhere; }
.sbc-lede { margin: 0; max-width: 72ch; font-size: .9375rem; }
.sbc-meta { margin: .75rem 0 0; color: var(--grey-600); font-size: .8125rem; }
.sbc-meta b { color: var(--fill-primary); }
.sbc-tabs { display: flex; flex-wrap: wrap; gap: .25rem; }
.sbc-tab { font-size: .875rem; font-weight: 500; color: var(--bm-main); text-decoration: none; border: 1px solid var(--bm-main); padding: .3rem .9rem; }
.sbc-tab:hover { background: var(--grey-100); }
.sbc-tab[aria-current="page"] { background: var(--bm-main); color: var(--white); }
.sbc-tab--out { border-style: dashed; }

.sbc-section { margin-top: 2rem; min-width: 0; }
.sbc-section h2 { margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 600; color: var(--bm-main); }
.sbc-sub { margin: 0 0 .6rem; color: var(--grey-600); font-size: .8125rem; max-width: 80ch; }
.sbc-note { border-left: var(--underline-bar) solid var(--bm-main); padding: .5rem .8rem; font-size: .8125rem; background: var(--white); margin-top: 1rem; max-width: 86ch; }
.sbc-empty { color: var(--grey-600); font-size: .875rem; margin: .5rem 0; }
.sbc-warn { color: var(--status-error); }
.sbc-page code { font-family: ui-monospace, monospace; font-size: .8em; background: var(--grey-100); padding: 0 .25rem; overflow-wrap: anywhere; }
.sbc-link { font-size: .8125rem; color: var(--bm-main); }

.sbc-button { display: inline-block; font: inherit; font-size: .875rem; font-weight: 500; color: var(--white); background: var(--bm-main); border: 1px solid var(--bm-main); padding: .45rem .9rem; text-decoration: none; cursor: pointer; min-height: 40px; }
.sbc-button--ghost { background: var(--white); color: var(--bm-main); }
.sbc-inline { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.sbc-figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .6rem; }
.sbc-figures--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.sbc-figure { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem; background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--bm-main); padding: .7rem .8rem; text-decoration: none; color: inherit; min-width: 0; }
.sbc-figure:hover { border-color: var(--bm-main); }
.sbc-figure__value { font-size: 1.5rem; font-weight: 600; color: var(--bm-main); font-variant-numeric: tabular-nums; }
.sbc-figure__label { font-size: .8125rem; color: var(--grey-600); overflow-wrap: break-word; hyphens: auto; }

.sbc-search { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.sbc-search__input { flex: 1 1 260px; min-width: 0; font: inherit; padding: .45rem .6rem; border: 1px solid var(--rule); min-height: 40px; }
.sbc-search__lang { font: inherit; padding: .4rem; border: 1px solid var(--rule); min-height: 40px; min-width: 0; max-width: 100%; }

.sbc-explorer { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.sbc-side { background: var(--white); border: 1px solid var(--rule); padding: .6rem .8rem; min-width: 0; }
.sbc-side > summary { font-weight: 600; font-size: .875rem; cursor: pointer; color: var(--bm-main); min-height: 32px; }
.sbc-side h3 { font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-600); margin: .9rem 0 .3rem; }
.sbc-side ul { list-style: none; margin: 0; padding: 0; }
.sbc-side li ul { padding-left: .8rem; }
.sbc-side a { display: flex; justify-content: space-between; gap: .5rem; text-decoration: none; color: var(--fill-primary); font-size: .8125rem; padding: .2rem .25rem; min-height: 28px; align-items: center; }
.sbc-side a:hover { background: var(--grey-100); }
.sbc-side a[aria-current="true"], .sbc-side a[aria-pressed="true"] { background: var(--bm-main); color: var(--white); }
.sbc-side small { color: inherit; opacity: .7; font-variant-numeric: tabular-nums; }
.sbc-facet--form { display: grid; gap: .35rem; }
.sbc-facet--form input[type="text"] { font: inherit; font-size: .8125rem; padding: .35rem .5rem; border: 1px solid var(--rule); min-width: 0; width: 100%; }
.sbc-main { min-width: 0; }

.sbc-chips { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-bottom: .6rem; }
.sbc-count { font-size: .875rem; margin-right: .4rem; }
.sbc-chip { display: inline-flex; gap: .3rem; align-items: center; font-size: .75rem; padding: .1rem .5rem; border: 1px solid var(--rule); background: var(--white); color: var(--fill-primary); text-decoration: none; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
a.sbc-chip:hover { border-color: var(--bm-main); }
.sbc-chip--kind { border-color: var(--bm-main); color: var(--bm-main); }
.sbc-chip--warn { color: var(--status-error); border-color: color-mix(in srgb, var(--status-error) 40%, var(--white)); }
.sbc-chip--open_draft, .sbc-chip--withdrawn { color: var(--status-warn); border-color: color-mix(in srgb, var(--status-warn) 40%, var(--white)); }
.sbc-chip--never { color: var(--grey-600); }

.sbc-results { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sbc-result { background: var(--white); border: 1px solid var(--rule); padding: .6rem .8rem; display: grid; gap: .3rem; min-width: 0; }
.sbc-result__name { font-weight: 600; color: var(--bm-main); text-decoration: none; overflow-wrap: anywhere; }
.sbc-result__path { font-size: .75rem; color: var(--grey-600); overflow-wrap: anywhere; }
.sbc-result__meta { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .75rem; }
.sbc-result__date { color: var(--grey-600); }
.sbc-result__snippet { margin: 0; font-size: .8125rem; color: var(--grey-600); overflow-wrap: anywhere; }
.sbc-result__snippet mark { background: color-mix(in srgb, var(--bm-main) 18%, var(--white)); color: var(--fill-primary); padding: 0 .1rem; }
.sbc-pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1rem; font-size: .875rem; }

.sbc-head { margin-top: 1rem; display: grid; gap: .6rem; min-width: 0; }
.sbc-head__path { font-size: .8125rem; overflow-wrap: anywhere; }
.sbc-head__links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sbc-facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem 1rem; font-size: .8125rem; }
.sbc-facts dt { color: var(--grey-600); }
.sbc-facts dd { margin: 0; overflow-wrap: anywhere; }
.sbc-toc { display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .8125rem; padding: .5rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sbc-toc a { color: var(--bm-main); }

.sbc-tree-wrap { background: var(--white); border: 1px solid var(--rule); padding: .4rem .6rem; min-width: 0; overflow-wrap: anywhere; }
.sbc-tree-node { margin-left: .9rem; border-left: 1px dotted var(--rule); padding-left: .5rem; }
.sbc-tree-wrap > .sbc-tree-node { margin-left: 0; border-left: 0; padding-left: 0; }
.sbc-tree-node > summary { cursor: pointer; font-size: .8125rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; min-height: 28px; padding: .15rem 0; }
.sbc-tree-node > summary small { color: var(--grey-600); }
.sbc-fields { margin: .1rem 0 .3rem 1rem; display: grid; grid-template-columns: minmax(80px, max-content) minmax(0, 1fr); gap: .1rem .6rem; font-size: .75rem; }
.sbc-fields dt { color: var(--grey-600); font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.sbc-fields dd { margin: 0; overflow-wrap: anywhere; }
.sbc-draft { margin-bottom: .6rem; }
.sbc-draft > summary { cursor: pointer; font-size: .8125rem; color: var(--status-warn); min-height: 32px; }

.sbc-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); background: var(--white); }
.sbc-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.sbc-table th, .sbc-table td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sbc-table thead th { background: var(--grey-100); font-size: .6875rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.sbc-table th small { display: block; text-transform: none; font-weight: 400; color: var(--grey-600); }
.sbc-num { text-align: right; }
.sbc-langs td:nth-child(2) { min-width: 14rem; }
.sbc-lang { white-space: nowrap; }
.sbc-lang--translated { color: var(--status-ok); }
.sbc-lang--default { color: var(--grey-600); }
.sbc-twin td { min-width: 12rem; }
.sbc-twin--same td { color: var(--grey-600); }
.sbc-twin--differs td:nth-child(2) { background: color-mix(in srgb, var(--status-warn) 8%, var(--white)); }
.sbc-shop--online { color: var(--status-ok); }

.sbc-list { margin: 0; padding-left: 1.1rem; font-size: .8125rem; display: grid; gap: .25rem; }
.sbc-list a { overflow-wrap: anywhere; }
.sbc-listing { margin: .6rem 0; font-size: .8125rem; }
.sbc-listing ul { margin: .2rem 0; padding-left: 1.1rem; }

.sbc-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: .6rem; }
.sbc-image { margin: 0; background: var(--white); border: 1px solid var(--rule); display: grid; min-width: 0; }
.sbc-image img { width: 100%; height: 120px; object-fit: contain; background: var(--grey-100); display: block; }
.sbc-image__file { height: 120px; display: grid; place-items: center; background: var(--grey-100); font-family: ui-monospace, monospace; font-size: .8125rem; color: var(--grey-600); }
.sbc-image figcaption { padding: .35rem .5rem; font-size: .75rem; display: grid; gap: .15rem; overflow-wrap: anywhere; }
.sbc-image figcaption small { color: var(--grey-600); }

@media (max-width: 760px) {
  .sbc-page { padding: 0 16px 32px; }
  .sbc-header h1 { font-size: 1.3rem; }
  .sbc-explorer { grid-template-columns: minmax(0, 1fr); }
  .sbc-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sbc-figure__value { font-size: 1.25rem; }
  .sbc-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sbc-fields { grid-template-columns: minmax(0, 1fr); margin-left: .4rem; }
  .sbc-tree-node { margin-left: .4rem; }
  .sbc-search__input { flex-basis: 100%; }
  /* Tables become cards: one row a card, every cell with its column's name. */
  .sbc-scroll:has(.sbc-table--cards) { overflow-x: visible; border: 0; background: transparent; }
  .sbc-table--cards thead { display: none; }
  .sbc-table--cards, .sbc-table--cards tbody, .sbc-table--cards tr, .sbc-table--cards td { display: block; width: 100%; }
  .sbc-table--cards tr { background: var(--white); border: 1px solid var(--rule); margin-bottom: .5rem; padding: .35rem .6rem; }
  .sbc-table--cards td { border: 0; padding: .15rem 0; min-width: 0 !important; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .5rem; overflow-wrap: break-word; }
  .sbc-table--cards td::before { content: attr(data-label); color: var(--grey-600); font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; }
  .sbc-table--cards code { overflow-wrap: anywhere; }
}

/* Catalogues (#265 b): components, images, products. */
a.sbc-image { text-decoration: none; color: inherit; }
a.sbc-image:hover { border-color: var(--bm-main); }
.sbc-image__caption { padding: .35rem .5rem; font-size: .75rem; display: grid; gap: .15rem; overflow-wrap: anywhere; }
.sbc-image__caption small { color: var(--grey-600); }
.sbc-images + .sbc-images { margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--rule); }
.sbc-imagehead { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; align-items: start; }
.sbc-imagehead__img { width: 100%; height: auto; background: var(--grey-100); border: 1px solid var(--rule); }
.sbc-bar { display: inline-block; width: 4rem; height: .5rem; margin-right: .35rem; vertical-align: middle; background: linear-gradient(90deg, var(--bm-main) var(--share), var(--grey-100) var(--share)); border: 1px solid var(--rule); }
tr.sbc-dim td { color: var(--grey-600); }
@media (max-width: 760px) {
  .sbc-imagehead { grid-template-columns: minmax(0, 1fr); }
}

/* Reading mode (#269): the page as a media strip beside its outline. */
.sbc-readbar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 1rem 0 .4rem; }
.sbc-beside { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.sbc-chip[aria-pressed="true"] { background: var(--bm-main); border-color: var(--bm-main); color: var(--white); }
.sbc-read { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.sbc-outline { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; background: var(--white); border: 1px solid var(--rule); padding: .5rem .7rem; }
.sbc-outline > summary { font-weight: 600; font-size: .875rem; color: var(--bm-main); cursor: pointer; min-height: 32px; }
.sbc-outline ol { list-style: none; margin: .3rem 0 0; padding: 0; font-size: .78rem; }
.sbc-outline li { padding-left: calc((var(--depth) - 1) * .7rem); }
.sbc-outline a { display: block; padding: .15rem .3rem; color: var(--fill-primary); text-decoration: none; overflow-wrap: anywhere; }
.sbc-outline a[aria-current] { background: var(--bm-main); color: var(--white); }
.sbc-strip { display: grid; gap: .8rem; min-width: 0; }
.sbc-station { background: var(--white); border: 1px solid var(--rule); border-left: 3px solid color-mix(in srgb, var(--bm-main) calc(100% - var(--depth) * 18%), var(--white)); padding: .6rem .8rem; display: grid; gap: .6rem; min-width: 0; scroll-margin-top: 100px; }
.sbc-station:target { outline: 2px solid var(--bm-main); }
.sbc-station__head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; font-size: .8125rem; }
.sbc-station__text { display: grid; gap: .8rem; }
.sbc-station__text--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sbc-station__text small { color: var(--grey-600); font-family: ui-monospace, monospace; font-size: .6875rem; }
.sbc-station__text p { margin: .1rem 0 0; font-size: .9375rem; white-space: pre-line; overflow-wrap: break-word; }
.sbc-dim p { color: var(--grey-600); }
.sbc-station__images { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .5rem; }
.sbc-shot { margin: 0; display: grid; gap: .2rem; }
.sbc-shot__open { padding: 0; border: 0; background: var(--grey-100); cursor: zoom-in; display: block; width: 100%; min-height: 120px; }
.sbc-shot img { width: 100%; height: auto; max-height: 360px; object-fit: contain; display: block; }
.sbc-shot figcaption { font-size: .75rem; overflow-wrap: anywhere; }
.sbc-video { display: grid; gap: .3rem; }
.sbc-video__play { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; justify-content: center; aspect-ratio: 16 / 9; width: 100%; background: #1d262c; color: var(--white); border: 0; cursor: pointer; font: inherit; padding: 1rem; text-align: center; }
.sbc-video__play small { flex-basis: 100%; opacity: .75; font-size: .75rem; }
.sbc-video__icon { font-size: 2rem; }
.sbc-video__player { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.sbc-linkcard { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--rule); padding: .4rem; text-decoration: none; color: inherit; min-width: 0; }
a.sbc-linkcard:hover { border-color: var(--bm-main); }
.sbc-linkcard__img { width: 72px; height: 54px; object-fit: cover; flex: none; background: var(--grey-100); }
.sbc-linkcard__body { display: grid; gap: .1rem; font-size: .8125rem; min-width: 0; overflow-wrap: anywhere; }
.sbc-linkcard__body small { color: var(--grey-600); }
.sbc-linkcard--dead { border-color: color-mix(in srgb, var(--status-error) 40%, var(--white)); }
.sbc-pdf { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; border: 1px solid var(--rule); padding: .5rem; font-size: .8125rem; }
.sbc-pdf__body { display: grid; gap: .1rem; flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.sbc-pdf__view { width: 100%; height: 70vh; border: 1px solid var(--rule); }
.sbc-station__products { margin: 0; font-size: .8125rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.sbc-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .9); display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; touch-action: pan-y; }
.sbc-lightbox figure { margin: 0; display: grid; gap: .4rem; justify-items: center; }
.sbc-lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.sbc-lightbox figcaption { color: var(--white); font-size: .8125rem; text-align: center; padding: 0 .5rem; }
.sbc-lightbox button { background: transparent; color: var(--white); border: 0; font-size: 2rem; cursor: pointer; min-height: 48px; }
.sbc-lightbox__close { position: absolute; top: 8px; right: 12px; }
@media (max-width: 760px) {
  .sbc-read { grid-template-columns: minmax(0, 1fr); }
  .sbc-outline { position: static; max-height: none; }
  .sbc-station__text--two { grid-template-columns: minmax(0, 1fr); }
  .sbc-lightbox { grid-template-columns: 36px minmax(0, 1fr) 36px; }
}

/* Previews on click (#269 B1/B2). */
.sbc-oembed, .sbc-ogcard { display: flex; gap: .6rem; align-items: center; font-size: .8125rem; min-width: 0; margin-top: .3rem; }
.sbc-oembed span, .sbc-ogcard span { display: grid; gap: .1rem; min-width: 0; overflow-wrap: anywhere; }
.sbc-oembed small { color: var(--grey-600); }
.sbc-oembed__img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; flex: none; }
.sbc-linkcard--ext { flex-wrap: wrap; }
.sbc-linkcard--ext turbo-frame { flex-basis: 100%; }

/* Marks and work lists (#266). */
.sbc-markbox { border: 1px solid var(--rule); border-left: 3px solid var(--bm-main); background: var(--white); padding: .7rem .9rem; }
.sbc-markbox h2 { margin-top: 0; }
.sbc-markform { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .6rem; margin-top: .8rem; align-items: end; }
.sbc-markform label { display: grid; gap: .2rem; font-size: .75rem; color: var(--grey-600); min-width: 0; }
.sbc-markform select, .sbc-markform input[type="text"], .sbc-markform textarea { font: inherit; font-size: .875rem; padding: .4rem .5rem; border: 1px solid var(--rule); min-height: 40px; min-width: 0; max-width: 100%; color: var(--fill-primary); }
.sbc-markform__wide { grid-column: 1 / -1; }
.sbc-note-text { white-space: pre-line; }
.sbc-markhist { margin-top: .6rem; font-size: .8125rem; }
.sbc-markhist > summary { cursor: pointer; color: var(--bm-main); min-height: 32px; }
.sbc-chip--mark { font-weight: 600; }
.sbc-chip--mark-delete_candidate { color: var(--status-error); border-color: color-mix(in srgb, var(--status-error) 40%, var(--white)); }
.sbc-chip--mark-review { color: var(--status-warn); border-color: color-mix(in srgb, var(--status-warn) 40%, var(--white)); }
.sbc-chip--mark-keep, .sbc-chip--mark-done { color: var(--status-ok); border-color: color-mix(in srgb, var(--status-ok) 40%, var(--white)); }
.sbc-result--done { opacity: .65; }
.sbc-link--button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; min-height: 40px; }
.sbc-tolist { margin: 0 0 .5rem; font-size: .8125rem; }

/* LUKE beside the Curator (#267): docked right on a wide window, a sheet from below on a phone. */
.sbc-luke__toggle { position: fixed; right: 16px; bottom: 16px; z-index: 950; background: var(--bm-main); color: var(--white); border: 0; padding: .6rem 1rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.sbc-luke__sheet { position: fixed; top: 84px; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 960; background: var(--white); border-left: 1px solid var(--rule); box-shadow: -8px 0 24px rgba(0, 0, 0, .12); display: flex; flex-direction: column; }
.sbc-luke__sheet[hidden] { display: none; }
.sbc-luke__head { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; padding: .6rem .8rem; border-bottom: 1px solid var(--rule); font-size: .8125rem; }
.sbc-luke__ctx { color: var(--grey-600); flex: 1 1 10rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbc-luke__close { background: none; border: 0; font-size: 1.4rem; cursor: pointer; min-height: 40px; min-width: 40px; }
#sbc-luke-frame { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sbc-luke__chat { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0 .8rem .6rem; }
.sbc-luke__chat .lk-messages { flex: 1; overflow-y: auto; }
body.sbc-luke-open .sbc-luke__toggle { display: none; }
.sbc-chip--luke { border-color: var(--bm-main); color: var(--bm-main); font-weight: 600; }
.sbc-ask { background: none; border: 1px dashed var(--bm-main); color: var(--bm-main); font: inherit; font-size: .75rem; padding: .1rem .45rem; cursor: pointer; min-height: 28px; }
.sbc-figure-wrap { display: grid; gap: .2rem; align-content: start; position: relative; }
@media (min-width: 1200px) {
  body.sbc-luke-open .sbc-page { margin-right: 440px; }
}
@media (max-width: 760px) {
  .sbc-luke__sheet { top: auto; height: 78vh; width: 100vw; border-left: 0; border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); }
  .sbc-luke__toggle { right: 16px; bottom: 16px; }
}

/* Watchers (#268). */
.sbc-watch--alarm { border-top-color: var(--status-error); }
.sbc-watch--alarm .sbc-figure__value { color: var(--status-error); }
.sbc-watch__delta { display: block; color: var(--grey-600); font-size: .75rem; margin-top: .15rem; }
.sbc-watchform { margin: 0 0 .6rem; font-size: .8125rem; }
.sbc-watchform > summary { cursor: pointer; color: var(--bm-main); min-height: 32px; }

/* Goals (#274) */
.sbc-progress { height: 8px; background: var(--grey-100); border: 1px solid var(--rule); margin: .45rem 0 .15rem; max-width: 420px; }
.sbc-progress__bar { display: block; height: 100%; background: var(--bm-main); }
.sbc-goal--stalled { border-left: 3px solid var(--status-warn); padding-left: .6rem; }
.sbc-h2-link { font-size: .8125rem; font-weight: 400; margin-left: .6rem; }
.sbc-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem .9rem; margin: 0 0 .4rem; font-size: .875rem; }
.sbc-kv dt { color: var(--grey-600); }
.sbc-kv dd { margin: 0; overflow-wrap: anywhere; }
.sbc-log { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .8125rem; }
.sbc-log li { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 480px) { .sbc-kv { grid-template-columns: minmax(0, 1fr); } .sbc-kv dt { margin-top: .3rem; } }

/* Inline help "?" (#274): a finger-sized target on the phone, next to the tile's other actions. */
.sbc-page .ta-help-dot { min-width: 24px; min-height: 24px; }
.sbc-figure-wrap > .ta-help-dot { position: absolute; top: .35rem; right: .35rem; margin: 0; }

/* #272 / #269 B4: the page as the website shows it */
.sbc-outside { margin: .6rem 0 0; max-width: 100%; }
.sbc-outside__img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); }
