/* ABOUTME: Canonical style block for every Lot One page presented to a human.
   ABOUTME: Copy this whole <style> into new pages; pages are self-contained (fleet taste: pages follow the guides). */
:root {
  --bg: #faf9f6;
  --card: #ffffff;
  --ink: #23262b;
  --muted: #6d7178;
  --line: #e5e2da;
  --accent: #c22030;
  --link: #2c7a7b;
  --good: #2f855a;
  --warn: #b7791f;
  --code: #f1efe9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --card: #1d2025;
    --ink: #e7e5df;
    --muted: #9aa0a8;
    --line: #2c3037;
    --accent: #e35b68;
    --link: #5bbcb4;
    --good: #6fbf94;
    --warn: #d3a353;
    --code: #24272d;
  }
}
* {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  padding: 0 20px 80px;
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}
main {
  max-width: 880px;
  margin: 0 auto;
}
h1 {
  font-size: 32px;
  margin: 40px 0 8px;
  letter-spacing: -0.015em;
}
h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
}
h3 {
  font-size: 17px;
  margin: 22px 0 8px;
}
a {
  color: var(--link);
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}
code {
  background: var(--code);
  padding: 1px 5px;
  border-radius: 4px;
}
pre {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
}
th,
td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--link);
  background: var(--card);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 14px 0;
}
.box.good {
  border-left-color: var(--good);
}
.box.warn {
  border-left-color: var(--warn);
}
.muted {
  color: var(--muted);
}

body {
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
  min-height: 35px;
}
button:hover {
  background: var(--code);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 600;
}
button.ghost {
  background: none;
  border-color: transparent;
}
button.active {
  background: var(--code);
  border-color: var(--muted);
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}
input,
textarea,
select {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.55;
}
input[type="checkbox"],
input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--link);
}
label {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 18px;
  border: 0;
  margin: 0;
  padding: 0;
}
h3 {
  font-size: 14px;
}
a {
  text-decoration: none;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 8px;
  white-space: nowrap;
  background: var(--card);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}
.good {
  color: var(--good);
}
.warn {
  color: var(--warn);
}
.badge.good .dot {
  background: var(--good);
}
.badge.warn .dot {
  background: var(--warn);
}
.caps {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.prototype {
  height: 35px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  font-size: 11px;
  background: var(--code);
  gap: 8px;
}
.prototype button {
  font-size: 11px;
  min-height: 24px;
  padding: 1px 8px;
  background: none;
}
.layout {
  display: grid;
  grid-template-columns: 182px 1fr;
  min-height: calc(100vh - 35px);
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 20px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
}
.brand {
  padding: 0 9px 25px;
  font-weight: 650;
  font-size: 17px;
  gap: 9px;
}
.logo {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  width: 29px;
  height: 29px;
  border-radius: 7px;
  font-size: 12px;
}
.sidebar .nav {
  border: 1px solid transparent;
  background: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 13px;
  padding: 9px 10px;
}
.sidebar .nav.on {
  background: var(--card);
  border-color: var(--line);
}
.nav .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.nav svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.navlabel {
  padding: 20px 11px 6px;
}
.side-bottom {
  margin-top: auto;
  padding: 35px 9px 0;
}
.side-bottom a {
  font-size: 12px;
}
.account {
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.avatar {
  height: 29px;
  width: 29px;
  display: grid;
  place-items: center;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 10px;
  flex: none;
}
.content {
  min-width: 0;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  min-height: calc(100vh - 101px);
}
.head {
  height: 66px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  padding: 0 23px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.head h1 {
  font-size: 16px;
}
.head .subtitle {
  font-size: 11px;
  color: var(--muted);
}
.head .back {
  font-size: 18px;
  padding: 5px 8px;
}
.review-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.filebar {
  padding: 16px 23px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.viewer-scroll {
  padding: 24px 24px 35px;
  overflow: auto;
  flex: 1;
  min-height: 460px;
}
.sheet {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1100/780;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--ink) 7%, transparent);
  touch-action: pan-x pan-y;
  isolation: isolate;
}
.sheet.drawing {
  touch-action: none;
  cursor: crosshair;
}
.drawing-svg {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--ink);
}
.drawing-svg text {
  font-family: Arial, sans-serif;
  fill: currentColor;
  stroke: none;
}
.drawing-svg .thin {
  stroke-width: 1;
}
.drawing-svg .object {
  stroke-width: 2;
}
.drawing-svg .center {
  stroke: var(--muted);
  stroke-dasharray: 12 4 2 4;
  stroke-width: 0.8;
}
.drawing-svg .dim {
  stroke-width: 0.8;
}
.annotation {
  position: absolute;
  z-index: 2;
}
.pin {
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 3px;
  transform: translate(-50%, -100%) rotate(-45deg);
  background: var(--link);
  color: var(--card);
  border: 2px solid var(--card);
  padding: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--ink) 20%, transparent);
}
.pin span {
  transform: rotate(45deg);
  font-size: 11px;
  font-weight: 700;
}
.pin:hover,
.pin.selected {
  background: var(--ink);
  color: var(--bg);
}
.area {
  border: 2px solid var(--link);
  background: color-mix(in srgb, var(--link) 7%, transparent);
  pointer-events: none;
  border-radius: 3px;
}
.area .pin {
  position: absolute;
  right: -27px;
  top: 0;
  pointer-events: auto;
}
.mark-drag {
  position: absolute;
  z-index: 1;
  border: 2px dashed var(--link);
  background: color-mix(in srgb, var(--link) 6%, transparent);
  pointer-events: none;
}
.editor {
  position: absolute;
  z-index: 7;
  width: 255px;
  max-width: 90%;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 10px 40px color-mix(in srgb, var(--ink) 15%, transparent);
  cursor: default;
}
.editor textarea {
  margin: 9px 0 6px;
  font-size: 13px;
  min-height: 85px;
}
.editor button {
  font-size: 11px;
  min-height: 25px;
  padding: 3px 7px;
}
.toolbar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 12px 22px;
}
.toolbar {
  display: flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  gap: 3px;
  background: var(--card);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--ink) 4%, transparent);
}
.toolbar button {
  border-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 12px;
}
.toolbar button.active {
  background: var(--ink);
  color: var(--bg);
}
.toolbar svg {
  width: 16px;
  height: 16px;
}
.divider {
  width: 1px;
  background: var(--line);
  margin: 5px;
}
.toolhint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  min-height: 17px;
}
.review-panel {
  background: var(--card);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.panel-part {
  padding: 19px 19px;
  border-bottom: 1px solid var(--line);
}
.panel-part h3 {
  font-weight: 600;
}
.modelwrap {
  height: 175px;
  margin-top: 8px;
  background: var(--bg);
  border-radius: 7px;
  position: relative;
  overflow: hidden;
}
.modelwrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
.modelwrap canvas:active {
  cursor: grabbing;
}
.model-hint {
  position: absolute;
  bottom: 6px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
}
.prompt {
  font-size: 13px;
  font-weight: 550;
  margin: 10px 0;
}
.panel-part textarea {
  font-size: 12px;
  min-height: 112px;
  margin-top: 9px;
}
.save {
  font-size: 10px;
  color: var(--good);
  margin-top: 6px;
  min-height: 15px;
}
.note-list {
  margin-top: 10px;
}
.note-row {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  font-size: 12px;
}
.note-row:hover {
  background: var(--bg);
}
.note-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--link);
  color: var(--card);
  font-size: 10px;
  flex: none;
}
.note-copy {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}
.submit-part {
  margin-top: auto;
  padding: 20px 19px;
  background: var(--bg);
}
.submit-part button {
  width: 100%;
  padding: 10px;
}
.submit-part .small {
  margin-top: 8px;
  font-size: 10px;
  text-align: center;
}
.page {
  max-width: 1150px;
  padding: 35px 38px;
  margin: 0 auto;
}
.page-intro {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.page-intro p {
  margin-top: 5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 25px;
}
.stat {
  padding: 18px 21px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.stat b {
  display: block;
  font-size: 27px;
  font-weight: 600;
  margin: 3px 0;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.tablebox {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
}
.tablebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
}
.scrolltable {
  overflow: auto;
}
.tablebox table {
  font-size: 12px;
  min-width: 660px;
}
.tablebox th {
  font-size: 10px;
  padding: 13px 16px;
  white-space: nowrap;
}
.tablebox td {
  padding: 15px 16px;
}
.tablebox tr:last-child td {
  border-bottom: 0;
}
.drawing-name {
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
  text-align: left;
}
.drawing-name:hover {
  background: none;
  color: var(--link);
}
.progressbar {
  height: 4px;
  width: 90px;
  border-radius: 5px;
  background: var(--line);
  margin-top: 6px;
}
.progressbar i {
  display: block;
  height: 100%;
  background: var(--good);
  border-radius: 5px;
}
.person-stack {
  display: flex;
  gap: 3px;
}
.person-stack .avatar {
  height: 24px;
  width: 24px;
  font-size: 8px;
}
.tabs {
  display: flex;
  gap: 5px;
}
.tabs button {
  font-size: 12px;
  background: none;
  border-color: transparent;
}
.tabs button.active {
  background: var(--code);
  border-color: var(--line);
}
.empty {
  padding: 55px;
  text-align: center;
  color: var(--muted);
}
.selection-bar {
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  gap: 12px;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.person-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.person-card .avatar {
  width: 38px;
  height: 38px;
}
.person-card p {
  margin-top: 15px;
  font-size: 12px;
}
.person-card .badge {
  margin-top: 14px;
}
.signin {
  max-width: 410px;
  margin: 70px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 35px;
}
.signin .logo {
  margin-bottom: 24px;
}
.signin h1 {
  font-size: 24px;
  margin-bottom: 10px;
}
.signin p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 23px;
}
.signin label {
  font-size: 12px;
  margin-bottom: 7px;
}
.signin button {
  width: 100%;
  margin-top: 17px;
}
.signin input {
  margin-top: 5px;
}
.signin .small {
  margin: 18px 0 0;
  font-size: 11px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  width: 470px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 80px color-mix(in srgb, var(--ink) 25%, transparent);
}
.modal h2 {
  font-size: 21px;
}
.modal p {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 20px;
}
.modal label {
  font-size: 13px;
  margin: 13px 0;
}
.modal .choice {
  display: flex;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.choice input {
  margin: 3px 0;
}
.choice small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.modal .error {
  color: var(--accent);
  font-size: 12px;
  margin-top: 10px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 9px;
  max-width: 90%;
  font-size: 13px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--ink) 15%, transparent);
}
[hidden] {
  display: none !important;
}
.completed-strip {
  padding: 10px 23px;
  background: color-mix(in srgb, var(--good) 8%, var(--card));
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.page-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 17px;
}
.model-toggle {
  font-size: 11px;
  min-height: 24px;
  padding: 0 6px;
}
.context {
  padding: 11px 23px 0;
  font-size: 11px;
  color: var(--muted);
}
.result-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.result-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1600px) {
  .viewer-scroll {
    padding: 40px 55px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .panel-part {
    padding: 22px 25px;
  }
  .layout {
    grid-template-columns: 205px 1fr;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 155px 1fr;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .head {
    padding: 0 16px;
  }
  .viewer-scroll {
    padding: 22px 16px;
    min-height: 370px;
  }
  .sidebar .nav {
    font-size: 12px;
    padding: 9px 6px;
  }
  .brand {
    font-size: 15px;
    padding-left: 6px;
  }
  .page {
    padding: 28px 24px;
  }
  .toolbar button {
    padding: 7px;
  }
  .toolbar button .tool-label {
    display: none;
  }
  .people-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px;
    gap: 4px;
    flex-wrap: wrap;
  }
  .brand {
    padding: 0 8px;
    font-size: 14px;
  }
  .brand .logo {
    width: 25px;
    height: 25px;
  }
  .sidebar .nav {
    width: auto;
    padding: 6px 8px;
  }
  .navlabel,
  .side-bottom,
  .sidebar .count {
    display: none;
  }
  .sidebar .nav svg {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 270px;
    min-height: 0;
  }
  .viewer-scroll {
    min-height: 300px;
  }
  .head {
    height: 65px;
  }
  .head .badge {
    display: none;
  }
  .prototype {
    font-size: 10px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 13px;
  }
  .stat b {
    font-size: 23px;
  }
}
@media (max-width: 640px) {
  .prototype .proto-detail {
    display: none;
  }
  .prototype {
    height: auto;
    min-height: 33px;
    padding: 6px 10px;
    flex-wrap: wrap;
  }
  .sidebar {
    gap: 0;
  }
  .sidebar .nav {
    font-size: 11px;
    padding: 5px 7px;
    min-height: 30px;
  }
  .brand {
    width: 100%;
    padding: 0 5px 8px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .head {
    padding: 0 12px;
    gap: 7px;
  }
  .head h1 {
    font-size: 14px;
  }
  .head .subtitle {
    font-size: 10px;
  }
  .head .small {
    font-size: 10px;
  }
  .review-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr;
  }
  .panel-part {
    padding: 17px;
  }
  .viewer-scroll {
    min-height: 0;
    padding: 17px 12px 25px;
  }
  .filebar {
    padding: 13px 13px 0;
    font-size: 10px;
  }
  .context {
    padding: 10px 13px 0;
    font-size: 10px;
  }
  .toolbar-wrap {
    padding-bottom: 17px;
  }
  .toolhint {
    font-size: 10px;
  }
  .toolbar button .tool-label {
    display: inline;
  }
  .toolbar button {
    font-size: 11px;
    padding: 6px 8px;
  }
  .modelwrap {
    height: 190px;
  }
  .page {
    padding: 24px 14px;
  }
  .page-intro {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-intro h1 {
    font-size: 22px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }
  .signin {
    margin: 30px 14px;
  }
  .editor {
    width: 225px;
  }
  .editor textarea {
    font-size: 12px;
    min-height: 65px;
  }
  .pin {
    width: 24px;
    height: 24px;
  }
  .tablebar {
    padding: 12px;
  }
  .page-intro .row {
    flex-wrap: wrap;
  }
  .selection-bar {
    flex-wrap: wrap;
  }
}

/* Live application layout and viewers. */
.layout {
  min-height: 100vh;
}
.workspace {
  min-height: calc(100vh - 66px);
}
.sidebar {
  min-height: 100vh;
}
.brand {
  white-space: normal;
}
.sheet {
  aspect-ratio: auto;
}
.pdf-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.viewer-scroll {
  max-height: calc(100vh - 225px);
  min-height: 350px;
}
.modelwrap {
  height: 220px;
}
.modelwrap canvas {
  width: 100%;
  height: 100%;
}
.status-message {
  padding: 22px;
  color: var(--muted);
}
.error-banner {
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  margin: 12px 0;
}
.action-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.page-select {
  width: auto;
  min-width: 95px;
  padding: 6px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters input,
.filters select {
  width: auto;
  max-width: 210px;
  font-size: 12px;
}
.compare-card {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.compare-card p {
  white-space: pre-wrap;
  font-size: 12px;
  margin-top: 8px;
}
.file-link {
  font-size: 11px;
  color: var(--link);
}
.upload-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.upload-row input,
.upload-row select {
  margin-top: 6px;
}
.upload-row strong {
  overflow-wrap: anywhere;
}
.modal.wide {
  width: 760px;
}
.modal .choice {
  align-items: center;
}
.panel-part {
  overflow-wrap: anywhere;
}
.feedback-label {
  font-size: 11px;
  color: var(--muted);
}
.pin.admin-pin {
  border-radius: 20px;
  transform: translate(-50%, -100%);
  width: auto;
  min-width: 28px;
  padding: 2px 5px;
}
.pin.admin-pin span {
  transform: none;
  white-space: nowrap;
}
.loading {
  padding: 35px;
  text-align: center;
  color: var(--muted);
}
.feedback-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.signin select {
  margin: 10px 0;
}
.toolbar-wrap {
  position: sticky;
  bottom: 0;
  background: var(--bg);
}
.history-event {
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding: 7px 0;
}
.no-overflow {
  overflow-wrap: anywhere;
}
.success-banner {
  color: var(--good);
  padding: 10px 0;
}
.row-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
}
.saved-fail {
  color: var(--accent) !important;
}
.compare-panel {
  overflow: auto;
  max-height: calc(100vh - 66px);
}
.model-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}
.version-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.version-row select {
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dialog-help {
  font-size: 11px !important;
}
.sr-only {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.badge {
  max-width: 100%;
}
.view-count {
  font-size: 11px;
  color: var(--muted);
}
.compare-subtitle {
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 850px) {
  .sidebar {
    min-height: 0;
  }
  .sidebar .admin-label {
    display: none;
  }
}
@media (max-width: 640px) {
  .viewer-scroll {
    min-height: 180px;
    max-height: 70vh;
  }
  .workspace {
    min-height: 0;
  }
  .compare-panel {
    max-height: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .toolbar button {
    min-height: 40px;
  }
  .sheet .pin {
    min-width: 28px;
    min-height: 28px;
  }
  .page-select {
    max-width: 100px;
  }
  .head .small {
    display: none;
  }
  .filters input,
  .filters select {
    max-width: 100%;
  }
  .row {
    flex-wrap: wrap;
  }
  .head {
    height: auto;
    min-height: 66px;
    padding: 12px;
  }
  .editor .row {
    flex-wrap: nowrap;
  }
}

.modelwrap > svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
.signin a.button {
  display: block;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
@media (max-width: 850px) {
  .sidebar .side-bottom {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 0 5px;
  }
  .sidebar .account {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
    border: 0;
  }
  .sidebar .account .muted {
    display: none;
  }
  .sidebar .account a {
    margin-left: auto;
  }
}
