.laf-demo {
  --laf-green-950: #102a1d;
  --laf-green-900: #183c2a;
  --laf-green-800: #20533a;
  --laf-green-700: #2b7552;
  --laf-green-100: #e6f0e9;
  --laf-copper: #b8743e;
  --laf-copper-soft: #f5e9dd;
  --laf-gold: #c7983f;
  --laf-gold-soft: #f6efdd;
  --laf-blue: #426f8f;
  --laf-blue-soft: #e7eef3;
  --laf-cream: #f4f1e9;
  --laf-paper: #ffffff;
  --laf-ink: #17211b;
  --laf-muted: #66716a;
  --laf-border: #e1e6e2;
  --laf-border-dark: #cfd8d2;
  --laf-danger: #ae4b45;
  --laf-radius-lg: 18px;
  --laf-radius-md: 13px;
  --laf-shadow: 0 12px 34px rgba(25, 51, 37, 0.07);
  color: var(--laf-ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 1540px;
  isolation: isolate;
}

.laf-demo,
.laf-demo * {
  box-sizing: border-box;
}

.laf-demo [hidden] {
  display: none !important;
}

.laf-demo button,
.laf-demo select {
  font: inherit;
}

.laf-demo button {
  cursor: pointer;
}

.laf-demo svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.laf-demo h1,
.laf-demo h2,
.laf-demo h3,
.laf-demo h4,
.laf-demo p {
  margin: 0;
}

.laf-demo h1,
.laf-demo h2,
.laf-demo h3,
.laf-demo h4,
.laf-demo strong {
  color: var(--laf-ink);
}

.laf-visually-hidden {
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.laf-skip-link {
  background: var(--laf-green-950);
  color: #fff;
  left: 16px;
  padding: 10px 16px;
  position: fixed;
  top: -80px;
  z-index: 100000;
}

.laf-skip-link:focus {
  top: 16px;
}

.laf-app {
  background: #f7f8f6;
  border: 1px solid var(--laf-border);
  box-shadow: 0 22px 70px rgba(20, 45, 31, 0.1);
  min-height: 820px;
  overflow: hidden;
}

.laf-topbar {
  align-items: center;
  background: var(--laf-paper);
  border-bottom: 1px solid var(--laf-border);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(20px, 3vw, 46px);
}

.laf-brand,
.laf-top-actions,
.laf-period-control,
.laf-button,
.laf-role-tabs,
.laf-role-tab,
.laf-data-state,
.laf-heading-kicker,
.laf-profile-chip,
.laf-market-lead,
.laf-card-heading,
.laf-chart-summary,
.laf-opportunity-row,
.laf-event-legend,
.laf-footer {
  align-items: center;
  display: flex;
}

.laf-brand {
  gap: 10px;
  min-width: 0;
}

.laf-brand-mark {
  align-items: center;
  background: var(--laf-green-900);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.laf-brand-mark svg {
  height: 27px;
  width: 27px;
}

.laf-brand-mark svg path:first-child {
  fill: rgba(255, 255, 255, 0.08);
}

.laf-brand-word {
  color: var(--laf-green-950);
  font-size: 1.12rem;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.laf-demo-pill {
  background: var(--laf-copper-soft);
  border-radius: 999px;
  color: #87532d;
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0.055em;
  margin-left: 4px;
  padding: 5px 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.laf-top-actions {
  gap: 9px;
  justify-content: flex-end;
}

.laf-period-control {
  background: #f8faf8;
  border: 1px solid var(--laf-border);
  border-radius: 10px;
  color: var(--laf-muted);
  gap: 7px;
  min-height: 42px;
  padding: 0 10px;
}

.laf-period-control svg,
.laf-button svg {
  height: 18px;
  width: 18px;
}

.laf-period-control select {
  appearance: none;
  background: linear-gradient(45deg, transparent 50%, var(--laf-muted) 50%) calc(100% - 4px) 51% / 5px 5px no-repeat,
    linear-gradient(135deg, var(--laf-muted) 50%, transparent 50%) 100% 51% / 5px 5px no-repeat;
  border: 0;
  color: var(--laf-ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  outline: 0;
  padding: 0 17px 0 0;
}

.laf-button {
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 720;
  gap: 7px;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.laf-button:hover,
.laf-outline-button:hover {
  transform: translateY(-1px);
}

.laf-button-primary {
  background: var(--laf-green-900);
  box-shadow: 0 6px 16px rgba(24, 60, 42, 0.17);
  color: #fff;
}

.laf-button-primary:hover {
  background: var(--laf-green-800);
  color: #fff;
}

.laf-button-secondary {
  background: var(--laf-paper);
  border-color: var(--laf-border);
  color: var(--laf-ink);
}

.laf-button-secondary:hover {
  border-color: var(--laf-border-dark);
  color: var(--laf-green-800);
}

.laf-context-bar {
  align-items: flex-end;
  background: var(--laf-green-950);
  background-image: radial-gradient(circle at 86% -10%, rgba(196, 134, 73, 0.2), transparent 34%),
    linear-gradient(115deg, rgba(255,255,255,.02), transparent 46%);
  color: #fff;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  min-height: 172px;
  padding: 31px clamp(20px, 4vw, 64px) 34px;
}

.laf-context-bar h1 {
  color: #fff;
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  font-weight: 690;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 760px;
}

.laf-eyebrow,
.laf-card-kicker {
  color: var(--laf-copper);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 7px !important;
  text-transform: uppercase;
}

.laf-data-state {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 0.77rem;
  gap: 8px;
  padding: 7px 9px 7px 12px;
  white-space: nowrap;
}

.laf-live-dot {
  background: #8bc09a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(139, 192, 154, 0.12);
  height: 7px;
  width: 7px;
}

.laf-data-state.is-connected .laf-live-dot {
  background: #8ed1a0;
  box-shadow: 0 0 0 4px rgba(142, 209, 160, 0.14);
}

.laf-data-state.is-error .laf-live-dot {
  background: #e7a19a;
  box-shadow: 0 0 0 4px rgba(231, 161, 154, 0.14);
}

.laf-info-trigger {
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-family: Georgia, serif !important;
  font-size: 0.68rem !important;
  height: 20px;
  justify-content: center;
  padding: 0;
  width: 20px;
}

.laf-role-nav {
  align-items: center;
  background: var(--laf-paper);
  border-bottom: 1px solid var(--laf-border);
  display: flex;
  gap: 20px;
  min-height: 67px;
  padding: 9px clamp(20px, 4vw, 64px);
}

.laf-role-label {
  color: var(--laf-muted);
  font-size: 0.78rem;
  font-weight: 620;
  white-space: nowrap;
}

.laf-role-tabs {
  background: #f3f5f3;
  border-radius: 11px;
  gap: 3px;
  padding: 4px;
}

.laf-role-tab {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--laf-muted);
  font-size: 0.79rem;
  font-weight: 680;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.laf-role-tab svg {
  height: 17px;
  width: 17px;
}

.laf-role-tab.is-active {
  background: var(--laf-paper);
  box-shadow: 0 2px 8px rgba(25, 47, 34, 0.08);
  color: var(--laf-green-800);
}

.laf-main {
  padding: 33px clamp(20px, 4vw, 64px) 54px;
}

.laf-role-panel {
  animation: laf-panel-in 260ms ease both;
}

@keyframes laf-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.laf-panel-heading {
  align-items: flex-end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.laf-panel-heading h2 {
  color: var(--laf-ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 720;
  letter-spacing: -0.032em;
  line-height: 1.2;
  margin: 4px 0 6px;
}

.laf-panel-heading p {
  color: var(--laf-muted);
  font-size: 0.87rem;
}

.laf-heading-kicker {
  color: var(--laf-green-700);
  font-size: 0.68rem;
  font-weight: 790;
  gap: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.laf-verified {
  align-items: center;
  background: var(--laf-green-700);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.58rem;
  height: 15px;
  justify-content: center;
  width: 15px;
}

.laf-profile-chip {
  background: var(--laf-paper);
  border: 1px solid var(--laf-border);
  border-radius: 13px;
  flex: 0 0 auto;
  gap: 10px;
  padding: 8px 12px 8px 8px;
}

.laf-profile-chip > span:last-child {
  display: grid;
  line-height: 1.25;
}

.laf-profile-chip strong {
  font-size: 0.78rem;
}

.laf-profile-chip small {
  color: var(--laf-muted);
  font-size: 0.67rem;
  margin-top: 3px;
}

.laf-avatar {
  align-items: center;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 780;
  height: 38px;
  justify-content: center;
  letter-spacing: 0.03em;
  width: 38px;
}

.laf-avatar-farm { background: linear-gradient(145deg, #3d845e, #1d4d35); }
.laf-avatar-buyer { background: linear-gradient(145deg, #4a627a, #21394d); }
.laf-avatar-admin { background: linear-gradient(145deg, #bc804b, #774326); }

.laf-metric-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 17px;
}

.laf-metric-card {
  align-items: center;
  background: var(--laf-paper);
  border: 1px solid var(--laf-border);
  border-radius: var(--laf-radius-md);
  display: flex;
  gap: 13px;
  min-height: 118px;
  padding: 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.laf-metric-card:hover {
  border-color: var(--laf-border-dark);
  box-shadow: var(--laf-shadow);
  transform: translateY(-2px);
}

.laf-metric-card.is-updated {
  animation: laf-metric-pulse 700ms ease;
}

@keyframes laf-metric-pulse {
  0%, 100% { box-shadow: none; }
  45% { box-shadow: 0 0 0 5px rgba(43, 117, 82, 0.15); }
}

.laf-metric-icon {
  align-items: center;
  border-radius: 11px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.laf-metric-icon svg {
  height: 21px;
  width: 21px;
}

.laf-icon-green { background: var(--laf-green-100); color: var(--laf-green-700); }
.laf-icon-copper { background: var(--laf-copper-soft); color: var(--laf-copper); }
.laf-icon-gold { background: var(--laf-gold-soft); color: var(--laf-gold); }
.laf-icon-blue { background: var(--laf-blue-soft); color: var(--laf-blue); }

.laf-metric-copy {
  display: grid;
  min-width: 0;
}

.laf-metric-copy > span {
  color: var(--laf-muted);
  font-size: 0.72rem;
  font-weight: 620;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.laf-metric-number {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-variant-numeric: tabular-nums;
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin: 4px 0 1px;
}

.laf-metric-copy small,
.laf-card-note {
  color: var(--laf-muted);
  font-size: 0.64rem;
}

.is-positive {
  color: var(--laf-green-700) !important;
}

.laf-layout {
  display: grid;
  gap: 17px;
  margin-top: 17px;
}

.laf-layout-wide { grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.82fr); }
.laf-layout-table { grid-template-columns: minmax(0, 1.48fr) minmax(315px, 0.72fr); }
.laf-layout-opportunities { grid-template-columns: minmax(0, 1.5fr) minmax(315px, .7fr); }
.laf-layout-admin { grid-template-columns: minmax(0, 1.42fr) minmax(315px, .78fr); }

.laf-card {
  background: var(--laf-paper);
  border: 1px solid var(--laf-border);
  border-radius: var(--laf-radius-lg);
  box-shadow: 0 1px 0 rgba(25, 49, 35, 0.02);
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
}

.laf-card-heading {
  align-items: flex-start;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.laf-card-heading h3 {
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.laf-card-heading p:not(.laf-card-kicker) {
  color: var(--laf-muted);
  font-size: 0.74rem;
  margin-top: 5px;
}

.laf-card-note {
  background: #f6f8f6;
  border-radius: 999px;
  padding: 5px 9px;
  white-space: nowrap;
}

.laf-chart-summary {
  gap: 8px;
  margin-bottom: 3px;
}

.laf-chart-summary strong {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.laf-chart-summary span {
  color: var(--laf-muted);
  font-size: 0.7rem;
}

.laf-chart-summary small {
  background: var(--laf-green-100);
  border-radius: 999px;
  font-size: 0.63rem;
  margin-left: auto;
  padding: 4px 7px;
}

.laf-line-chart {
  margin-top: 4px;
}

.laf-line-chart > svg {
  height: 216px;
  overflow: visible;
  width: 100%;
}

.laf-chart-grid line {
  stroke: #e7ebe8;
  stroke-dasharray: 2 5;
  stroke-width: 1;
}

.laf-chart-area {
  stroke: none;
}

.laf-chart-line {
  fill: none;
  stroke: var(--laf-green-700);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.laf-chart-line-copper {
  stroke: var(--laf-copper);
}

.laf-chart-points circle {
  fill: #fff;
  stroke: var(--laf-green-700);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.laf-chart-labels {
  color: #89918c;
  display: flex;
  font-size: 0.62rem;
  justify-content: space-between;
  padding: 0 2px 0 33px;
}

.laf-market-lead {
  background: linear-gradient(115deg, #f7f9f7, #fcfaf7);
  border: 1px solid #edf0ed;
  border-radius: 13px;
  gap: 13px;
  margin-bottom: 18px;
  padding: 12px;
}

.laf-donut {
  align-items: center;
  background: conic-gradient(var(--laf-green-700) calc(var(--value) * 1%), #dfe7e2 0);
  border-radius: 50%;
  display: flex;
  height: 58px;
  justify-content: center;
  position: relative;
  width: 58px;
}

.laf-donut::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  inset: 7px;
  position: absolute;
}

.laf-donut span {
  color: var(--laf-green-900);
  font-size: 0.66rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.laf-market-lead > div:last-child {
  display: grid;
  min-width: 0;
}

.laf-market-lead small,
.laf-market-lead span {
  color: var(--laf-muted);
  font-size: 0.61rem;
}

.laf-market-lead strong {
  font-size: 0.85rem;
  margin: 2px 0;
}

.laf-bars {
  display: grid;
  gap: 13px;
}

.laf-bar-row {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(108px, .9fr) 1fr 32px;
}

.laf-bar-row > span {
  color: var(--laf-muted);
  font-size: 0.67rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.laf-bar-row i {
  background: #edf2ee;
  border-radius: 4px;
  color: var(--laf-green-800);
  display: inline-flex;
  font-size: 0.49rem;
  font-weight: 800;
  font-style: normal;
  height: 16px;
  justify-content: center;
  margin-right: 5px;
  vertical-align: middle;
  width: 22px;
}

.laf-bar-row > div,
.laf-inline-bar {
  background: #edf0ed;
  border-radius: 99px;
  display: block;
  height: 6px;
  overflow: hidden;
}

.laf-bar-row b,
.laf-inline-bar i {
  background: linear-gradient(90deg, var(--laf-green-700), #75a286);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.laf-bar-row strong {
  font-size: 0.68rem;
  text-align: right;
}

.laf-text-button {
  background: transparent;
  border: 0;
  color: var(--laf-green-700);
  font-size: 0.7rem !important;
  font-weight: 730;
  padding: 3px 0;
  white-space: nowrap;
}

.laf-text-button span {
  margin-left: 4px;
}

.laf-table-card {
  overflow: hidden;
}

.laf-table-wrap {
  overflow-x: auto;
}

.laf-table-wrap table {
  border: 0;
  border-collapse: collapse;
  margin: 0;
  min-width: 620px;
  table-layout: auto;
  width: 100%;
}

.laf-table-wrap th,
.laf-table-wrap td {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf0ed;
  color: var(--laf-muted);
  font-size: 0.69rem;
  padding: 11px 8px;
  text-align: left;
  vertical-align: middle;
}

.laf-table-wrap th {
  color: #89928c;
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  padding-top: 2px;
  text-transform: uppercase;
}

.laf-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.laf-table-wrap td:first-child {
  align-items: center;
  color: var(--laf-ink);
  display: flex;
  gap: 9px;
}

.laf-table-wrap td:first-child > span:last-child {
  display: grid;
}

.laf-table-wrap td strong {
  font-size: 0.73rem;
}

.laf-table-wrap td small {
  color: #8a938d;
  font-size: 0.6rem;
  margin-top: 2px;
}

.laf-table-wrap em {
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 760;
}

.laf-coffee-dot {
  border: 3px solid rgba(255,255,255,.7);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--laf-border);
  flex: 0 0 auto;
  height: 25px;
  width: 25px;
}

.laf-coffee-red { background: radial-gradient(circle at 35% 35%, #cb8a6a, #713627); }
.laf-coffee-gold { background: radial-gradient(circle at 35% 35%, #d8b16c, #806328); }
.laf-coffee-green { background: radial-gradient(circle at 35% 35%, #7b9a64, #3a5332); }

.laf-sparkline {
  align-items: flex-end;
  display: inline-flex;
  gap: 2px;
  height: 22px;
  margin-right: 7px;
  vertical-align: middle;
}

.laf-sparkline i {
  background: #89ad96;
  border-radius: 2px 2px 0 0;
  display: block;
  width: 3px;
}

.laf-activity-card {
  display: flex;
  flex-direction: column;
}

.laf-notification-count {
  align-items: center;
  background: var(--laf-copper-soft);
  border-radius: 999px;
  color: #8b5731;
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 800;
  height: 25px;
  justify-content: center;
  min-width: 25px;
  padding: 0 7px;
}

.laf-activity-list {
  display: grid;
}

.laf-activity-item {
  align-items: flex-start;
  border-bottom: 1px solid #edf0ed;
  display: flex;
  gap: 10px;
  padding: 12px 0;
}

.laf-activity-item:first-child { padding-top: 1px; }
.laf-activity-item:last-child { border-bottom: 0; padding-bottom: 0; }

.laf-activity-icon,
.laf-event-option-icon {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 800;
  height: 31px;
  justify-content: center;
  width: 31px;
}

.laf-activity-item > div {
  display: grid;
  min-width: 0;
}

.laf-activity-item strong {
  font-size: 0.7rem;
  line-height: 1.25;
}

.laf-activity-item p {
  color: var(--laf-muted);
  font-size: 0.64rem;
  line-height: 1.35;
  margin: 3px 0 4px;
}

.laf-activity-item small {
  color: #99a19c;
  font-size: 0.58rem;
}

.laf-recommendations {
  margin-top: 17px;
}

.laf-match-total {
  background: var(--laf-green-100);
  border-radius: 999px;
  color: var(--laf-green-700);
  font-size: 0.67rem;
  font-weight: 750;
  padding: 6px 10px;
  white-space: nowrap;
}

.laf-recommendation-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.laf-match-card {
  border: 1px solid var(--laf-border);
  border-radius: 13px;
  min-width: 0;
  padding: 15px;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.laf-match-card:hover {
  border-color: #bdcbc2;
  box-shadow: 0 11px 25px rgba(25, 49, 35, 0.07);
  transform: translateY(-2px);
}

.laf-match-top {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.laf-company-logo {
  align-items: center;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  letter-spacing: 0.03em;
  width: 36px;
}

.laf-logo-navy { background: #2c485d; }
.laf-logo-rust { background: #9a5736; }
.laf-logo-green { background: #3f7558; }

.laf-match-score {
  display: grid;
  text-align: right;
}

.laf-match-score strong {
  color: var(--laf-green-700);
  font-size: 0.85rem;
}

.laf-match-score small {
  color: var(--laf-muted);
  font-size: 0.55rem;
}

.laf-match-card h4 {
  font-size: 0.83rem;
  font-weight: 720;
  margin-top: 12px;
}

.laf-match-card > p {
  color: var(--laf-muted);
  font-size: 0.64rem;
  margin: 3px 0 10px;
}

.laf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 24px;
}

.laf-tags span {
  background: #f4f6f4;
  border-radius: 999px;
  color: #66716a;
  font-size: 0.56rem;
  padding: 4px 7px;
}

.laf-outline-button {
  background: transparent;
  border: 1px solid var(--laf-border-dark);
  border-radius: 8px;
  color: var(--laf-green-800);
  font-size: 0.66rem !important;
  font-weight: 740;
  margin-top: 13px;
  min-height: 34px;
  padding: 0 11px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  width: 100%;
}

.laf-outline-button:hover {
  background: var(--laf-green-100);
  border-color: #aec5b5;
}

.laf-opportunity-card {
  min-height: 430px;
}

.laf-pipeline {
  background: #f7f9f7;
  border: 1px solid #edf0ed;
  border-radius: 13px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 20px;
  padding: 14px 12px;
}

.laf-pipeline > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  position: relative;
  text-align: center;
}

.laf-pipeline > div::after {
  background: #d9e1dc;
  content: "";
  height: 1px;
  position: absolute;
  right: -13px;
  top: 10px;
  width: 18px;
}

.laf-pipeline > div:last-child::after { display: none; }

.laf-pipeline span {
  background: var(--laf-green-700);
  border-radius: 99px;
  height: 5px;
  justify-self: center;
  opacity: calc(.45 + (var(--pipeline) / 200));
  width: var(--pipeline);
}

.laf-pipeline strong { font-size: 0.86rem; }
.laf-pipeline small { color: var(--laf-muted); font-size: 0.55rem; }

.laf-opportunity-list {
  display: grid;
}

.laf-opportunity-row {
  border-bottom: 1px solid #edf0ed;
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(140px, 1fr) auto 48px;
  padding: 12px 0;
}

.laf-opportunity-row:last-child { border-bottom: 0; }

.laf-opportunity-row > div {
  display: grid;
}

.laf-opportunity-row > div strong { font-size: 0.71rem; }
.laf-opportunity-row > div small { color: var(--laf-muted); font-size: 0.61rem; }
.laf-opportunity-row time { color: #919a94; font-size: 0.6rem; text-align: right; }

.laf-status {
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 730;
  padding: 4px 7px;
  white-space: nowrap;
}

.laf-status-sample { background: var(--laf-gold-soft); color: #896a27; }
.laf-status-meeting { background: var(--laf-blue-soft); color: #3d6784; }
.laf-status-contact { background: var(--laf-green-100); color: var(--laf-green-700); }

.laf-coffee-photo {
  align-items: center;
  background-color: #5a6e59;
  background-image: radial-gradient(circle at 68% 28%, rgba(255,255,255,.22) 0 2px, transparent 3px),
    radial-gradient(circle at 32% 63%, rgba(255,255,255,.12) 0 3px, transparent 4px),
    linear-gradient(145deg, rgba(18,49,31,.18), rgba(12,31,20,.72));
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 88px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.laf-coffee-photo::before,
.laf-coffee-photo::after {
  border: 9px solid rgba(255,255,255,.08);
  border-radius: 52% 48% 60% 40%;
  content: "";
  height: 70px;
  position: absolute;
  transform: rotate(32deg);
  width: 35px;
}

.laf-coffee-photo::before { left: 24px; top: 20px; }
.laf-coffee-photo::after { right: 28px; top: -16px; transform: rotate(-20deg); }
.laf-photo-two { background-color: #7c5c3d; }
.laf-photo-three { background-color: #4a6470; }
.laf-coffee-photo span { font-size: 1.25rem; font-weight: 760; line-height: 1; position: relative; z-index: 1; }
.laf-coffee-photo small { color: rgba(255,255,255,.78); font-size: 0.56rem; letter-spacing: .12em; margin-top: 3px; position: relative; z-index: 1; }
.laf-match-floating { background: #fff; border: 1px solid var(--laf-border); border-radius: 999px; padding: 4px 7px; position: absolute; right: 23px; top: 83px; }

.laf-admin-chart-grid {
  display: grid;
  gap: 16px;
}

.laf-admin-line > svg { height: 205px; }

.laf-event-legend {
  border-top: 1px solid #edf0ed;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 15px;
}

.laf-event-legend > span {
  display: grid;
  grid-template-columns: 8px auto;
}

.laf-event-legend i {
  border-radius: 50%;
  grid-row: 1 / span 2;
  height: 7px;
  margin-top: 5px;
  width: 7px;
}

.laf-legend-green { background: var(--laf-green-700); }
.laf-legend-copper { background: var(--laf-copper); }
.laf-legend-blue { background: var(--laf-blue); }
.laf-event-legend strong { font-size: 0.75rem; line-height: 1.2; }
.laf-event-legend small { color: var(--laf-muted); font-size: 0.58rem; }

.laf-funnel {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 3px 0 12px;
}

.laf-funnel > div {
  align-items: center;
  background: linear-gradient(90deg, #2f7654, #4b8d6d);
  border-radius: 5px;
  color: #fff;
  display: flex;
  height: 33px;
  justify-content: space-between;
  max-width: 100%;
  padding: 0 12px;
  width: var(--funnel);
}

.laf-funnel > div:nth-child(2) { opacity: .88; }
.laf-funnel > div:nth-child(3) { opacity: .76; }
.laf-funnel > div:nth-child(4) { opacity: .64; }
.laf-funnel > div:nth-child(5) { opacity: .52; }
.laf-funnel span { color: #fff; font-size: 0.69rem; font-weight: 780; }
.laf-funnel small { color: rgba(255,255,255,.88); font-size: 0.57rem; }

.laf-conversion-note {
  align-items: center;
  background: #f6f8f6;
  border-radius: 10px;
  display: flex;
  gap: 9px;
  padding: 10px;
}

.laf-conversion-note strong { color: var(--laf-green-700); font-size: .9rem; }
.laf-conversion-note span { color: var(--laf-muted); font-size: .59rem; line-height: 1.3; }
.laf-flag {
  align-items: center;
  background: #edf2ee;
  border-radius: 4px;
  color: var(--laf-green-800);
  display: inline-flex;
  font-size: .51rem;
  font-weight: 800;
  height: 19px;
  justify-content: center;
  margin-right: 7px;
  width: 25px;
}
.laf-inline-bar { display: inline-block; min-width: 72px; vertical-align: middle; width: 85%; }

.laf-footer {
  background: var(--laf-paper);
  border-top: 1px solid var(--laf-border);
  color: var(--laf-muted);
  font-size: 0.64rem;
  gap: 20px;
  justify-content: space-between;
  min-height: 64px;
  padding: 15px clamp(20px, 4vw, 64px);
}

.laf-footer strong { color: var(--laf-green-900); letter-spacing: .06em; }

.laf-modal {
  inset: 0;
  position: fixed;
  z-index: 999999;
}

.laf-modal-backdrop {
  animation: laf-fade-in 180ms ease both;
  background: rgba(10, 24, 16, 0.6);
  inset: 0;
  position: absolute;
}

.laf-modal-panel {
  animation: laf-modal-in 220ms ease both;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.24);
  left: 50%;
  max-height: calc(100vh - 40px);
  max-width: calc(100vw - 30px);
  overflow-y: auto;
  padding: 28px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 620px;
}

@keyframes laf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes laf-modal-in { from { opacity: 0; transform: translate(-50%, -47%); } to { opacity: 1; transform: translate(-50%, -50%); } }

.laf-modal-panel h2 {
  font-size: 1.38rem;
  letter-spacing: -.03em;
  margin-bottom: 7px;
}

.laf-modal-panel > p:not(.laf-card-kicker):not(.laf-modal-disclaimer) {
  color: var(--laf-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.laf-modal-close {
  align-items: center;
  background: #f3f5f3;
  border: 0;
  border-radius: 50%;
  color: var(--laf-muted);
  display: inline-flex;
  font-size: 1.25rem !important;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
}

.laf-demo-coffee-selector {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.laf-demo-coffee-selector > span {
  color: var(--laf-muted);
  font-size: 0.63rem;
  font-weight: 740;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.laf-demo-coffee-selector select {
  appearance: none;
  background-color: #f7f9f7;
  background-image: linear-gradient(45deg, transparent 50%, var(--laf-muted) 50%), linear-gradient(135deg, var(--laf-muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  border: 1px solid var(--laf-border);
  border-radius: 10px;
  color: var(--laf-ink);
  font-size: 0.75rem;
  font-weight: 680;
  min-height: 42px;
  padding: 0 36px 0 12px;
  width: 100%;
}

.laf-selected-coffee {
  align-items: center;
  background: linear-gradient(115deg, #173d2a, #244f38);
  border-radius: 12px;
  color: #fff;
  display: grid;
  gap: 11px;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  margin-top: 10px;
  padding: 11px 13px;
}

.laf-selected-coffee-score {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.laf-selected-coffee-score strong,
.laf-selected-coffee > div:nth-child(2) strong,
.laf-selected-match strong {
  color: #fff;
}

.laf-selected-coffee-score strong {
  font-size: 0.76rem;
  line-height: 1;
}

.laf-selected-coffee-score small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.46rem;
  letter-spacing: 0.09em;
}

.laf-selected-coffee > div:nth-child(2) {
  display: grid;
  min-width: 0;
}

.laf-selected-coffee > div:nth-child(2) strong {
  font-size: 0.74rem;
}

.laf-selected-coffee > div:nth-child(2) span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.57rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.laf-selected-match {
  display: grid;
  text-align: right;
}

.laf-selected-match strong {
  font-size: 0.79rem;
}

.laf-selected-match small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.5rem;
}

.laf-event-options {
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
}

.laf-event-options > button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--laf-border);
  border-radius: 11px;
  display: flex;
  gap: 10px;
  min-height: 72px;
  padding: 10px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.laf-event-options > button:hover {
  background: #f9faf9;
  border-color: #b9c9bf;
  transform: translateY(-1px);
}

.laf-event-options > button.is-complete {
  background: var(--laf-green-100);
  border-color: #b8cdbf;
}

.laf-event-options > button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.laf-event-options > button > span:last-child { display: grid; }
.laf-event-options strong { font-size: .7rem; }
.laf-event-options small { color: var(--laf-muted); font-size: .59rem; margin-top: 2px; }
.laf-modal-foot {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 15px;
}

.laf-modal-disclaimer {
  background: var(--laf-gold-soft);
  border-radius: 9px;
  color: #7a642f;
  flex: 1 1 auto;
  font-size: .6rem;
  margin: 0 !important;
  padding: 9px 11px;
}

.laf-reset-button {
  background: transparent;
  border: 0;
  color: var(--laf-muted);
  flex: 0 0 auto;
  font-size: 0.59rem !important;
  font-weight: 700;
  padding: 7px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.laf-modal-loading {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 3;
}

.laf-modal-loading span {
  animation: laf-spin 0.8s linear infinite;
  border: 3px solid #dce6df;
  border-radius: 50%;
  border-top-color: var(--laf-green-700);
  height: 30px;
  width: 30px;
}

.laf-modal-loading strong {
  font-size: 0.68rem;
}

@keyframes laf-spin {
  to { transform: rotate(360deg); }
}

.laf-toast {
  align-items: center;
  animation: laf-toast-in 220ms ease both;
  background: var(--laf-green-950);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  bottom: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  color: #fff;
  display: flex;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 15px;
  position: fixed;
  right: 22px;
  width: 330px;
  z-index: 1000000;
}

@keyframes laf-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.laf-toast-icon {
  align-items: center;
  background: #4a8a66;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .7rem;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.laf-toast > span:last-child { display: grid; }
.laf-toast strong { color: #fff; font-size: .72rem; }
.laf-toast small { color: rgba(255,255,255,.7); font-size: .61rem; margin-top: 1px; }

.laf-demo button:focus-visible,
.laf-demo select:focus-visible,
.laf-demo a:focus-visible {
  outline: 3px solid rgba(196, 134, 73, .45);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .laf-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .laf-layout-wide,
  .laf-layout-table,
  .laf-layout-opportunities,
  .laf-layout-admin { grid-template-columns: 1fr; }
  .laf-activity-card { min-height: auto; }
}

@media (max-width: 840px) {
  .laf-topbar { align-items: flex-start; flex-direction: column; }
  .laf-top-actions { justify-content: flex-start; width: 100%; }
  .laf-context-bar { align-items: flex-start; flex-direction: column; min-height: 190px; }
  .laf-role-nav { align-items: flex-start; flex-direction: column; gap: 7px; }
  .laf-role-tabs { width: 100%; }
  .laf-role-tab { flex: 1 1 0; justify-content: center; }
  .laf-panel-heading { align-items: flex-start; }
  .laf-recommendation-grid { grid-template-columns: 1fr; }
  .laf-match-card { padding: 17px; }
}

@media (max-width: 620px) {
  .laf-demo { font-size: 15px; }
  .laf-app { border-left: 0; border-right: 0; }
  .laf-brand { flex-wrap: wrap; }
  .laf-demo-pill { margin-left: 50px; margin-top: -10px; }
  .laf-top-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .laf-period-control { grid-column: 1 / -1; }
  .laf-period-control select { flex: 1; }
  .laf-context-bar { padding-bottom: 27px; padding-top: 27px; }
  .laf-data-state { align-self: flex-start; }
  .laf-role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .laf-role-tab { flex-direction: column; gap: 2px; min-height: 51px; padding: 4px 3px; }
  .laf-role-tab svg { height: 16px; width: 16px; }
  .laf-panel-heading { gap: 16px; }
  .laf-profile-chip { display: none; }
  .laf-metric-grid { grid-template-columns: 1fr; }
  .laf-metric-card { min-height: 100px; }
  .laf-card { border-radius: 14px; }
  .laf-line-chart > svg { height: 180px; }
  .laf-card-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .laf-chart-summary small { margin-left: 0; }
  .laf-pipeline { gap: 3px; padding-left: 6px; padding-right: 6px; }
  .laf-pipeline > div::after { display: none; }
  .laf-pipeline small { font-size: .48rem; }
  .laf-opportunity-row { align-items: start; grid-template-columns: 36px minmax(130px,1fr) auto; }
  .laf-opportunity-row time { display: none; }
  .laf-event-legend { grid-template-columns: 1fr; }
  .laf-footer { align-items: flex-start; flex-direction: column; }
  .laf-event-options { grid-template-columns: 1fr; }
  .laf-modal-panel { padding: 24px 20px; }
  .laf-selected-coffee { grid-template-columns: 42px minmax(0, 1fr); }
  .laf-selected-match { display: none; }
  .laf-modal-foot { align-items: stretch; flex-direction: column; }
  .laf-reset-button { align-self: flex-start; }
  .laf-toast { bottom: 16px; left: 16px; right: 16px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .laf-demo *,
  .laf-demo *::before,
  .laf-demo *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
