:root {
  --navy: #202c86;
  --navy-d: #18216a;
  --ink: #1c2250;
  --muted: #5e6584;
  --line: #d9dce7;
  --soft: #f3f4f8;
  --floor: #dcdfe7;
  --tape: #fec20f;
  --ok: #1f8a55;
  --ok-bg: #e3f3ea;
  --warn: #b85f00;
  --warn-bg: #fff0da;
  --bad: #c3361a;
  --bad-bg: #fbe6e1;
  --extra: #6b3fa0;
  --extra-bg: #efe8f7;
  --disp:
    Bahnschrift, "DIN Alternate", "DIN Next", "Segoe UI", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font:
    13px/1.45 "Segoe UI",
    system-ui,
    -apple-system,
    Roboto,
    sans-serif;
  color: var(--ink);
  background: var(--soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  line-height: 1.2;
}
button:hover {
  border-color: var(--navy);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
  border-color: var(--line);
}
button.pri {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
button.pri:hover {
  background: var(--navy-d);
}
button.danger {
  color: var(--bad);
}
button.danger:hover {
  border-color: var(--bad);
}
:focus-visible {
  outline: 3px solid var(--tape);
  outline-offset: 1px;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  background: #fff;
  min-width: 0;
  width: 100%;
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--navy);
}
input[type="color"] {
  padding: 2px;
  height: 32px;
}
textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.45;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
[hidden] {
  display: none !important;
}

/* top bar: one row; sections grouped; menu on medium screens; tab bar on phones */
.top {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 14px;
  flex: none;
  min-height: 58px;
}
.top button,
.top summary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}
.top button:hover,
.top summary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.top button:disabled {
  opacity: 0.4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 220px;
}
.brand > div {
  min-width: 0;
}
.brand img {
  height: 34px;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
}
.brand h1 {
  font: 600 19px/1 var(--disp);
  margin: 0;
  white-space: nowrap;
}
#projectIdentity {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0 !important;
  background: none !important;
  padding: 2px 0 0 !important;
  margin: 0;
  font-size: 12px;
  opacity: 0.8;
  text-align: left;
  min-height: 0 !important;
  text-decoration: underline dotted rgba(255, 255, 255, 0.5);
  text-underline-offset: 3px;
}
.gnav {
  display: flex;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}
.top .gnav .sec {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 8px 20px;
  font: 600 15px var(--disp);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.18);
}
.top .gnav .sec[data-section="setup"] {
  border-style: dashed;
  margin-right: 12px;
  position: relative;
}
.top .gnav .sec[data-section="setup"]::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.top .gnav .sec.on {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.top .gnav .sec:hover:not(.on) {
  background: rgba(255, 255, 255, 0.12);
}
.bdg {
  background: var(--tape);
  color: #1c2250;
  border-radius: 9px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
}
.bdg.late {
  background: #c3361a;
  color: #fff;
}
.topr {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: none;
}
#saved {
  font-size: 11px;
  opacity: 0.7;
  min-width: 0;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top .ico .btxt {
  margin-left: 5px;
}
.top .bkchip {
  background: var(--tape);
  color: #1c2250;
  border-color: var(--tape);
  font-weight: 600;
  font-size: 12px;
  padding: 4px 10px;
}
.top .bkchip:hover {
  background: #fff;
  border-color: #fff;
}
.top details.menu summary {
  padding: 6px 12px;
  font-size: 13px;
}
.filemenu .pop {
  right: 0;
  min-width: 210px;
  color: var(--ink);
}
.top .filemenu .pop button {
  color: var(--ink);
  border: 0;
  padding: 10px 10px;
  min-height: 40px;
}
.top .filemenu .pop button:hover {
  background: var(--soft);
}
/* the pages of the current section */
.subnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  min-height: 46px;
}
.subpages {
  display: flex;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subpages button {
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  padding: 12px 14px 10px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
}
.subpages button:hover {
  color: var(--navy);
}
.subpages button.on {
  color: var(--navy);
  font-weight: 700;
  border-bottom-color: var(--tape);
}
.scopepick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex: none;
}
.scopepick select {
  width: auto;
  min-width: 190px;
  max-width: 280px;
  min-height: 38px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 4px 12px;
  background: #fff;
}
.setup {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 460px);
  gap: 18px;
  align-items: start;
  max-width: 1400px;
}
.splan {
  position: sticky;
  top: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.splan svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
}
.scards {
  display: grid;
  gap: 10px;
}
.scard {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--c, var(--navy));
  border-radius: 10px;
  padding: 10px 14px 12px;
}
.scard.on {
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px var(--navy);
}
.scard.focus {
  background: #fffbe8;
}
.scard h3 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
}
.scard h3 .swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--c);
}
.scard h3 .pill {
  margin-left: auto;
}
.scard p {
  margin: 2px 0 6px;
}
.scard.done {
  border-left-color: #1f8a55;
}
.scard .tick {
  color: #1f8a55;
  font-weight: 700;
  width: 1.2em;
}
.scard:not(.done) .tick {
  color: var(--muted);
}
.sfields {
  display: grid;
  grid-template-columns: 1fr 1fr 56px;
  gap: 6px 10px;
  margin-bottom: 8px;
}
.sfields label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.sfields label:first-child {
  grid-column: 1 / 3;
}
.sfields .scol {
  grid-column: 3;
  grid-row: 1;
}
.sfields input[type="color"] {
  height: 38px;
  padding: 2px;
  width: 100%;
}
.sgroup {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 15px;
  justify-content: flex-start;
}
.sgroup .swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--c);
}
.scard dl {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 10px;
}
.scard dl div {
  display: flex;
  gap: 6px;
  font-size: 13px;
}
.scard dt {
  color: var(--muted);
}
.scard dd {
  margin: 0;
  font-weight: 700;
}
@media (max-width: 900px) {
  .setup {
    grid-template-columns: 1fr;
  }
  .splan {
    position: static;
  }
}
.subnote {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .subnote {
    display: none;
  }
}
.scopebar {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 10px;
  padding: 5px 6px 5px 10px;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(28, 34, 80, 0.2);
}
.scopebar .swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.scopebar button {
  font-size: 12px;
  padding: 5px 10px;
  min-height: 32px;
}
.tabbar {
  display: none;
}
@media (max-width: 1500px) {
  #saved {
    display: none;
  }
}
@media (max-width: 1100px) {
  .top .gnav .sec {
    padding: 7px 12px;
    font-size: 14px;
  }
  .top .ico .btxt {
    display: none;
  }
}
@media (max-width: 760px) {
  .sheetbar {
    gap: 6px;
    padding: 6px 10px;
  }
  .sheetbar input[type="date"] {
    width: 138px;
  }
  .sheetbar .name {
    flex-basis: 120px;
  }
  .top {
    gap: 8px;
    padding: 6px 10px;
    min-height: 52px;
  }
  .gnav {
    display: none;
  }
  .brand {
    flex: 1 1 auto;
  }
  .top .ico,
  .top details.menu summary,
  .top button.usr {
    min-width: 44px;
    min-height: 44px;
  }
  .top button.usr {
    max-width: 96px;
  }
  .subnav {
    padding: 0 6px;
    flex-wrap: wrap;
    row-gap: 0;
  }
  .scopepick {
    width: 100%;
    padding: 4px 6px 8px;
  }
  .scopepick select {
    flex: 1;
    max-width: none;
    min-height: 44px;
  }
  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(28, 34, 80, 0.12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar button {
    flex: 1;
    border: 0;
    gap: 2px;
    min-height: 56px;
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: 14px;
    color: var(--muted);
    background: none;
    border-radius: 0;
    position: relative;
  }
  .tabbar button.on {
    color: var(--navy);
    font-weight: 700;
    box-shadow: inset 0 3px 0 var(--navy);
  }
  .tabbar .bdg {
    margin-left: 6px;
  }
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
}
.stripe {
  height: 7px;
  flex: none;
  background: repeating-linear-gradient(
    -45deg,
    var(--tape) 0 9px,
    #1c1c1c 9px 18px
  );
}

/* sheet strip */
.days {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  padding: 8px 16px 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  flex: none;
}
.grp {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.grp > span {
  font-size: 11px;
  color: var(--muted);
}
.chips {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.chip {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 12px;
  align-items: center;
  text-align: left;
  padding: 6px 10px 6px 13px;
  border-radius: 4px;
  min-width: 118px;
  white-space: nowrap;
}
.chip::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 5px;
  border-radius: 4px 0 0 4px;
  background: var(--bar, #c9cdda);
}
.chip b {
  font: 600 14px/1.15 var(--disp);
}
.chip small {
  grid-column: 1;
  color: var(--muted);
  font-size: 11px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip .sc {
  grid-row: 1/3;
  grid-column: 2;
  font: 600 19px/1 var(--disp);
}
.chip.on {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
  background: #f4f5fd;
}
.chip.std {
  --bar: var(--tape);
}
.chip.prop {
  --bar: #9aa1bc;
}
.add {
  white-space: nowrap;
  align-self: stretch;
  border-style: dashed;
}
.add.pri {
  border-style: solid;
}

/* studio */
.studio {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 336px;
}
.tools {
  background: #fff;
  border-right: 1px solid var(--line);
  overflow: auto;
  padding: 12px 12px 24px;
}
.stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.side {
  background: #fff;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
h2 {
  font: 600 14px/1.2 var(--disp);
  margin: 18px 0 8px;
}
h2:first-child {
  margin-top: 4px;
}
h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 14px 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.seg button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 2px 6px;
  font-size: 11px;
}
.seg svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.seg button.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.toolopts {
  margin-top: 10px;
  padding: 10px;
  background: var(--soft);
  border-radius: 6px;
}
.toolopts label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.toolopts label input,
.toolopts label select {
  margin-top: 3px;
  color: var(--ink);
}
.tapes {
  display: grid;
  gap: 2px;
}
.tapes button .dim {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.seg4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.seg4 button {
  padding: 6px 2px;
  font-size: 12px;
}
.seg4 button.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.tapes button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: none;
  text-align: left;
  padding: 5px 6px;
}
.tapes button.on {
  border-color: var(--navy);
  background: #fff;
}
.tsw {
  width: 28px;
  height: 8px;
  flex: none;
  border: 1px solid #7a8099;
  border-radius: 1px;
}
.lib details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.lib summary {
  cursor: pointer;
  padding: 6px 2px;
  font-weight: 600;
  font-size: 12px;
}
.libitem {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 4px;
  padding: 5px 6px;
  background: none;
}
.libitem:hover {
  background: var(--soft);
}
.libitem .dim {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.sw {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 3px;
  border: 2px solid var(--c);
  background: color-mix(in srgb, var(--c) 25%, #fff);
}
.sw.zone {
  border-style: dashed;
  background: color-mix(in srgb, var(--c) 10%, #fff);
}
.sw.keepclear {
  background: repeating-linear-gradient(45deg, #d3401d 0 3px, #fff 3px 6px);
  border-color: #d3401d;
}

.sheetbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  flex: none;
}
.sheetbar .name {
  font: 600 16px var(--disp);
  border-color: transparent;
  flex: 1 1 140px;
  padding: 5px 6px;
}
.sheetbar .name:hover,
.sheetbar .name:focus {
  border-color: var(--line);
}
.sheetbar input[type="date"] {
  width: auto;
}
.sheetbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.sheetbar select {
  width: auto;
  max-width: 220px;
  color: var(--ink);
}
.kind {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--soft);
  white-space: nowrap;
}
.kind.standard {
  background: var(--tape);
}
.kind.daily {
  background: #e4e7f6;
  color: var(--navy);
}
details.menu {
  position: relative;
}
details.menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}
details.menu summary::-webkit-details-marker {
  display: none;
}
details.menu[open] summary {
  border-color: var(--navy);
}
.menu .pop {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(28, 34, 80, 0.16);
  padding: 8px;
  min-width: 230px;
  display: grid;
  gap: 2px;
}
.menu .pop label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 6px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}
.menu .pop button {
  border: 0;
  text-align: left;
  background: none;
  padding: 7px 8px;
}
.menu .pop button:hover {
  background: var(--soft);
}
.menu .pop hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 0;
  width: 100%;
}

.canvas {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--floor);
  overflow: hidden;
}
#svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}
.canvas[data-tool="datum"] #svg,
.canvas[data-tool="datum"] #svg *,
.canvas[data-tool="wall"] #svg,
.canvas[data-tool="wall"] #svg *,
.canvas[data-tool="tape"] #svg,
.canvas[data-tool="route"] #svg,
.canvas[data-tool="measure"] #svg,
.canvas[data-tool="action"] #svg,
.canvas[data-tool="doc"] #svg {
  cursor: crosshair;
}
.canvas.panning #svg {
  cursor: grabbing;
}
#svg [data-t="obj"],
#svg [data-t="mark"],
#svg [data-t="route"],
#svg [data-t="fx"] {
  cursor: move;
}
#svg [data-t="rs"] {
  cursor: nwse-resize;
}
#svg [data-t="rot"],
#svg [data-t="v"] {
  cursor: grab;
}
#svg [data-t="ghost"] {
  cursor: pointer;
}
#svg [data-t="pin"] {
  cursor: pointer;
}
.canvas[data-tool="tape"] #svg *,
.canvas[data-tool="route"] #svg *,
.canvas[data-tool="measure"] #svg *,
.canvas[data-tool="action"] #svg *,
.canvas[data-tool="doc"] #svg * {
  cursor: crosshair;
}
.zoom {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 2px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(28, 34, 80, 0.1);
}
.zoom button {
  border: 0;
  padding: 5px 9px;
  background: none;
}
.zoom button:hover {
  background: var(--soft);
}
#zlabel {
  min-width: 46px;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.scale {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(28, 34, 80, 0.1);
}
.scale .bar {
  height: 6px;
  border: 2px solid var(--ink);
  border-top: 0;
  margin-bottom: 3px;
}
.scale button {
  font-size: 12px;
  border-color: var(--tape);
  background: #fff8dd;
}
.canvas.editing {
  box-shadow: inset 0 0 0 4px var(--tape);
}
.editban {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 8px 8px 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: min(640px, calc(100% - 380px));
  box-shadow: 0 4px 14px rgba(28, 34, 80, 0.25);
  border-left: 5px solid var(--tape);
  z-index: 5;
}
.editban button {
  padding: 4px 12px;
  font-size: 12px;
  background: var(--tape);
  border-color: var(--tape);
  color: var(--ink);
  white-space: nowrap;
}
.hint {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: max-content; /* otherwise it wraps into half the canvas width and covers it on a phone */
  background: var(--ink);
  color: #fff;
  padding: 7px 8px 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: calc(100% - 24px);
  box-shadow: 0 4px 14px rgba(28, 34, 80, 0.25);
}
.hint button {
  padding: 4px 10px;
  font-size: 12px;
}
.hint button.pri {
  background: var(--tape);
  color: var(--ink);
  border-color: var(--tape);
}

/* side */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.tabs button {
  flex: 1;
  border: 0;
  border-radius: 0;
  padding: 11px 2px 9px;
  font-size: 12.5px;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  white-space: nowrap;
}
.tabs button.on {
  color: var(--navy);
  border-bottom-color: var(--tape);
  font-weight: 600;
}
.pane {
  flex: 1;
  overflow: auto;
  padding: 14px 16px 28px;
}
.f {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
}
.f > input,
.f > select,
.f > textarea {
  color: var(--ink);
}
.chk {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 4px 0 10px;
  font-size: 12px;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.status {
  padding: 9px 11px;
  border-radius: 6px;
  margin: 0 0 12px;
  font-size: 12px;
  border-left: 4px solid;
}
.status.ok {
  background: var(--ok-bg);
  border-color: var(--ok);
}
.status.warn {
  background: var(--warn-bg);
  border-color: #f79622;
}
.status.bad {
  background: var(--bad-bg);
  border-color: var(--bad);
}
.status.extra {
  background: var(--extra-bg);
  border-color: var(--extra);
}
.status button {
  margin-top: 6px;
  display: block;
}
.score {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0 6px;
}
.score b {
  font: 600 52px/1 var(--disp);
  font-variant-numeric: tabular-nums;
}
.score span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.c-bad {
  color: var(--bad);
}
.meter {
  height: 8px;
  background: var(--soft);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}
.meter i {
  display: block;
  height: 100%;
}
.irow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  border-left: 3px solid var(--c);
  border-radius: 0 4px 4px 0;
  background: var(--soft);
  margin-bottom: 4px;
  text-align: left;
  padding: 7px 9px;
}
.irow:hover {
  background: #e9ebf3;
}
.irow span:last-child {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}
.count {
  font: 600 12px var(--disp);
  background: var(--soft);
  border-radius: 10px;
  padding: 1px 8px;
}
.empty {
  color: var(--muted);
  font-size: 12px;
  padding: 6px 0;
}
.steps {
  margin: 6px 0 0;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.55;
}
.steps li {
  margin-bottom: 6px;
}
.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  font-size: 12px;
  margin: 8px 0;
}
.kv b {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.rt {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 6px 0;
}
.rt td,
.rt th {
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.rt th {
  color: var(--muted);
  font-weight: 600;
}
.rt td.n,
.rt th.n {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rt tr.click {
  cursor: pointer;
}
.rt tr.click:hover td {
  background: var(--soft);
}
.who {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}
.s5 {
  margin-bottom: 12px;
}
.s5 .lbl {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 12px;
}
.s5 p {
  margin: 1px 0 5px;
  font-size: 11px;
  color: var(--muted);
}
.s5 .pts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}
.s5 .pts button {
  padding: 5px 0;
  font: 600 13px var(--disp);
}
.s5 .pts button.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0;
}
.photos button {
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
}
.photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* trends */
.trends {
  flex: 1;
  overflow: auto;
  padding: 20px 24px 40px;
}
.trends > header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  max-width: 1400px;
}
.trends h2 {
  font-size: 22px;
  margin: 0;
}
.kpis {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-left: auto;
}
.kpis div {
  display: grid;
}
.kpis b {
  font: 600 28px/1 var(--disp);
}
.kpis span {
  font-size: 11px;
  color: var(--muted);
}
.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 18px;
  max-width: 1400px;
}
.block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}
.block.wide {
  grid-column: 1/-1;
}
.block h3 {
  font: 600 15px var(--disp);
  margin: 0 0 4px;
}
.block > p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.tbl {
  width: 100%;
  overflow-x: auto;
}
.tbl table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.tbl th,
.tbl td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.tbl th {
  color: var(--muted);
  font-weight: 600;
}
.tbl td.n,
.tbl th.n {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tbl tr.click {
  cursor: pointer;
}
.tbl tr.click:hover td {
  background: var(--soft);
}
.log {
  max-height: 320px;
  overflow: auto;
  font-size: 12px;
}
.log div {
  padding: 5px 0;
  border-bottom: 1px solid var(--soft);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
}

/* registers, drift */
.pill {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--soft);
  white-space: nowrap;
}
.pill.open {
  background: var(--warn-bg);
  color: var(--warn);
}
.pill.prog {
  background: #e4e7f6;
  color: var(--navy);
}
.pill.done {
  background: var(--ok-bg);
  color: var(--ok);
}
.pill.late {
  background: var(--bad-bg);
  color: var(--bad);
}
.pill.hi {
  background: var(--bad-bg);
  color: var(--bad);
}
.late-t {
  color: var(--bad);
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 0 0 12px;
  max-width: 1400px;
}
.filters label {
  display: grid;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}
.filters select,
.filters input {
  width: auto;
  min-width: 130px;
  color: var(--ink);
}
.filters input[type="search"] {
  min-width: 220px;
}
.filters .sp {
  flex: 1;
}
.regtbl {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  max-width: 1400px;
  overflow-x: auto;
}
.regtbl td {
  white-space: normal;
  vertical-align: top;
}
.regtbl td.t {
  min-width: 200px;
}
.regtbl .sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.regtbl button {
  padding: 3px 9px;
  font-size: 12px;
}
.emptybox {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  max-width: 640px;
  color: var(--muted);
}
.emptybox b {
  color: var(--ink);
  display: block;
  font: 600 16px var(--disp);
  margin-bottom: 6px;
}
.dctl {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 10px;
  font-size: 12px;
}
.dctl label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
}
.dctl select {
  width: auto;
  color: var(--ink);
}
.dmap {
  width: 100%;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.dmap [data-dot] {
  cursor: pointer;
}
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 12px;
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}
.legend i.sq {
  border-radius: 2px;
  background: none;
  border: 2px solid #202c86;
}
.legend i.dia {
  border-radius: 1px;
  transform: rotate(45deg) scale(0.85);
  background: #6b3fa0;
}
.focus {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--soft);
  border-left: 4px solid var(--navy);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin: 0 0 12px;
  font-size: 12px;
}
.focus .grow {
  flex: 1;
  min-width: 260px;
}
dialog.mid {
  width: min(660px, calc(100vw - 32px));
}
dialog form {
  max-height: 90vh;
  overflow: auto;
}
.row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.pinfo {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mkhead,
.mkrow {
  display: grid;
  grid-template-columns: 1.5fr 44px 92px 44px 64px 1.5fr 76px;
  gap: 6px;
  align-items: center;
}
.mkhead {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.mkrow {
  margin-bottom: 6px;
}
.mkrow input[type="color"] {
  padding: 2px;
  height: 32px;
}
.mkrow button {
  padding: 5px 6px;
  font-size: 12px;
}
/* 5S view */
.fhead {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  max-width: 1400px;
}
.fhead h2 {
  font-size: 22px;
  margin: 0;
}
.fhead .sp {
  flex: 1;
}
.h-a {
  background: #ffe8c7;
  color: #8a4a00;
}
.aud {
  max-width: 1000px;
}
.evid {
  font-size: 12px;
  background: var(--extra-bg);
  border-left: 3px solid var(--extra);
  padding: 6px 10px;
  margin: 8px 0 0;
  border-radius: 0 4px 4px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.evid button {
  padding: 3px 9px;
  font-size: 12px;
}
/* dialog */
dialog {
  border: 0;
  border-radius: 10px;
  padding: 0;
  width: min(460px, calc(100vw - 32px));
  box-shadow: 0 20px 60px rgba(28, 34, 80, 0.35);
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(28, 34, 80, 0.45);
}
dialog form {
  padding: 20px 22px;
}
dialog h3 {
  font: 600 18px var(--disp);
  margin: 0 0 12px;
}
dialog .acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
dialog.wide {
  width: min(900px, calc(100vw - 32px));
}
dialog img.big {
  max-width: 100%;
  max-height: 65vh;
  display: block;
  margin: 0 auto 10px;
  border-radius: 6px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(28, 34, 80, 0.3);
  display: none;
  max-width: 90vw;
}
@media (max-width: 1180px) {
  .studio {
    grid-template-columns: 208px minmax(0, 1fr) 300px;
  }
}
@media (max-width: 880px) {
  body {
    overflow: auto;
    height: auto;
  }
  .studio {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  /* the drawing gets a real height on small screens (it collapsed to 0 before) */
  .stage {
    order: 1;
    height: 72vh;
    min-height: 360px;
  }
  .side {
    order: 2;
    max-height: none;
  }
  .tools {
    order: 3;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  /* touch: row buttons in the board and SMED tables at least 44 px */
  .bdtbl .bact button {
    min-width: 44px;
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media print {
  @page {
    size: A3 landscape;
    margin: 10mm;
  }
  body {
    overflow: visible;
    height: auto;
    display: block;
    background: #fff;
  }
  .top,
  .tabbar,
  .subnav,
  .stripe,
  .days,
  .tools,
  .side,
  .zoom,
  .hint,
  .scale button,
  details.menu,
  .sheetbar select,
  .sheetbar label {
    display: none !important;
  }
  .studio {
    display: block;
  }
  .stage {
    display: block;
  }
  .sheetbar {
    border: 0;
    padding: 0 0 6px;
  }
  .sheetbar .name {
    border: 0;
  }
  .canvas {
    flex: none;
    height: 255mm;
    background: #fff;
    border: 1px solid #999;
  }
  .scale {
    bottom: 6px;
    right: 6px;
  }
  #toast {
    display: none !important;
  }
  #bEditDraw,
  .editban {
    display: none !important;
  }
  .pd .box {
    display: inline-block;
    width: 13pt;
    height: 13pt;
    border: 1px solid #333;
    text-align: center;
    line-height: 13pt;
    margin-right: 3pt;
    font-weight: 700;
  }
  body.printing-doc {
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    background: #fff;
  }
  body.printing-doc > *:not(#printDoc) {
    display: none !important;
  }
  body.printing-doc #printDoc {
    display: block;
  }
  .pd,
  .pd * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .pd button,
  .pd select {
    display: none !important;
  }
  .pd .block {
    break-inside: avoid;
    padding: 8pt 10pt;
  }
  .pd {
    color: #1c2250;
    font:
      10pt/1.4 "Segoe UI",
      system-ui,
      sans-serif;
  }
  .pd h1 {
    font: 600 20pt var(--disp);
    margin: 0 0 2pt;
  }
  .pd h2 {
    font: 600 13pt var(--disp);
    margin: 14pt 0 5pt;
    break-after: avoid;
  }
  .pd .pdm {
    margin: 0 0 8pt;
    color: #5e6584;
  }
  .pd .pdplan {
    border: 1px solid #999;
  }
  .pd .pdplan svg {
    display: block;
    width: 100%;
    height: auto;
  }
  .pd .pdbreak {
    break-after: page;
  }
  .pd table {
    border-collapse: collapse;
    width: 100%;
    margin: 2pt 0 8pt;
  }
  .pd th,
  .pd td {
    border: 1px solid #b8bccb;
    padding: 3pt 6pt;
    text-align: left;
    font-size: 9.5pt;
  }
  .pd th {
    background: #eef0f6;
  }
  .pd table.fixed {
    table-layout: fixed;
  }
  /* printed views: let sections run across pages, but keep each chart whole */
  .pd.pdview .block {
    break-inside: auto;
  }
  .pd.pdview svg {
    break-inside: avoid;
  }
  .pd td.n,
  .pd th.n {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  .pd .run {
    break-inside: avoid;
    margin-bottom: 10pt;
  }
  .pd .run h3 {
    margin: 0 0 3pt;
    font: 600 11pt var(--disp);
    display: block;
  }
  .pd .sw {
    display: inline-block;
    width: 22pt;
    height: 7pt;
    border: 1px solid #666;
    vertical-align: middle;
    margin-right: 5pt;
  }
}
#printDoc {
  display: none;
}
button:focus-visible {
  outline: 3px solid #f79622;
  outline-offset: 2px;
}
.item-categories {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.item-category {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 8px 0;
  background: #fff;
  overflow: hidden;
}
.item-category > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  cursor: pointer;
  font-weight: 600;
  background: var(--soft);
}
.item-category > summary::before {
  content: "▸";
  font-size: 13px;
}
.item-category[open] > summary::before {
  content: "▾";
}
.item-category > summary .count {
  margin-left: auto;
}
.item-category .irow {
  margin: 0;
  border-radius: 0;
  padding: 8px 10px;
  border-top: 1px solid var(--soft);
}
.category-tools {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px;
}
.category-tools label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.category-tools input[type="color"] {
  width: 36px;
  height: 28px;
  cursor: pointer;
}
.category-tools button {
  font-size: 11px;
  padding: 5px 7px;
}
.category-edit {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto 42px auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.category-edit .f {
  margin: 0;
}
.category-edit .chk {
  margin: 0;
}
.category-edit input[type="color"] {
  width: 42px;
}
@media (max-width: 600px) {
  .category-edit {
    grid-template-columns: 1fr 42px;
  }
  .category-edit .chk {
    grid-row: 2;
  }
  .category-edit button {
    grid-row: 2;
  }
}
.ux-selected {
  background: #fff3ba;
  outline: 2px solid #202c86;
}
.ux-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px;
  font-size: 11px;
}
.ux-legend span {
  display: flex;
  gap: 4px;
  align-items: center;
}
.ux-legend i {
  width: 14px;
  height: 14px;
  border: 1px solid #666;
  border-radius: 3px;
}
#projectIdentity {
  font-size: 11px;
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #202c86;
  outline-offset: 3px;
}

/* tracking charts and red tag photos */
.chart {
  width: 100%;
  height: auto;
  display: block;
}
.fu {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
}
.fu .irow {
  margin: 0;
}
.tph {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin: 6px 0;
}
.tph div {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.tph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tph button {
  position: absolute;
  top: 3px;
  right: 3px;
  padding: 0 6px;
  font-size: 13px;
  line-height: 18px;
  background: rgba(255, 255, 255, 0.92);
}

/* boards and labels */
dialog.xwide {
  width: min(1180px, calc(100vw - 32px));
}
.bdtbl {
  overflow-x: auto;
  max-height: 46vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.bdtbl table {
  width: 100%;
  border-collapse: collapse;
}
.bdtbl td,
.bdtbl th {
  padding: 3px 4px;
  font-size: 12px;
  text-align: left;
}
.bdtbl td input,
.bdtbl td select {
  width: 100%;
  min-width: 52px;
  padding: 5px 6px;
}
.bdtbl td:nth-child(2) input {
  min-width: 190px;
}
.bdtbl .bact {
  white-space: nowrap;
}
.bdtbl .bact button {
  padding: 4px 8px;
  min-width: 34px;
  min-height: 34px;
}
.lbl {
  display: flex;
  align-items: center;
  gap: 1.2mm;
  box-sizing: border-box;
  background: #fff;
  color: #000;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 1px #9aa1bc;
}
.lbl .lc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-right: 0.35mm solid #000;
  padding-right: 1mm;
  font-weight: 800;
  line-height: 1;
  flex: none;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}
.lbl .lc.kb {
  border-right: 0;
  border-left: 0.35mm solid #000;
  padding: 0 0 0 1mm;
  order: 2;
}
.lbl .lc .l2 {
  margin-top: 0.3mm;
}
.lbl .lc .mm {
  font-weight: 700;
  margin-top: 0.4mm;
}
.lbl .lr {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
}
.lbl .ln {
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
}
.lbl .lx {
  margin-top: 0.5mm;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
}
.ol {
  break-inside: avoid;
  page-break-inside: avoid;
  box-sizing: border-box;
  border: 0.5mm dashed #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font:
    10pt/1.2 "Segoe UI",
    Arial,
    sans-serif;
  background: #fff;
}
.ol b {
  font-size: 14pt;
}
.ol.big {
  border-color: #c3361a;
}
.ol i {
  color: #c3361a;
  font-size: 8pt;
}
.bpage svg {
  max-height: 150mm;
}
@media print {
  #printDoc.labels {
    display: block;
  }
  body.printing-doc #printDoc.labels .lbl {
    box-shadow: none;
    break-after: page;
    page-break-after: always;
    margin: 0;
  }
  body.printing-doc #printDoc.labels .lbl:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  body.printing-doc #printDoc.labels,
  body.printing-doc #printDoc.labels * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* SMED */
.probhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.timer {
  text-align: center;
  background: var(--soft);
  border-radius: 10px;
  padding: 14px 8px 10px;
  margin: 8px 0;
}

/* sign-in screen, account button */
body.locked > *:not(#auth):not(dialog):not(#toast):not(script) {
  display: none !important;
}
#auth {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(160deg, var(--navy-d), var(--navy));
  overflow: auto;
}
#auth[hidden] {
  display: none;
}
.authcard {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 26px 26px 20px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}
.authcard h1 {
  font: 600 28px var(--disp);
  margin: 0 0 6px;
  color: var(--navy);
}
.authsub {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 15px;
}
.authcard .tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.authcard .tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  min-height: 112px;
  font-weight: 600;
  border-radius: 12px;
}
.authcard .tile .av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 22px var(--disp);
}
.authcard .tile.new .av {
  background: var(--soft);
  color: var(--navy);
  border: 2px dashed var(--line);
}
.authcard input:not([type="checkbox"]) {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
}
#authMsg {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--bad);
  font-weight: 600;
}
.top button.usr {
  flex: none;
  font-weight: 700;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top button.usr::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tape);
  margin-right: 7px;
}
#acTabs {
  margin-bottom: 12px;
}

/* problem solving */
.psmode,
.psteps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}
.psmode button,
.psteps button {
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 44px;
}
.psmode button.on,
.psteps button.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.psteps .count {
  margin-left: 8px;
}
.psteps button.on .count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.psform .row3,
.psform .row2 {
  margin-bottom: 4px;
}
.pchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}
.pchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 4px 2px 12px;
  font-size: 13px;
}
.pchip button {
  min-width: 44px;
  min-height: 36px;
  border: 0;
  background: transparent;
  font-size: 18px;
  padding: 0;
}
.whys {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}
.why {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 10px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy);
  border-radius: 8px;
  padding: 10px 10px 10px 12px;
}
.why.prob {
  grid-template-columns: 78px 1fr;
  border-left-color: var(--bad);
  background: #fff6f3;
}
.why .wn {
  font: 700 14px var(--disp);
  color: var(--navy);
  padding-top: 8px;
}
.why input {
  width: 100%;
  margin-bottom: 4px;
}
.why > button {
  min-width: 44px;
  min-height: 44px;
}
.block.root {
  border-left: 5px solid var(--bad);
}
.fishsvg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}
.cause {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.cause > input:first-child {
  flex: 1;
  min-width: 0;
}
.cause .chk {
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.cause button {
  min-height: 44px;
  min-width: 44px;
}
.pareto {
  display: block;
  width: 100%;
  height: auto;
}
@media print {
  .pd.a3 {
    font-size: 9.5pt;
  }
  .a3head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14pt;
    border-bottom: 3pt solid #202c86;
    margin-bottom: 8pt;
  }
  .a3head h1 {
    font-size: 18pt;
  }
  .a3meta {
    width: auto !important;
    flex: none;
  }
  .a3cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10pt;
    align-items: start;
  }
  .a3cols section {
    border: 1px solid #1c2250;
    margin-bottom: 8pt;
    padding: 0 7pt 5pt;
  }
  .a3cols section h3 {
    margin: 0 -7pt 5pt;
    padding: 3pt 7pt;
    background: #202c86;
    color: #fff;
    font: 600 11pt var(--disp);
  }
  .a3cols p {
    margin: 0 0 4pt;
  }
  .a3why {
    margin: 0 0 6pt;
    padding-left: 16pt;
  }
  .a3why li span {
    display: block;
    color: #5e6584;
    font-size: 8.5pt;
  }
  .a3root {
    background: #fff1ec;
    border: 1px solid #c3361a;
    padding: 4pt 6pt;
    margin-bottom: 6pt;
  }
  .a3root span {
    color: #5e6584;
    font-size: 8.5pt;
  }
  .a3fish svg {
    width: 100%;
    height: auto;
    border: 1px solid #b8bccb;
  }
  .a3ph {
    display: flex;
    gap: 6pt;
  }
  .a3ph img {
    max-height: 38mm;
    max-width: 32%;
    object-fit: cover;
    border: 1px solid #999;
  }
  .a3sign td {
    height: 18pt;
  }
}
@media (max-width: 700px) {
  .why {
    grid-template-columns: 1fr auto;
  }
  .why .wn {
    grid-column: 1 / -1;
    padding-top: 0;
  }
  .why.prob {
    grid-template-columns: 1fr;
  }
  .why > div {
    grid-column: 1;
  }
  .why > button {
    grid-column: 2;
    grid-row: 2;
  }
}
@media print {
  .pd.a3 {
    font-size: 11pt;
  }
}

/* layout editing */
.canvas[data-tool="area"] #svg,
.canvas[data-tool="tag"] #svg {
  cursor: crosshair;
}
.selbar {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(28, 34, 80, 0.2);
  padding: 4px;
  white-space: nowrap;
  flex-wrap: wrap;
  max-width: calc(100% - 16px);
}
.selbar > button,
.selbar summary {
  border: 0;
  background: none;
  padding: 6px 9px;
  font-size: 12.5px;
  border-radius: 6px;
  min-height: 32px;
}
.selbar > button:hover,
.selbar summary:hover {
  background: var(--soft);
}
.selbar .danger {
  color: var(--bad);
}
.selbar .sbn {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 12px;
  padding: 0 6px;
  color: var(--navy);
}
.selbar .sbread {
  font: 600 13px var(--disp);
  color: var(--navy);
  padding: 6px 10px;
  font-variant-numeric: tabular-nums;
}
.selbar details.menu summary {
  border: 0;
}
.sbmenu .pop {
  top: auto;
  bottom: calc(100% + 6px);
  right: auto;
  left: 0;
  min-width: 190px;
}
@media (pointer: coarse) {
  .selbar > button,
  .selbar summary {
    min-height: 44px;
    min-width: 44px;
  }
}
.selback,
.linkbtn {
  border: 0;
  background: none;
  color: var(--navy);
  padding: 4px 0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.selback {
  margin: -4px 0 6px;
  min-height: 36px;
}
.aligngrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.aligngrid button {
  font-size: 12px;
  padding: 6px 4px;
  min-height: 36px;
}
.aligngrid button:nth-child(7),
.aligngrid button:nth-child(8) {
  grid-column: span 1;
}
table.keys th {
  width: 26%;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
table.keys td {
  line-height: 1.6;
}
@media (max-width: 760px) {
  .selbar .sbn {
    display: none;
  }
}

/* problem solving board: laid out like the whiteboard */
.pboard {
  background: #fff;
  border: 2px solid #1c2250;
  border-radius: 6px;
  padding: 0;
  margin-bottom: 18px;
}
.pbhead {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  border-bottom: 2px solid #1c2250;
}
.pbhead > * {
  padding: 10px 14px;
}
.pbhead small {
  display: block;
  font: 600 11px var(--disp);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.pbid {
  border-right: 1px solid #1c2250;
}
.pbid b {
  display: block;
  font: 700 26px/1.1 var(--disp);
  color: var(--navy);
  margin-bottom: 6px;
}
.pbstate {
  border-right: 1px solid #1c2250;
}
.pbstate textarea {
  width: 100%;
  min-height: 58px;
  border: 0;
  font: 600 17px/1.35 var(--disp);
  color: #1c2250;
  resize: vertical;
  padding: 0;
  background: transparent;
}
.pbmeta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  min-width: 330px;
}
.pbmeta label {
  font-size: 11px;
  color: var(--muted);
  display: grid;
  gap: 2px;
}
.pbfish {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 170px;
  grid-template-rows: auto 26px auto;
  padding: 10px 12px 12px;
  border-bottom: 2px solid #1c2250;
}
.fcol {
  position: relative;
  padding: 0 64px 6px 6px;
  min-height: 150px;
}
.fcol.down {
  padding-top: 6px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column-reverse;
}
/* the bone: a slanted line that meets the spine */
.fcol::after {
  /* the bone: a fixed-width slanted strip, so a branch with many causes never sweeps it across the buttons */
  content: "";
  position: absolute;
  right: 14px;
  width: 46px;
  background: #1c2250;
  pointer-events: none;
}
.fcol.up::after {
  top: 26px;
  bottom: -13px;
  clip-path: polygon(0 0, 4px 0, 100% 100%, calc(100% - 4px) 100%);
}
.fcol.down::after {
  top: -13px;
  bottom: 26px;
  clip-path: polygon(100% 0, calc(100% - 4px) 0, 0 100%, 4px 100%);
}
.fcol h4 {
  margin: 0 0 6px;
  display: inline-block;
  border: 1px solid #1c2250;
  padding: 2px 14px;
  font: 600 13px var(--disp);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff;
  position: relative;
  z-index: 1;
}
.fcol.down h4 {
  margin: 6px 0 0;
  align-self: flex-start;
}
.fcol.down .fcauses {
  display: flex;
  flex-direction: column;
}
.fspine {
  grid-column: 1 / 4;
  grid-row: 2;
  align-self: center;
  height: 4px;
  background: #1c2250;
  position: relative;
}
.fspine::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -8px;
  border: 10px solid transparent;
  border-left: 14px solid #1c2250;
  border-right: 0;
}
.fhead {
  grid-column: 4;
  grid-row: 1 / 4;
  align-self: center;
  margin-left: 8px;
  border: 2px solid #1c2250;
  border-radius: 0 90px 90px 0;
  padding: 14px 22px 14px 14px;
  font: 600 14px/1.35 var(--disp);
  color: #1c2250;
  min-height: 120px;
  display: flex;
  align-items: center;
}
.pcause {
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid #c9cdda;
  min-height: 34px;
}
.pcause input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 600 13px var(--disp);
  color: #202c86;
  padding: 4px 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pcause.add input {
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
.pcause.likely input {
  color: #c3361a;
}
.pcause .star {
  border: 0;
  background: none;
  color: #c9cdda;
  font-size: 15px;
  padding: 0 3px;
  min-height: 30px;
}
.pcause.likely .star {
  color: #c3361a;
}
.pcause {
  position: relative;
}
/* Act / Why / remove sit over the right end of the row on hover or focus, so long causes keep their room */
.cbtns {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  gap: 1px;
  background: #fff;
  box-shadow: -8px 0 8px #fff;
}
.pcause:hover .cbtns,
.pcause:focus-within .cbtns {
  display: inline-flex;
}
@media (pointer: coarse) {
  .cbtns {
    display: inline-flex;
    position: static;
    transform: none;
    box-shadow: none;
  }
}
.cbtns button {
  border: 0;
  background: none;
  font-size: 11.5px;
  padding: 2px 5px;
  color: var(--navy);
  min-height: 30px;
}
.cbtns button:hover {
  background: var(--soft);
}
.cnum {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #1c2250;
  border-radius: 50%;
  font: 700 11px var(--disp);
  color: #1c2250;
  flex: none;
  margin: 0 3px;
}
.pbtip {
  margin: 0;
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
}
.pblow {
  display: grid;
  grid-template-columns: 300px 1fr;
  border-bottom: 2px solid #1c2250;
}
.pbhyp {
  padding: 10px 14px;
  border-right: 2px solid #1c2250;
}
.pbwhys {
  padding: 10px 14px;
  min-width: 0;
}
.pwhys {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pwhy {
  flex: 1 0 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #1c2250;
  padding: 6px;
  position: relative;
}
.pwhy:not(:last-child)::after {
  content: "▶";
  position: absolute;
  right: -15px;
  top: 45%;
  font-size: 11px;
  color: #1c2250;
}
.pwhy > span {
  font: 600 11px var(--disp);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}
.pwhy textarea {
  min-height: 84px;
  font-size: 13px;
}
.pwhy input {
  font-size: 12px;
}
.pwhy.root {
  border: 2px solid #c3361a;
  background: #fff6f3;
}
.pwhy.root > span {
  color: #c3361a;
}
.pbacts {
  padding: 10px 14px;
}
.pbacts h3 {
  margin-top: 0;
}
.pacts td {
  vertical-align: middle;
}
.pacts td input,
.pacts td select {
  width: 100%;
  min-width: 90px;
}
.pacts td:nth-child(2) input {
  min-width: 240px;
}
.pacts td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.pacts tr.done td {
  background: #eef8f2;
}
.pacts tr.late td {
  background: #fff1ec;
}
.pacts tr.new td {
  background: var(--soft);
}
@media screen and (max-width: 1000px) {
  .pbhead,
  .pblow {
    grid-template-columns: 1fr;
  }
  .pbid,
  .pbstate,
  .pbhyp {
    border-right: 0;
    border-bottom: 1px solid #1c2250;
  }
  .pbmeta {
    min-width: 0;
  }
  .pbfish {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .fcol,
  .fcol.down {
    padding: 6px 0;
    min-height: 0;
    display: block;
  }
  .fcol::after,
  .fspine {
    display: none;
  }
  .fhead {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 8px;
    border-radius: 10px;
    min-height: 0;
  }
  .fcol.down h4 {
    margin: 0 0 6px;
  }
  .cbtns {
    opacity: 1;
  }
  .cbtns button,
  .pcause .star {
    min-height: 44px;
    min-width: 40px;
  }
  .pcause {
    flex-wrap: wrap;
  }
  .pcause input {
    flex-basis: calc(100% - 44px);
  }
  .pcause .cbtns {
    margin-left: auto;
  }
  .pwhys {
    flex-direction: column;
    gap: 14px;
  }
  .pwhy {
    flex-basis: auto;
  }
  .pwhy:not(:last-child)::after {
    content: "▼";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -14px;
  }
}
/* the printed board: same layout, plain text */
.pboardprint .pboard {
  border-width: 2px;
}
.pboardprint .pv {
  display: block;
  min-height: 1.2em;
  white-space: pre-wrap;
}
.pboardprint .pcause .pv {
  font: 600 10pt var(--disp);
  color: #202c86;
  text-transform: uppercase;
  flex: 1;
}
.pboardprint .pcause.likely .pv {
  color: #c3361a;
}
.pboardprint .pbstate .pv {
  font: 600 15pt var(--disp);
}
.pboardprint .pwhy .pv {
  min-height: 60px;
  font-size: 10pt;
}
.pboardprint .pacts .pv {
  font-size: 10pt;
}
.pboardprint .fcol {
  min-height: 120px;
}
.pboardprint .pwhy > .pv {
  font:
    400 10pt/1.35 "Segoe UI",
    system-ui,
    sans-serif;
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  color: #1c2250;
}
.pboardprint .pwhy > .pv + .pv {
  min-height: 0;
  font-size: 8.5pt;
  color: #5e6584;
  border-top: 1px solid #d9dce7;
  padding-top: 3px;
}

/* SMED: series of trials, the four steps, compact timeline, one-tap choices */
.lg {
  display: inline-block;
  width: 18px;
  height: 10px;
  border-radius: 2px;
  margin-left: 8px;
}
.lg.int {
  background: #202c86;
}
.lg.ext {
  background: repeating-linear-gradient(45deg, #1f8a55 0 3px, #d7efe2 3px 6px);
}
@keyframes smflash {
  0%,
  40% {
    background: #fff3ba;
  }
}
/* SMED steps on a phone: each step is a card */

/* document map: documents on their own map */
.dmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}
.dmcv {
  position: relative;
  height: calc(100vh - 290px);
  min-height: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.dmcv svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.dmcv.placing svg {
  cursor: crosshair;
}
.dmcv [data-t="pin"] {
  cursor: pointer;
}
.dmcv .hint {
  display: flex;
}
.dmlist {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  max-height: calc(100vh - 290px);
  min-height: 440px;
  overflow: auto;
}
.dmlist h3 {
  font-size: 12.5px;
  margin: 12px 0 4px;
}
.dmrow {
  display: flex;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 4px;
}
.dmgo {
  flex: 1;
  text-align: left;
  border: 0;
  border-left: 4px solid #0e7c86;
  background: var(--soft);
  padding: 7px 9px;
  font-size: 12.5px;
  min-height: 44px;
}
.dmgo small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.dmrow.on .dmgo {
  background: #fff3ba;
}
.dmrow.late .dmgo {
  border-left-color: var(--bad);
}
@media (max-width: 900px) {
  .dmap {
    grid-template-columns: 1fr;
  }
  .dmcv {
    height: 60vh;
    min-height: 320px;
  }
  .dmlist {
    max-height: none;
    min-height: 0;
  }
}

.pcause textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 600 13px/1.3 var(--disp);
  color: #202c86;
  padding: 7px 2px 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  resize: none;
  overflow: hidden;
  min-height: 30px;
}
.pcause.likely textarea {
  color: #c3361a;
}
.pboardprint .pcause {
  align-items: flex-start;
}

/* operator tasks */
.tbl tr.tgrp td {
  background: var(--soft);
  padding: 6px 10px;
  font-size: 13px;
}
.itpick {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
}
.itpick .itrow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0;
}
.itpick .itrow[hidden] {
  display: none;
}
.itpick .itrow small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
@media (pointer: coarse) {
  .itpick .itrow {
    min-height: 44px;
  }
  .sfields input,
  .sfields select {
    min-height: 44px;
  }
}
@media (pointer: coarse) {
  .regtbl button,
  .hint button,
  .scopebar button {
    min-height: 44px;
  }
}
.scopebar {
  flex-wrap: wrap;
  max-width: calc(100% - 20px);
}
.chk input[type="radio"],
.chk input[type="checkbox"] {
  width: auto;
  flex: none;
}

/* presentation mode */
#present {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0f1330;
  color: #fff;
  display: flex;
  flex-direction: column;
  cursor: none;
}
#present.active {
  cursor: default;
}
.prhead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 28px;
  font-size: clamp(16px, 2.2vw, 30px);
}
.prhead #prSub {
  opacity: 0.65;
}
#prStep small {
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6em;
}
#prStep span {
  opacity: 0.65;
  font-size: 0.7em;
  margin-left: 8px;
}
.prstage {
  flex: 1;
  min-height: 0;
  margin: 0 28px 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.prstage svg {
  display: block;
}
.prctl {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(15, 19, 48, 0.92);
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#present.active .prctl {
  opacity: 1;
  pointer-events: auto;
}
.prctl button {
  min-height: 48px;
  padding: 0 18px;
  font-size: 16px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}
.prctl button.pri {
  background: var(--tape);
  color: #1c2250;
  border-color: var(--tape);
  font-weight: 700;
}
.prctl button:disabled {
  opacity: 0.35;
}
body.presenting {
  overflow: hidden;
}
@media print {
  #present {
    display: none !important;
  }
}
