* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eeeae3;
  color: #263b40;
  font:
    1rem system-ui,
    sans-serif;
}
canvas {
  width: 100vw;
  height: 100dvh;
  display: block;
  touch-action: none;
}
nav,
#status {
  position: fixed;
  background: #fff;
  padding: 0.8rem 1rem;
  border-radius: 0.4rem;
  box-shadow: 0 0.2rem 0.8rem #0002;
}
nav {
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}
a {
  color: #254650;
}
.room-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
select,
button {
  font: inherit;
  padding: 0.4rem;
}
#status {
  bottom: 0.5rem;
  left: 1rem;
  right: 1rem;
  text-align: center;
  pointer-events: none;
}
dialog.art-dialog {
  border: 0;
  padding: 0;
  width: min(64rem, 94vw);
  max-height: 92dvh;
  border-radius: 0.75rem;
  overflow: hidden;
  color: #263b40;
}
.art-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fffe;
  box-shadow: 0 0.1rem 0.4rem #0003;
  font-size: 1.1rem;
  cursor: pointer;
}
.art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 1fr);
  max-height: 92dvh;
}
.art-figure {
  margin: 0;
  display: grid;
  place-items: center;
  background: #f1efea;
  padding: 1rem;
}
.art-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(92dvh - 2rem);
  object-fit: contain;
}
.art-info {
  overflow-y: auto;
  padding: 2rem 1.5rem 1.5rem;
  display: grid;
  align-content: start;
  gap: 0.6rem;
}
.art-info h1 {
  margin: 0 2rem 0 0;
  font-size: 1.5rem;
  line-height: 1.3;
}
.art-info p {
  margin: 0;
}
.art-info [hidden] {
  display: none;
}
.art-artist {
  font-size: 1.05rem;
  font-weight: 600;
}
.art-facts {
  color: #5f7275;
}
.art-price {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.6rem 0;
  border-block: 1px solid #e3e7e6;
}
.art-description,
.art-bio p {
  white-space: pre-line;
  line-height: 1.65;
}
.art-bio summary {
  cursor: pointer;
  font-weight: 600;
  color: #2f6f7a;
}
.art-bio p {
  margin-top: 0.5rem;
}
@media (max-width: 760px) {
  .art-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .art-figure img {
    max-height: 48dvh;
  }
  .art-info {
    overflow: visible;
    padding: 1.25rem;
  }
}
dialog::backdrop {
  background: #000a;
}
.wall-tools {
  --accent: #2f6f7a;
  --accent-soft: #e6f0f1;
  --line: #dde3e3;
  position: fixed;
  top: 5.2rem;
  left: 1rem;
  bottom: 4.2rem;
  width: min(21rem, 42vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 0.3rem 1.2rem #0002;
  overflow: hidden;
}
.wall-tools.collapsed {
  bottom: auto;
}
.wall-tools.collapsed > :not(header) {
  display: none;
}
.wall-tools header,
.wall-tools footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
}
.wall-tools header {
  border-bottom: 1px solid var(--line);
}
.wall-tools footer {
  border-top: 1px solid var(--line);
}
.wall-tools h2 {
  font-size: 1rem;
  margin: 0;
  flex: 1;
}
.wall-tools h3 {
  font-size: 0.9rem;
  margin: 0;
}
.wall-tools button {
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  color: inherit;
  cursor: pointer;
  padding: 0.4rem 0.65rem;
}
.wall-tools button:hover:not(:disabled) {
  border-color: var(--accent);
}
.wall-tools button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.wall-tools button:disabled {
  opacity: 0.45;
  cursor: default;
}
.wall-tools .wall-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.wall-tools .wall-danger {
  color: #892f22;
}
.wall-tools .wall-danger:hover:not(:disabled) {
  border-color: #892f22;
  background: #fff1ed;
}
.wall-tools .wall-collapse {
  padding: 0.25rem 0.55rem;
  font-size: 0.85rem;
}
.wall-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.wall-spacer {
  flex: 1;
}
.wall-muted {
  color: #5f7275;
  font-size: 0.85rem;
}
.wall-hint {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.4rem;
  background: var(--accent-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}
.wall-hint[data-tone="error"] {
  background: #fff1ed;
  color: #892f22;
}
.wall-selected {
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  padding: 0.65rem;
  display: grid;
  gap: 0.55rem;
}
.wall-selected[hidden] {
  display: none;
}
.wall-selected p {
  margin: 0;
}
.wall-selected-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.wall-selected-head > div {
  display: grid;
  min-width: 0;
}
.wall-tools .wall-close {
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
}
.wall-selected-body {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.wall-selected label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
}
.wall-selected input {
  width: 6rem;
  font: inherit;
  padding: 0.35rem;
}
.wall-nudge {
  display: grid;
  grid-template-columns: repeat(3, 2.2rem);
  grid-template-rows: repeat(3, 2.2rem);
  gap: 0.15rem;
}
.wall-nudge button {
  padding: 0;
  font-size: 1rem;
}
.wall-nudge button:nth-child(1) {
  grid-area: 1 / 2;
}
.wall-nudge button:nth-child(2) {
  grid-area: 2 / 1;
}
.wall-nudge button:nth-child(3) {
  grid-area: 2 / 3;
}
.wall-nudge button:nth-child(4) {
  grid-area: 3 / 2;
}
.wall-row {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}
.wall-library-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.wall-library {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.wall-tools .wall-card {
  width: 100%;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  text-align: start;
  padding: 0.4rem;
  cursor: grab;
}
.wall-tools .wall-card[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.wall-card img {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
  background: #f3f1ec;
  border-radius: 0.25rem;
  flex: none;
}
.wall-card-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.wall-card-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wall-badge {
  justify-self: start;
  font-size: 0.75rem;
  padding: 0.05rem 0.45rem;
  border-radius: 1rem;
  background: #fbf0d9;
  color: #7a5310;
}
.wall-card[data-placed="true"] .wall-badge {
  background: #edf7f0;
  color: #175634;
}
.wall-tools .wall-wide {
  width: 100%;
}
.wall-save-status {
  font-size: 0.8rem;
  padding: 0.15rem 0.55rem;
  border-radius: 1rem;
  background: #f2f4f4;
  white-space: nowrap;
}
.wall-save-status[data-state="saved"] {
  color: #175634;
  background: #edf7f0;
}
.wall-save-status[data-state="pending"] {
  color: #7a5310;
  background: #fbf0d9;
}
.wall-save-status[data-state="error"] {
  color: #892f22;
  background: #fff1ed;
  white-space: normal;
}
.wall-fix {
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: 0.5rem;
  background: #fff1ed;
  color: #892f22;
}
.wall-fix[hidden] {
  display: none;
}
.wall-fix p {
  margin: 0;
}
.wall-card[data-duplicate="true"] .wall-badge {
  background: #fff1ed;
  color: #892f22;
}
