/* Top-bar reports (ui/yieldReport.js). */
.yield-report {
  --yc: var(--gold-bright);
  position: fixed; z-index: 28; width: 450px; max-width: calc(100vw - 16px);
  max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
  overflow-y: auto; overscroll-behavior: contain; padding: 0 0 12px; outline: none;
  border: 1px solid var(--gold); border-top: 3px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,235,190,.07),
      0 14px 34px rgba(0,0,0,.6);
}
.yr-head {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,235,190,.07), transparent);
}
.yr-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--yc), transparent 70%); opacity: .7;
}
.yr-ic {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  flex: none; background: radial-gradient(circle at 50% 35%, #2a3c52, #121b26);
  border: 2px solid var(--gold); box-shadow: 0 0 0 1px #120d06, inset 0 0 6px rgba(0,0,0,.6);
}
.yr-ic svg, .yr-ic .emoji { filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.yr-titles { flex: 1; min-width: 0; }
.yr-kind { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.yr-head h2 {
  margin: 0; font: normal 21px var(--serif); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-bright); line-height: 1.15;
}
.yr-close { flex: none; align-self: flex-start; }
.yr-total {
  padding: 10px 16px 2px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.yr-total > b {
  font: bold 34px/1 var(--serif); letter-spacing: .02em; text-shadow: 0 2px 3px rgba(0,0,0,.6);
  font-variant-numeric: tabular-nums;
}
.yr-ctx {
  list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--ink); line-height: 1.5;
  flex: 1; min-width: 180px;
}
.yr-ctx li::before {
  content: "◆"; color: var(--gold); font-size: 8px; margin-right: 6px; vertical-align: 2px;
}
.yr-def { margin: 8px 16px 2px; font-size: 12px; line-height: 1.45; color: var(--ink-dim); }
.yr-src { margin: 2px 16px 0; font-size: 11px; color: var(--gold); font-style: italic; }
.yr-sec { padding: 10px 16px 0; }
.yr-sec h3 {
  margin: 4px 0 8px; font-family: var(--serif); font-weight: normal; font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 8px;
}
.yr-sec h3::after {
  content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent);
}
.yr-sec h4 {
  margin: 8px 0 4px; font: normal 10.5px var(--sans); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-dim);
}
.yr-note { margin: -4px 0 6px; font-size: 11px; color: var(--ink-dim); }
.yr-note:empty { display: none; }
.yr-bar {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 1px 7px; align-items: center;
  font-size: 12px; margin-bottom: 5px;
}
.yr-bar.noic { grid-template-columns: 1fr auto; }
.yr-bar.noic .yr-track { grid-column: 1 / 3; }
.yr-bic { display: inline-flex; color: var(--gold-bright); }
.yr-bl { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.yr-bl .muted { font-size: 11px; white-space: nowrap; }
.yr-bv { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.yr-bar.strong .yr-bl { color: var(--gold-bright); font-family: var(--serif); font-size: 13px; }
.yr-track {
  grid-column: 2 / 4; height: 5px; background: rgba(255,255,255,.07); border-radius: 3px;
  overflow: hidden;
}
.yr-track i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--yc) 70%, #000), var(--yc));
}
.yr-track i.good { background: #7fbf3f; }
.yr-track i.bad { background: #e0704f; }
.yr-more {
  margin: 2px 0 0 27px; padding: 2px 0; background: none; border: none; color: var(--gold-bright);
  font-size: 12px; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px;
}
.yr-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.yr-tabs, .yr-modes {
  display: inline-flex; border: 1px solid rgba(201,164,92,.5); border-radius: 4px; overflow: hidden;
  background: rgba(0,0,0,.25);
}
.yr-tabs button, .yr-modes button {
  background: none; border: none; padding: 4px 10px; font-size: 12px; cursor: pointer;
  color: var(--ink-dim); white-space: nowrap;
}
.yr-tabs button + button, .yr-modes button + button { border-left: 1px solid rgba(201,164,92,.35); }
.yr-tabs button {
  font-family: var(--serif); letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px;
}
.yr-tabs button:hover:not([disabled]), .yr-modes button:hover {
  color: var(--gold-bright); background: rgba(201,164,92,.12);
}
.yr-tabs button[aria-selected="true"], .yr-modes button[aria-pressed="true"] {
  color: var(--gold-bright); background: linear-gradient(180deg, #5a4a24, #3a2f15);
}
.yr-tabs button[disabled] { opacity: .4; cursor: default; }
.yr-list {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px;
}
.yr-row {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 2px 8px; align-items: center;
  width: 100%; text-align: left; cursor: pointer;
  padding: 5px 8px 6px; border-radius: 4px; background: rgba(0,0,0,.22);
  border: 1px solid rgba(201,164,92,.2); font-size: 13px;
}
.yr-row:hover, .yr-row:focus-visible {
  border-color: var(--gold); background: rgba(201,164,92,.12);
}
.yr-row .yr-track { height: 3px; }
.yr-rk {
  grid-row: 1 / 3; align-self: center; display: inline-grid; place-items: center; width: 20px;
  height: 20px; border-radius: 50%; font: bold 11px var(--serif); color: #1a1408;
  background: radial-gradient(circle at 50% 35%, var(--gold-bright), var(--gold));
}
.yr-nm {
  font-family: var(--serif); color: var(--gold-bright); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; min-width: 0;
}
.yr-nm .muted { font-family: var(--sans); font-size: 11px; }
.yr-v { font-variant-numeric: tabular-nums; font-weight: 600; }
.yr-empty { font-size: 12px; }
.yr-foot {
  padding: 12px 16px 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
}
.yr-foot .yr-note { margin: 0; flex: 1; min-width: 0; }
#city-panel:focus { outline: none; }
