/* Business review page: GM bar, sections, charts, editors. */
.gmbar {
  background: var(--grey);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: end;
}
.gmbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #c9f2f8;
}
.gmbar select,
.gmbar input {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: #2b2a2c;
  min-width: 0;
  max-width: 100%;
}
.gmbar input[type="number"] {
  width: 130px;
}
.gmbar .ro {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  padding: 7px 0;
}
.gmbar .ro a {
  color: #c9f2f8;
}
.hiddencount {
  font-size: 13px;
  font-weight: 700;
  color: #fdaf9b;
}
.gmhint {
  width: 100%;
  font-size: 12px;
  color: #c9f2f8;
}
.snaps {
  width: 100%;
  display: grid;
  gap: 6px;
}
.snap {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: #c9f2f8;
}
.snap input {
  flex: 1;
  min-width: 220px;
  font-size: 12px;
}
.previewbar {
  background: var(--gm);
  border: 1px solid var(--gmline);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hero {
  margin-top: 22px;
  background: linear-gradient(135deg, var(--blue) 0%, #6fd6e4 55%, var(--tint) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 26px 24px;
  display: grid;
  gap: 14px;
}
.view-client .hero {
  margin-top: 0;
}
.hero .logo {
  font-weight: 900;
  font-size: 18px;
}
.hero .logo b {
  color: var(--orange);
}
.hero p {
  font-size: 17px;
  font-weight: 600;
}
.meta {
  font-size: 13px;
  font-weight: 700;
  color: #0b4e58;
}
.section {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.view-gm .section.has-notes {
  grid-template-columns: minmax(0, 1fr) 300px;
}
@media (max-width: 860px) {
  .view-gm .section.has-notes {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.toggle {
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.section.is-hidden .card {
  opacity: 0.45;
  border-style: dashed;
}
.hidden-tag {
  display: none;
  font-size: 11px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section.is-hidden .hidden-tag {
  display: inline;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.kpi {
  background: var(--tint);
  border-radius: 12px;
  padding: 14px;
}
.kpi .v {
  font-size: 30px;
  font-weight: 900;
}
.kpi .l {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.kpi .d {
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}
.up {
  color: var(--green);
}
.down {
  color: var(--orange);
}
.flat {
  color: var(--muted);
}
.cmpline {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.flag {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  background: var(--otint);
  border-radius: 10px;
  padding: 10px 12px;
}
.chart {
  margin-top: 16px;
  overflow-x: auto;
}
.chart svg {
  display: block;
  width: 100%;
  min-width: 600px;
  height: auto;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
}
.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}
.minis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.mini {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.mini {
  min-width: 0;
}
.mini .n,
.mini .g,
.ptab td,
.callout,
.kpi .l,
.edlist textarea {
  overflow-wrap: anywhere;
}
.mini .n {
  font-size: 13px;
  font-weight: 800;
}
.mini .g {
  font-size: 12px;
  color: var(--muted);
}
.mini .v {
  font-size: 26px;
  font-weight: 900;
}
.mini svg {
  width: 100%;
  height: 54px;
}
.months {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
@media (max-width: 620px) {
  .months {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.mo {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 110px;
}
.mo .m {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mo.sold {
  background: var(--otint);
  border-color: transparent;
}
.chip.sold {
  background: var(--orange);
  color: #fff;
}
.chip.cap {
  background: var(--tint);
  color: var(--fg);
}
.chip.soon {
  background: var(--orange);
  color: #fff;
}
.chip.feat {
  background: var(--grey);
  color: #fff;
}
.chip.auto {
  background: var(--gm);
  color: var(--yellow);
  border: 1px solid var(--gmline);
}
.mo .t {
  font-size: 12px;
  color: var(--muted);
}
table.ptab {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 14px;
}
.ptab th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.ptab td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.ptab td.r,
.ptab th.r {
  text-align: right;
}
.tablewrap {
  overflow-x: auto;
}
.chan-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--gmline);
  border-radius: 12px;
  background: var(--gm);
  font-size: 13px;
}
.chan-edit label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 700;
}
.chan-edit input[type="text"] {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--surface);
  color: var(--fg);
  width: 170px;
}
.callout {
  margin-top: 14px;
  background: var(--tint);
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
}
.source {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.close-list {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  max-width: 68ch;
}
.view-gm [data-ov]:hover {
  outline: 1px dashed var(--gmline);
  border-radius: 4px;
}
.ovreset {
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  border: 0;
  background: none;
  color: var(--yellow);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.hero .ovreset {
  color: #0b4e58;
}
.edlist {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.edlist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.edlist textarea,
.pnote {
  font: inherit;
  font-size: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--fg);
  resize: vertical;
}
.edlist .tools {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.edlist .tools button,
.addbtn {
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  border-radius: 8px;
  padding: 5px 9px;
  cursor: pointer;
}
.addbtn {
  margin-top: 10px;
  border-style: dashed;
}
.notes {
  background: var(--gm);
  border: 1px solid var(--gmline);
  border-radius: 14px;
  padding: 16px;
  font-size: 13px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.notes h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}
.notes ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}
.pnote {
  min-height: 70px;
  font-size: 13px;
}
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--gm);
  color: var(--yellow);
  border: 1px solid var(--gmline);
}
.cs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.cs-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  background: linear-gradient(160deg, var(--tint), var(--surface) 60%);
}
.cs-item .n {
  font-weight: 900;
  font-size: 15px;
}
.cs-item .g {
  font-size: 13px;
  color: var(--muted);
}
.range {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.range .rl {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}
.range .rl span {
  color: var(--muted);
  font-weight: 600;
}
.dual {
  position: relative;
  height: 28px;
}
.dual input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  height: 28px;
}
.dual input::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--blue);
  cursor: pointer;
}
.dual input::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--surface);
  cursor: pointer;
}
.dual .track {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
.dual .fill {
  position: absolute;
  top: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
}
.rsum {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  font-weight: 700;
}
.rsum b {
  font-size: 16px;
  font-weight: 900;
}
.rpre {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rpre button {
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
.footer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
