:root {
  color-scheme: dark;
  --bg: #101613;
  --panel: #18211b;
  --line: #303b30;
  --gold: #e5c584;
  --muted: #a9b4a5;
  --text: #eef0e3;
  --green: #8eb59b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 'Segoe UI',
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #233027;
  color: var(--text);
  padding: 9px 13px;
}
button:hover {
  border-color: var(--gold);
  background: #303e30;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--gold);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    600 31px/1.2 Georgia,
    serif;
  margin-bottom: 10px;
}
h2 {
  font-size: 18px;
  margin-bottom: 5px;
}
h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
p {
  color: var(--muted);
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.primary {
  background: var(--gold);
  color: #20251d;
  border-color: var(--gold);
  font-weight: 650;
}
.primary:hover {
  background: #f3d79a;
  color: #20251d;
}
.metric span {
  color: var(--muted);
  font-size: 11px;
}
.metric strong {
  display: block;
  font-size: 24px;
  font-weight: 500;
  margin: 5px 0;
}
.metric small {
  color: var(--muted);
  font-size: 10px;
}
.workspace .eyebrow {
  margin-bottom: 8px;
}
.workspace h2 {
  font:
    600 24px Georgia,
    serif;
  margin-bottom: 12px;
}
.workspace .intro {
  font-size: 12px;
}
.toolbar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.toolbar button {
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.tabs button {
  font-size: 11px;
}
.tabs button.active {
  border-color: var(--gold);
  color: var(--gold);
}
.record {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  background: #1e281f;
  overflow-wrap: anywhere;
}
.record p {
  font-size: 12px;
  margin: 7px 0;
  white-space: pre-wrap;
}
.record .meta {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
}
.tag {
  display: inline-block;
  font-size: 10px;
  padding: 3px 7px;
  color: var(--gold);
  border: 1px solid #625a3b;
  border-radius: 4px;
  margin-right: 4px;
  margin-bottom: 5px;
}
.tag.danger {
  color: #efae95;
  border-color: #775442;
}
.tag.good {
  color: #a6cca3;
  border-color: #4b674a;
}
.record button {
  font-size: 11px;
  padding: 6px 9px;
  margin-top: 8px;
}
.checklist {
  font-size: 11px;
  color: var(--muted);
  padding-left: 18px;
}
.checklist li {
  margin-bottom: 4px;
}
.empty {
  font-size: 12px;
  color: var(--muted);
  border: 1px dashed #45513e;
  border-radius: 8px;
  padding: 18px;
}
.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.store-grid .record {
  margin: 0;
}
.meeting-section {
  margin-top: 24px;
}
.meeting-section h3 {
  color: var(--gold);
  font-size: 13px;
}
.money-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
}
.money-detail div {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 6px;
}
.money-detail b {
  display: block;
  color: var(--gold);
  font-size: 17px;
  margin: 5px 0;
}
#notice:not(:empty) {
  border: 1px solid #6b6947;
  padding: 12px;
  background: #303525;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 12px;
}
dialog {
  width: min(660px, 95vw);
  max-height: 90vh;
  overflow: auto;
  background: #19231c;
  color: var(--text);
  border: 1px solid #6b6947;
  border-radius: 12px;
  padding: 24px;
}
dialog::backdrop {
  background: #08120ccc;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.dialog-head button {
  padding: 4px 10px;
  font-size: 22px;
}
form {
  display: grid;
  gap: 13px;
}
form label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
form input,
form select,
form textarea {
  width: 100%;
  border: 1px solid #4b5745;
  border-radius: 6px;
  background: #101913;
  color: var(--text);
  padding: 9px;
}
form textarea {
  min-height: 85px;
  resize: vertical;
}
form label.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
form input[type='checkbox'] {
  width: auto;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
}
legend {
  color: var(--gold);
  font-size: 12px;
}
#form-error {
  color: #ffbb9d;
  white-space: pre-wrap;
}
.skip {
  position: fixed;
  top: -100px;
  background: #18211b;
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 0;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.outreach-stages {
  display: grid;
  gap: 8px;
}
.outreach-stage {
  position: relative;
  margin: 0;
  padding-left: 47px;
}
.stage-number {
  position: absolute;
  left: 14px;
  top: 14px;
  font:
    16px Georgia,
    serif;
  color: var(--gold);
}
.stage-gate {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.outreach-status {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.outreach-capabilities {
  border: 1px dashed #526349;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 12px;
}
.outreach-capabilities p {
  margin: 8px 0;
}
.outreach-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gold);
  font-size: 11px;
}
.outreach-counts span {
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 5px;
}
.outreach-source {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
#outreach-request {
  min-height: 300px;
  font-size: 12px;
}
#outreach-copy-status {
  font-size: 12px;
  color: var(--gold);
}
/* ===== Office Village layout: full-window town, controls in a right side panel ===== */
html,
body {
  height: 100%;
}
body {
  overflow: hidden;
}
.village-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  height: 100vh;
  height: 100dvh;
}
body.panel-hidden .village-app {
  grid-template-columns: minmax(0, 1fr) 0;
}
body.panel-hidden .panel {
  display: none;
}
.stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #86b55e radial-gradient(ellipse at center, #93c269 0, #7fae59 70%, #6f9f4f 100%);
}
.town {
  position: relative;
  width: min(100%, calc(100dvh * 1100 / 650));
  aspect-ratio: 1100/650;
  overflow: hidden;
  background: #86b55e;
  container-type: inline-size;
  outline: none;
}
.town:focus-visible {
  box-shadow: inset 0 0 0 3px var(--gold);
}
.town canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.town-label {
  position: absolute;
  bottom: 2%;
  width: 100%;
  text-align: center;
  font: 9px monospace;
  letter-spacing: 2px;
  color: #3d5a2c;
  pointer-events: none;
}
.town-list {
  width: min(560px, 90%);
  display: grid;
  gap: 9px;
}
.town-list button {
  text-align: left;
  padding: 14px;
}
.hud {
  position: absolute;
  z-index: 3;
  margin: 0;
}
.hud-top {
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}
.hud-top > * {
  pointer-events: auto;
}
.hud-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #131a16d9;
  border: 1px solid #4a5035;
  border-radius: 10px;
  padding: 7px 12px 7px 8px;
}
.hud-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.hud-brand b {
  display: block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
}
.hud-brand span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.hud-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.hud-controls button,
.hud-check {
  font-size: 11px;
  padding: 7px 10px;
  background: #131a16d9;
  border: 1px solid #4a5035;
  border-radius: 8px;
  color: var(--text);
}
.hud-check {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.hud-controls [aria-pressed='true'] {
  color: var(--gold);
  border-color: var(--gold);
}
.hud-help {
  bottom: 10px;
  left: 12px;
  font-size: 11px;
  color: #eef0e3;
  background: #131a16b3;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
}

/* Building names as hanging wooden signs */
.building {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 4px;
}
.building:hover,
.building:focus-visible {
  background: #f4dea914;
  border: 0;
}
/* The sign is nailed to the middle of the roof, so doors and windows stay visible. */
.sign {
  position: absolute;
  left: 50%;
  top: var(--roof);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%) rotate(-1deg);
  transition: transform 0.15s;
}
.building:hover .sign,
.building:focus-visible .sign {
  transform: translate(-50%, -50%) translateY(-2px);
}
.building-name {
  position: relative;
  font:
    700 clamp(6px, 0.92cqw, 13px) / 1.2 Georgia,
    'Times New Roman',
    serif;
  font-variant: small-caps;
  letter-spacing: 0.6px;
  white-space: nowrap;
  color: #fbeccb;
  text-shadow:
    0 1px 0 #2a1607,
    0 -1px 0 #a87445;
  padding: 0.25em 1.15em 0.3em;
  border: 2px solid #3b2410;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, transparent 0 5px, #00000014 5px 6px),
    repeating-linear-gradient(90deg, #00000000 0 37px, #0000001a 37px 38px),
    linear-gradient(180deg, #a06a35, #7c4d22 55%, #6a3f1a);
  box-shadow:
    inset 0 1px 0 #c9925a,
    inset 0 -2px 0 #4a2a10,
    0 3px 0 #24160a,
    0 5px 8px #0006;
}
.building-name::before,
.building-name::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #d8c08a;
  box-shadow: 0 1px 0 #2a1607;
}
.building-name::before {
  left: 3px;
}
.building-name::after {
  right: 3px;
}
.building-sub {
  position: absolute;
  top: 100%;
  display: none;
  white-space: nowrap;
  margin-top: 5px;
  font:
    600 clamp(7px, 0.75cqw, 11px) / 1.3 Georgia,
    serif;
  color: #3a2410;
  padding: 2px 9px;
  border: 1px solid #6e4a22;
  border-radius: 2px;
  background: linear-gradient(180deg, #e9d3a2, #cdb07a);
  box-shadow: 0 2px 0 #24160a80;
}
.building:hover .building-sub,
.building:focus-visible .building-sub {
  display: block;
}
.building-sub::before,
.building-sub::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 2px;
  height: 6px;
  background: #3b2a18;
}
.building-sub::before {
  left: 12px;
}
.building-sub::after {
  right: 12px;
}
.building.active .building-name {
  border-color: var(--gold);
  box-shadow:
    inset 0 1px 0 #c9925a,
    inset 0 -2px 0 #4a2a10,
    0 0 0 2px #ffe3a1,
    0 3px 0 #24160a,
    0 0 14px #ffe3a180;
}

/* Side panel */
.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border-left: 1px solid var(--line);
  overflow-y: auto;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
}
.panel-head h1 {
  font-size: 21px;
  margin: 0;
}
.panel-head .eyebrow {
  margin-bottom: 4px;
}
.meeting-btn {
  padding: 10px 13px;
  white-space: nowrap;
  font-size: 12px;
}
.meeting-btn span {
  margin-left: 8px;
}
.agents-bar {
  padding: 4px 18px 10px;
}
.agents-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.agents-head .eyebrow {
  margin-bottom: 6px;
}
.agents-head small {
  font-size: 10px;
  color: var(--muted);
}
#agents {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.agent-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 5px 8px;
  background: #1f2a21;
}
.agent-chip i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.agent-chip.alert {
  border-color: #c94a3a;
}
.bang {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #fffaf0;
  color: #d42a22;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  border: 1px solid #3a2416;
}
nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 6px 18px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
nav button {
  text-align: left;
  background: transparent;
  border-color: transparent;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 12px;
}
nav button.active {
  background: #2e3726;
  color: var(--gold);
  border-color: #4a5035;
}
nav button span {
  display: inline-block;
  width: 16px;
  margin-right: 6px;
  text-align: center;
}
.count {
  display: inline-block;
  min-width: 17px;
  padding: 0 5px;
  border-radius: 9px;
  background: #c94a3a;
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}
#notice {
  margin: 10px 18px 0;
}
#notice:not(:empty) {
  margin-bottom: 0;
}
.workspace {
  flex: 1 0 auto;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.workspace h2 {
  font:
    600 22px Georgia,
    serif;
  margin-bottom: 10px;
}
.report h3 {
  margin-top: 8px;
}
.history summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 12px;
  margin: 14px 0 6px;
}
.panel-more {
  border-top: 1px solid var(--line);
  padding: 12px 18px 18px;
}
.panel-more summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
}
.panel-more .metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.metric {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #20291e, #18211b);
}
.metric strong {
  font-size: 18px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.section-head h2 {
  font-size: 14px;
  margin: 0;
}
.section-head button {
  font-size: 11px;
  padding: 6px 9px;
}
.activity-row {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}
.activity-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.activity-row time {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.backup-row {
  display: flex;
  gap: 6px;
  margin: 12px 0 6px;
}
.backup-row button {
  flex: 1;
  font-size: 11px;
  background: transparent;
}
#updated,
.fine {
  font-size: 10px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }
  .village-app {
    display: block;
    height: auto;
  }
  .stage {
    height: auto;
    min-height: 56vw;
    padding: 64px 0 34px;
  }
  .town {
    width: 100%;
  }
  .panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow: visible;
  }
  .hud-controls #fullscreen {
    display: none;
  }
}
@media (max-width: 520px) {
  .building-sub {
    display: none !important;
  }
  .hud-help {
    display: none;
  }
  .panel-head {
    flex-wrap: wrap;
  }
  .meeting-btn {
    width: 100%;
  }
}
/* Alert colours: red needs attention, yellow is queued work, green is good news */
.bang.red {
  color: #d42a22;
}
.bang.yellow {
  color: #c98f00;
}
.bang.green {
  color: #2f9e44;
}
.agent-chip.alert.yellow {
  border-color: #c9a23a;
}
.agent-chip.alert.green {
  border-color: #3f9b55;
}
.tag.tone-red {
  color: #efae95;
  border-color: #775442;
}
.tag.tone-yellow {
  color: #ecd27a;
  border-color: #7a6a32;
}
.tag.tone-green {
  color: #a6cca3;
  border-color: #4b674a;
}
/* Village chat */
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 4px 2px;
  margin: 10px 0;
}
.msg {
  max-width: 88%;
  align-self: flex-start;
  background: #1e281f;
  border: 1px solid var(--line);
  border-radius: 10px 10px 10px 2px;
  padding: 8px 11px;
}
.msg.me {
  align-self: flex-end;
  background: #2e3726;
  border-color: #4a5035;
  border-radius: 10px 10px 2px 10px;
}
.msg-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.msg-head i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.msg-head time {
  margin-left: auto;
  padding-left: 10px;
}
.msg p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg button {
  font-size: 10px;
  padding: 4px 8px;
  margin-top: 6px;
}
.chat-form {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 8px;
  align-items: end;
}
.chat-form textarea {
  min-height: 42px;
}
/* Treasury */
.sales-log {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.sales-log div {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 11px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.sales-log div:first-child {
  border-top: 0;
}
.sales-log time {
  color: var(--muted);
  font-size: 11px;
}
.sales-log small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.sales-log b {
  color: var(--gold);
}
code {
  font:
    11px Consolas,
    monospace;
  background: #101913;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
}
@media (max-width: 520px) {
  .chat-form {
    grid-template-columns: 1fr;
  }
}

/* Panel footer: account, Download app and Hard refresh (studio rule for every PWA) */
.panel-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: #131a16;
}
.panel-foot button {
  font-size: 11px;
  padding: 6px 10px;
  background: transparent;
}
.panel-foot #account {
  margin-right: auto;
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Online sign-in gate */
.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #101613f2;
}
.gate-card {
  width: min(440px, 100%);
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 28px 24px;
  border: 1px solid #4a5035;
  border-radius: 14px;
  background: var(--panel);
}
.gate-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.gate-card h1 {
  font-size: 22px;
  margin: 0;
}
.gate-card p {
  margin: 0;
}
#gate-setup {
  display: grid;
  gap: 8px;
  width: 100%;
}

/* Steven's own maps: the Office Village's sign buttons and label only belong to the Office map */
.town.custom-map #buildings,
.town.custom-map .town-label {
  display: none;
}
.build-bar {
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border: 1px solid #4a5035;
  border-radius: 10px;
  background: #131a16e6;
}
.build-bar button {
  font-size: 11px;
  padding: 6px 9px;
}
.build-bar button.active {
  border-color: var(--gold);
  color: var(--gold);
}
.build-gap {
  width: 10px;
}
/* Fade between maps, and night when you go to bed */
.fade,
.night {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.fade {
  background: #000;
}
.fade.on {
  opacity: 1;
}
.night {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 70% 20%, #f6e6b0 0 28px, transparent 30px), #0b1530e6;
  transition: opacity 1.2s;
}
.night p {
  font:
    600 28px Georgia,
    serif;
  color: #f6e6b0;
}
.night.on {
  opacity: 1;
}
/* Links that look like buttons (open another app in a new tab) */
a.button {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  background: #233027;
  color: var(--text);
}
a.button.primary {
  background: var(--gold);
  color: #20251d;
  border-color: var(--gold);
  font-weight: 650;
}
/* Home: RPG character card and end-of-day form */
.rpg-card {
  border: 1px solid #4a5035;
  border-radius: 10px;
  padding: 14px;
  margin: 12px 0;
  background: #1e281f;
}
.rpg-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.rpg-head b {
  font:
    600 18px Georgia,
    serif;
  color: var(--gold);
}
.rpg-head span {
  font-size: 11px;
  color: var(--muted);
}
.rpg-stats {
  display: grid;
  gap: 5px;
}
.rpg-stats div {
  display: grid;
  grid-template-columns: 130px 1fr 52px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.rpg-stats i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #8eb59b, #e5c584);
}
.rpg-stats b {
  text-align: right;
  font-weight: 600;
}
.day-form {
  margin-top: 12px;
}

/* Mirror Path RPG Log Actions, docked in the side panel (opened from Home) */
.rpg-dock {
  flex: 0 0 auto; /* the panel is a column; without this the dock gets squeezed to nothing */
  margin: 10px 18px 0;
  border: 1px solid #4a5035;
  border-radius: 10px;
  overflow: hidden;
  background: #0d0b08;
}
.rpg-dock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #131a16;
  border-bottom: 1px solid #4a5035;
  font-size: 11px;
}
.rpg-dock-bar b {
  margin-right: auto;
  color: var(--gold);
  font-weight: 600;
}
.rpg-dock-bar button {
  font-size: 11px;
  padding: 4px 9px;
}
.rpg-dock iframe {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  border: 0;
  background: #0d0b08;
}
body.rpg-docked .village-app {
  grid-template-columns: minmax(0, 1fr) 480px;
}
body.rpg-docked .rpg-dock {
  margin: 8px 8px 0;
}
