/* The Social Body on shifts.dance: slim website bar over the atlas (black background, website fonts, fascia green) */
:root { --sitebar: 38px; --green: #2bff88; --bg: #000; --bg2: #050909; }
body.atlas-page { background: #000; }
.sitebar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--sitebar);
  display: flex; align-items: center; gap: 22px; padding: 0 18px;
  background: rgba(0,0,0,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--green);
  font: 13px/1 'GraebenbachGrotesk', Helvetica, sans-serif; letter-spacing: .02em;
}
.sitebar a { color: #e8eeee; text-decoration: none; }
.sitebar a:hover { color: var(--green); }
.sb-home { font-family: 'GraebenbachMedium', Helvetica, sans-serif; white-space: nowrap; }
.sb-slash { color: var(--green); }
.sb-back { color: #9aa9a7 !important; white-space: nowrap; }
.sb-back:hover { color: var(--green) !important; }
.sb-menu { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 16px; }
.sb-menu a { font-size: 11.5px; letter-spacing: .06em; color: #9aa9a7; }
.sb-menu a.active { color: var(--green); }
.sb-langs { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 12px; }
.sb-langs a { font-size: 11.5px; letter-spacing: .06em; color: #9aa9a7; }
.sb-langs a.active { color: var(--green); }
/* make room for the bar */
.chrome { padding-top: calc(var(--sitebar) + 14px) !important; }
.loading { padding-top: var(--sitebar); }
@media (max-width: 1100px) { .sb-menu { display: none; } }
@media (max-width: 560px) { .sb-home span:first-child { display: none; } .sitebar { gap: 14px; } }

/* Diary key box (atlas-site.js) */
.dkey { margin: 0 0 14px; border-top: 1px solid var(--rule); padding-top: 8px; }
.dkey summary { cursor: pointer; font: 500 10.5px var(--f-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; list-style: none; }
.dkey summary::-webkit-details-marker { display: none; }
.dkey summary::before { content: '+ '; }
.dkey[open] summary::before { content: '− '; }
.dkey p { font-size: 12px; color: var(--muted); margin: 8px 0; }
.dk-row { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.dk-val { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 11px var(--f-mono); color: var(--ink); background: rgba(255,255,255,.04); border: 1px solid var(--rule); border-radius: 6px; padding: 6px 8px; }
.dk-b { border: 1px solid var(--rule); background: rgba(255,255,255,.04); border-radius: 999px; padding: 5px 11px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.dk-b:hover { border-color: var(--amber); color: var(--amber); }
.dk-lab { display: block; margin-top: 10px; font: 500 10.5px var(--f-mono); color: var(--faint); }
.dk-in { flex: 1; min-width: 0; background: rgba(255,255,255,.04); border: 1px solid var(--rule); border-radius: 6px; padding: 6px 8px; font: 11px var(--f-mono); }
.dk-msg { min-height: 1em; color: var(--amber) !important; }

/* Share your experience (atlas-site.js) */
.fb-open { border-color: rgba(43,255,136,.45) !important; color: var(--amber) !important; }
.fb-dlg { position: fixed; z-index: 60; right: 16px; bottom: 70px; width: min(420px, calc(100vw - 32px)); padding: 16px; }
.fb-dlg[hidden] { display: none; }
.fb-top { display: flex; justify-content: space-between; align-items: center; }
.fb-dlg p { font-size: 12.5px; color: var(--muted); margin: 10px 0; }
.fb-text { width: 100%; resize: vertical; background: rgba(255,255,255,.04); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.fb-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.fb-msg { font-size: 12px; color: var(--amber); }

/* ------------------------------------------------------------------
   Design integration with shifts.dance (2026-11-05):
   boxes without frame + 3px coloured line on top, square corners,
   titles in the website's heading style, authorship line.
   Colour dots, sliders and meters stay round (they are data marks).
   ------------------------------------------------------------------ */
.glass, .tbar, .tcard, .tip, .player, .breathhud, .fb-dlg {
  border-radius: 0 !important;
  border: 0 !important;
  border-top: 3px solid var(--green) !important;
}
.tbtn, .btn, .chip, .modes, .modes button, .segs, .seg, .dp-dirs button, .mv, .mv-side button,
.newword, .newword select, .pn-b, .tl, .tl-on, .guide-b, .pk-q, .follow select, #f-fill,
.layers select, .pl-src select, .tl-row select, details.mreg summary, .stb,
.dk-b, .dk-val, .dk-in, .fb-text, .fb-open, .readout, .chip, input[type="search"], input[type="text"] {
  border-radius: 0 !important;
}
.modes { border: 0 !important; border-top: 3px solid var(--green) !important; }

/* Title like the website's page titles; subtitle on its own line */
.title h1 {
  font: 400 30px/1.05 var(--f-display) !important;
  text-transform: uppercase; letter-spacing: .02em;
  color: #fff; text-shadow: 0 0 22px rgba(43,255,136,.18);
}
.title h1 i {
  display: block; margin-top: 6px;
  font: 400 16px/1.3 'SourceSansItalic', Georgia, serif; text-transform: none; letter-spacing: 0;
  color: var(--muted);
}
.title .guide-b { vertical-align: .28em; margin-left: 10px; }
.title .byline { display: block !important; margin: 8px 0 0; font: 12px/1.4 var(--f-body); color: var(--muted); }
.title .byline a { pointer-events: auto; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--green); }
.title .byline a:hover { color: var(--green); }
.title p:not(.byline) { margin-top: 6px; }
@media (max-width: 960px) {
  .title h1 { font-size: 22px !important; }
  .title h1 i { font-size: 14px; margin-top: 4px; }
}

/* "All on / All off" in the Index (shifts.dance addition) */
.lay-top { display: flex; align-items: baseline; gap: 6px; }
.lay-all { margin-left: auto; display: flex; gap: 4px; }
.lay-all button { border: 1px solid var(--rule); background: rgba(255,255,255,.04); color: var(--muted); font: 500 10px var(--f-mono); letter-spacing: .04em; padding: 3px 7px; cursor: pointer; text-transform: none; }
.lay-all button:hover { color: var(--amber); border-color: var(--amber); }
.lay-top { flex-wrap: wrap; }
.lay-top .lc, .lay-all button { white-space: nowrap; }
.empty-pool { color: var(--ink) !important; border-left: 3px solid var(--green); padding-left: 10px; }
#t-tours { display: none !important; }
#t-move { display: none !important; }
/* Inner dance switch in the music player */
.pl-dance { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.pl-dance small { color: var(--muted); font-size: 11px; }
.pl-dance input { accent-color: var(--green); }
/* Breathing display sits under the title (atlas-site.js moves it there and sets its width to end with the "?" button) */
.title .breathhud { position: static !important; transform: none !important; left: auto; top: auto !important; bottom: auto !important;
  border: 0 !important; margin-top: 10px; justify-content: flex-start; gap: 8px; max-width: 100%;
  font: 13px/1 'SourceSansItalic', Georgia, serif; text-shadow: none; }
.title .breathhud #bh-word { white-space: nowrap; min-width: 6.2em; }
.title .breathhud #bh-bar { flex: 1; width: auto; height: 1px; border-radius: 0; background: rgba(43,255,136,.22); }
.title .breathhud #bh-bar i { background: var(--green); border-radius: 0; }
.title .breathhud small { font-size: 10.5px; white-space: nowrap; }
.title .breathhud[hidden] { display: none !important; }
/* Drift note (atlas-site.js) */
.drift-note { margin: 0 0 10px; padding: 6px 0 6px 10px; border-left: 3px solid var(--green); font: 11px/1.45 var(--f-mono); color: var(--muted); }
/* View roll-out in the tool bar */
.viewset { display: contents; }
.viewset[hidden] { display: none; }
.viewset .tbtn { border-color: rgba(43,255,136,.35) !important; animation: vs-in .25s ease-out; }
@keyframes vs-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
#t-view[aria-expanded="true"] { color: var(--amber); border-color: var(--amber) !important; }

/* Bottom bar with fixed places (2026-11-05): the name box can grow and shrink without moving the buttons or the credits.
   Wide screens: name box top left, buttons right-aligned below it, credits in their own column on the right. */
@media (min-width: 961px) {
  .foot { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "readout credit" "tools credit"; column-gap: 18px; row-gap: 8px; align-items: end; }
  .foot .readout { grid-area: readout; justify-self: start; max-width: min(560px, 100%); }
  .foot .tools { grid-area: tools; justify-content: flex-end; }
  .foot .credit { grid-area: credit; align-self: end; }
}
/* On the phone the View roll-out also offers Front, Back and Side (the atlas hides them there otherwise) */
@media (max-width: 960px) {
  .viewset .tbtn[data-view] { display: inline-block !important; }
}
/* First steps in the Diary panel (atlas-site.js) */
.firststeps { margin: 4px 0 14px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px 0; }
.firststeps summary { cursor: pointer; list-style: none; font: 500 10.5px var(--f-mono); color: var(--amber); text-transform: uppercase; letter-spacing: .08em; }
.firststeps summary::-webkit-details-marker { display: none; }
.firststeps summary::before { content: '+ '; }
.firststeps[open] summary::before { content: '− '; }
.firststeps ol { margin: 10px 0 8px; padding-left: 18px; }
.firststeps li { font-size: 12.5px; color: var(--muted); margin: 0 0 7px; }
.firststeps li b, .firststeps p b { color: var(--ink); font-weight: 500; }
.firststeps p { font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.firststeps .fs-patience { font-family: 'SourceSansItalic', Georgia, serif; font-size: 13.5px; color: var(--ink); }
/* Note before sharing (atlas-site.js) */
.share-note { margin: -2px 0 12px; padding: 6px 0 6px 10px; border-left: 3px solid var(--amber); font-size: 12px; color: var(--ink); }
/* Delete my diary (inside the diary key box) */
.dk-erase { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 8px; }
.dk-erase-open { color: #ff8a70 !important; }
.dk-erase-box p { color: var(--ink) !important; }
.dk-chk { display: flex; gap: 6px; align-items: baseline; font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.dk-erase-go { border-color: #ff6a4d !important; color: #ff8a70; }
/* QR code for the diary key */
.dk-qrbox { margin: 6px 0 4px; }
.dk-qrimg { width: 168px; height: 168px; background: #fff; padding: 6px; }
.dk-qrimg svg { width: 100%; height: 100%; display: block; }
.reports-off .co-report { display: none !important; }

/* Glands and lymph layer: small headings inside the Index list */
.lay-b .gl-h { font: 500 9.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 10px 6px 4px; }
.lay-b .gl-h:first-child { margin-top: 4px; }
/* shifts.dance: parts drawn after anatomical references (not measured) are named openly at the top of their panel */
.atlas-page .modelled,#right .modelled,p.modelled{margin:.2em 0 .7em;padding:.45em .6em;border-left:3px solid #2bff88;background:rgba(43,255,136,.07);font-size:.92em;line-height:1.4}

/* Save feeling before it is complete: dimmed, but clickable so it can explain what is missing (2026-11-06) */
.btn.not-ready{opacity:.45}
/* Diary: find a place by name – not sticky like the Index search */
.srch.dsrch{position:static;margin:0 0 6px;padding:0;background:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none}
#ds-res{margin:0 0 10px}
