@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --cz-lime: #b8e62e;
  --cz-lime-dim: #9bc424;
  --cz-lime-glow: rgba(184, 230, 46, 0.35);
  --cz-orange: #c46b3a;
  --cz-orange-soft: rgba(196, 107, 58, 0.2);
  --cz-white: #f4f2ed;
  --cz-white-dim: #d8d4cc;
  --cz-dark: #12141a;
  --cz-panel: rgba(22, 24, 32, 0.88);
  --cz-panel-border: rgba(255, 255, 255, 0.08);
  --cz-glass: rgba(30, 32, 42, 0.72);
  --cz-muted: #8a8f9e;
  --cz-text: #eceae4;
  --cz-danger: #e85d5d;
  --cz-radius: 16px;
  --cz-radius-lg: 24px;
  --cz-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --cz-font: 'Outfit', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.coznak {
  margin: 0;
  min-height: 100vh;
  font-family: var(--cz-font);
  color: var(--cz-text);
  background: var(--cz-dark);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--cz-orange-soft), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(184, 230, 46, 0.06), transparent),
    linear-gradient(180deg, #0e1014 0%, var(--cz-dark) 40%, #0a0c10 100%);
}

body.coznak::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c46b3a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.cz-wrap {
  position: relative;
  z-index: 1;
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.cz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.cz-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.cz-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cz-white) 0%, #e8e4dc 100%);
  border: 2px solid var(--cz-orange);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--cz-orange);
  box-shadow: 0 0 24px var(--cz-lime-glow);
}

.cz-brand h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cz-brand span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cz-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cz-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cz-glass);
  border: 1px solid var(--cz-panel-border);
  color: var(--cz-white-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.cz-back:hover {
  color: var(--cz-lime);
  border-color: rgba(184, 230, 46, 0.4);
  background: rgba(184, 230, 46, 0.08);
}

/* Landing */
.cz-hero {
  text-align: center;
  padding: 48px 16px 56px;
  max-width: 720px;
  margin: 0 auto;
}

.cz-hero h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.cz-hero h2 em {
  font-style: normal;
  color: var(--cz-lime);
}

.cz-hero p {
  margin: 0;
  color: var(--cz-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cz-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .cz-choices {
    grid-template-columns: 1fr;
  }
}

.cz-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--cz-radius-lg);
  background: var(--cz-panel);
  border: 1px solid var(--cz-panel-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  box-shadow: var(--cz-shadow);
}

.cz-choice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cz-orange), var(--cz-lime));
  opacity: 0;
  transition: opacity 0.25s;
}

.cz-choice:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 230, 46, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 40px var(--cz-lime-glow);
}

.cz-choice:hover::before {
  opacity: 1;
}

.cz-choice-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cz-choice h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
}

.cz-choice p {
  margin: 0 0 20px;
  flex: 1;
  color: var(--cz-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cz-choice-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--cz-lime);
  color: #1a1c12;
  font-weight: 700;
  font-size: 0.9rem;
  width: fit-content;
}

.cz-choice--mare .cz-choice-cta {
  background: linear-gradient(135deg, var(--cz-white), #e0dcd4);
  color: var(--cz-dark);
}

/* Cards & panels */
.cz-card {
  background: var(--cz-panel);
  border: 1px solid var(--cz-panel-border);
  border-radius: var(--cz-radius);
  box-shadow: var(--cz-shadow);
  overflow: hidden;
}

.cz-card:has(select),
.cz-card:has(.cz-form-stack) {
  overflow: visible;
}

.cz-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--cz-panel-border);
  background: rgba(0, 0, 0, 0.2);
}

.cz-card-body {
  padding: 20px;
  overflow: visible;
}

.cz-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cz-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cz-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cz-input {
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--cz-panel-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--cz-text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cz-input:focus {
  border-color: var(--cz-lime);
  box-shadow: 0 0 0 3px var(--cz-lime-glow);
}

/* Select — înălțime fixă; height:auto deschide listbox parțial și blochează click-ul */
select.cz-input,
.cz-select {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 36px 0 14px;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: menulist;
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.35);
}

select.cz-input option,
.cz-select option {
  background: #1a1c24;
  color: var(--cz-text);
}

.cz-btn {
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  background: var(--cz-lime);
  color: #1a1c12;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}

.cz-btn:hover {
  filter: brightness(1.08);
}

.cz-btn--ghost {
  background: transparent;
  border: 1px solid var(--cz-panel-border);
  color: var(--cz-white-dim);
}

.cz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cz-badge--lime {
  background: rgba(184, 230, 46, 0.15);
  color: var(--cz-lime);
}

.cz-badge--orange {
  background: var(--cz-orange-soft);
  color: var(--cz-orange);
}

.cz-badge--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cz-muted);
}

.cz-badge--ok {
  background: rgba(72, 200, 120, 0.15);
  color: #5fd68a;
}

.cz-badge--warn {
  background: rgba(230, 180, 60, 0.15);
  color: #e8c04a;
}

.cz-summary {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.cz-summary--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cz-summary--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .cz-summary--4,
  .cz-summary--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .cz-summary--4,
  .cz-summary--3 {
    grid-template-columns: 1fr;
  }
}

.cz-stat {
  padding: 18px;
  border-radius: var(--cz-radius);
  background: var(--cz-panel);
  border: 1px solid var(--cz-panel-border);
}

.cz-stat-k {
  font-size: 0.75rem;
  color: var(--cz-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.cz-stat-v {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cz-lime);
}

.cz-stat-v--white {
  color: var(--cz-white);
}

/* Table — Mafia Mare */
.cz-table-wrap {
  overflow: auto;
}

.cz-table {
  width: 100%;
  min-width: 1680px;
  border-collapse: separate;
  border-spacing: 0;
}

.cz-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cz-muted);
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--cz-panel-border);
  white-space: nowrap;
}

.cz-table tbody td {
  padding: 8px 10px;
  text-align: center;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
}

.cz-table tbody tr:hover td {
  background: rgba(184, 230, 46, 0.04);
}

.cz-table td.name {
  text-align: left;
  font-weight: 700;
  color: var(--cz-white);
  min-width: 130px;
}

.cz-table .cell-input {
  width: 88px;
  height: 36px;
  padding: 0 8px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--cz-panel-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--cz-text);
  font-family: inherit;
  font-size: 0.8rem;
}

.cz-table .cell-input:focus {
  border-color: var(--cz-lime);
  outline: none;
}

.cz-table .cell-input:read-only {
  opacity: 0.85;
}

.cz-table td.score,
.cz-table td.final-pay {
  font-weight: 800;
  white-space: nowrap;
}

.cz-table td.final-pay {
  color: var(--cz-lime);
}

.cz-table td.computed {
  font-weight: 700;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.2);
}

.cz-table td.venit-meta {
  color: var(--cz-orange);
}

.cz-table td.venit-alt {
  color: var(--cz-white-dim);
}

.cz-table td.frig-echiv {
  font-size: 0.75rem;
  color: var(--cz-muted);
  white-space: nowrap;
}

.cz-table thead th.col-group-meta {
  background: rgba(196, 107, 58, 0.22);
  color: var(--cz-orange);
  border-bottom-color: rgba(196, 107, 58, 0.35);
}

.cz-table thead th.col-group-alt {
  background: rgba(184, 230, 46, 0.08);
  color: var(--cz-lime-dim);
}

.cz-table thead th.col-group-result {
  background: rgba(0, 0, 0, 0.55);
}

.cz-table thead tr.mm-subhead th {
  top: 46px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 8px 6px;
  background: rgba(0, 0, 0, 0.35);
}

.cz-table thead tr.mm-subhead th .th-unit {
  display: block;
  font-weight: 500;
  font-size: 0.6rem;
  color: var(--cz-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}

.cz-mm-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--cz-panel-border);
  background: rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
  .cz-mm-pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cz-mm-step {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--cz-panel-border);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.cz-mm-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cz-orange-soft);
  color: var(--cz-orange);
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cz-mm-step h4 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--cz-white);
}

.cz-mm-step p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--cz-muted);
  line-height: 1.4;
}

.cz-mm-step-val {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cz-lime);
}

.cz-mm-econ-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--cz-panel-border);
  font-size: 0.8rem;
  color: var(--cz-muted);
}

.cz-mm-econ-bar strong {
  color: var(--cz-white);
}

.cz-mm-econ-bar span {
  white-space: nowrap;
}

.cz-table tfoot td {
  padding: 14px 10px;
  font-weight: 800;
  background: rgba(196, 107, 58, 0.12);
  border-top: 1px solid var(--cz-orange);
  color: var(--cz-white);
}

.cz-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--cz-panel-border);
  font-size: 0.8rem;
  color: var(--cz-muted);
  flex-wrap: wrap;
}

.cz-note {
  padding: 14px 20px;
  font-size: 0.8rem;
  color: var(--cz-muted);
  border-top: 1px solid var(--cz-panel-border);
  background: rgba(0, 0, 0, 0.15);
}

.cz-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 800px) {
  .cz-top-grid {
    grid-template-columns: 1fr;
  }
}

.saved-flash {
  outline: 2px solid var(--cz-lime) !important;
  background: rgba(184, 230, 46, 0.12) !important;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.status-dot.on {
  background: var(--cz-lime);
  box-shadow: 0 0 8px var(--cz-lime);
}

.status-dot.off {
  background: #555;
}

.checkbox-wrap {
  display: flex;
  justify-content: center;
}

input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--cz-lime);
  cursor: pointer;
}

.logout-link {
  text-decoration: none;
}

.mini {
  font-size: 0.75rem;
  color: var(--cz-muted);
}

.page-title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 800;
}

.page-title span {
  color: var(--cz-lime);
}

/* Mafia Mică — member cards */
.cz-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.cz-member {
  padding: 20px;
  border-radius: var(--cz-radius);
  background: var(--cz-panel);
  border: 1px solid var(--cz-panel-border);
  transition: border-color 0.2s;
}

.cz-member.complete {
  border-color: rgba(184, 230, 46, 0.45);
  box-shadow: 0 0 30px var(--cz-lime-glow);
}

.cz-member-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cz-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cz-orange), #8a4528);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.cz-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cz-member-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.cz-member-grad {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--cz-muted);
}

.cz-progress-main {
  margin-bottom: 14px;
}

.cz-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 8px;
  color: var(--cz-muted);
}

.cz-progress-label strong {
  color: var(--cz-lime);
  font-weight: 800;
}

.cz-progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.cz-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.cz-progress-fill--low {
  background: linear-gradient(90deg, #a83232, #e85d5d);
  box-shadow: 0 0 12px rgba(232, 93, 93, 0.35);
}

.cz-progress-fill--mid {
  background: linear-gradient(90deg, #b8860b, #f0c040);
  box-shadow: 0 0 12px rgba(240, 192, 64, 0.35);
}

.cz-progress-fill--high {
  background: linear-gradient(90deg, var(--cz-lime-dim), var(--cz-lime));
  box-shadow: 0 0 16px var(--cz-lime-glow);
}

.cz-progress-pct--low { color: #e85d5d; }
.cz-progress-pct--mid { color: #f0c040; }
.cz-progress-pct--high { color: var(--cz-lime); }

.cz-progress-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.cz-progress-mini {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--cz-muted);
}

.cz-progress-mini span:last-child {
  color: var(--cz-white-dim);
  font-weight: 600;
}

.cz-obligations {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cz-panel-border);
}

.cz-obligations h4 {
  margin: 0 0 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cz-muted);
}

.cz-obl-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--cz-white-dim);
  line-height: 1.65;
}

.cz-obl-list li {
  padding: 4px 0;
  transition: color 0.2s;
}

.cz-obl-list li.cz-obl-done {
  color: #0a0c0f;
  background: var(--cz-lime);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 2px 0;
}

.cz-obl-list li.cz-obl-info {
  color: var(--cz-muted);
  font-size: 0.72rem;
  margin-top: 6px;
  list-style: none;
}

.cz-obl-check {
  margin-right: 6px;
}

.cz-obl-progress {
  color: var(--cz-muted);
  font-weight: 500;
  margin-left: 4px;
}

.cz-obl-list li.cz-obl-done .cz-obl-progress {
  color: rgba(10, 12, 15, 0.65);
}

.cz-btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
  margin-top: 10px;
}

.cz-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: var(--cz-radius);
  background: rgba(196, 107, 58, 0.12);
  border: 1px solid rgba(196, 107, 58, 0.35);
  font-size: 0.85rem;
  color: var(--cz-white-dim);
  line-height: 1.5;
}

.cz-info-banner code {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
}

.cz-footer {
  margin-top: 48px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--cz-muted);
}

/* ——— Mafia Mare · layout pagină ——— */
.page-mafia-mare .cz-wrap {
  max-width: 100%;
  padding: 12px 16px 40px;
}

.page-mafia-mare .cz-nav {
  margin-bottom: 16px;
}

.cz-mm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.page-mafia-mare .page-title {
  margin: 0;
  flex: 1 1 240px;
}

.cz-mm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 14px;
  border-radius: var(--cz-radius);
  background: var(--cz-panel);
  border: 1px solid var(--cz-panel-border);
}

.cz-mm-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cz-mm-toolbar-pool {
  padding-left: 16px;
  border-left: 1px solid var(--cz-panel-border);
}

.cz-input--sm {
  height: 36px;
  padding: 0 10px;
  font-size: 0.85rem;
}

.cz-input--pool {
  width: 140px;
}

.cz-btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.page-mafia-mare .cz-summary {
  margin-bottom: 16px;
}

.cz-mm-card {
  display: flex;
  flex-direction: column;
}

.cz-mm-help {
  border-bottom: 1px solid var(--cz-panel-border);
}

.cz-mm-help-toggle {
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cz-white-dim);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.cz-mm-help-toggle::-webkit-details-marker {
  display: none;
}

.cz-mm-help-toggle::before {
  content: '▸ ';
  color: var(--cz-lime);
}

.cz-mm-help[open] .cz-mm-help-toggle::before {
  content: '▾ ';
}

.cz-mm-help-body {
  border-top: 1px solid var(--cz-panel-border);
}

.cz-mm-scroll-hint {
  margin: 0;
  padding: 8px 16px;
  font-size: 0.7rem;
  color: var(--cz-muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--cz-panel-border);
}

.cz-mm-table-wrap {
  max-height: min(68vh, 780px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.cz-mm-table {
  min-width: 1520px;
}

.cz-mm-table .cell-input {
  width: 72px;
  height: 32px;
  font-size: 0.75rem;
  padding: 0 4px;
}

.cz-mm-table td.computed {
  font-size: 0.75rem;
  padding: 6px 8px;
}

.cz-mm-table td.score,
.cz-mm-table td.final-pay {
  font-size: 0.82rem;
}

.cz-mm-table .col-sticky-left {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #161820;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.35);
}

.cz-mm-table thead .col-sticky-left {
  z-index: 6;
  background: #12141a;
}

.cz-mm-table thead .col-sticky-left.name-col {
  min-width: 100px;
}

.cz-mm-table td.name {
  min-width: 100px;
  max-width: 120px;
  font-size: 0.78rem;
}

.cz-mm-table .col-sticky-right {
  position: sticky;
  z-index: 4;
  background: #161820;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.35);
}

.cz-mm-table thead .col-sticky-right {
  z-index: 6;
  background: #12141a;
}

.cz-mm-table .col-score {
  right: 108px;
  min-width: 96px;
}

.cz-mm-table .col-pay {
  right: 0;
  min-width: 108px;
}

.cz-mm-table tbody tr:hover .col-sticky-left,
.cz-mm-table tbody tr:hover .col-sticky-right {
  background: #1a1e14;
}

.cz-mm-table tfoot .col-sticky-left,
.cz-mm-table tfoot .col-sticky-right {
  background: rgba(196, 107, 58, 0.22);
}

.cz-mm-table thead tr.mm-subhead th {
  top: 42px;
}

@media (max-width: 720px) {
  .cz-mm-toolbar-pool {
    padding-left: 0;
    border-left: none;
    width: 100%;
  }

  .cz-mm-pipeline {
    grid-template-columns: 1fr;
  }

  .cz-mm-econ-bar span {
    white-space: normal;
  }
}
