/* client/styles/tokens.css */
:root {
  --bg: #0c0e12;
  --ink: #e8e4da;
  --dim: #8b8678;
  --line: #262b35;
  --hot: #d9a441;
  --panel: #11141a;
  --deep: #080a0e;
  --font-ui:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  --font-serif:
    Georgia,
    "Times New Roman",
    serif;
  --font-mono:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}

/* client/styles/base.css */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
}
a {
  color: var(--hot);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.dim {
  color: var(--dim);
}
::placeholder {
  color: var(--dim);
  font-style: italic;
  opacity: 1;
}

/* client/styles/play/layout.css */
body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}
.label {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.66rem;
  margin: 1.05rem 0 0.4rem;
}
#rail * + .label {
  margin-top: 0.8rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}
header {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
}
header .hud #influence-chip,
header .hud #wish-chip,
header .hud #whoami {
  border-left: 1px solid #1c212b;
  padding-left: 0.6rem;
}
header b {
  color: var(--ink);
  font-weight: 600;
}
header .brand {
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
header .brand .crumb {
  color: var(--dim);
}
#status::before {
  content: "\25cf";
  margin-right: 0.35rem;
}
#status.on {
  color: #7bbf6a;
}
#status.off {
  color: #b46a6a;
  cursor: pointer;
}
main {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}
aside {
  width: min(340px, 40vw);
  flex: none;
  background: var(--panel);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  padding: 0.4rem 1rem 1.5rem;
}
footer {
  flex: none;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0.9rem;
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
}
#input {
  font: inherit;
  width: 100%;
  background: var(--deep);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
  outline: none;
  resize: none;
  line-height: 1.5;
  max-height: 40vh;
  overflow-y: auto;
}
#input:focus {
  border-color: var(--hot);
}
@supports (field-sizing: content) {
  #input {
    field-sizing: content;
  }
}
@media (max-width: 720px) {
  aside {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(85vw, 340px);
    max-height: none;
    z-index: 8;
    transform: translateX(100%);
    transition: transform 0.18s ease;
  }
  aside.open {
    transform: translateX(0);
    box-shadow: -6px 0 26px rgba(0, 0, 0, 0.55);
  }
  .hud .hud-drawer {
    display: inline;
  }
}

/* client/styles/play/transcript.css */
#feed {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scroll-behavior: smooth;
}
.ln {
  line-height: 1.55;
}
.ln.sys {
  color: var(--dim);
  font-style: italic;
}
.ln.err {
  color: #cf8b6b;
}
.ln.me {
  color: #cfcabf;
}
.ln.pending {
  color: var(--dim);
  font-style: italic;
}
.ln.pending .pending-dots {
  display: inline-block;
  min-width: 3ch;
}
.ln.invoke {
  color: #b5aada;
}
.ln .who {
  color: var(--hot);
  font-weight: 600;
}
.ln.cast {
  color: #d8d4c9;
}
.ln.cast em {
  color: var(--ink);
  font-style: normal;
}
.room-banner h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0.4rem 0 0.15rem;
}
.room-banner p {
  margin: 0.1rem 0;
  color: #d8d4c9;
  line-height: 1.6;
}
.ln.examine .subject {
  color: var(--hot);
  font-weight: 600;
}
.ln.examine .examine-wealth {
  color: var(--dim);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.ln .npc {
  color: var(--hot);
  font-style: italic;
}
.ln.narrate {
  color: #b7b2a4;
}
.ln.narrate .narrated-by {
  color: var(--dim);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.ln .look {
  cursor: pointer;
}
.ln .look:hover {
  opacity: 0.78;
}
.ln.said p,
.ln.examine p,
.ln.narrate p,
.ln.me p,
.ln.speech p {
  margin: 0.3rem 0;
}
.ln.said p:first-child,
.ln.examine p:first-child,
.ln.narrate p:first-child,
.ln.me p:first-child,
.ln.speech p:first-child {
  margin-top: 0;
}
.ln.said p:last-child,
.ln.examine p:last-child,
.ln.narrate p:last-child,
.ln.me p:last-child,
.ln.speech p:last-child {
  margin-bottom: 0;
}
.ln.said .md-list,
.ln.examine .md-list,
.ln.narrate .md-list,
.ln.me .md-list,
.ln.speech .md-list {
  margin: 0.3rem 0;
  padding-left: 1.25rem;
}
.ln.said h3,
.ln.said h4,
.ln.said h5,
.ln.said h6,
.ln.examine h3,
.ln.examine h4,
.ln.examine h5,
.ln.examine h6,
.ln.me h3,
.ln.me h4,
.ln.me h5,
.ln.me h6,
.ln.speech h3,
.ln.speech h4,
.ln.speech h5,
.ln.speech h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0.35rem 0 0.15rem;
}
.effect {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.22rem 0;
}
.effect .nm {
  color: var(--ink);
  font-size: 0.88rem;
}
.effect button {
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--hot);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.76rem;
  padding: 0.18rem 0.55rem;
}
.effect button:hover {
  border-color: var(--hot);
}
.ln.effect {
  color: #d8d4c9;
}
.ln.effect .who {
  color: var(--hot);
}

/* client/styles/play/here.css */
.room-banner p {
  margin: 0.1rem 0;
}
.room-banner ul {
  margin: 0.25rem 0;
  padding-left: 1.15rem;
}
.room-banner li {
  line-height: 1.5;
}
.room-banner h3,
.room-banner h4,
.room-banner h5,
.room-banner h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0.35rem 0 0.1rem;
  font-size: 1rem;
}
.room-banner strong {
  color: var(--ink);
}
.room-banner em {
  color: #e7e2d5;
}
.exit-link {
  font: inherit;
  color: var(--hot);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.exit-link:hover {
  color: var(--ink);
}
.embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0.7rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  background: transparent;
  color: var(--hot);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.28rem 0.6rem;
}
.chip:hover {
  border-color: var(--hot);
}
#occupants .you {
  color: var(--ink);
}
#occupants .other {
  color: #cfcabf;
}
#occupants div {
  line-height: 1.55;
}
#companions .companion {
  color: #cfcabf;
  line-height: 1.55;
}
#companions .companion.away {
  color: var(--dim);
}
#companions .companion-x {
  color: #cf8b6b;
}
#companions .companion-x:hover {
  color: #e09a76;
}
#companions .invite-foot {
  margin-top: 0.4rem;
  line-height: 1.4;
}
#companions .invite-url {
  color: var(--dim);
  font-size: 0.86em;
  word-break: break-all;
  margin-right: 0.15rem;
}
.chips .chip.home-chip {
  border-color: #8a7db8;
  color: #b5aada;
}
.chips .chip.home-chip:hover {
  border-color: #b5aada;
}

/* client/styles/play/items.css */
.item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.35rem 0.55rem;
  margin-bottom: 0.4rem;
}
.item .item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.item .nm {
  font-weight: 600;
  color: var(--ink);
}
.item .badge {
  font-size: 0.7rem;
  color: var(--hot);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 0.3rem;
}
.item .attribution {
  font-size: 0.7rem;
  color: var(--dim);
  font-style: italic;
  margin: 0.05rem 0 0.1rem;
  cursor: default;
}
.item .body {
  font-size: 0.86rem;
  color: #cfcabf;
  line-height: 1.5;
  margin: 0.15rem 0;
}
.item .body p {
  margin: 0.1rem 0;
}
.item .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}
.item .acts select {
  width: auto;
  flex: 1 1 8rem;
  margin: 0;
  padding: 0.2rem 0.3rem;
}
.item button {
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  background: transparent;
  color: var(--nm-accent, var(--hot));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
}
.item button:hover {
  border-color: var(--nm-accent, var(--hot));
}
.item .trigger {
  color: #b5aada;
  border-color: #8a7db8;
}
.item .trigger:hover {
  border-color: #b5aada;
}
.item.stowed {
  padding: 0.3rem 0.5rem;
  margin-bottom: 0.3rem;
}
.stowed-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
}
.stowed-head::-webkit-details-marker {
  display: none;
}
.stowed-head::before {
  content: "\25b8";
  flex: none;
  color: var(--dim);
  font-size: 0.7rem;
  transition: transform 0.12s ease, color 0.12s ease;
}
.item.stowed[open] > .stowed-head::before {
  transform: rotate(90deg);
}
.stowed-head:hover::before {
  color: var(--hot);
}
.stowed-head .nm {
  flex: 1 1 auto;
  min-width: 0;
}
.stowed-bear {
  flex: none;
}
.stowed-more {
  margin-top: 0.35rem;
}
.look-link {
  font: inherit;
  font-size: 0.78rem;
  background: transparent;
  color: var(--hot);
  border: none;
  padding: 0 0 0 0.4rem;
  cursor: pointer;
  text-decoration: underline;
}
.look-link:hover {
  color: var(--ink);
}
.look-link:disabled {
  color: var(--dim);
  cursor: default;
  text-decoration: none;
}
.look-link:disabled:hover {
  color: var(--dim);
}

/* client/styles/play/controls.css */
.rchip {
  display: inline-block;
  font-size: 0.78rem;
  color: #cfcabf;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  margin: 0 0.3rem 0.3rem 0;
}
.rchip b {
  color: var(--hot);
}

/* client/styles/play/widgets.css */
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 0.6rem 0.75rem 0.7rem;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
}
.card-x {
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--dim);
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 0.2rem;
}
.card-x:hover {
  color: var(--ink);
}
.card-blurb {
  color: var(--dim);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0.3rem 0 0.1rem;
}
.card-foot {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.card-btn {
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--hot);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.4rem 0.85rem;
}
.card-btn:hover {
  border-color: var(--hot);
}
.card-btn.primary {
  background: var(--hot);
  color: #1a1304;
  font-weight: 600;
  border-color: var(--hot);
}
.card-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.card.collapsed {
  color: var(--dim);
  font-style: italic;
  border-style: dashed;
  padding: 0.4rem 0.65rem;
}
.form .field {
  margin-top: 0.55rem;
}
.form .field-label {
  display: block;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  margin-bottom: 0.2rem;
}
.form .field-help {
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin: 0.1rem 0 0.45rem;
}
.swatch {
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease;
}
.swatch:hover {
  transform: scale(1.14);
}
.swatch.chosen {
  border-color: var(--ink);
}
.color-preview {
  font-size: 0.92rem;
  color: var(--ink);
}
.color-preview .who {
  color: var(--hot);
  font-weight: 600;
}
.form input,
.form textarea,
.form select {
  font: inherit;
  width: 100%;
  background: var(--deep);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.45rem 0.55rem;
  outline: none;
}
.form textarea {
  resize: vertical;
  min-height: 2.4rem;
  max-height: 40vh;
  line-height: 1.5;
  overflow-y: auto;
}
@supports (field-sizing: content) {
  .form textarea,
  .oneof-input {
    field-sizing: content;
  }
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--hot);
}
.form.busy {
  opacity: 0.55;
  pointer-events: none;
}
.menu {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.4rem;
}
.menu-item {
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.45rem 0.6rem;
}
.menu-item:hover {
  border-color: var(--hot);
  color: var(--hot);
}
.jump-new {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 5;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  background: var(--hot);
  color: #1a1304;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.jump-new[hidden] {
  display: none;
}
.footer-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.footer-row #input {
  flex: 1;
}
.quick {
  display: flex;
  gap: 0.3rem;
}
.qbtn {
  font: inherit;
  line-height: 1.5;
  cursor: pointer;
  background: transparent;
  color: var(--hot);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
}
.qbtn:hover {
  border-color: var(--hot);
}
.hud {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.hud .stat {
  color: #cfcabf;
  white-space: nowrap;
}
.hud .stat b {
  color: var(--hot);
  font-weight: 600;
}
.hud .stat.spent b {
  color: #cf6b6b;
}
.hud .who-btn,
.hud .hud-drawer,
.hud .stat-btn {
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: inherit;
  border: none;
  padding: 0;
}
.hud .who-btn:hover,
.hud .stat-btn:hover {
  color: var(--hot);
}
.hud .stat-btn b {
  color: var(--hot);
  font-weight: 600;
}
.hud .stat-btn.spent b {
  color: #cf6b6b;
}
.hud .hud-drawer {
  display: none;
  color: var(--hot);
}
.you-pop .pop-action {
  display: block;
  margin-top: 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  background: transparent;
  color: var(--hot);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.35rem 0.6rem;
  width: 100%;
  text-align: left;
}
.you-pop .pop-action:hover {
  border-color: var(--hot);
}
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(4, 5, 8, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(86vh, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.6);
  padding: 0.85rem 1rem 1rem;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.modal-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0;
}
.modal-x {
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--dim);
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 0.2rem;
}
.modal-x:hover {
  color: var(--ink);
}
.modal-blurb {
  color: var(--dim);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0.35rem 0 0.2rem;
}
.modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 0.5rem;
}
.modal-foot {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.modal-btn {
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--hot);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.45rem 1rem;
}
.modal-btn:hover {
  border-color: var(--hot);
}
.modal-btn.primary {
  background: var(--hot);
  color: #1a1304;
  font-weight: 600;
  border-color: var(--hot);
}
.modal-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cant-edit {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.5;
  width: 100%;
  min-height: 48vh;
  resize: vertical;
  background: var(--deep);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  outline: none;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
}
.cant-edit.small {
  min-height: 9rem;
}
.cant-edit:focus {
  border-color: var(--hot);
}
.cant-box {
  position: relative;
}
.cant-box .cant-hl,
.cant-box .cant-ta {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.5;
  padding: 0.6rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 8px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  tab-size: 2;
}
.cant-box .cant-hl {
  position: absolute;
  inset: 0;
  overflow: auto;
  pointer-events: none;
  background: var(--deep);
  color: var(--ink);
  z-index: 0;
  scrollbar-width: none;
}
.cant-box .cant-hl::-webkit-scrollbar {
  display: none;
}
.cant-box .cant-ta {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 48vh;
  resize: vertical;
  background: transparent;
  color: transparent;
  caret-color: var(--ink);
  border-color: var(--line);
  outline: none;
  overflow: auto;
}
.cant-box .cant-ta:focus {
  border-color: var(--hot);
}
.cant-box .cant-ta::selection {
  background: rgba(122, 162, 247, 0.35);
}
.cant-box.prose .cant-hl {
  display: none;
}
.cant-box.prose .cant-ta {
  font: inherit;
  line-height: 1.5;
  padding: 0.45rem 0.55rem;
  color: var(--ink);
  caret-color: var(--ink);
  background: var(--deep);
}
.form .cant-box .cant-ta {
  min-height: 2.4rem;
  max-height: 40vh;
  overflow-y: auto;
}
.cant-diag {
  display: none;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #f7768e;
  line-height: 1.4;
}
.cant-diag.show {
  display: block;
}
.hl-comment {
  color: #6b7280;
  font-style: italic;
}
.hl-string {
  color: #9ece6a;
}
.hl-keyword {
  color: var(--hot);
}
.hl-verb {
  color: #7aa2f7;
}
.hl-scope {
  color: #bb9af7;
}
.hl-number,
.hl-dice {
  color: #ff9e64;
}
.hl-brace,
.hl-sign,
.hl-op {
  color: var(--dim);
}
.hl-stat {
  color: #7dcfff;
}
.hl-mark {
  color: #e0af68;
}
.hl-ident {
  color: var(--ink);
}
.hl-error {
  color: #f7768e;
}
.hl-err {
  text-decoration: wavy underline #f7768e;
  text-underline-offset: 2px;
}
.item-edit .reveal {
  margin-top: 0.45rem;
}
.item-edit .reveal > summary {
  cursor: pointer;
  color: var(--dim);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.1rem 0;
}
.item-edit .reveal > summary:hover {
  color: var(--ink);
}
.cant-static {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0.35rem 0 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--deep);
  color: var(--ink);
  overflow: auto;
  max-height: 16rem;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  tab-size: 2;
}
@media (max-width: 720px) {
  .item-edit .row-x {
    padding: 0.35rem 0.65rem;
  }
  .item-edit .stmt-tools {
    gap: 0.3rem;
  }
  .item-edit .change-row select,
  .item-edit .cond-row select,
  .item-edit .change-row input,
  .item-edit .cond-row input {
    padding: 0.32rem 0.42rem;
  }
}
.item-edit {
  --band: color-mix(in oklab, var(--panel), var(--ink) 7%);
}
.item-edit > .field + .field {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.item-edit .state-rows {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.item-edit .state-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.item-edit .state-row input[type=text] {
  flex: 1 1 6rem;
  min-width: 0;
}
.item-edit .state-row input[type=number] {
  width: 4.75rem;
  flex: none;
}
.item-edit .state-row select.mark-onoff {
  width: 4.75rem;
  flex: none;
}
.item-edit .row-x {
  font: inherit;
  cursor: pointer;
  flex: none;
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  line-height: 1;
}
.item-edit .row-x:hover {
  color: #cf8b6b;
  border-color: #cf8b6b;
}
.item-edit .row-add {
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  margin-top: 0.4rem;
  background: transparent;
  color: var(--hot);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
}
.item-edit .row-add:hover {
  border-color: var(--hot);
}
.item-edit .stats-field {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid color-mix(in oklab, var(--line), var(--panel) 55%);
}
.item-edit .state-divergence:empty {
  display: none;
}
.item-edit .divergence-panel {
  margin-top: 0.7rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid color-mix(in oklab, var(--line), var(--hot) 22%);
  border-radius: 8px;
  background: color-mix(in oklab, var(--hot), transparent 92%);
}
.item-edit .divergence-panel > .field-label {
  margin-bottom: 0.3rem;
}
.item-edit .divergence-rows {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.item-edit .divergence-row {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.82rem;
}
.item-edit .divergence-name {
  color: var(--ink);
}
.item-edit .divergence-now {
  color: var(--hot);
  font-variant-numeric: tabular-nums;
}
.item-edit .divergence-start {
  color: var(--dim);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.item-edit .divergence-reset {
  margin-top: 0.5rem;
}
.item-edit .behavior {
  margin-top: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}
.item-edit .behavior summary {
  cursor: pointer;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  padding: 0.1rem 0;
}
.item-edit .behavior summary:hover {
  color: var(--ink);
}
.item-edit .action-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.item-edit .action-edit {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  background: var(--band);
}
.item-edit .action-row-head {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.item-edit .action-edit > .stmt-body,
.item-edit .action-edit > .field-help.judged {
  margin-left: 0.6rem;
}
.item-edit .action-row-head input[type=text] {
  flex: 1 1 auto;
  font-weight: 600;
}
.item-edit .change-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0.25rem 0;
}
.item-edit .change-row select,
.item-edit .change-row input {
  font: inherit;
  padding: 0.2rem 0.35rem;
}
.item-edit .change-operand {
  flex: 1 1 6rem;
  min-width: 5rem;
}
.item-edit .change-verb,
.item-edit .change-scope,
.item-edit .change-die {
  flex: none;
}
.item-edit .change-die {
  width: 4.75rem;
}
.item-edit .change-verb,
.item-edit .change-scope {
  width: auto;
  max-width: 100%;
}
.item-edit .change-price {
  flex: none;
  color: var(--dim);
  font-size: 0.78rem;
  min-width: 2.6rem;
  text-align: right;
}
.item-edit .edit-price {
  margin-top: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
  color: var(--dim);
  font-size: 0.86rem;
  text-align: right;
}
.item-edit .edit-price b {
  color: var(--hot);
}
.item-edit .edit-price.unaffordable b {
  color: #cf8b6b;
}
.item-edit .behavior .field-help {
  margin: 0.3rem 0;
}
.item-edit .change-conn {
  flex: none;
  color: var(--dim);
  font-size: 0.8rem;
}
.item-edit .insert-token {
  font-family: var(--font-mono);
  font-size: 0.9em;
  cursor: pointer;
  vertical-align: baseline;
  background: rgba(217, 164, 65, 0.12);
  color: var(--hot);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 0.25rem;
}
.item-edit .insert-token:hover {
  border-color: var(--hot);
}
.field-error,
.item-edit .row-error {
  display: none;
  color: #cf8b6b;
  font-size: 0.76rem;
  margin-top: 0.15rem;
}
.field-error.show {
  display: block;
}
.give-warn {
  color: #cf8b6b;
  font-size: 0.76rem;
  margin-top: 0.35rem;
}
.item-edit .change-row .row-error {
  flex-basis: 100%;
  margin-top: 0.05rem;
}
.item-edit .change-row .row-error.show,
.item-edit .state-row .row-error.show {
  display: block;
}
.item-edit .state-row {
  flex-wrap: wrap;
}
.item-edit .state-row .row-error {
  flex-basis: 100%;
}
.modal-foot .edit-summary {
  display: none;
  margin-left: auto;
  align-self: center;
  color: #cf8b6b;
  font-size: 0.82rem;
  text-align: right;
}
.modal-foot .edit-summary.show {
  display: block;
}
.edit-banner {
  display: none;
  order: -1;
  flex-basis: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid #cf8b6b;
  border-radius: 6px;
  background: rgba(207, 139, 107, 0.1);
  color: #e0a487;
  font-size: 0.85rem;
  line-height: 1.45;
}
.edit-banner.show {
  display: block;
}
.item-edit .stmt-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.item-edit .stmt {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.item-edit .stmt > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.item-edit .stmt-tools {
  display: flex;
  gap: 0.2rem;
  flex: none;
}
.item-edit .stmt-tools .row-x {
  padding: 0.15rem 0.4rem;
}
.item-edit .stmt-move {
  opacity: 0.35;
  border-color: transparent;
  transition:
    opacity 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease;
}
.item-edit .stmt:hover .stmt-move:not(:disabled),
.item-edit .stmt:focus-within .stmt-move:not(:disabled) {
  opacity: 1;
  border-color: var(--line);
}
.item-edit .stmt-move:disabled {
  opacity: 0.18;
  cursor: default;
}
.item-edit .stmt-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.item-edit .step-label {
  color: var(--dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: none;
}
.item-edit .say-row,
.item-edit .when-head,
.item-edit .one-of-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.item-edit .say-input {
  flex: 1 1 8rem;
  min-width: 6rem;
}
.item-edit .say-one-of-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.item-edit .say-row-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.item-edit .behavior-add {
  align-items: center;
  margin-top: 0.6rem;
}
.item-edit .when-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.3rem 0 0.1rem;
}
.item-edit .when-branch {
  margin-left: 0.6rem;
  padding: 0.15rem 0.5rem 0.25rem 0.6rem;
  border-left: 2px solid var(--line);
  border-radius: 0 7px 7px 0;
  background: var(--panel);
}
.item-edit .when-branch .when-branch {
  background: var(--band);
}
.item-edit .when-branch .when-branch .when-branch {
  background: var(--panel);
}
.item-edit .when-branch .when-branch .when-branch .when-branch {
  background: var(--band);
}
.item-edit .when-branch .when-branch .when-branch .when-branch .when-branch {
  background: var(--panel);
}
.item-edit .branch-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--dim);
  font-size: 0.76rem;
  margin: 0.2rem 0 0.1rem;
}
.item-edit .cond-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  flex: 1 1 auto;
}
.item-edit .cond-row select,
.item-edit .cond-row input {
  font: inherit;
  padding: 0.2rem 0.35rem;
}
.item-edit .cond-scope,
.item-edit .cond-test,
.item-edit .cond-op {
  flex: none;
  width: auto;
  max-width: 100%;
}
.item-edit .cond-val {
  width: 4.5rem;
  flex: none;
}
.item-edit .resolve-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  background: var(--band);
}
.item-edit .reward-control {
  margin-top: 0.4rem;
}
.item-edit .reward-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
}
.item-edit .reward-mode,
.item-edit .reward-item {
  flex: none;
  width: auto;
  max-width: 100%;
}
.item-edit .reward-amount {
  width: 4.75rem;
  flex: none;
}
.item-edit .reward-funding:not(:empty) {
  color: var(--hot);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}
.item-edit .scoreboard {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid color-mix(in oklab, var(--line), var(--panel) 55%);
}
.item-edit .scoreboard-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}
.item-edit .scoreboard-name {
  font-size: 0.8rem;
  color: #b5aada;
  border: 1px solid #8a7db8;
  border-radius: 5px;
  padding: 0.05rem 0.4rem;
}
.item-edit .field-help.judged {
  color: var(--dim);
  font-style: italic;
  margin-top: 0.3rem;
}
.skin-preview {
  margin-top: 0.3rem;
  padding: 0.35rem 0.55rem;
  border-left: 2px solid var(--hot);
  border-radius: 0 6px 6px 0;
  background: rgba(217, 164, 65, 0.06);
  color: #d8d4c9;
  font-size: 0.85rem;
  line-height: 1.5;
}
.skin-preview.empty {
  color: var(--dim);
  border-left-color: var(--line);
  background: transparent;
}
.skin-preview p {
  margin: 0.3rem 0;
}
.skin-preview p:first-child {
  margin-top: 0;
}
.skin-preview p:last-child {
  margin-bottom: 0;
}
.skin-preview .md-list {
  margin: 0.3rem 0;
  padding-left: 1.25rem;
}
.skin-preview h3,
.skin-preview h4,
.skin-preview h5,
.skin-preview h6 {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  margin: 0.3rem 0 0.1rem;
}
.oneof-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.oneof-variant {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.oneof-head {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}
.oneof-input {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 40vh;
  overflow-y: auto;
}
.oneof-head .row-x {
  font: inherit;
  cursor: pointer;
  flex: none;
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  line-height: 1;
}
.oneof-head .row-x:hover:not(:disabled) {
  color: #cf8b6b;
  border-color: #cf8b6b;
}
.oneof-head .row-x:disabled {
  opacity: 0.4;
  cursor: default;
}
.oneof-rows .row-add {
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  align-self: flex-start;
  background: transparent;
  color: var(--hot);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
}
.oneof-rows .row-add:hover {
  border-color: var(--hot);
}
.modal:has(.editor-split) {
  width: min(1140px, 100%);
}
.editor-split {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}
.editor-split.saving {
  pointer-events: none;
  opacity: 0.55;
}
.editor-split .pane {
  flex: 1 1 0;
  min-width: 0;
}
.editor-split .pane-raw {
  position: sticky;
  top: 0;
}
.raw-note {
  margin-top: 0.55rem;
  color: var(--dim);
  font-size: 0.76rem;
  line-height: 1.45;
  font-style: italic;
}
@media (min-width: 721px) {
  .split-toggle {
    display: none;
  }
}
@media (max-width: 720px) {
  .modal:has(.editor-split) {
    width: 100%;
  }
  .editor-split {
    display: block;
  }
  .editor-split .pane-raw {
    display: none;
  }
  .editor-split.show-raw .pane-structured {
    display: none;
  }
  .editor-split.show-raw .pane-raw {
    display: block;
  }
}
@media (max-width: 720px) {
  .modal-back {
    padding: 0;
  }
  .modal {
    width: 100%;
    max-height: 100%;
    height: 100dvh;
    border: none;
    border-radius: 0;
  }
}
.you-pop {
  position: fixed;
  top: 2.7rem;
  right: 0.6rem;
  z-index: 20;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  min-width: 12rem;
  max-width: 18rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}
.you-pop[hidden] {
  display: none;
}
.you-pop .you-name {
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: 1.05rem;
}
.you-pop .marks-row {
  display: flex;
  flex-wrap: wrap;
}
.card-edit-room .edit-price {
  margin-top: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
  color: var(--dim);
  font-size: 0.86rem;
  text-align: right;
}
.card-edit-room .edit-price b {
  color: var(--hot);
  font-weight: 500;
}
.card-edit-room .edit-price.unaffordable b {
  color: #cf8b6b;
}
.card-room-history .history-standing {
  color: var(--dim);
  font-size: 0.84rem;
  margin: 0.35rem 0 0.1rem;
}
.card-room-history .history-empty {
  color: var(--dim);
  font-size: 0.88rem;
  margin: 0.5rem 0;
  font-style: italic;
}
.card-room-history .history-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.card-room-history .history-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}
.card-room-history .history-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.card-room-history .history-author {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
}
.card-room-history .history-when {
  color: var(--dim);
  font-size: 0.78rem;
  flex: none;
}
.card-room-history .history-prose {
  color: var(--dim);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0.35rem 0;
  white-space: pre-wrap;
}
.card-room-history .history-actions {
  display: flex;
  justify-content: flex-end;
}
.card-edit-room .room-name-input {
  width: 100%;
}
.card-room-history .history-asname {
  color: var(--dim);
  font-size: 0.78rem;
  font-style: italic;
}
.item-edit .settles-row {
  align-items: center;
}
.item-edit .settles-sel {
  max-width: 100%;
}

/* client/styles/play/gate.css */
#gate {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
#gate[hidden] {
  display: none;
}
.gate-card {
  width: min(420px, 90vw);
  text-align: center;
  padding: 1.5rem;
}
.gate-card h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  margin: 0 0 0.2rem;
}
.gate-card p {
  color: var(--dim);
  margin: 0.2rem 0 1.2rem;
}
.gate-card input {
  font: inherit;
  width: 100%;
  text-align: center;
  background: var(--deep);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.65rem;
  margin-bottom: 0.7rem;
  outline: none;
}
.gate-card input:focus {
  border-color: var(--hot);
}
.gate-card form {
  margin: 0;
}
.gate-card input[hidden] {
  display: none;
}
.gate-card button {
  font: inherit;
  cursor: pointer;
  background: var(--hot);
  color: #1a1304;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  padding: 0.6rem 1.1rem;
  width: 100%;
}
.gate-card button:disabled {
  opacity: 0.6;
  cursor: default;
}
.gate-card .gate-alt {
  background: none;
  color: var(--dim);
  font-weight: 400;
  width: auto;
  padding: 0.4rem 0;
  margin-top: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}
.gate-card .gate-alt:hover {
  color: var(--ink);
}
#signup-color[hidden],
.gate-describe[hidden],
.gate-note[hidden] {
  display: none;
}
.gate-field-label {
  display: block;
  color: var(--dim);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}
#signup-color {
  margin-bottom: 0.7rem;
}
#signup-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  justify-content: center;
}
#signup-swatches button {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 0;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.1s ease;
}
#signup-swatches button:hover {
  transform: scale(1.14);
}
#signup-swatches button.chosen {
  border-color: var(--ink);
}
.gate-describe {
  font: inherit;
  width: 100%;
  text-align: left;
  line-height: 1.45;
  resize: vertical;
  background: var(--deep);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
  outline: none;
}
.gate-describe:focus {
  border-color: var(--hot);
}
.gate-note {
  color: var(--dim);
  font-size: 0.76rem;
  line-height: 1.4;
  margin: 0 0 0.7rem;
}

/* client/styles/play/mapview.css */
.mapview {
  position: fixed;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.mapview .map-chart {
  flex: 1 1 auto;
  min-height: 0;
}
.map-controls {
  margin-left: 0.55rem;
  display: inline-flex;
  gap: 0.35rem;
  vertical-align: baseline;
}
.map-controls .map-btn {
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  background: transparent;
  color: var(--hot);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 0.5rem;
  line-height: 1.35;
}
.map-controls .map-btn:hover {
  border-color: var(--hot);
}
.mapview .map-svg {
  width: 100%;
  height: 100%;
  touch-action: none;
}
.mapview svg text {
  font: 12px var(--font-ui);
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3px;
  stroke-linejoin: round;
  -webkit-user-select: none;
  user-select: none;
}
.mapview svg line.edge {
  stroke: var(--line);
  stroke-width: 1.6;
}
.mapview svg line.edge.vertical {
  stroke-dasharray: 5 4;
}
.mapview svg line.door-stub {
  stroke-dasharray: 3 3;
}
.mapview svg rect.door {
  fill: var(--bg);
  stroke: #8a7db8;
  stroke-width: 1.4;
  cursor: pointer;
}
.mapview svg rect.door.mine {
  fill: #8a7db8;
}
.mapview svg rect.door.out {
  stroke: var(--hot);
}
.mapview svg text.door-label {
  font-size: 9px;
  fill: var(--dim);
}
.mapview svg g.node.frontier circle {
  stroke: var(--line);
  stroke-width: 1.2;
}
.mapview svg g.node.frontier text {
  fill: var(--dim);
}
.mapview svg g.node.walkable {
  cursor: pointer;
}
.mapview svg g.node.bud {
  animation: map-bud 420ms ease-out;
}
@keyframes map-bud {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* client/styles/play/images.css */
.chat-img {
  display: block;
  max-width: min(100%, 28rem);
  max-height: 40vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 0.4rem 0;
  background: var(--deep);
  cursor: zoom-in;
}
.card-img {
  display: block;
  max-width: 100%;
  max-height: 9rem;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 0.35rem 0;
  background: var(--deep);
  cursor: zoom-in;
}
.occ-chip {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 5px;
  vertical-align: middle;
  margin-right: 0.4rem;
  background: var(--deep);
  cursor: zoom-in;
}
.occ-chip.tall,
.img-row-preview.tall {
  object-position: center top;
}
.room-img {
  display: block;
  max-width: min(100%, 40rem);
  max-height: 32vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 0.5rem 0;
  background: var(--deep);
  cursor: zoom-in;
}
.images-field .img-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}
.img-row-preview {
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--deep);
  cursor: zoom-in;
}
.img-cond {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  flex: 1 1 12rem;
  min-width: 8rem;
}
.img-cond-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.img-cond select,
.img-cond input {
  font: inherit;
  padding: 0.2rem 0.35rem;
  background: var(--deep);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.img-cond .change-operand,
.img-cond .operand-pick {
  flex: 1 1 6rem;
  min-width: 5rem;
}
.img-val {
  width: 4.5rem;
}
.img-row-tools {
  display: flex;
  gap: 0.2rem;
  margin-left: auto;
  align-items: center;
}
.images-field .row-add {
  align-self: flex-start;
  margin-top: 0.1rem;
  padding: 0.3rem 0.6rem;
  font: inherit;
  background: var(--deep);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}
.images-field .row-add:hover:not(:disabled) {
  border-color: var(--hot);
}
.images-field .row-add:disabled {
  opacity: 0.5;
  cursor: default;
}
.images-field .img-row-tools .row-x {
  padding: 0.15rem 0.4rem;
  font: inherit;
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.images-field .img-row-tools .row-x:hover:not(:disabled) {
  color: #cf8b6b;
  border-color: #cf8b6b;
}
.images-field .img-row-tools .row-x:disabled {
  opacity: 0.35;
  cursor: default;
}
.room-edit-link {
  font: inherit;
  font-size: 0.72rem;
  background: transparent;
  color: var(--hot);
  border: none;
  padding: 0 0 0 0.5rem;
  cursor: pointer;
  text-decoration: underline;
}
.room-edit-link:hover {
  color: var(--ink);
}
.room-desc-input {
  width: 100%;
  min-height: 4.5rem;
  max-height: 40vh;
  overflow-y: auto;
  font: inherit;
  padding: 0.4rem 0.5rem;
  background: var(--deep);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  resize: vertical;
  box-sizing: border-box;
}
.lightbox-back {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 5, 8, 0.92);
  cursor: zoom-out;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

/* client/styles/play.css */
/*# sourceMappingURL=play.css.map */
