/* Доска правок — dark theme, Blender-adjacent palette.
   Plain CSS, no build step, no external fonts, no libraries. */

:root {
  --bg:          #191919;
  --bg-2:        #1f1f1f;
  --panel:       #262626;
  --panel-2:     #2e2e2e;
  --panel-3:     #383838;
  --line:        #3a3a3a;
  --line-soft:   #303030;

  --text:        #e6e6e6;
  --text-2:      #b4b4b4;
  --muted:       #8a8a8a;

  --accent:      #4772b3;   /* Blender selection blue */
  --accent-hi:   #5b8ad6;
  --orange:      #e87d0d;   /* Blender active orange */
  --ok:          #6aa84f;
  --warn:        #d9a441;
  --danger:      #cf5252;

  --sev-blocker-bg:  #4a1f1f;
  --sev-blocker-fg:  #ff9d9d;
  --sev-blocker-br:  #7a2f2f;
  --sev-major-bg:    #4a3517;
  --sev-major-fg:    #f3c07a;
  --sev-major-br:    #7a5822;
  --sev-minor-bg:    #24384f;
  --sev-minor-fg:    #9dc4ef;
  --sev-minor-br:    #34567a;

  --r:   8px;
  --r-s: 5px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .45);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;

  --topbar-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body.lb-open { overflow: hidden; }

h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a { color: var(--accent-hi); }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(30, 30, 30, .94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}

@supports (backdrop-filter: blur(8px)) {
  .topbar { background: rgba(30, 30, 30, .82); backdrop-filter: blur(8px); }
}

.topbar-in {
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tb-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1 1 260px;
}

.home {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: var(--r-s);
  line-height: 1;
}
.home:hover { color: var(--text); background: var(--panel-2); }

.bkey {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
  /* A key may be 64 characters long. Without this it pushes the card wider
     than the viewport and the whole page starts scrolling sideways. */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
}

.tb-progress {
  flex: 0 1 240px;
  min-width: 170px;
}

.counter {
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 5px;
  white-space: nowrap;
}
.counter b { color: var(--text); font-weight: 600; }

.progress {
  height: 6px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ok), #86c46a);
  transition: width .25s ease;
}

.tb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  overflow: hidden;
}

.flt {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.flt:last-child { border-right: 0; }
.flt:hover { background: var(--panel-2); color: var(--text); }
.flt.is-active { background: var(--accent); color: #fff; }
.flt b { font-weight: 600; opacity: .75; margin-left: 3px; }
.flt.is-active b { opacity: .9; }

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
}
.btn:hover { background: var(--panel-2); border-color: var(--panel-3); }
.btn:active { background: var(--panel-3); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn .ico { font-size: 14px; line-height: 1; display: inline-block; }
.btn.is-busy .ico { animation: spin .8s linear infinite; }
a.btn { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 7px 16px;
}
.btn--primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

.btn--slim { padding: 3px 10px; font-size: 12.5px; }

@keyframes spin { to { transform: rotate(360deg); } }

.tb-status {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px 7px;
  min-height: 15px;
}

.status {
  font-size: 11.5px;
  color: var(--muted);
}
.status.is-err { color: var(--danger); }
.status.is-live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 6px;
  vertical-align: middle;
}

/* ---------------------------------------------------------------- banners */

.banner {
  max-width: 1500px;
  margin: 14px auto 0;
  padding: 11px 16px;
  border-radius: var(--r);
  background: #402a12;
  border: 1px solid #6b4718;
  color: #f0cf9e;
  font-size: 13.5px;
}
.banner--warn { background: #402a12; border-color: #6b4718; color: #f0cf9e; }
.banner--err  { background: #3d1d1d; border-color: #6f3030; color: #f0b4b4; }

noscript .banner { display: block; margin-bottom: 0; }

/* --------------------------------------------------------------- разборы */

.sessions {
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ses {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.ses-h { margin: 0; font-size: inherit; font-weight: inherit; }

.ses-head {
  appearance: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  text-align: left;
  background: var(--panel);
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font: inherit;
  padding: 10px 14px;
  cursor: pointer;
}
.ses-head:hover { background: var(--panel-2); }
.ses[data-open="1"] > .ses-h > .ses-head { border-bottom-color: var(--line); }

/* the freshest разбор is the one the artist is here for */
.sessions > .ses:first-of-type > .ses-h > .ses-head {
  box-shadow: inset 3px 0 0 var(--orange);
}

.ses-caret {
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  transition: transform .15s ease;
}
.ses[data-open="0"] .ses-caret { transform: rotate(-90deg); }

.ses-title {
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ses-day { color: var(--text-2); font-size: 13.5px; white-space: nowrap; }
.ses-sum { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ses-dot { color: var(--muted); opacity: .55; }
.ses-author {
  margin-left: auto;
  color: #6f6f6f;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30%;
}

.ses[data-open="0"] .ses-body { display: none; }

.ses-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

/* ------------------------------------------------------------------ note */

.note {
  display: grid;
  grid-template-columns: clamp(200px, 40%, 480px) minmax(0, 1fr);
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  transition: opacity .18s ease, border-color .18s ease;
}

/* a remark with no screenshots is plain text across the whole row */
.note--noshot { grid-template-columns: minmax(0, 1fr); }

.note:hover { border-color: var(--panel-3); }

.note[data-status="fixed"] { opacity: .48; }
.note[data-status="fixed"]:hover,
.note[data-status="fixed"]:focus-within { opacity: .92; }

.sessions[data-filter="open"]  .note[data-status="fixed"] { display: none; }
.sessions[data-filter="fixed"] .note[data-status="open"]  { display: none; }

.note.is-new { animation: pop 1.8s ease-out; }
@keyframes pop {
  0%   { box-shadow: 0 0 0 2px var(--orange); border-color: var(--orange); }
  70%  { box-shadow: 0 0 0 2px var(--orange); border-color: var(--orange); }
  100% { box-shadow: 0 0 0 2px rgba(232, 125, 13, 0); }
}

/* --- left column: the screenshots --------------------------------------- */

/* One shot fills the column exactly as it did in v1. Several tile inside the
   same column, so the row keeps its height and the text stays on the right. */
.note-shots {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
}
.note-shots--many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note-shots[data-count="1"] { grid-template-columns: minmax(0, 1fr); }

/* aspect-ratio comes from image_w/image_h inline, but a portrait capture must
   not turn one row into a whole screenful — cap the height and letterbox */
.shot {
  display: block;
  width: 100%;
  max-height: 200px;
  min-height: 64px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: #111;
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
  line-height: 0;
}
.note-shots[data-count="1"] .shot { max-height: 300px; min-height: 90px; }
.shot:hover { border-color: var(--accent); }

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.shot-no {
  position: absolute;
  left: 6px;
  top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  color: #fff;
  background: rgba(0, 0, 0, .66);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  padding: 0 6px;
  pointer-events: none;
}
/* a single shot needs no ordinal */
.note-shots[data-count="1"] .shot-no { display: none; }

.shot-zoom {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.4;
  color: #fff;
  background: rgba(0, 0, 0, .62);
  border-radius: 4px;
  padding: 2px 7px;
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}
.shot:hover .shot-zoom,
.shot:focus-visible .shot-zoom { opacity: 1; }
/* tiles are small: the word would cover the picture */
.note-shots--many .shot-zoom { display: none; }

/* --- right column: the text --------------------------------------------- */

.note-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.note-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.seq {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.chip {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px;
  border-radius: 99px;
  padding: 2px 10px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip[data-sev="blocker"] { background: var(--sev-blocker-bg); color: var(--sev-blocker-fg); border-color: var(--sev-blocker-br); }
.chip[data-sev="major"]   { background: var(--sev-major-bg);   color: var(--sev-major-fg);   border-color: var(--sev-major-br); }
.chip[data-sev="minor"]   { background: var(--sev-minor-bg);   color: var(--sev-minor-fg);   border-color: var(--sev-minor-br); }

.note-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.note-meta .author { color: var(--text-2); }
.note-meta .dot { opacity: .55; }
.note-meta time { white-space: nowrap; }
.note-meta .shots-n { white-space: nowrap; }

.note-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.fix {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  color: var(--text-2);
  padding: 3px 9px 3px 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--panel-2);
}
.fix:hover { border-color: var(--panel-3); color: var(--text); }
.fix-input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--ok);
  cursor: pointer;
}
.fix-input:disabled { cursor: progress; opacity: .5; }
.note[data-status="fixed"] .fix { color: var(--ok); border-color: #3f5c33; }

.fix-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ----------------------------------------------------------- empty / foot */

.empty {
  max-width: 1500px;
  margin: 40px auto;
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--r);
}
.empty p { margin: 0 0 6px; }
.empty-sub { font-size: 13px; opacity: .8; }

.foot {
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px 20px 30px;
  font-size: 11.5px;
  color: #5e5e5e;
}
.foot a { color: #7d7d7d; }
.foot a:hover { color: var(--accent-hi); }

/* ------------------------------------------------- index: люди карточками */

.cards {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.pcard {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
}
.pcard:hover { border-color: var(--accent); background: var(--panel-2); }

.pcard-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  justify-content: space-between;
  min-width: 0;
}
.pcard-name {
  font-size: 16px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pcard-key { margin: 4px 0 9px; }

.pcard-nums {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 9px;
}
.bnum b { color: var(--text); font-weight: 600; }
.bnum--open b { color: var(--warn); }
.bnum--fixed b { color: var(--ok); }

.role {
  flex: none;
  font-size: 11px;
  border-radius: 99px;
  padding: 1px 8px;
  background: var(--sev-minor-bg);
  color: var(--sev-minor-fg);
  border: 1px solid var(--sev-minor-br);
  white-space: nowrap;
}

/* ------------------------------------------------------- страница /people */

.people-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px 16px;
}

.card-h {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--muted);
}

.pform {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.pfield {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 220px;
  min-width: 0;
}
.pfield--narrow { flex: 0 1 170px; }
.pfield--btn { flex: 0 0 auto; align-self: flex-start; padding-top: 23px; }

.pf-label { font-size: 12.5px; color: var(--text-2); }

.pf-input {
  appearance: none;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 7px 10px;
}
.pf-input:focus { border-color: var(--accent); outline: none; }
.pf-input::placeholder { color: #6b6b6b; }
.pf-input--mono { font-family: var(--mono); font-size: 13px; }

.pf-hint { font-size: 11.5px; color: var(--muted); }
.pf-hint #keyEcho { font-family: var(--mono); color: var(--text-2); }

.tablewrap { overflow-x: auto; }

.ptable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ptable th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ptable td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.ptable tr:last-child td { border-bottom: 0; }
.ptable .num { text-align: right; }
.ptable .act { text-align: right; white-space: nowrap; }

.prow.is-off { opacity: .5; }
.pname { font-weight: 600; overflow-wrap: anywhere; }
.blink { text-decoration: none; }
.blink:hover { text-decoration: underline; }

/* --- токены: только на этой странице ------------------------------------ */

.tok-note {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 78ch;
}
.tok-note b { color: var(--text); font-weight: 600; }
.tok-note--warn {
  color: #e2c48c;
  border-left: 2px solid var(--warn);
  padding-left: 10px;
}

.tokcell { white-space: nowrap; }

/* Masked and revealed occupy the same box, otherwise the whole table jumps
   sideways every time the lead presses «показать». The box is sized for the
   full 32-character token (SPEC.md person.token) so revealing it never hides
   its tail behind a scrollbar; overflow stays auto only as a safety net for a
   token of some other length. */
.tok {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 3px 8px;
  width: 37ch;
  overflow-x: auto;
  white-space: nowrap;
  user-select: all;               /* один клик выделяет токен целиком */
}
.tok.is-shown { color: var(--orange); border-color: var(--panel-3); }

.tokbtns {
  display: inline-flex;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

/* «выдать новый» — submit внутри формы (путь без JavaScript), но в ряду
   кнопок форма не должна занимать место сама по себе */
.tokform { display: inline-flex; margin: 0; }

.btn--danger { color: #e7a3a3; border-color: #5a3232; }
.btn--danger:hover { background: #3d2222; border-color: #7a4040; }
/* «показать» без токена — это не «идёт работа», курсор-часы тут врал бы */
.tokbtns .btn:disabled { cursor: default; }

/* ----------------------------------------------------------- unlock page  */

body.page-unlock {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.unlock {
  width: 100%;
  max-width: 380px;
}

.unlock-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 26px 24px 24px;
}

.unlock-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

/* the favicon redrawn in CSS — no image file, no external font */
.unlock-mark {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--orange);
}
.unlock-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #161616;
}

.unlock-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .1px;
}

.unlock-sub {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.unlock-err {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: var(--r-s);
  background: #3d1d1d;
  border: 1px solid #6f3030;
  color: #f0b4b4;
  font-size: 13px;
  line-height: 1.45;
}

.unlock-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--text-2);
}

.unlock-input {
  appearance: none;
  display: block;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
  margin-bottom: 16px;
}
.unlock-input:focus { border-color: var(--accent); outline: none; }

.unlock-btn {
  appearance: none;
  display: block;
  width: 100%;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-s);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
}
.unlock-btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.unlock-btn:active { background: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------- lightbox */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 8, .93);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

.lb-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  background: rgba(25, 25, 25, .9);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.lb-title { font-weight: 600; color: var(--text); }
.lb-count {
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 1px 10px;
  white-space: nowrap;
}
.lb-dims, .lb-zoom { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lb-hint { color: #6f6f6f; font-size: 11.5px; }
.lb-close {
  appearance: none;
  margin-left: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 6px 11px;
  cursor: pointer;
}
.lb-close:hover { background: var(--panel-2); }

.lb-stage {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.lb-stage.is-panning { cursor: grabbing; }

.lb-stage img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  image-rendering: auto;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  max-width: none;
}

/* paging through the shots of one remark */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  appearance: none;
  width: 42px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 22, 22, .72);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lb-arrow:hover { background: rgba(46, 46, 46, .92); }
.lb-arrow:disabled { opacity: .22; cursor: default; }
.lb-arrow--prev { left: 12px; }
.lb-arrow--next { right: 12px; }

.lb-loading {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  color: var(--muted);
  font-size: 13px;
}

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 120;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--danger);
  border-radius: var(--r-s);
  box-shadow: var(--shadow);
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text);
  max-width: min(560px, 90vw);
}
.toast.is-ok { border-left-color: var(--ok); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .note {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .note-shots { max-width: 520px; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .topbar-in { gap: 12px; padding: 9px 14px; }
  .tb-actions { margin-left: 0; width: 100%; }
  .tb-progress { flex: 1 1 100%; }
  .sessions { padding: 14px 14px 50px; }
  .ses-rows { padding: 10px; }
  .ses-author { display: none; }
  .people-main, .cards { padding: 14px 14px 50px; }
  .lb-hint { display: none; }
  .btn-txt { display: none; }
  .lb-arrow { width: 36px; height: 56px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
