/* The pin board: the cork board, its pins and strings, the card, and the opening and closing animations. */

/* ---------- pin board: a case's people, places and objects, strung together by the evidence they share ---------- */
#board {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#board.on {
  opacity: 1;
}
/* opening: the board is hung on the wall, each item is pinned up in turn, then the strings are run between the pins */
.pb-surface.pb-intro {
  transform-origin: 50% 0;
  animation: pb-hang 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes pb-hang {
  from {
    opacity: 0;
    transform: translateY(-30px) rotate(-1.8deg);
  }
  50% {
    opacity: 1;
    transform: translateY(4px) rotate(0.6deg);
  }
  75% {
    transform: translateY(0) rotate(-0.2deg);
  }
  to {
    transform: none;
  }
}
.pb-intro .pin,
.pb-intro .pb-empty {
  animation: pb-pin 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
  animation-delay: var(--pd, 0.45s);
}
@keyframes pb-pin {
  from {
    opacity: 0;
    translate: 0 -28px;
  }
}
.pb-intro .pin .head,
.pb-intro .pb-empty .head {
  animation: pb-head 0.32s cubic-bezier(0.3, 1.7, 0.5, 1) both;
  animation-delay: calc(var(--pd, 0.45s) + 0.2s);
}
@keyframes pb-head {
  from {
    opacity: 0;
    transform: scale(2.6);
  }
}
.pb-intro .ln:not(.x) .str,
.pb-intro .ln:not(.x) .shd {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: pb-draw 0.5s ease-out forwards;
  animation-delay: var(--sd, 1s);
}
@keyframes pb-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.pb-intro .ln.x,
.pb-intro .bd {
  animation: pb-fade 0.35s ease both;
  animation-delay: calc(var(--sd, 1s) + 0.32s);
}
@keyframes pb-fade {
  from {
    opacity: 0;
  }
}
/* closing runs the opening backwards: the strings are pulled out, the items come off their pins, and the board is lifted off the wall */
.pb-outro,
.pb-outro .pin {
  pointer-events: none;
}
.pb-outro .bd {
  animation: pb-out 0.14s ease forwards;
}
.pb-outro .ln.x {
  animation: pb-out 0.2s ease forwards;
}
.pb-outro .ln:not(.x) .str,
.pb-outro .ln:not(.x) .shd {
  stroke-dasharray: var(--len);
  stroke-dashoffset: 0;
  animation: pb-undraw 0.3s ease-in forwards;
  animation-delay: var(--sd, 0s);
}
@keyframes pb-undraw {
  to {
    stroke-dashoffset: var(--len);
  }
}
@keyframes pb-out {
  to {
    opacity: 0;
  }
}
.pb-outro .pin .head,
.pb-outro .pb-empty .head {
  animation: pb-unhead 0.16s ease-in forwards;
  animation-delay: var(--pd, 0.3s);
}
@keyframes pb-unhead {
  to {
    opacity: 0;
    transform: scale(2.2);
  }
}
.pb-outro .pin,
.pb-outro .pb-empty {
  animation: pb-unpin 0.3s cubic-bezier(0.5, 0, 0.85, 0.45) forwards;
  animation-delay: calc(var(--pd, 0.3s) + 0.08s);
}
@keyframes pb-unpin {
  to {
    opacity: 0;
    translate: 0 34px;
  }
}
.pb-surface.pb-outro {
  transform-origin: 50% 0;
  animation: pb-unhang 0.44s cubic-bezier(0.5, 0, 0.85, 0.4) forwards;
  animation-delay: var(--bd, 0.8s);
}
@keyframes pb-unhang {
  30% {
    transform: translateY(3px) rotate(0.5deg);
  }
  to {
    opacity: 0;
    transform: translateY(-30px) rotate(-1.6deg);
  }
}
.pb-head,
.pb-legend {
  transition:
    opacity 0.4s ease 0.15s,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
#board:not(.on) .pb-head {
  opacity: 0;
  transform: translateY(-10px);
}
#board:not(.on) .pb-legend {
  opacity: 0;
  transform: translateY(8px);
}
#board button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
#board button:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
}
.pb-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  min-height: 72px;
  padding: 10px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.pb-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 14px 9px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 0;
  background: none;
  font: 600 10px var(--sans) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pb-back:hover {
  border-color: var(--glow);
}
.pb-back svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.pb-name {
  min-width: 0;
  flex: 1;
}
.pb-name small {
  display: block;
  color: var(--glow);
  font: 500 10px var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pb-name h2 {
  margin: 3px 0 0;
  font: 500 clamp(20px, 2.4vw, 28px)/1.1 var(--display);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-filters {
  display: flex;
  gap: 6px;
  flex: none;
}
.pb-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid var(--accent-line);
  border-radius: 0;
  background: rgba(68, 134, 144, 0.16);
  font: 500 10px var(--mono) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pb-filters button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.pb-filters button b {
  font-weight: 500;
  color: var(--glow);
  font-variant-numeric: tabular-nums;
}
.pb-filters button[aria-pressed="false"] {
  background: none;
  border-color: var(--line);
  color: var(--faint);
  text-decoration: line-through;
}
.pb-filters button[aria-pressed="false"] b {
  color: inherit;
}
.pb-main {
  flex: 1;
  min-height: 0;
  display: flex;
}
.pb-wall {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(12px, 1.8vw, 26px) clamp(12px, 1.8vw, 26px) 14px;
  background: /* a few pale bricks showing through the wall */
    linear-gradient(rgba(211, 227, 227, 0.05), rgba(211, 227, 227, 0.05)) 3% 9%/54px 17px no-repeat,
    linear-gradient(rgba(211, 227, 227, 0.04), rgba(211, 227, 227, 0.04)) 9% 13.5%/54px 17px no-repeat,
    linear-gradient(rgba(211, 227, 227, 0.05), rgba(211, 227, 227, 0.05)) 94% 62%/54px 17px no-repeat,
    linear-gradient(rgba(211, 227, 227, 0.035), rgba(211, 227, 227, 0.035)) 97.5% 57.5%/54px 17px no-repeat,
    linear-gradient(rgba(211, 227, 227, 0.04), rgba(211, 227, 227, 0.04)) 1.5% 88%/54px 17px no-repeat;
}
/* the board: cork in the palette's red oxide, in a dark wooden frame */
.pb-surface {
  --cork: #8a3a28;
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 15px solid;
  border-color: #5a2a1c #2e150d #200e08 #3f1d13;
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 214, 180, 0.16), transparent 70%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 -.16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"),
    var(--cork);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.4),
    inset 0 12px 46px rgba(0, 0, 0, 0.42),
    0 2px 0 #6b3424,
    0 20px 44px rgba(0, 0, 0, 0.6);
}
#pbLines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#pbNodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* threads */
#pbLines .ln {
  cursor: pointer;
  outline: none;
  transition: opacity 0.2s;
}
#pbLines .hit {
  stroke: transparent;
  stroke-width: 14;
  stroke-linecap: round;
}
#pbLines .bd {
  cursor: pointer;
  transition: opacity 0.2s;
}
#pbLines .shd {
  stroke: rgba(20, 6, 3, 0.45);
  stroke-linecap: round;
  transform: translate(1px, 2.5px);
}
#pbLines .str {
  stroke: #ff6f55;
  stroke-linecap: round;
  opacity: 0.42;
  transition:
    opacity 0.2s,
    stroke 0.2s;
}
#pbLines .ln.w2 .str {
  opacity: 0.8;
}
#pbLines .ln.w3 .str {
  opacity: 1;
}
#pbLines .ln.w1 .shd {
  display: none;
}
#pbLines .bd.w1 {
  display: none;
}
#pbLines .bd.w1.lit,
#pbLines .bd.w1.sel {
  display: inline;
}
#pbLines .ln.x .str,
#pbLines .ln.x .shd {
  stroke-dasharray: 2 7;
}
#pbLines .bd circle {
  fill: #f3efe6;
  stroke: #5c1209;
  stroke-width: 1.3;
}
#pbLines .bd text {
  fill: var(--ink);
  font: 500 10px var(--mono);
  text-anchor: middle;
  dominant-baseline: central;
}
#pbLines .ln:hover .str,
#pbLines .ln:focus-visible .str,
#pbLines .ln.lit .str {
  opacity: 1;
  stroke: #ff8a70;
}
#pbLines .bd.kb circle {
  stroke: #fff;
  stroke-width: 2.5;
}
#pbLines .ln.sel .str {
  stroke: #fffaf0;
  opacity: 1;
}
#pbLines .bd.sel circle {
  fill: var(--aztec);
  stroke: #fffaf0;
}
#pbLines .bd.sel text {
  fill: #fffaf0;
}
.pb-surface.focus #pbLines .ln:not(.lit):not(.sel),
.pb-surface.focus #pbLines .bd:not(.lit):not(.sel) {
  opacity: 0.1;
}
/* what is pinned up: a snapshot for a person, a scrap of map for a place, a note for an object.
   The kind is carried by the form and by the word on it, not by color. */
.pin {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 1px;
  margin: 0;
  padding: 7px 7px 9px;
  border: 0;
  border-radius: 1px;
  background: #f2f4ef;
  color: var(--ink) !important;
  text-align: center;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 9px 16px rgba(20, 6, 3, 0.5);
  transition:
    opacity 0.2s,
    box-shadow 0.2s;
}
.pin:active {
  cursor: grabbing;
}
.pin .head,
.pb-empty .head {
  position: absolute;
  left: 50%;
  top: -7px;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffb09f 0 14%, #f2553a 32%, #b3261a 68%, #6e120b);
  box-shadow: 1px 3px 3px rgba(20, 6, 3, 0.6);
}
.pin .art {
  display: block;
  width: 100%;
  overflow: hidden;
}
.pin .art svg {
  display: block;
}
.pin small {
  margin-top: 6px;
  font: 500 8px var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.68;
}
.pin .nm {
  max-width: 100%;
  font: 600 12px/1.22 var(--sans);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.pin.person {
  width: 106px;
}
.pin.person .art {
  display: grid;
  place-items: end center;
  height: 62px;
  background: linear-gradient(#21515a, #0b2529);
}
.pin.person .art svg {
  width: 58px;
  height: 50px;
  fill: #c5d9d9;
}
.pin.place {
  width: 132px;
}
.pin.place .art {
  height: 56px;
  box-shadow: inset 0 0 0 1px rgba(11, 34, 38, 0.18);
}
.pin.place .art svg {
  width: 100%;
  height: 100%;
}
.pin.object {
  width: 114px;
  padding: 15px 9px 13px;
  background: linear-gradient(#a9d0d3, #8fbcc1);
}
.pin.object::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, #6ea1a7 50%, var(--cork) 50%);
}
.pin.object .art {
  width: auto;
}
.pin.object .art svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.9;
  stroke-linejoin: round;
}
.pin.object small {
  margin-top: 4px;
}
.pin:hover,
.pin.lit {
  box-shadow:
    0 12px 22px rgba(20, 6, 3, 0.6),
    0 0 0 3px #fffaf0;
}
.pin.sel {
  box-shadow:
    0 12px 22px rgba(20, 6, 3, 0.6),
    0 0 0 3px var(--aztec),
    0 0 0 6px #fffaf0;
}
.pb-surface.focus .pin:not(.lit):not(.sel) {
  opacity: 0.34;
}
.pb-empty {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(340px, 78%);
  padding: 26px 22px 22px;
  background: #f2f4ef;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 12px 22px rgba(20, 6, 3, 0.5);
}
.pb-empty strong {
  font: 600 22px var(--display);
}
.pb-empty span {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.8;
}
.pb-legend {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  color: var(--muted);
  font: 500 9px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pb-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pb-legend i {
  width: 26px;
  height: 0;
  border-top: 2px solid #ff6f55;
}
.pb-legend i.lg-dash {
  border-top-style: dotted;
  border-top-width: 3px;
}
.pb-legend b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f3efe6;
  color: var(--ink);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0;
}
#board #pbTidy {
  margin: 0 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--accent-line);
  border-radius: 0;
  background: none;
  color: var(--glow);
  font: 500 9px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#board #pbTidy:hover {
  border-color: var(--glow);
}
.pb-tip {
  position: absolute;
  z-index: 5;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid var(--accent-line);
  background: #0b272c;
  color: var(--mist);
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.pb-tip small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
/* side panel: the evidence */
.pb-panel {
  position: absolute;
  z-index: 6;
  top: calc(clamp(12px, 1.8vw, 26px) + 30px);
  right: calc(clamp(12px, 1.8vw, 26px) + 30px);
  width: min(372px, calc(100% - 60px));
  max-height: calc(100% - 132px);
  box-sizing: border-box;
  overflow: auto;
  padding: 20px 20px 22px;
  border: 1px solid var(--accent-line);
  background: #08201f;
  background: linear-gradient(#0b292d, #071a1c);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  line-height: 1.5;
  animation: card-in 0.22s ease-out;
}
.pb-panel.left {
  right: auto;
  left: calc(clamp(12px, 1.8vw, 26px) + 30px);
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
#board .pb-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font: 400 20px/28px var(--sans);
}
#board .pb-close:hover {
  color: var(--mist);
  background: rgba(211, 227, 227, 0.1);
}
.pb-panel > .pb-k:first-of-type,
.pb-panel h3 {
  padding-right: 30px;
}
.pb-evbtn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--oxide-hi);
  border-radius: 0;
  background: var(--oxide);
  font: 600 10px var(--sans) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pb-evbtn:hover {
  background: var(--oxide-hi);
}
.pb-evbtn b {
  font: 500 11px var(--mono);
  font-variant-numeric: tabular-nums;
}
#board .pb-empty button {
  margin: 6px 0 0;
  padding: 9px 16px;
  border: 1px solid var(--oxide-hi);
  border-radius: 0;
  background: var(--oxide);
  color: var(--mist);
  font: 600 10px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pb-k {
  margin: 0 0 8px;
  color: var(--glow);
  font: 500 9.5px var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pb-panel h3 {
  margin: 0 0 6px;
  font: 500 22px/1.2 var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.pb-panel h3 i {
  font-style: normal;
  color: #ea5f43;
  padding: 0 2px;
}
.pb-sum {
  margin: 0 0 6px;
  color: var(--muted);
}
.pb-sum b {
  color: var(--mist);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pb-hint {
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 12px;
}
.pb-sep {
  height: 1px;
  margin: 16px 0;
  background: var(--line);
}
.pb-ev {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pb-ev li {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: rgba(211, 227, 227, 0.04);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.pb-ev li:hover {
  border-color: var(--accent);
  background: rgba(68, 134, 144, 0.12);
}
.pb-ev small {
  color: var(--faint);
  font: 500 9px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-right: 22px;
}
.pb-ev strong {
  font: 500 15px/1.3 var(--display);
  color: var(--mist);
}
.pb-ev p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
/* the user's own notes on a piece of evidence */
.pb-ev p.nt {
  margin-top: 5px;
  padding-left: 8px;
  border-left: 2px solid var(--accent);
  white-space: pre-line;
}
.pb-ev p.nt b {
  display: block;
  font: 500 8.5px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.pb-ev .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.pb-ev .chips i {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 5px;
  border: 1px solid var(--line);
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.pb-ev .chips i svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.pb-ev .chips i.mk {
  border-color: #ea5f43;
  color: var(--mist);
}
#board .pb-ev .rm {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--faint);
  font: 400 16px/20px var(--sans);
}
#board .pb-ev .rm:hover {
  color: var(--mist);
  background: rgba(211, 227, 227, 0.1);
}
.pb-x {
  padding: 11px 12px;
  border: 1px dashed #b5432c;
  font-size: 12.5px;
  color: var(--muted);
}
.pb-x p {
  margin: 0 0 6px;
  color: var(--mist);
}
.pb-nb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
#board .pb-nb button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: none;
  text-align: left;
  font-size: 12.5px;
}
#board .pb-nb button:hover {
  border-color: var(--accent);
  background: rgba(68, 134, 144, 0.12);
}
.pb-nb svg {
  width: 12px;
  height: 12px;
  flex: none;
  fill: none;
  stroke: var(--glow);
  stroke-width: 1.2;
}
.pb-nb em {
  margin-left: auto;
  font: 500 10px var(--mono);
  font-style: normal;
  color: var(--faint);
  white-space: nowrap;
}
.pb-add {
  margin-top: 16px;
  border: 1px dashed var(--accent-line);
}
.pb-add summary {
  padding: 11px 12px;
  cursor: pointer;
  color: var(--glow);
  font: 500 9.5px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  list-style-position: inside;
}
.pb-add form {
  display: grid;
  gap: 9px;
  padding: 2px 12px 14px;
}
.pb-add label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font: 600 9px var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pb-add input,
.pb-add select {
  width: 100%;
  min-width: 0;
  height: 34px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 9px;
  border: 1px solid var(--accent-line);
  border-radius: 0;
  background: rgba(3, 10, 11, 0.5);
  color: var(--mist);
  font: 400 13px var(--sans);
  letter-spacing: 0;
  text-transform: none;
  outline: none;
}
.pb-add input:focus,
.pb-add select:focus {
  border-color: var(--glow);
}
.pb-add input::placeholder {
  color: rgba(211, 227, 227, 0.32);
}
.pb-add .err {
  min-height: 0;
  color: #f08a76;
  font-size: 12px;
}
.pb-add .err:empty {
  display: none;
}
#board .pb-add .go {
  justify-self: start;
  margin: 2px 0 0;
  padding: 9px 16px;
  border: 1px solid var(--oxide-hi);
  border-radius: 0;
  background: var(--oxide);
  color: var(--mist);
  font: 600 10px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#board .pb-add .go:hover {
  background: var(--oxide-hi);
}
@media (max-width: 860px) {
  #board {
    overflow-y: auto;
  }
  .pb-head {
    flex-wrap: wrap;
  }
  .pb-filters {
    order: 3;
    flex: 1 1 100%;
    flex-wrap: wrap;
  }
  .pb-main {
    display: block;
    flex: none;
  }
  .pb-back .lg {
    display: none;
  }
  .pb-name h2 {
    white-space: normal;
    font-size: 19px;
  }
  #board.card-open .pb-wall {
    padding-bottom: 56vh;
  }
  .pb-wall {
    padding: 12px 12px 10px;
  }
  .pb-surface {
    flex: none;
    height: max(660px, 82vh);
    border-width: 10px;
  }
  .pb-panel,
  .pb-panel.left {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    max-height: 54vh;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    border-width: 1px 0 0;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.6);
  }
  .pin {
    padding: 5px 5px 7px;
  }
  .pin .nm {
    font-size: 10.5px;
  }
  .pin small {
    margin-top: 4px;
    font-size: 7px;
    letter-spacing: 0.14em;
  }
  .pin.person {
    width: 82px;
  }
  .pin.person .art {
    height: 40px;
  }
  .pin.person .art svg {
    width: 40px;
    height: 34px;
  }
  .pin.place {
    width: 98px;
  }
  .pin.place .art {
    height: 36px;
  }
  .pin.object {
    width: 90px;
    padding: 11px 6px 9px;
  }
  .pin.object .art svg {
    width: 20px;
    height: 20px;
  }
  .pb-legend {
    gap: 5px 14px;
    font-size: 8px;
  }
  .pb-add input,
  .pb-add select {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #board,
  .pin,
  #pbLines .ln,
  #pbLines .str,
  .pb-head,
  .pb-legend {
    transition: none;
  }
  .pb-panel {
    animation: none;
  }
}
