/* dashboard layout; base tokens come from style.css */

.bar {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  padding: 1.2rem clamp(1.2rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--rule);
}

.bar .wordmark {
  font-size: 1.3rem;
  text-decoration: none;
}

.crumb {
  color: var(--muted);
  font-size: 0.85rem;
  flex: 1;
}

.bar #wallet,
.bar .xlink {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}
.bar .xlink { margin-right: 1.4rem; }
.bar #wallet:hover,
.bar .xlink:hover { color: var(--ink); }

.dash {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 360px);
  gap: 0;
  min-height: calc(100svh - 8.4rem);
}

.map-pane {
  position: relative;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}

#land {
  width: 100%;
  flex: 1;
  min-height: 320px;
  cursor: pointer;
}

.map-pane .map-status { margin-top: 0.6rem; }

.map-controls {
  position: absolute;
  top: 2.2rem;
  right: 2.2rem;
  display: flex;
  gap: 0.4rem;
}

.map-controls button {
  font: inherit;
  font-size: 0.74rem;
  color: #c8dcf1;
  background: rgba(12, 35, 64, 0.7);
  border: 1px solid rgba(200, 220, 241, 0.35);
  border-radius: 3px;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
}

.map-controls button:hover { color: #ffffff; border-color: rgba(255, 255, 255, 0.6); }

.map-controls button.on {
  color: #0c2340;
  background: #e9f2fb;
  border-color: #e9f2fb;
}

.legend {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.2rem;
  opacity: 0.8;
}

.side {
  border-left: 1px solid var(--rule);
  padding: 0.4rem 1.4rem 1.4rem;
}

.side section {
  max-width: none;
  margin: 0;
  padding: 1.2rem 0 1.4rem;
  border-top: 0;
  border-bottom: 1px solid var(--rule);
}
.side section:last-child { border-bottom: 0; }

.side h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.side p { font-size: 0.92rem; }
.quiet-note { color: var(--muted); }

.side .row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.92rem;
  padding: 0.28rem 0;
}
.side .row .k { color: var(--muted); }
.side .row .v { text-align: right; }

.side button {
  margin-top: 0.8rem;
  padding: 0.45rem 1rem;
  font: 500 0.92rem 'Archivo', sans-serif;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  cursor: pointer;
}
.side button:disabled { opacity: 0.5; cursor: default; }
.side button:hover:not(:disabled) { background: #ffffff; }

.side button.plotlink {
  display: inline;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--face);
}
.side button.plotlink:hover:not(:disabled) { background: transparent; }

.txstate { font-size: 0.85rem; min-height: 1.2em; color: var(--muted); }

.plotlink {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--face);
  cursor: pointer;
}

.reserve-warning {
  color: #8f2f21;
  border-left: 2px solid #b54835;
  padding-left: 0.65rem;
}

.holdlist { list-style: none; }
.holdlist li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.3rem 0;
  font-size: 0.92rem;
}
.holdlist .amt { color: var(--muted); }

.wallet-stocks {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
}

.wallet-stocks .eyebrow {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stock-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 0.65rem;
  min-height: 1.85rem;
  font-size: 0.88rem;
}

.stock-row > span { color: var(--muted); font-variant-numeric: tabular-nums; }

.side .stock-row .watch-token {
  margin: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.76rem;
  text-decoration: underline;
}

.side .stock-row .watch-token:hover:not(:disabled) {
  color: var(--ink);
  background: transparent;
}

.dash-foot {
  max-width: none;
  margin: 0;
  border-top: 1px solid var(--rule);
  padding: 1rem clamp(1.2rem, 3vw, 2.4rem);
  color: var(--muted);
  font-size: 0.82rem;
}

.deployment-links a:not([hidden]) + a:not([hidden])::before { content: " · "; }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .side { border-left: 0; border-top: 1px solid var(--rule); }
  .map-pane { min-height: 60svh; }
}

@media (max-width: 600px) {
  .bar { flex-wrap: wrap; gap: 0.45rem 1rem; }
  .bar .wordmark { margin-right: 0; }
  .bar .xlink { margin-left: auto; margin-right: 0; }
  .bar #wallet { white-space: nowrap; }
  .crumb { order: 3; flex-basis: 100%; }
}

.side .wallet-pick { margin-right: 0.5rem; }

/* customize your building */
.build-panel { margin-top: 0.9rem; border-top: 1px solid rgba(140,170,210,0.14); padding-top: 0.6rem; }
.build-panel summary { cursor: pointer; font-size: 0.85rem; color: #b9d3ec; list-style: none; }
.build-panel summary::-webkit-details-marker { display: none; }
.build-panel summary::before { content: '+ '; color: #6f8bb0; }
.build-panel[open] summary::before { content: '– '; }
.build-body { padding-top: 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; }
.build-label { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #6f8bb0; margin-top: 0.4rem; }
.build-label .hval { color: #cfe0f2; letter-spacing: 0; }
.swatches { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.swatch { width: 1.5rem; height: 1.5rem; border-radius: 3px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch.on { border-color: #f0f5fb; box-shadow: 0 0 0 1px rgba(12,35,64,0.6); }
.build-style, .build-name, .agent-row select, .agent-row input { font: inherit; font-size: 0.86rem; background: rgba(12,35,64,0.6);
  border: 1px solid rgba(140,170,210,0.3); color: #e9f2fb; padding: 0.4rem 0.55rem; border-radius: 3px; }
.build-height { width: 100%; accent-color: #e3c67b; }
.build-go { margin-top: 0.7rem; font: inherit; font-size: 0.85rem; padding: 0.5rem; cursor: pointer;
  background: #e3c67b; color: #0c2340; border: none; border-radius: 3px; }
.build-go:hover { background: #edd7a0; }
.build-go:disabled { opacity: 0.5; cursor: default; }
.deed-dl { margin-top: 0.7rem; font: inherit; font-size: 0.85rem; padding: 0.5rem; cursor: pointer;
  background: transparent; color: #b9d3ec; border: 1px solid rgba(140,170,210,0.4); border-radius: 3px; }
.deed-dl:hover { border-color: #b9d3ec; color: #e9f2fb; }

/* plot agent */
.agent-readonly { margin-top: 0.9rem; border-top: 1px solid rgba(140,170,210,0.14); padding-top: 0.6rem; }
.side .agent-title { margin: 0 0 0.55rem; font-size: 0.85rem; color: #b9d3ec; }
.agent-body { padding-top: 0.7rem; }
.agent-bars { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 0.55rem; }
.agent-bar-head { display: flex; justify-content: space-between; gap: 0.7rem; color: #b9d3ec;
  font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.agent-bar-head span:last-child { color: #6f8bb0; text-align: right; }
.agent-track { position: relative; height: 3px; background: rgba(140,170,210,0.14); }
.agent-fill { display: block; height: 100%; background: #4d84c3; }
.agent-target { position: absolute; top: -2px; width: 1px; height: 7px; background: #e3c67b; }
.agent-row { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) auto;
  gap: 0.35rem; margin-top: 0.55rem; }
.agent-row select, .agent-row input { min-width: 0; width: 100%; }
.side .agent-row button { margin: 0; padding: 0.4rem 0.55rem; font-size: 0.78rem; white-space: nowrap; }
.agent-strategy-row { grid-template-columns: minmax(0, 1fr) auto; }
.side .agent-rebalance { margin-top: 0.55rem; padding: 0.4rem 0.55rem; font-size: 0.78rem; }
