.lfl-change.up { color:#299767; }.lfl-change.down { color:#dc4747; }.lfl-change.flat { color:var(--muted); }.lfl-change.unavailable { color:var(--muted); }
.lfl-table-top { display:flex; justify-content:space-between; align-items:center; gap:12px; }.lfl-table-top h2 { margin:0 0 4px; }.lfl-table-top p,.lfl-method,.lfl-coverage { color:var(--muted); font-size:12px; line-height:1.5; }
.lfl-counts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:16px 0; }.lfl-counts>div { border:1px solid var(--line); background:var(--white); border-radius:15px; padding:12px; }.lfl-counts span { display:block; font-size:11px; color:var(--muted); }.lfl-counts strong { display:block; font-size:25px; margin-top:6px; }.lfl-counts .up strong { color:#299767; }.lfl-counts .down strong { color:#dc4747; }
.lfl-filters { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }.lfl-filters input { flex:1; min-width:150px; }.lfl-filters input,.lfl-filters select { color:var(--black); background:var(--white); border:1px solid var(--line); padding:11px; border-radius:12px; font:inherit; font-size:12px; }.lfl-filters button { font-size:12px; }
.lfl-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:18px; background:var(--white); }.lfl-table { border-collapse:collapse; width:100%; min-width:620px; font-size:12px; }.lfl-table th,.lfl-table td { text-align:left; padding:14px; border-bottom:1px solid var(--line); }.lfl-table thead { background:var(--soft); }.lfl-table tbody th { min-width:210px; position:sticky; left:0; z-index:1; background:var(--white); }.lfl-table tbody td { min-width:120px; }.lfl-table tbody button { color:inherit; background:none; border:0; padding:0; text-align:left; font:inherit; font-weight:700; cursor:pointer; }.lfl-table tr:hover th { background:var(--soft-yellow); }.lfl-table small { display:block; margin-top:5px; font-size:10px; }.lfl-table .up { background:rgba(48,174,113,.16); }.lfl-table .down { background:rgba(224,66,66,.16); }.lfl-table .flat { background:var(--soft-yellow); }.lfl-table .unavailable { color:var(--muted); background:var(--soft); }.lfl-table .lfl-change { font-size:16px; font-weight:700; }
@media(max-width:767px){.lfl-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.lfl-filters>input{flex-basis:100%}.lfl-filters select{flex:1}}

.lfl-table-top>div{flex:1;min-width:0}.lfl-table-top>[data-lfl-back]{flex:0 0 auto;width:auto;white-space:nowrap}

/* Values follow their bars; the plot stays inside a horizontal scroll area. */
.daily-bar-label{position:absolute;left:50%;bottom:calc(var(--value-height) + 7px);transform:translateX(-50%);font-style:normal;white-space:nowrap;pointer-events:none;z-index:4}
.daily-figures-scroll{padding-top:22px;padding-bottom:3px}
.daily-figures-scroll>.daily-revenue-bars.has-value-labels{overflow:visible;min-width:max(100%,calc(var(--days)*30px + 44px))}
.has-value-labels>.daily-revenue-column{flex:1 1 0;min-width:0}
.has-value-labels .daily-bar-label{font-size:9px;font-weight:650;line-height:1.2;color:var(--black);background:var(--white);padding:1px 2px;border-radius:3px;font-variant-numeric:tabular-nums}
@media(max-width:767px){.daily-figures-scroll>.daily-revenue-bars.has-value-labels{min-width:max(100%,calc(var(--days)*32px + 44px))}}
/* Keep the money scale visible while the bars scroll on small screens. */
.revenue-value-frame{position:relative;--chart-height:260px;--label-space:22px}
.has-fixed-axis>.daily-figures-scroll{margin-left:44px;padding-top:var(--label-space)}
.has-fixed-axis .daily-revenue-bars{height:var(--chart-height);padding-left:0}
.has-fixed-axis .daily-revenue-plot{left:0}
.revenue-fixed-axis{position:absolute;left:0;top:calc(var(--label-space) + 6px);width:40px;height:calc(var(--chart-height) - 26px);pointer-events:none;color:var(--muted)}
.revenue-fixed-axis>span{position:absolute;right:2px;font-size:9px;margin-bottom:2px;white-space:nowrap}
.has-fixed-axis .daily-revenue-bars.has-value-labels{min-width:max(100%,calc(var(--days)*30px))}
@media(max-width:767px){.revenue-value-frame{--chart-height:200px}.has-fixed-axis .daily-revenue-bars.has-value-labels{min-width:max(100%,calc(var(--days)*32px))}}

.reputation-page-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.reputation-title-copy{flex:1;min-width:0}
#view-risks .reputation-page-title{flex-wrap:wrap}
#view-risks .reputation-title-copy{flex:1 1 180px;min-width:0}
#reputation-options-back{flex:0 0 auto;width:auto;max-width:100%;margin:0;align-self:flex-start;min-height:36px;padding:9px 14px;white-space:nowrap}

/* Forecast inside the finance card. */
.revenue-forecast {
  --forecast-positive: #22764f;
  --forecast-negative: #b13535;
  margin-top: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8f8f6;
  color: var(--black);
}
:root[data-theme="dark"] .revenue-forecast {
  --forecast-positive: #64d69a;
  --forecast-negative: #ff8585;
  background: var(--dark);
}
.revenue-forecast.forecast-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.forecast-loading::before {
  content: '';
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--line);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: forecast-spin .8s linear infinite;
}
@keyframes forecast-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .forecast-loading::before { animation: none; }
}
.forecast-heading, .forecast-legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.forecast-heading > strong, .forecast-factors small {
  font-size: 10.8px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--muted);
}
.forecast-heading > span {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--yellow);
  color: #111;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
}
.forecast-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 12px;
}
.forecast-main > div { display: grid; gap: 4px; min-width: 0; max-width: 100%; }
.forecast-main > div:first-child { flex: 1 1 200px; }
.forecast-main strong, .forecast-factors b {
  font-family: "Montserrat", ui-sans-serif, sans-serif;
  font-weight: 850;
  font-variant-numeric: normal;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.forecast-main strong { font-size: clamp(20px, 5vw, 24px); }
.forecast-main small, .forecast-legend, .forecast-method p, .revenue-forecast > p {
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.5;
}
.forecast-plan { text-align: right; }
.forecast-plan strong { font-size: 19px; }
.forecast-plan.up strong, .forecast-factors .lfl-change.up { color: var(--forecast-positive); }
.forecast-plan.down strong, .forecast-factors .lfl-change.down { color: var(--forecast-negative); }
.forecast-track {
  height: 8px;
  border-radius: 999px;
  background: var(--soft);
  background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--yellow) 32%, transparent) 4px 8px);
  overflow: hidden;
}
.forecast-track > span { display: block; height: 100%; background: var(--yellow); border-radius: inherit; }
.forecast-legend { margin-top: 5px; }
.forecast-factors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 12px;
  padding: 10px 0;
  border-block: 1px solid var(--line);
}
.forecast-factors > span { display: flex; flex-direction: column; justify-content: space-between; gap: 5px; }
.forecast-factors b { font-size: 13px; }
.forecast-method { margin-top: 8px; }
.forecast-method summary { color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; }
.forecast-method p { margin: 8px 0 0; }
.forecast-method a { color: inherit; text-decoration: underline; }
.forecast-attribution { font-size: 10px !important; }
@media (max-width: 480px) {
  .forecast-main > .forecast-plan { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; text-align: left; }
  .forecast-factors small { font-size: 9px; }
}
@media (max-width: 350px) {
  .forecast-factors { grid-template-columns: 1fr; }
  .forecast-factors > span { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
}

/* Monthly revenue in the coffee card. */
.financial-dynamics-shop {
  --monthly-neutral-bar: #d6d7d3;
  --monthly-up: #22764f;
  --monthly-down: #b13535;
  min-width: 0;
}
:root[data-theme="dark"] .financial-dynamics-shop {
  --monthly-neutral-bar: #797d85;
  --monthly-up: #64d69a;
  --monthly-down: #ff8585;
}
.financial-dynamics-shop .lfl-change.up { color: var(--monthly-up); }
.financial-dynamics-shop .lfl-change.down { color: var(--monthly-down); }
.monthly-history-summary, .monthly-history-insight {
  padding: 14px;
  border-radius: 15px;
  background: var(--soft);
}
.monthly-history-head, .monthly-history-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
}
.monthly-history-head { margin-bottom: 12px; font-size: 12px; font-weight: 750; }
.monthly-history-head small, .monthly-history-result > div:first-child > span, .monthly-history-delta small,
.monthly-history-factor > span:first-child, .monthly-history-basis, .monthly-history-insight small {
  font-size: 11px;
  color: var(--muted);
}
.monthly-history-result > div:first-child { min-width: 0; }
.monthly-history-result strong, .monthly-history-factor strong {
  display: block;
  margin-top: 2px;
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.monthly-history-result strong { font-size: clamp(22px, 6vw, 36px); }
.monthly-history-delta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; }
.monthly-history-delta .lfl-change { font-size: 12px; font-weight: 800; }
.monthly-history-factors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.monthly-history-factor strong { font-size: clamp(14px, 4vw, 18px); }
.monthly-history-factor .lfl-change { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 750; }

.monthly-history-figure { --monthly-height: clamp(136px, 31vw, 230px); margin: 17px 0 12px; }
.monthly-history-figure figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}
.monthly-history-chart { display: grid; grid-template-columns: 51px minmax(0, 1fr); }
.monthly-history-axis, .monthly-history-gridlines { position: relative; height: var(--monthly-height); }
.monthly-history-axis { margin-top: 9px; color: var(--muted); font-size: 10px; }
.monthly-history-axis span { position: absolute; right: 7px; bottom: var(--tick); transform: translateY(50%); white-space: nowrap; }
.monthly-history-scroll { min-width: 0; overflow-x: auto; padding: 9px 0 3px; }
.monthly-history-plot {
  --monthly-column: 96px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--month-count), minmax(0, 1fr));
  min-width: calc(var(--month-count) * var(--monthly-column));
}
.monthly-history-gridlines { position: absolute; inset: 0 0 auto; pointer-events: none; }
.monthly-history-gridlines i { position: absolute; bottom: var(--tick); inset-inline: 0; border-top: 1px solid var(--line); }
.monthly-history-month {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
  padding: 0 5px 3px;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  pointer-events: none;
}
.monthly-history-month:not(:disabled) :is(.monthly-history-bar, .monthly-history-caption) { pointer-events: auto; }
.monthly-history-month[aria-pressed="true"] { color: var(--black); font-weight: 850; }
.monthly-history-month:disabled { opacity: .65; cursor: default; }
.monthly-history-month:focus-visible, .monthly-history-comparison summary:focus-visible { outline: 2px solid var(--black); outline-offset: -2px; }
.monthly-history-track { position: relative; height: var(--monthly-height); width: min(74%, 76px); }
.monthly-history-bar {
  position: absolute;
  inset-inline: 0;
  bottom: var(--low);
  height: var(--size);
  min-height: 2px;
  border-radius: 8px 8px 2px 2px;
  background-color: var(--monthly-neutral-bar);
}
.monthly-history-month[aria-pressed="true"] .monthly-history-bar { background-color: var(--yellow); }
.monthly-history-month.is-partial .monthly-history-bar { background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(0,0,0,.14) 5px 8px); }
.monthly-history-missing { position: absolute; inset-inline: 16%; bottom: var(--zero); border-top: 1px dashed var(--muted); }
@media (hover: hover) { .monthly-history-month:not(:disabled):hover .monthly-history-bar { filter: brightness(.9); } }
.monthly-history-caption {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 3px;
  width: 100%;
  min-height: 44px;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.monthly-history-caption strong { color: var(--black); font-size: 10px; font-weight: 750; }
.monthly-history-amount { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.monthly-history-amount-compact { display: none; }
.monthly-history-caption .lfl-change { font-size: 10px; font-weight: 700; }

.monthly-history-insight h4 { margin: 0; font-size: 12px; }
.monthly-history-insight p { margin: 5px 0; font-size: 12px; line-height: 1.45; }
.monthly-history-comparisons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 8px; margin-top: 10px; }
.monthly-history-comparison { min-width: 0; border: 1px solid var(--line); border-radius: 12px; }
.monthly-history-comparison summary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 36px;
  padding: 9px 10px;
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}
.monthly-history-comparison summary::-webkit-details-marker { display: none; }
.monthly-history-comparison summary > span:first-child { margin-inline-end: auto; }
.monthly-history-comparison summary::after { content: '⌄'; color: var(--muted); }
.monthly-history-comparison[open] summary::after { transform: rotate(180deg); }
.monthly-history-basis { margin: 0; padding: 7px 10px; line-height: 1.45; border-top: 1px solid var(--line); }
.monthly-history-comparison ul { display: grid; gap: 8px; margin: 0; padding: 0 10px 10px; list-style: none; }
.monthly-history-comparison li { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; font-size: 11px; }
.monthly-history-comparison li small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
@media (max-width: 560px) {
  .monthly-history-figure { margin-top: 14px; }
  .monthly-history-chart { grid-template-columns: 44px minmax(0,1fr); }
  .monthly-history-comparisons { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .monthly-history-plot { --monthly-column: 72px; }
  .monthly-history-amount-full { display: none; }
  .monthly-history-amount-compact { display: inline; }
  .monthly-history-caption .monthly-history-amount { font-size: 11px; }
}
