/* Wide desktop workspace: restrained paper panels and luminous field notes. */
#panel {
  width: 380px;
}
#panel.journal-panel {
  width: 410px;
  background: #edf0e3;
}
.panel-tabs {
  flex-wrap: wrap;
  gap: 4px;
}
.panel-tabs button {
  padding: 8px 10px;
}
.build-tools,
.craft-batch {
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 0 0 12px;
}
.build-tools button,
.build-tools select,
.craft-batch button {
  background: #e3e5d6;
  color: #344b41;
  padding: 8px;
  border: 1px solid #c3cbb6;
  border-radius: 3px;
}
.build-tools button {
  flex: 1;
}
.build-tools .active,
.craft-batch .active {
  background: #36584e;
  color: #eef2df;
}
.craft-batch span {
  margin-right: auto;
  font-size: 11px;
  color: #738270;
}
.craft-batch button {
  min-width: 38px;
}
.build-card.undiscovered {
  opacity: 0.65;
}
.build-card.undiscovered .copy > p {
  color: #607d76;
}
#law-overlay {
  pointer-events: auto;
  position: absolute;
  right: 24px;
  top: 314px;
  border: 1px solid #c7d8bb44;
  background: #1e3837e8;
  color: #dce7d8;
  padding: 11px 16px;
  border-radius: 4px;
  box-shadow: 0 5px 20px #14262433;
}
#law-overlay.active {
  background: #b7d3c9;
  color: #244438;
}
kbd {
  font-size: 10px;
  opacity: 0.65;
  font-family: inherit;
}
#plan-toolbar {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 92px;
  min-width: 540px;
  max-width: calc(100vw - 460px);
  background: #173a3bea;
  border: 1px solid #aac9c177;
  border-radius: 6px;
  color: #e4ece0;
  padding: 14px 18px;
  box-shadow: 0 12px 28px #09262a33;
  backdrop-filter: blur(8px);
}
#plan-toolbar small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #9fc8c4;
  margin-bottom: 5px;
}
#plan-toolbar b {
  font-size: 14px;
  display: block;
}
#plan-toolbar b span {
  font-size: 10px;
  font-weight: 400;
  color: #c8d6bd;
  margin-left: 10px;
}
#plan-toolbar p {
  font-size: 11px;
  margin-top: 6px;
  color: #b5cfc8;
}
#plan-toolbar .plan-error {
  color: #edb199;
}
.plan-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.plan-actions button {
  background: #729e9840;
  border: 1px solid #bbd3c330;
  color: #e3ebd8;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 11px;
}
.plan-actions #plan-commit {
  margin-left: auto;
  background: #c1d4b5;
  color: #23413a;
}
#hud:has(#plan-toolbar:not([hidden])) #placement-bar {
  bottom: 131px;
}
.journal-intro {
  margin: -4px -4px 20px;
  padding: 24px 22px 25px;
  background: linear-gradient(135deg, #183c3d, #354e46);
  color: #e5eddf;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.journal-intro::after {
  content: "◇";
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 125px;
  line-height: 1;
  color: #c4dcc910;
  transform: rotate(15deg);
}
.journal-intro small {
  font-size: 9px;
  letter-spacing: 2.4px;
  color: #94c1bd;
}
.journal-intro h3 {
  margin: 16px 0 12px;
  font-family: "Yu Mincho", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.65;
}
.journal-intro p {
  font-size: 10px;
  color: #b5cbbb;
}
.law-chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 23px;
}
.law-chain span {
  border: 1px solid #b4c6b8;
  padding: 6px 13px;
  border-radius: 3px;
  color: #39615b;
  font-size: 11px;
}
.law-chain i {
  font-style: normal;
  color: #839a8b;
}
.law-card {
  margin-bottom: 13px;
  border: 1px solid #c2cebb;
  background: #f5f4e8;
  padding: 17px 19px;
  border-radius: 4px;
  position: relative;
}
.law-card.observed {
  border-left: 3px solid var(--law-color);
}
.law-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 23px;
  margin-bottom: 8px;
}
.law-card-top span {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #798f82;
}
.law-card-top canvas {
  image-rendering: pixelated;
}
.law-card h3 {
  font-size: 18px;
  font-family: "Yu Mincho", serif;
  font-weight: 600;
  margin-bottom: 9px;
}
.law-card p {
  font-size: 11px;
  line-height: 1.9;
  color: #6c8074;
}
.law-card .law-principle {
  font-size: 12px;
  color: #345b51;
  margin-bottom: 7px;
}
.law-card .quiet {
  background: #dde7da;
  color: #47665a;
  border-color: #c7d6c2;
  padding: 7px 8px;
  font-size: 10px;
  letter-spacing: 0;
  margin-top: 12px;
}
.law-stock {
  display: block;
  font-size: 9px;
  color: #8b9e8c;
  margin-top: 9px;
}
.journal-section-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #6c8375;
  margin: 25px 0 12px;
  border-bottom: 1px solid #c6d0be;
  padding-bottom: 9px;
}
.law-proof {
  display: flex;
  gap: 13px;
  padding: 10px 4px;
  opacity: 0.55;
}
.law-proof.verified {
  opacity: 1;
}
.law-proof > span {
  color: #649f9a;
  font-size: 22px;
}
.law-proof b {
  display: block;
  font-size: 11px;
  color: #46675c;
  font-weight: 500;
}
.law-proof small {
  display: block;
  font-size: 9px;
  color: #8a9c8b;
  margin-top: 4px;
}
.device-ledger button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 5px 0;
  padding: 11px;
  background: #e2e9da;
  border: 1px solid #c7d3bf;
  border-radius: 3px;
}
.device-ledger b {
  display: block;
  font-size: 11px;
}
.device-ledger span {
  display: block;
  color: #6d867b;
  font-size: 10px;
  margin-top: 6px;
  line-height: 1.7;
}
.journal-panel .secondary-button {
  font-size: 11px;
}
#title-screen {
  background:
    linear-gradient(90deg, #102934ed 0%, #1b344399 38%, #142f3010 74%),
    linear-gradient(
      0deg,
      #0e292bc2,
      transparent 30%,
      transparent 80%,
      #10283466
    );
}
.title-star {
  color: #b7dcd1;
}
.title-description {
  color: #b7cfc9;
}
.enter {
  background: #d3dfc6;
  box-shadow: 0 0 35px #95cbc511;
}
.title-top .tiny-brand {
  color: #b4d1cd;
}
#hud:has(#panel:not([hidden])) .dock {
  left: calc(50% + 95px);
}
@media (min-width: 1600px) {
  #panel {
    width: 410px;
  }
  #panel.journal-panel {
    width: 440px;
  }
  #hud:has(#panel:not([hidden])) .dock {
    left: calc(50% + 130px);
  }
}
@media (max-width: 1150px) {
  #panel,
  #panel.journal-panel {
    width: 340px;
  }
  #plan-toolbar {
    left: 360px;
    transform: none;
    min-width: 400px;
    max-width: calc(100vw - 390px);
  }
  #hud:has(#panel:not([hidden])) .dock {
    left: 50%;
  }
  #law-overlay {
    right: 18px;
    top: 312px;
  }
}

.device-target {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #a5bcab55;
  margin-top: 13px;
  padding-top: 12px;
  font-size: 11px;
}
.device-target input {
  width: 60px;
  padding: 5px;
  border: 1px solid #a5bcab;
  border-radius: 3px;
  background: #f1f0df;
  color: #34594d;
}
.device-target small {
  font-size: 10px;
  line-height: 1.8;
  opacity: 0.65;
}

#paused-label {
  top: 106px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 18px;
  font-size: 12px;
  letter-spacing: 1px;
  background: #1b363edb;
}
#paused-label small {
  display: inline-block;
  margin: 0 0 0 12px;
  font-size: 8px;
}
#hud:has(#plan-toolbar:not([hidden])) #toast-stack {
  top: auto;
  bottom: 175px;
  right: 24px;
  max-width: 295px;
}
