:root {
  --bg: #050607;
  --panel: #0d0f12;
  --text: #f5f5f0;
  --muted: #9a9da4;
  --yellow: #f4e500;
  --line: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 24%, rgba(244, 229, 0, 0.12), transparent 28%),
    linear-gradient(180deg, #050607, #090b0e);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
a { color: inherit; }
.auth-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 0;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.auth-brand span {
  color: var(--yellow);
  font-size: 25px;
  font-weight: 850;
}
.auth-brand small {
  padding-left: 14px;
  border-left: 1px solid rgba(244, 229, 0, 0.28);
  color: var(--muted);
}
.flash-list {
  position: fixed;
  top: 24px;
  right: max(24px, calc((100vw - 1120px) / 2));
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.flash-message {
  padding: 16px 18px;
  border: 1px solid rgba(244, 229, 0, 0.34);
  border-radius: 6px;
  background: rgba(13, 15, 18, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  color: var(--text);
  line-height: 1.45;
  animation: toast-lifecycle 6.4s ease forwards;
  backdrop-filter: blur(16px);
}
.flash-success {
  border-color: rgba(72, 187, 120, 0.38);
  background:
    linear-gradient(90deg, rgba(72, 187, 120, 0.14), rgba(13, 15, 18, 0.96) 34%),
    rgba(13, 15, 18, 0.96);
}
@keyframes toast-lifecycle {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  8% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    visibility: hidden;
  }
}
.auth-card {
  width: min(480px, 100%);
  margin: 72px auto 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 15, 18, 0.9);
  backdrop-filter: blur(16px);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.02;
}
.lead {
  margin: 18px 0 30px;
  color: var(--muted);
  line-height: 1.6;
}
form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: #c8c9ce; font-size: 13px; }
input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #07090b;
  color: var(--text);
  font: inherit;
}
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #07090b;
  color: var(--text);
  font: inherit;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--yellow);
}
input:focus {
  outline: 1px solid rgba(244, 229, 0, 0.55);
  border-color: rgba(244, 229, 0, 0.55);
}
textarea:focus {
  outline: 1px solid rgba(244, 229, 0, 0.55);
  border-color: rgba(244, 229, 0, 0.55);
}
button {
  min-height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--yellow);
  color: #08090b;
  cursor: pointer;
  font-weight: 800;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}
.auth-switch { margin: 22px 0 0; color: var(--muted); }
.auth-switch a, .logout-link { color: var(--yellow); text-decoration: none; }
.notice-box {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid rgba(244, 229, 0, 0.28);
  border-radius: 6px;
  background: rgba(244, 229, 0, 0.055);
}
.notice-box strong {
  color: var(--yellow);
}
.notice-box p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.checkbox-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.checkbox-row a { color: var(--yellow); text-decoration: none; }
.form-errors {
  padding: 12px 14px;
  border: 1px solid rgba(241, 72, 35, 0.35);
  border-radius: 6px;
  background: rgba(241, 72, 35, 0.08);
  color: #ffc4b9;
  font-size: 13px;
}
.form-errors p { margin: 0; }
.dashboard { margin-top: 72px; }
.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.dashboard-head .lead { max-width: 620px; margin-bottom: 0; }
.logout-link { white-space: nowrap; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.nav-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(138, 232, 194, 0.24);
  border-radius: 999px;
  background: rgba(138, 232, 194, 0.055);
  color: #c9f4de;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav-action:hover {
  border-color: rgba(138, 232, 194, 0.46);
  background: rgba(138, 232, 194, 0.095);
  color: var(--text);
  transform: translateY(-1px);
}
.nav-action-primary {
  border-color: rgba(244, 229, 0, 0.38);
  background: rgba(244, 229, 0, 0.075);
  color: var(--yellow);
}
.nav-action-primary:hover {
  border-color: rgba(244, 229, 0, 0.62);
  background: rgba(244, 229, 0, 0.12);
}
.cockpit-head {
  margin-bottom: 24px;
}
.quick-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.quick-guide span {
  display: grid;
  gap: 5px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(72, 187, 120, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(72, 187, 120, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(13, 15, 18, 0.72);
  text-align: left;
}
.quick-guide b {
  color: #9bdab4;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.quick-guide small {
  color: #c7d8ce;
  font-size: 12px;
  line-height: 1.25;
}
.quick-guide span:last-child {
  border-color: rgba(72, 187, 120, 0.22);
}
.quota-strip {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid rgba(72, 187, 120, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(72, 187, 120, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(13, 15, 18, 0.8);
}
.quota-strip > div:first-child span,
.quota-item span,
.quota-inline span {
  color: #9bdab4;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.quota-strip > div:first-child strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 18px;
}
.quota-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.quota-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.024);
}
.quota-item strong {
  display: block;
  margin: 8px 0 10px;
  color: var(--yellow);
  font-size: 22px;
  line-height: 1;
}
.quota-item.is-reached,
.quota-inline.is-reached {
  border-color: rgba(244, 229, 0, 0.36);
  background: rgba(244, 229, 0, 0.05);
}
.quota-locked {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid rgba(244, 229, 0, 0.24);
  border-radius: 6px;
  color: rgba(244, 229, 0, 0.76);
  font-size: 12px;
  font-weight: 800;
}
.quota-inline {
  display: grid;
  gap: 10px;
  margin: -4px 0 14px;
  padding: 12px;
  border: 1px solid rgba(72, 187, 120, 0.18);
  border-radius: 6px;
  background: rgba(72, 187, 120, 0.035);
}
.company-strip {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 15, 18, 0.86);
}
.company-strip span,
.cockpit-summary span,
.team-table-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.company-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}
.company-strip nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.company-strip nav a {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.company-strip nav a.is-active {
  border-color: rgba(244, 229, 0, 0.48);
  background: rgba(244, 229, 0, 0.08);
  color: var(--yellow);
}
.cockpit-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.cockpit-summary article,
.cockpit-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 15, 18, 0.86);
}
.cockpit-summary strong {
  display: block;
  margin-top: 14px;
  color: var(--yellow);
  font-size: 34px;
  line-height: 1;
}
.cockpit-panel {
  margin-top: 12px;
}
.team-table {
  display: grid;
  gap: 8px;
}
.team-table-head,
.team-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr 1.25fr;
  gap: 14px;
  align-items: center;
}
.team-table-head {
  padding: 0 14px 8px;
}
.team-table-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.team-cell strong,
.team-cell small,
.metric-line strong,
.metric-line span {
  display: block;
}
.team-main-cell strong a {
  color: var(--text);
  text-decoration: none;
}
.team-main-cell small,
.metric-line span,
.muted-value {
  color: var(--muted);
}
.metric-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.metric-line strong {
  color: var(--yellow);
}
.efficiency-pill {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(244, 229, 0, 0.28);
  border-radius: 6px;
  background: rgba(244, 229, 0, 0.055);
}
.efficiency-pill strong {
  color: var(--yellow);
  font-size: 20px;
}
.efficiency-pill span {
  color: var(--muted);
  font-size: 12px;
}
.actions-cell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.actions-cell a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.actions-cell a.primary-action {
  border-color: rgba(244, 229, 0, 0.48);
  background: var(--yellow);
  color: #08090b;
}
.next-action-box {
  display: grid;
  gap: 6px;
}
.next-action-box small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cockpit-empty,
.cockpit-start {
  max-width: 520px;
}
.cockpit-empty span,
.cockpit-start span {
  color: var(--yellow);
  font-weight: 850;
}
.cockpit-empty h3,
.cockpit-start h2 {
  margin: 24px 0 12px;
}
.cockpit-empty p,
.cockpit-start p {
  color: var(--muted);
  line-height: 1.55;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.dashboard-grid article {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 15, 18, 0.86);
}
.dashboard-grid article > span {
  color: var(--yellow);
  font-weight: 850;
}
.dashboard-grid h2 { margin: 46px 0 12px; }
.dashboard-grid p { color: var(--muted); line-height: 1.55; }
.entity-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.entity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-decoration: none;
}
.team-row {
  align-items: flex-start;
}
.team-row-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}
.entity-row.is-active {
  border-color: rgba(244, 229, 0, 0.45);
  background: rgba(244, 229, 0, 0.07);
}
.entity-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entity-row strong a {
  color: var(--text);
  font-size: inherit;
}
.entity-row small {
  display: block;
  flex: 0 0 auto;
  color: var(--muted);
}
.entity-row a {
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: 12px;
  text-decoration: none;
}
.member-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.member-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.diagnostics-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.diagnostic-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.diagnostic-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.diagnostic-row-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.diagnostic-row-head span {
  color: var(--yellow);
  font-weight: 850;
}
.progress-track {
  height: 7px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}
.diagnostic-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.diagnostic-row small b {
  color: var(--yellow);
}
.diagnostic-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.diagnostic-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.diagnostic-actions a:first-child {
  border-color: rgba(244, 229, 0, 0.45);
  background: rgba(244, 229, 0, 0.08);
  color: var(--yellow);
}
.invite-panel {
  display: grid;
  gap: 8px;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.invite-panel span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.invite-panel strong {
  color: var(--yellow);
  font-size: 22px;
}
.invite-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.profile-summary {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.profile-summary article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(244, 229, 0, 0.045);
}
.profile-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.profile-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--yellow);
  font-size: 22px;
}
.team-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.team-summary-grid article,
.detail-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 15, 18, 0.86);
}
.team-summary-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.team-summary-grid strong {
  display: block;
  margin-top: 18px;
  color: var(--yellow);
  font-size: 34px;
  line-height: 1;
}
.team-summary-grid .summary-word {
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
  font-size: clamp(19px, 1.75vw, 28px);
  line-height: 1.08;
}
.team-summary-grid p,
.empty-state {
  color: var(--muted);
  line-height: 1.55;
}
.team-detail-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 12px;
  margin-top: 12px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.panel-head h2 {
  margin: 0;
}
.panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.panel-head a {
  color: var(--yellow);
  font-size: 13px;
  text-decoration: none;
}
.member-table {
  display: grid;
  gap: 8px;
}
.member-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.member-row.is-excluded {
  border-style: dashed;
  opacity: 0.72;
}
.member-row strong,
.member-row small {
  display: block;
}
.member-row small {
  color: var(--muted);
}
.member-status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.member-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.member-actions form {
  display: block;
  margin: 0;
}
.member-actions a {
  color: var(--yellow);
  font-size: 12px;
  text-decoration: none;
}
.member-actions button {
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.member-actions button:hover {
  border-color: rgba(244, 229, 0, 0.45);
}
.member-actions .invite-action {
  border-color: rgba(138, 232, 194, 0.34);
  color: #9de8c4;
}
.member-actions .invite-action:hover {
  border-color: rgba(138, 232, 194, 0.6);
  background: rgba(138, 232, 194, 0.08);
}
.member-actions .danger-action {
  border-color: rgba(241, 72, 35, 0.36);
  color: #ffc5b8;
}
.tooltip-wrap {
  position: relative;
  display: inline-flex;
}
.tooltip-wrap::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(270px, 72vw);
  padding: 10px 12px;
  border: 1px solid rgba(138, 232, 194, 0.28);
  border-radius: 8px;
  background: rgba(11, 15, 14, 0.96);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
  color: var(--text);
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.tooltip-wrap::before {
  position: absolute;
  right: 18px;
  bottom: calc(100% + 4px);
  z-index: 21;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(138, 232, 194, 0.28);
  border-bottom: 1px solid rgba(138, 232, 194, 0.28);
  background: rgba(11, 15, 14, 0.96);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: rotate(45deg) translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.tooltip-wrap:hover::after,
.tooltip-wrap:hover::before,
.tooltip-wrap:focus-within::after,
.tooltip-wrap:focus-within::before {
  opacity: 1;
  transform: translateY(0);
}
.tooltip-wrap:hover::before,
.tooltip-wrap:focus-within::before {
  transform: rotate(45deg) translateY(0);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}
.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0.72;
}
.status-completed {
  border-color: rgba(72, 187, 120, 0.5);
  background: rgba(72, 187, 120, 0.1);
  color: #8ff0b2;
  box-shadow: 0 0 0 1px rgba(72, 187, 120, 0.08), 0 0 22px rgba(72, 187, 120, 0.1);
}
.status-completed::before {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  background: rgba(72, 187, 120, 0.2);
  color: #9df0ba;
  content: "✓";
  font-size: 10px;
  line-height: 1;
  opacity: 1;
}
.status-invited,
.status-in_progress {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.06);
}
.status-excluded {
  border-color: rgba(138, 232, 194, 0.34);
  color: #9de8c4;
}
.axis-block + .axis-block {
  margin-top: 24px;
}
.axis-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.axis-block-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}
.axis-block h3 {
  margin: 0;
}
.help-dot {
  width: 20px;
  height: 20px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(138, 232, 194, 0.28);
  border-radius: 999px;
  background: rgba(138, 232, 194, 0.06);
  color: #9de8c4;
  cursor: help;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.axis-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.axis-bar-row:first-of-type {
  border-top: 0;
}
.axis-bar-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}
.axis-bar-label span:first-child {
  margin-right: 0;
  color: var(--muted);
}
.axis-bar-label strong {
  margin-left: auto;
  color: var(--yellow);
}
.axis-bar-label .help-dot {
  width: 16px;
  height: 16px;
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.04);
  color: rgba(203, 213, 225, 0.68);
  font-size: 9px;
}
.axis-track {
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.045);
}
.axis-track i {
  background: linear-gradient(90deg, rgba(115, 132, 128, 0.46), rgba(148, 163, 184, 0.36));
}
.axis-track-quiet i {
  background: linear-gradient(90deg, #60706c, #7a838b);
  opacity: 0.52;
}
.axis-track-soft i {
  background: linear-gradient(90deg, #6fae99, #b7ba4d);
  opacity: 0.68;
}
.axis-track-medium i {
  background: linear-gradient(90deg, #78d7b4 0%, #d8d42d 68%, #f4e500 100%);
  opacity: 0.86;
  box-shadow: 0 0 12px rgba(244, 229, 0, 0.14);
}
.axis-track-strong i {
  background: linear-gradient(90deg, #8ae8c2 0%, #e6dd19 48%, #fff200 100%);
  opacity: 1;
  box-shadow: 0 0 20px rgba(244, 229, 0, 0.28), 0 0 10px rgba(138, 232, 194, 0.16);
}
.axis-percent {
  color: rgba(203, 213, 225, 0.62);
  font-size: 11px;
  font-weight: 850;
}
.axis-percent-soft {
  color: rgba(157, 232, 196, 0.72);
}
.axis-percent-medium {
  color: rgba(244, 229, 0, 0.82);
}
.axis-percent-strong {
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(244, 229, 0, 0.22);
}
.report-hero {
  display: grid;
  grid-template-columns: 0.8fr 0.95fr 1.45fr;
  gap: 12px;
  margin-top: 32px;
}
.report-hero > div,
.report-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 15, 18, 0.86);
}
.report-hero span,
.report-signal-grid span,
.axis-title span,
.bar-label span,
.scenario-row span,
.recommendation-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.report-hero > div > strong {
  display: block;
  margin-top: 18px;
  color: var(--yellow);
  font-size: 56px;
  line-height: 1;
}
.efficiency-card {
  border-color: rgba(244, 229, 0, 0.38) !important;
  background:
    linear-gradient(180deg, rgba(244, 229, 0, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(13, 15, 18, 0.86) !important;
}
.efficiency-card strong {
  color: var(--yellow) !important;
  font-size: 76px !important;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(244, 229, 0, 0.16);
}
.efficiency-card small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}
.efficiency-card p {
  margin: 12px 0 8px;
  color: var(--text);
  font-weight: 850;
}
.efficiency-success {
  border-color: rgba(72, 187, 120, 0.38) !important;
}
.efficiency-good {
  border-color: rgba(244, 229, 0, 0.38) !important;
}
.efficiency-warning {
  border-color: rgba(236, 201, 75, 0.38) !important;
}
.efficiency-danger {
  border-color: rgba(241, 72, 35, 0.42) !important;
}
.efficiency-pending {
  border-color: rgba(138, 232, 194, 0.32) !important;
}
.report-hero p {
  color: var(--muted);
  line-height: 1.55;
}
.report-signal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.report-signal-grid article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px 16px;
  min-height: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.signal-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.signal-title .help-dot {
  width: 18px;
  height: 18px;
  border-color: rgba(138, 232, 194, 0.28);
  background: rgba(138, 232, 194, 0.055);
  color: rgba(157, 232, 196, 0.82);
  font-size: 10px;
}
.report-signal-grid strong {
  color: var(--yellow);
  font-size: 26px;
  line-height: 1.1;
}
.report-signal-grid p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 0.45fr;
  gap: 12px;
  margin-top: 12px;
}
.report-scenario-grid {
  grid-template-columns: 1fr;
}
.management-summary-panel {
  margin-top: 12px;
  border-color: rgba(138, 232, 194, 0.26);
  background:
    linear-gradient(180deg, rgba(138, 232, 194, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(13, 15, 18, 0.86);
}
.management-summary-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 10px;
}
.management-summary-grid article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}
.management-summary-grid .summary-main {
  border-color: rgba(244, 229, 0, 0.28);
  background: rgba(244, 229, 0, 0.045);
}
.management-summary-grid span {
  color: #9de8c4;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.management-summary-grid p {
  margin: 12px 0 0;
  color: #eef2ee;
  font-size: 14px;
  line-height: 1.55;
}
.management-summary-grid small {
  display: block;
  margin-top: 14px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
.actual-profile-panel {
  margin-top: 12px;
}
.report-axis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.axis-title {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.axis-title strong {
  color: var(--yellow);
  font-size: 22px;
}
.report-bar-row + .report-bar-row {
  margin-top: 15px;
}
.bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.bar-label strong {
  color: var(--text);
  font-size: 12px;
}
.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}
.scenario-list {
  display: grid;
  gap: 10px;
}
.scenario-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.scenario-row strong,
.scenario-row span {
  display: block;
}
.scenario-row strong {
  margin-bottom: 6px;
}
.scenario-row b {
  color: var(--yellow);
  font-size: 22px;
}
.report-recommendations {
  margin-top: 12px;
  border-color: rgba(244, 229, 0, 0.22);
  background:
    linear-gradient(180deg, rgba(244, 229, 0, 0.038), rgba(255, 255, 255, 0.016)),
    rgba(13, 15, 18, 0.86);
}
.next-steps-panel {
  margin-top: 12px;
  border-color: rgba(138, 232, 194, 0.24);
  background:
    linear-gradient(180deg, rgba(138, 232, 194, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(13, 15, 18, 0.86);
}
.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.next-steps-grid article {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.next-steps-grid article span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(244, 229, 0, 0.34);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
}
.next-steps-grid article small {
  color: #9de8c4;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.next-steps-grid article strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}
.next-steps-grid article p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.seven-day-panel {
  margin-top: 12px;
}
.seven-day-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.seven-day-list article {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}
.seven-day-list article span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(138, 232, 194, 0.28);
  border-radius: 999px;
  color: #9de8c4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.seven-day-list article strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}
.seven-day-list article p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.forecast-panel {
  margin-top: 12px;
}
.scenario-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: min(420px, 100%);
}
.scenario-form select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #07090b;
  color: var(--text);
  font: inherit;
}
.scenario-form button {
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
}
.forecast-grid {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.forecast-score,
.forecast-axis-list {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.forecast-score span,
.forecast-axis-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.forecast-score strong {
  display: block;
  margin-top: 16px;
  color: var(--yellow);
  font-size: 52px;
  line-height: 1;
}
.forecast-score p {
  margin: 12px 0 0;
  color: var(--text);
  font-weight: 800;
}
.forecast-success {
  border-color: rgba(72, 187, 120, 0.38);
}
.forecast-warning {
  border-color: rgba(244, 229, 0, 0.42);
}
.forecast-danger {
  border-color: rgba(241, 72, 35, 0.38);
}
.forecast-axis-list {
  display: grid;
  gap: 16px;
}
.forecast-axis-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.forecast-axis-row strong {
  color: var(--yellow);
}
.forecast-recommendation-grid {
  margin-top: 12px;
}
.constructor-panel {
  margin-top: 12px;
  border-color: rgba(138, 232, 194, 0.22);
}
.constructor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.constructor-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.constructor-section-head {
  margin-bottom: 16px;
}
.constructor-section-head span {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 850;
}
.constructor-section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.constructor-list {
  display: grid;
  gap: 14px;
}
.constructor-row {
  display: grid;
  gap: 7px;
}
.constructor-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.constructor-label strong {
  color: var(--text);
  font-size: 13px;
}
.constructor-label small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.constructor-bars {
  display: grid;
  gap: 4px;
}
.constructor-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}
.constructor-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.constructor-current i {
  background: rgba(138, 232, 194, 0.58);
}
.constructor-target i {
  background: rgba(244, 229, 0, 0.84);
}
.constructor-ok .constructor-label small {
  color: #9de8c4;
}
.constructor-raise .constructor-label small,
.constructor-nudge .constructor-label small {
  color: rgba(244, 229, 0, 0.86);
}
.constructor-excess .constructor-label small {
  color: #ffc4b9;
}
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.interpretation-grid {
  grid-template-columns: repeat(2, 1fr);
}
.recommendation-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.recommendation-grid p {
  margin: 12px 0 0;
  color: #d7d8dc;
  line-height: 1.55;
}
.dashboard-grid button,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  border: 0;
  border-radius: 6px;
  background: var(--yellow);
  color: #08090b;
  text-decoration: none;
  font-weight: 800;
}
.card-action.muted {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.empty-actions .card-action {
  width: auto;
  min-width: 180px;
  margin-top: 0;
  padding: 0 18px;
}
.legal-page {
  width: min(820px, 100%);
  margin: 72px auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 15, 18, 0.9);
}
.diagnostics-page {
  width: min(900px, 100%);
  margin: 72px auto;
}
.questionnaire-form {
  margin-top: 30px;
}
.question-card {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 15, 18, 0.88);
}
.question-card legend {
  padding-right: 14px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}
.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.answer-grid label {
  position: relative;
  display: block;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.answer-grid label:hover {
  border-color: rgba(244, 229, 0, 0.38);
  background: rgba(244, 229, 0, 0.045);
}
.answer-grid input[type="radio"] {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}
.answer-grid label:has(input[type="radio"]:checked) {
  border-color: rgba(244, 229, 0, 0.68);
  background: rgba(244, 229, 0, 0.08);
  box-shadow: inset 3px 0 0 var(--yellow);
}
.answer-grid label span {
  display: block;
  color: #d7d8dc;
  line-height: 1.35;
}
.answer-grid label:has(input[type="radio"]:checked) span {
  color: var(--text);
  font-weight: 700;
}
.answer-grid .answer-input {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
  pointer-events: none !important;
}
.legal-page article {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.legal-page h2 { margin: 0 0 10px; font-size: 20px; }
.legal-page p { color: var(--muted); line-height: 1.65; }

@media (max-width: 820px) {
  .auth-card { margin-top: 48px; padding: 26px; }
  .dashboard-head { display: grid; }
  .header-actions { justify-content: flex-start; }
  .quick-guide { grid-template-columns: repeat(2, 1fr); }
  .quota-strip { grid-template-columns: 1fr; }
  .quota-items { grid-template-columns: 1fr; }
  .company-strip { grid-template-columns: 1fr; }
  .company-strip nav { justify-content: flex-start; }
  .cockpit-summary { grid-template-columns: repeat(2, 1fr); }
  .team-table-head { display: none; }
  .team-table-row { grid-template-columns: 1fr; }
  .actions-cell { grid-template-columns: 1fr; }
  .report-signal-grid article { grid-template-columns: 1fr; }
  .dashboard-grid,
  .team-summary-grid,
  .team-detail-grid,
  .report-hero,
  .report-signal-grid,
  .report-grid,
  .forecast-grid,
  .report-axis-grid,
  .management-summary-grid,
  .next-steps-grid,
  .seven-day-list,
  .constructor-grid,
  .recommendation-grid { grid-template-columns: 1fr; }
  .scenario-form { grid-template-columns: 1fr; }
  .team-row-actions { justify-items: start; }
  .diagnostic-actions { grid-template-columns: 1fr; }
  .member-row { grid-template-columns: 1fr; }
  .answer-grid { grid-template-columns: 1fr; }
}
