﻿:root {
  --blue: #6ed2fa;
  --blue-deep: #24aede;
  --blue-solid: #18aee7;
  --violet: #8f63ff;
  --ink: #111827;
  --muted: #6d7280;
  --line: #e8eef3;
  --soft: #f6fbfd;
  --green: #38d6a3;
  --coral: #ff7868;
  --shadow: 0 22px 60px rgba(24, 70, 94, 0.13);
  --font-body: "Plus Jakarta Sans", Arial, sans-serif;
  --font-display: "Unbounded", "Plus Jakarta Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: var(--font-body);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.pricing-heading h1,
.cabinet-page-heading h1,
.auth-page-copy h1,
.auth-card h2,
.cabinet-view-header h3,
.director-headline h3 {
  color: #070a32;
  font-family: var(--font-body);
  font-weight: 700;
}

.plan-price,
.stats-grid strong,
.cabinet-stat-grid strong {
  font-family: var(--font-body);
  font-weight: 700;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  color: #ffffff;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.topbar.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(232, 238, 243, 0.78);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: currentColor;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  color: #67efff;
  background: transparent;
}

.brand-mark i {
  display: block;
  width: 5px;
  background: linear-gradient(180deg, #62efff 0%, #13a4ff 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(48, 226, 255, 0.48);
}

.brand-mark i:nth-child(1),
.brand-mark i:nth-child(5) {
  height: 20px;
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(4) {
  height: 30px;
}

.brand-mark i:nth-child(3) {
  height: 42px;
}

.topbar.is-scrolled .brand-mark i {
  background: linear-gradient(180deg, #24d8ee 0%, #1277f2 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  color: currentColor;
  font-size: 18px;
  font-weight: 500;
  text-transform: none;
}

.nav a {
  position: relative;
  padding: 23px 0;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--blue-deep);
}

.nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 3px;
  content: "";
  background: #6cf0ff;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(108, 240, 255, 0.85);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-link,
.lang-toggle,
.login-button {
  color: currentColor;
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.demo-button,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.demo-button,
.primary-button {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(36, 174, 222, 0.24);
}

.demo-button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  background: var(--blue-deep);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.header-actions .demo-button {
  min-height: 52px;
  padding: 0 28px;
  color: #06135d;
  background: linear-gradient(180deg, #74f0ff 0%, #42dbe9 100%);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 16px 42px rgba(21, 222, 245, 0.34);
  font-size: 18px;
  text-transform: none;
}

.header-actions .demo-button:hover {
  background: linear-gradient(180deg, #8cf5ff 0%, #4de6f1 100%);
}

.topbar.is-scrolled .ghost-button {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.auth-open {
  overflow: hidden;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #eaf7ff 0%, #f7f4ff 58%, #fff0fd 100%);
}

.auth-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 30px 40px 34px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 28px 72px rgba(70, 84, 145, 0.2);
  backdrop-filter: blur(24px);
}

.auth-card.is-register {
  width: min(880px, 100%);
  padding: 38px 62px 42px;
}

.auth-card.is-login,
.auth-card.is-profile {
  width: min(520px, 100%);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.86);
  cursor: pointer;
}

.auth-close::before,
.auth-close::after {
  position: absolute;
  top: 16px;
  left: 9px;
  width: 16px;
  height: 2px;
  content: "";
  background: #667085;
  border-radius: 999px;
}

.auth-close::before {
  transform: rotate(45deg);
}

.auth-close::after {
  transform: rotate(-45deg);
}

.auth-form,
.auth-signed {
  display: grid;
  justify-items: center;
}

.auth-form[hidden],
.auth-signed[hidden] {
  display: none;
}

.auth-avatar {
  position: relative;
  width: 74px;
  height: 74px;
  margin-bottom: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.12) 0 42%, transparent 43%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(139, 92, 246, 0.16));
}

.auth-card.is-register .auth-avatar {
  width: 112px;
  height: 112px;
  margin-bottom: 24px;
}

.auth-avatar::before {
  position: absolute;
  top: 19px;
  left: 28px;
  width: 15px;
  height: 15px;
  content: "";
  border: 4px solid #4f46e5;
  border-radius: 50%;
}

.auth-card.is-register .auth-avatar::before {
  top: 28px;
  left: 42px;
  width: 22px;
  height: 22px;
  border-width: 6px;
}

.auth-avatar::after {
  position: absolute;
  top: 45px;
  left: 22px;
  width: 30px;
  height: 19px;
  content: "";
  border: 4px solid #4f46e5;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.auth-card.is-register .auth-avatar::after {
  top: 68px;
  left: 34px;
  width: 45px;
  height: 30px;
  border-width: 6px;
  border-top: 0;
  border-radius: 0 0 22px 22px;
}

.auth-form h2,
.auth-signed h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
  text-align: center;
  letter-spacing: 0;
}

.auth-card.is-register .auth-form h2 {
  font-size: clamp(36px, 5vw, 54px);
}

.auth-subtitle,
.auth-signed p {
  max-width: 360px;
  margin: 10px 0 22px;
  color: #667085;
  font-size: 18px;
  line-height: 1.32;
  text-align: center;
}

.auth-card.is-register .auth-subtitle {
  max-width: 560px;
  margin-bottom: 28px;
  font-size: clamp(22px, 2.6vw, 30px);
}

.auth-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(760px, 100%);
  margin-bottom: 18px;
}

.auth-name-grid .auth-field {
  width: 100%;
  margin-bottom: 0;
}

.auth-field {
  position: relative;
  display: flex;
  align-items: center;
  width: min(430px, 100%);
  min-height: 52px;
  margin-bottom: 12px;
  color: #667085;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #d5dce8;
  border-radius: 8px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.auth-field:focus-within {
  background: #ffffff;
  border-color: #5b5dff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.11);
}

.auth-field input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 48px 0 58px;
  color: #111827;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 17px;
}

.auth-field input::placeholder {
  color: #7b8496;
}

.auth-card.is-register .auth-form > .auth-field,
.auth-card.is-register .auth-onboarding,
.auth-card.is-register .auth-terms,
.auth-card.is-register .auth-submit,
.auth-card.is-register .auth-separator,
.auth-card.is-register .auth-socials {
  width: min(760px, 100%);
}

.auth-card.is-register .auth-field {
  min-height: 76px;
  margin-bottom: 18px;
  border-color: #cdd9eb;
  border-radius: 10px;
}

.auth-card.is-register .auth-field input {
  height: 74px;
  padding: 0 78px 0 82px;
  font-size: 25px;
}

.auth-card.is-register .auth-icon {
  left: 28px;
  transform: scale(1.05);
}

.auth-icon {
  position: absolute;
  left: 20px;
  width: 26px;
  height: 26px;
  color: #667085;
  transform: scale(0.84);
  transform-origin: center;
}

.auth-icon::before,
.auth-icon::after {
  position: absolute;
  content: "";
  border-color: currentColor;
}

.auth-icon-user::before {
  top: 2px;
  left: 8px;
  width: 9px;
  height: 9px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.auth-icon-user::after {
  right: 3px;
  bottom: 1px;
  left: 3px;
  height: 12px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.auth-icon-mail::before {
  inset: 4px 1px;
  border: 3px solid currentColor;
  border-radius: 3px;
}

.auth-icon-mail::after {
  top: 7px;
  left: 3px;
  width: 18px;
  height: 12px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.auth-icon-phone::before {
  top: 3px;
  left: 7px;
  width: 12px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 5px;
  transform: rotate(-14deg);
}

.auth-icon-phone::after {
  top: 18px;
  left: 12px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border: 0;
  border-radius: 50%;
  transform: rotate(-14deg);
}

.auth-icon-lock::before {
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 15px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.auth-icon-lock::after {
  top: 1px;
  left: 7px;
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.auth-eye {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  color: #667085;
  background: transparent;
  cursor: pointer;
}

.auth-card.is-register .auth-eye {
  right: 22px;
}

.auth-eye::before {
  position: absolute;
  top: 10px;
  left: 5px;
  width: 22px;
  height: 14px;
  content: "";
  border: 3px solid currentColor;
  border-radius: 50%;
}

.auth-eye::after {
  position: absolute;
  top: 6px;
  left: 16px;
  width: 3px;
  height: 25px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transform: rotate(-45deg);
}

.auth-eye.is-visible::after {
  display: none;
}

.auth-terms {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  width: min(430px, 100%);
  margin: 2px 0 14px;
  color: #475467;
  font-size: 15px;
  line-height: 1.35;
}

.auth-card.is-register .auth-terms {
  grid-template-columns: 42px 1fr;
  gap: 20px;
  margin: 4px 0 18px;
  font-size: 19px;
}

.auth-terms input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-terms span {
  width: 28px;
  height: 28px;
  border: 2px solid #c8d0dd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.auth-card.is-register .auth-terms span {
  width: 42px;
  height: 42px;
  border-color: #cdd9eb;
  border-radius: 10px;
}

.auth-terms input:checked + span {
  background: #4f46ff;
  border-color: #4f46ff;
  box-shadow: inset 0 0 0 6px #ffffff;
}

.auth-card.is-register .auth-terms input:checked + span {
  box-shadow: inset 0 0 0 10px #ffffff;
}

.auth-terms b {
  font-weight: 500;
}

.auth-profile-role {
  margin-top: -12px !important;
  color: #315bff !important;
  font-weight: 700;
}

.auth-cabinet-open {
  margin-bottom: 10px;
  background: linear-gradient(135deg, #0f8fe8 0%, #1567e8 100%);
  box-shadow: 0 14px 28px rgba(21, 103, 232, 0.22);
}

.auth-onboarding {
  width: min(430px, 100%);
  margin: 0 0 12px;
}

.auth-onboarding p {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.auth-card.is-register .auth-onboarding {
  margin-bottom: 22px;
}

.auth-card.is-register .auth-onboarding p {
  margin-bottom: 18px;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.1;
}

.auth-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0;
}

.auth-choice-grid label {
  position: relative;
  min-width: 0;
}

.auth-choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-choice-grid span {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 12px;
  color: #344054;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d5dce8;
  border-radius: 8px;
  cursor: pointer;
}

.auth-card.is-register .auth-choice-grid span {
  min-height: 132px;
  padding: 24px 28px;
  border-color: #cdd9eb;
  border-radius: 10px;
}

.auth-choice-grid strong {
  color: #101828;
  font-size: 15px;
  line-height: 1.15;
}

.auth-card.is-register .auth-choice-grid strong {
  font-size: clamp(22px, 2.4vw, 28px);
}

.auth-choice-grid small {
  color: #667085;
  font-size: 13px;
  line-height: 1.25;
}

.auth-choice-grid input:checked + span {
  background: #eef7ff;
  border-color: #37a8ec;
  box-shadow: 0 0 0 3px rgba(55, 168, 236, 0.13);
}

.auth-choice-icon {
  position: relative;
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  background: #efeaff;
  border-radius: 50%;
}

.auth-choice-icon::before,
.auth-choice-icon::after {
  position: absolute;
  content: "";
}

.auth-choice-icon.agency::before {
  left: 24px;
  bottom: 22px;
  width: 11px;
  height: 29px;
  border: 4px solid #4f46ff;
  border-radius: 4px 4px 0 0;
  box-shadow: 18px 0 0 -4px #efeaff, 18px 0 0 0 #4f46ff;
}

.auth-choice-icon.agency::after {
  left: 18px;
  bottom: 19px;
  width: 42px;
  height: 4px;
  background: #4f46ff;
  border-radius: 999px;
}

.auth-choice-icon.solo::before {
  top: 18px;
  left: 29px;
  width: 15px;
  height: 15px;
  border: 4px solid #4f46ff;
  border-radius: 50%;
}

.auth-choice-icon.solo::after {
  right: 22px;
  bottom: 20px;
  left: 22px;
  height: 21px;
  border: 4px solid #4f46ff;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
}

.auth-agency-fields {
  display: grid;
  grid-template-columns: minmax(120px, 0.68fr) minmax(0, 1fr);
  gap: 10px;
}

.auth-agency-fields[hidden] {
  display: none;
}

.auth-agency-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.auth-agency-fields select,
.auth-agency-fields input {
  width: 100%;
  height: 46px;
  min-width: 0;
  padding: 0 12px;
  color: #111827;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d5dce8;
  border-radius: 8px;
  outline: 0;
  font-size: 15px;
}

.auth-agency-fields select:focus,
.auth-agency-fields input:focus {
  background: #ffffff;
  border-color: #5b5dff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.11);
}

.auth-terms a,
.auth-switch button {
  color: #315bff;
  text-decoration: none;
}

.auth-message {
  min-height: 20px;
  margin: 0 0 10px;
  color: #667085;
  font-size: 15px;
  text-align: center;
}

.auth-message.is-error {
  color: #d92d20;
}

.auth-message.is-success {
  color: #16815b;
}

.auth-submit {
  width: min(430px, 100%);
  min-height: 52px;
  color: #ffffff;
  background: linear-gradient(135deg, #5357ff 0%, #3f46ff 100%);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(63, 70, 255, 0.22);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.auth-card.is-register .auth-submit {
  min-height: 64px;
  border-radius: 10px;
  font-size: 21px;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  width: min(430px, 100%);
  margin: 18px 0;
  color: #8a94a6;
  font-size: 15px;
}

.auth-separator span {
  height: 1px;
  background: #d5dce8;
}

.auth-socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(430px, 100%);
}

.auth-social {
  min-height: 48px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.auth-social.yandex {
  color: #f12000;
}

.auth-social.mailru {
  color: #f59f00;
}

.auth-social.vk {
  color: #0866d9;
  font-size: 24px;
  letter-spacing: 0;
}

.auth-switch {
  margin: 20px 0 0;
  color: #475467;
  font-size: 16px;
  text-align: center;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.auth-form[data-auth-mode="login"] [data-auth-name-field],
.auth-form[data-auth-mode="login"] [data-auth-confirm-field],
.auth-form[data-auth-mode="login"] [data-auth-terms-field],
.auth-form[data-auth-mode="login"] [data-auth-onboarding],
.auth-form[data-auth-mode="login"] [data-auth-social-separator],
.auth-form[data-auth-mode="login"] [data-auth-socials] {
  display: none;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 999px;
}

.section {
  position: relative;
}

.pricing-page {
  min-height: 100svh;
  padding: 118px 0 42px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(125deg, rgba(82, 52, 202, 0.44) 0%, rgba(2, 96, 210, 0.14) 44%, rgba(0, 221, 255, 0.2) 100%),
    linear-gradient(160deg, #08065b 0%, #071e87 39%, #028fe1 70%, #061070 100%);
}

.pricing-page::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at 54% 0%, rgba(95, 241, 255, 0.56), transparent 34%),
    radial-gradient(ellipse at 85% 30%, rgba(32, 104, 255, 0.68), transparent 30%),
    radial-gradient(ellipse at 2% 55%, rgba(8, 207, 255, 0.52), transparent 20%),
    linear-gradient(90deg, rgba(1, 5, 52, 0.78), transparent 34%, rgba(1, 5, 52, 0.26));
  pointer-events: none;
}

.pricing-page::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(circle, rgba(80, 230, 255, 0.72) 0 1.6px, transparent 1.8px);
  background-position:
    0 0,
    10px 10px;
  background-size: 16px 16px;
  mask-image:
    linear-gradient(90deg, transparent 0 3%, #000 6% 20%, transparent 34% 63%, #000 72% 98%, transparent),
    linear-gradient(180deg, transparent 0 12%, #000 14% 34%, transparent 47% 70%, #000 78% 100%);
  opacity: 0.42;
  pointer-events: none;
}

.pricing-visuals {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pricing-wave {
  position: absolute;
  display: block;
  width: 430px;
  height: 180px;
  border-top: 4px solid rgba(29, 225, 255, 0.9);
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(29, 225, 255, 0.72));
  opacity: 0.76;
}

.wave-left {
  top: 270px;
  left: -135px;
  transform: rotate(7deg);
}

.wave-top {
  top: 56px;
  right: 265px;
  width: 330px;
  height: 170px;
  transform: rotate(-5deg);
}

.wave-right {
  right: -46px;
  bottom: 138px;
  width: 560px;
  height: 230px;
  transform: rotate(-15deg);
}

.pricing-dots {
  position: absolute;
  display: block;
  background-image: radial-gradient(circle, rgba(98, 240, 255, 0.8) 0 2px, transparent 2.2px);
  background-size: 18px 18px;
  filter: drop-shadow(0 0 8px rgba(54, 228, 255, 0.62));
  opacity: 0.68;
}

.dots-left {
  bottom: 44px;
  left: -18px;
  width: 230px;
  height: 290px;
}

.dots-top {
  top: 14px;
  right: 360px;
  width: 230px;
  height: 116px;
}

.dots-right {
  right: 16px;
  bottom: 76px;
  width: 270px;
  height: 320px;
}

.pricing-note {
  position: absolute;
  z-index: 1;
  margin: 0;
  color: rgba(137, 232, 255, 0.82);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: clamp(19px, 1.55vw, 30px);
  line-height: 1.08;
  pointer-events: none;
}

.pricing-note::after {
  position: absolute;
  width: 110px;
  height: 34px;
  content: "";
  border-bottom: 2px solid rgba(177, 244, 255, 0.86);
  border-radius: 50%;
}

.pricing-note-left {
  top: 154px;
  left: max(24px, calc((100vw - 1780px) / 2 + 4px));
  transform: rotate(-12deg);
}

.pricing-note-left::after {
  right: -10px;
  bottom: -38px;
  transform: rotate(-15deg);
}

.pricing-note-right {
  top: 146px;
  right: max(22px, calc((100vw - 1780px) / 2 + 10px));
  text-align: right;
  transform: rotate(-12deg);
}

.pricing-note-right::after {
  right: 2px;
  bottom: -36px;
  transform: rotate(-13deg);
}

.pricing-container {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 80px), 1720px);
}

.pricing-heading {
  max-width: 1240px;
  margin: 36px auto 44px;
  text-align: center;
}

.pricing-heading h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 4.2vw, 74px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.pricing-heading h1 span {
  color: #7cf2ff;
}

.pricing-heading p {
  margin: 18px 0 0;
  color: rgba(219, 235, 255, 0.82);
  font-size: clamp(20px, 1.7vw, 30px);
  line-height: 1.24;
}

.pricing-slider {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.pricing-slider-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(28px, 4vw, 72px);
  min-height: 420px;
  padding: clamp(28px, 3vw, 48px);
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(140deg, rgba(2, 183, 255, 0.28), transparent 48%),
    linear-gradient(315deg, rgba(117, 62, 255, 0.28), transparent 58%),
    rgba(2, 21, 105, 0.78);
  border: 1px solid rgba(49, 231, 255, 0.88);
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 34px rgba(47, 231, 255, 0.3),
    0 22px 62px rgba(0, 8, 70, 0.36);
}

.pricing-slider-card::after {
  position: absolute;
  right: -108px;
  bottom: -126px;
  width: 360px;
  height: 360px;
  content: "";
  background: rgba(36, 214, 255, 0.18);
  border-radius: 50%;
  filter: blur(3px);
}

.pricing-summary,
.pricing-slider-panel {
  position: relative;
  z-index: 1;
}

.pricing-summary {
  display: grid;
  align-content: start;
}

.pricing-summary .plan-head {
  align-items: center;
  min-height: auto;
}

.pricing-kicker {
  display: block;
  margin-bottom: 8px;
  color: rgba(124, 242, 255, 0.86);
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 800;
  line-height: 1;
}

.pricing-total {
  margin-top: clamp(28px, 4vw, 54px);
}

.pricing-tier-copy {
  margin: 16px 0 0;
  color: rgba(197, 225, 255, 0.94);
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 650;
  line-height: 1.25;
}

.pricing-slider-action {
  width: min(356px, 100%);
  color: #06135d;
  background: linear-gradient(180deg, #72f0ff 0%, #45dae9 100%);
  border-color: rgba(125, 246, 255, 0.92);
  box-shadow: 0 16px 34px rgba(42, 229, 246, 0.24);
  cursor: pointer;
}

.pricing-slider-action:hover {
  background: linear-gradient(180deg, #8cf5ff 0%, #50e5f1 100%);
}

.pricing-slider-panel {
  display: grid;
  align-content: center;
  gap: 22px;
  padding-left: clamp(22px, 3vw, 54px);
  border-left: 1px solid rgba(108, 240, 255, 0.24);
}

.pricing-slider-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pricing-slider-topline label {
  color: #ffffff;
  font-size: clamp(20px, 1.55vw, 28px);
  font-weight: 850;
  line-height: 1.12;
}

.pricing-slider-topline output {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 54px;
  padding: 0 18px;
  color: #06135d;
  background: linear-gradient(180deg, #75f0ff, #45dae9);
  border: 1px solid rgba(145, 250, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(42, 229, 246, 0.25);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 900;
}

.license-slider {
  --range-progress: 26.315%;
  width: 100%;
  height: 18px;
  margin: 20px 0 2px;
  appearance: none;
  background:
    linear-gradient(90deg, #73efff 0 var(--range-progress), rgba(143, 105, 255, 0.4) var(--range-progress) 100%),
    rgba(5, 30, 115, 0.78);
  border: 1px solid rgba(117, 240, 255, 0.52);
  border-radius: 999px;
  box-shadow:
    inset 0 0 18px rgba(7, 17, 91, 0.48),
    0 0 24px rgba(48, 226, 255, 0.18);
  cursor: pointer;
  outline: 0;
}

.license-slider:focus-visible {
  box-shadow:
    0 0 0 4px rgba(117, 240, 255, 0.24),
    inset 0 0 18px rgba(7, 17, 91, 0.48),
    0 0 24px rgba(48, 226, 255, 0.18);
}

.license-slider::-webkit-slider-thumb {
  width: 42px;
  height: 42px;
  appearance: none;
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0 5px, transparent 6px),
    linear-gradient(180deg, #7cf2ff, #1abfe8);
  border: 5px solid #07146c;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(145, 250, 255, 0.82),
    0 0 26px rgba(89, 236, 255, 0.72),
    0 12px 26px rgba(0, 0, 0, 0.28);
}

.license-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0 5px, transparent 6px),
    linear-gradient(180deg, #7cf2ff, #1abfe8);
  border: 5px solid #07146c;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(145, 250, 255, 0.82),
    0 0 26px rgba(89, 236, 255, 0.72),
    0 12px 26px rgba(0, 0, 0, 0.28);
}

.pricing-slider-scale {
  position: relative;
  height: 28px;
  color: rgba(219, 235, 255, 0.74);
  font-size: 14px;
  font-weight: 750;
}

.pricing-slider-scale span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.pricing-slider-scale span:nth-child(1) {
  left: 0;
  transform: none;
}

.pricing-slider-scale span:nth-child(2) {
  left: 5.263%;
}

.pricing-slider-scale span:nth-child(3) {
  left: 15.789%;
}

.pricing-slider-scale span:nth-child(4) {
  left: 26.315%;
}

.pricing-slider-scale span:nth-child(5) {
  left: 47.368%;
}

.pricing-slider-scale span:nth-child(6) {
  right: 0;
  transform: none;
}

.pricing-tier-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 0 0;
  margin: 0;
  list-style: none;
}

.pricing-tier-list li {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  color: rgba(219, 235, 255, 0.72);
  background: rgba(4, 36, 126, 0.42);
  border: 1px solid rgba(108, 202, 255, 0.18);
  border-radius: 16px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.pricing-tier-list li.is-active {
  color: #ffffff;
  background: rgba(3, 128, 204, 0.48);
  border-color: rgba(114, 240, 255, 0.82);
  box-shadow: 0 0 24px rgba(56, 226, 255, 0.22);
}

.pricing-tier-list span {
  font-size: 13px;
  font-weight: 800;
}

.pricing-tier-list strong {
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.08;
  white-space: nowrap;
}

.plan-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 408px;
  padding: clamp(26px, 2vw, 36px) clamp(22px, 1.9vw, 30px) 28px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(140deg, rgba(2, 183, 255, 0.22), transparent 48%),
    rgba(2, 21, 105, 0.72);
  border: 1px solid rgba(39, 203, 255, 0.86);
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 58px rgba(0, 8, 70, 0.28);
}

.plan-card::after {
  position: absolute;
  right: -82px;
  bottom: -86px;
  width: 210px;
  height: 210px;
  content: "";
  background: rgba(36, 214, 255, 0.16);
  border-radius: 50%;
  filter: blur(2px);
}

.plan-card-violet {
  background:
    linear-gradient(140deg, rgba(117, 62, 255, 0.38), transparent 54%),
    rgba(26, 17, 113, 0.78);
  border-color: rgba(135, 91, 255, 0.9);
}

.plan-card-featured {
  background:
    linear-gradient(145deg, rgba(10, 231, 255, 0.3), transparent 52%),
    rgba(1, 39, 111, 0.82);
  border-color: #31e7ff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(54, 230, 255, 0.2),
    0 0 34px rgba(47, 231, 255, 0.74),
    0 22px 62px rgba(0, 8, 70, 0.36);
}

.plan-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.7vw, 24px);
  min-height: 82px;
}

.plan-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 1.65vw, 34px);
  font-weight: 850;
  line-height: 1.12;
}

.plan-icon {
  flex: 0 0 auto;
  display: block;
  width: clamp(68px, 4.9vw, 86px);
  height: clamp(68px, 4.9vw, 86px);
  border: 1px solid rgba(50, 215, 255, 0.82);
  border-radius: 50%;
  box-shadow:
    inset 0 0 26px rgba(13, 124, 255, 0.5),
    0 0 20px rgba(32, 209, 255, 0.24);
}

.plan-icon-one {
  background:
    radial-gradient(circle at 50% 34%, #82f4ff 0 8%, transparent 9%),
    radial-gradient(ellipse at 50% 71%, #82f4ff 0 19%, transparent 20%),
    linear-gradient(145deg, rgba(0, 174, 255, 0.36), rgba(13, 34, 138, 0.96));
}

.plan-icon-two,
.plan-icon-four {
  border-color: rgba(143, 105, 255, 0.88);
  background:
    radial-gradient(circle at 40% 37%, #bd9aff 0 7%, transparent 8%),
    radial-gradient(circle at 61% 37%, #bd9aff 0 7%, transparent 8%),
    radial-gradient(ellipse at 39% 72%, #bd9aff 0 16%, transparent 17%),
    radial-gradient(ellipse at 62% 72%, #bd9aff 0 16%, transparent 17%),
    linear-gradient(145deg, rgba(114, 68, 255, 0.52), rgba(29, 23, 133, 0.96));
}

.plan-icon-three {
  background:
    radial-gradient(circle at 36% 37%, #6cf2ff 0 6.5%, transparent 7.5%),
    radial-gradient(circle at 51% 33%, #6cf2ff 0 7.5%, transparent 8.5%),
    radial-gradient(circle at 66% 37%, #6cf2ff 0 6.5%, transparent 7.5%),
    radial-gradient(ellipse at 36% 73%, #6cf2ff 0 14%, transparent 15%),
    radial-gradient(ellipse at 51% 69%, #6cf2ff 0 16%, transparent 17%),
    radial-gradient(ellipse at 66% 73%, #6cf2ff 0 14%, transparent 15%),
    linear-gradient(145deg, rgba(0, 182, 255, 0.46), rgba(13, 34, 138, 0.96));
}

.plan-icon-four {
  background:
    radial-gradient(circle at 31% 37%, #bd9aff 0 6%, transparent 7%),
    radial-gradient(circle at 46% 34%, #bd9aff 0 7%, transparent 8%),
    radial-gradient(circle at 62% 34%, #bd9aff 0 7%, transparent 8%),
    radial-gradient(circle at 77% 37%, #bd9aff 0 6%, transparent 7%),
    radial-gradient(ellipse at 31% 73%, #bd9aff 0 13%, transparent 14%),
    radial-gradient(ellipse at 47% 70%, #bd9aff 0 15%, transparent 16%),
    radial-gradient(ellipse at 63% 70%, #bd9aff 0 15%, transparent 16%),
    radial-gradient(ellipse at 78% 73%, #bd9aff 0 13%, transparent 14%),
    linear-gradient(145deg, rgba(114, 68, 255, 0.52), rgba(29, 23, 133, 0.96));
}

.plan-price {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  color: #ffffff;
  font-size: clamp(46px, 3.7vw, 66px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.plan-rate {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: rgba(197, 225, 255, 0.94);
  font-size: clamp(22px, 1.55vw, 30px);
  font-weight: 650;
  line-height: 1.12;
}

.plan-badge {
  position: absolute;
  top: 22px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(180deg, #197ff5, #0769e1);
  border: 1px solid rgba(83, 216, 255, 0.72);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 116, 255, 0.28);
  font-size: 16px;
  font-weight: 800;
}

.plan-badge-best {
  background: linear-gradient(180deg, #7d2dff, #5318df);
  border-color: rgba(180, 111, 255, 0.82);
}

.plan-action {
  position: relative;
  z-index: 1;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  margin-top: 44px;
  padding: 0 22px;
  color: #ffffff;
  background: rgba(11, 95, 196, 0.3);
  border: 1px solid #19e7ff;
  border-radius: 999px;
  box-shadow: inset 0 0 24px rgba(30, 193, 255, 0.18);
  font-size: clamp(18px, 1.25vw, 22px);
  font-weight: 850;
  cursor: default;
}

.plan-card-violet .plan-action {
  border-color: #a071ff;
  background: linear-gradient(135deg, rgba(63, 42, 198, 0.58), rgba(126, 30, 241, 0.72));
}

.plan-card-featured .plan-action {
  color: #06135d;
  background: linear-gradient(180deg, #72f0ff 0%, #45dae9 100%);
  border-color: rgba(125, 246, 255, 0.92);
  box-shadow: 0 16px 34px rgba(42, 229, 246, 0.24);
}

.pricing-footnote {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  gap: clamp(20px, 2.5vw, 42px);
  align-items: center;
  margin: 52px 0 38px;
}

.pricing-footnote span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 217, 255, 0.42));
}

.pricing-footnote span:last-child {
  background: linear-gradient(90deg, rgba(100, 217, 255, 0.42), transparent);
}

.pricing-footnote p {
  margin: 0;
  color: rgba(217, 233, 255, 0.9);
  text-align: center;
  font-size: clamp(18px, 1.35vw, 24px);
}

.pricing-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 72px);
  padding-top: 22px;
  border-top: 1px solid rgba(108, 202, 255, 0.2);
}

.pricing-benefit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 74px;
}

.pricing-benefit + .pricing-benefit {
  padding-left: clamp(24px, 3.8vw, 60px);
  border-left: 1px solid rgba(97, 205, 255, 0.38);
}

.pricing-benefit strong {
  display: block;
  color: #ffffff;
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.16;
}

.pricing-benefit p {
  margin: 7px 0 0;
  color: rgba(210, 228, 255, 0.82);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.25;
}

.benefit-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: #35efff;
  background: rgba(7, 63, 163, 0.48);
  border: 1px solid rgba(40, 217, 255, 0.74);
  border-radius: 50%;
  box-shadow:
    inset 0 0 24px rgba(21, 166, 255, 0.46),
    0 0 22px rgba(31, 211, 255, 0.18);
}

.benefit-bolt::before {
  width: 22px;
  height: 42px;
  content: "";
  background: currentColor;
  clip-path: polygon(58% 0, 16% 48%, 46% 48%, 32% 100%, 84% 38%, 54% 38%);
}

.benefit-bars::before {
  width: 10px;
  height: 20px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  box-shadow:
    18px -12px 0 currentColor,
    36px -26px 0 currentColor;
}

.benefit-team::before {
  width: 48px;
  height: 42px;
  content: "";
  background:
    radial-gradient(circle at 24% 24%, currentColor 0 12%, transparent 13%),
    radial-gradient(circle at 68% 24%, currentColor 0 12%, transparent 13%),
    radial-gradient(ellipse at 24% 76%, currentColor 0 22%, transparent 23%),
    radial-gradient(ellipse at 68% 76%, currentColor 0 22%, transparent 23%);
}

.hero {
  min-height: min(690px, 84svh);
  padding: 118px 0 76px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #8d4df6 0%, #647bf6 47%, #6ed2fa 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(71, 32, 159, 0.55) 0%, rgba(96, 99, 220, 0.22) 42%, rgba(255, 255, 255, 0) 67%),
    radial-gradient(circle at 21% 82%, rgba(255, 255, 255, 0.18), transparent 20%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 590px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rank {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(96px, 12vw, 170px);
  font-weight: 900;
  line-height: 0.78;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 500px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.22;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.intro {
  padding: 158px 0 138px;
  color: #ffffff;
  text-align: center;
  background: var(--blue-solid);
}

.lead-grid,
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.intro-center {
  max-width: 940px;
}

.intro .section-kicker {
  color: #ffffff;
}

.intro .section-text {
  max-width: 440px;
  margin: 46px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.15;
}

.section-text,
.demo-copy p,
.lead-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.36;
}

.product-shot {
  padding: 156px 0 96px;
  background: #ffffff;
}

.benefit-grid,
.stats-grid,
.lesson-grid {
  display: grid;
  gap: 18px;
}

.benefit-grid article,
.lesson-card,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(22, 34, 45, 0.06);
}

.product-shot-inner {
  display: flex;
  justify-content: center;
}

.product-shot img {
  width: min(820px, 86vw);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(17, 24, 39, 0.12);
}

.speechkit {
  padding: 104px 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.speechkit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.speechkit-copy {
  max-width: 540px;
}

.speechkit-copy p:not(.section-kicker) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.36;
}

.speech-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.speech-status {
  min-height: 44px;
  padding: 12px 14px;
  color: #334155;
  background: #f4fbfe;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
}

.speech-status.is-error {
  color: #9f2d20;
  background: #fff2f0;
  border-color: #ffd0ca;
}

.speech-status.is-success {
  color: #17684d;
  background: #edfff8;
  border-color: #c4f4e4;
}

.speech-status.is-recording {
  color: #ffffff;
  background: var(--coral);
  border-color: var(--coral);
}

.speech-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.speech-button {
  min-height: 48px;
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #dbe7ef;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.speech-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--blue);
  background: #f4fbfe;
}

.speech-button:disabled {
  color: #9aa3af;
  cursor: not-allowed;
}

.speech-button.record {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.speech-button.record:hover:not(:disabled) {
  background: #263244;
}

.speech-field {
  display: grid;
  gap: 8px;
}

.speech-field span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.speech-field textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px;
  resize: vertical;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  outline: 0;
  font: inherit;
}

.speech-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  outline: 0;
  font: inherit;
}

.speech-field textarea:focus,
.speech-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(110, 210, 250, 0.2);
}

.speech-submit {
  width: 100%;
}

.speech-audio {
  width: 100%;
}

.voice-trainer {
  min-height: 900px;
  padding: 26px 0 46px;
  color: #ffffff;
  background:
    radial-gradient(circle at 49% 100%, rgba(0, 120, 255, 0.42), transparent 25%),
    radial-gradient(circle at 87% 0%, rgba(0, 127, 255, 0.34), transparent 25%),
    radial-gradient(circle at 10% 53%, rgba(0, 104, 214, 0.22), transparent 30%),
    linear-gradient(135deg, #05162d 0%, #062756 52%, #031226 100%);
  overflow: hidden;
}

.voice-trainer .container {
  width: min(100% - 40px, 1740px);
}

.trainer-stage {
  display: grid;
  gap: 36px;
}

.trainer-topline {
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
  color: #ffffff;
}

.trainer-brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}

.trainer-brand strong {
  font-size: clamp(32px, 3.1vw, 44px);
  line-height: 1;
}

.trainer-brand-mark,
.listening-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.trainer-brand-mark i,
.listening-icon i {
  display: block;
  width: 6px;
  background: linear-gradient(180deg, #2bb7ff, #0d67ed);
  border-radius: 999px;
}

.trainer-brand-mark i:nth-child(1),
.trainer-brand-mark i:nth-child(5) {
  height: 18px;
}

.trainer-brand-mark i:nth-child(2),
.trainer-brand-mark i:nth-child(4) {
  height: 38px;
}

.trainer-brand-mark i:nth-child(3) {
  height: 58px;
}

.trainer-divider {
  width: 2px;
  height: 40px;
  background: rgba(63, 181, 255, 0.66);
}

.voice-trainer .scenario-toolbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  display: grid;
  grid-template-columns: minmax(380px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.trainer-tagline {
  margin: 0;
  color: rgba(222, 238, 255, 0.86);
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 500;
}

.trainer-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.trainer-action,
.trainer-user {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
}

.trainer-action span,
.trainer-user span {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: radial-gradient(circle at 50% 35%, #2d95ff, #0c417e 68%);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(104, 198, 255, 0.18),
    0 10px 26px rgba(0, 0, 0, 0.25);
}

.trainer-action.help span::before {
  content: "?";
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
}

.trainer-action.gear span::before {
  width: 24px;
  height: 24px;
  content: "";
  border: 6px dotted #ffffff;
  border-radius: 50%;
}

.trainer-user {
  padding-left: 4px;
}

.trainer-user b {
  max-width: 120px;
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trainer-user span {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 50% 37%, #ffffff 0 17%, transparent 18%),
    radial-gradient(circle at 50% 74%, #ffffff 0 30%, transparent 31%),
    linear-gradient(180deg, #40a7ff, #0d71dd);
  border: 7px solid rgba(45, 149, 255, 0.38);
}

.trainer-user i {
  width: 10px;
  height: 10px;
  border: solid #cfe8ff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
}

.voice-trainer .speech-field {
  gap: 6px;
}

.voice-trainer .speech-field span {
  color: #c9ddf7;
  font-size: 16px;
  font-weight: 600;
}

.voice-trainer .speech-field select {
  min-height: 52px;
  padding: 0 54px 0 54px;
  color: #07165a;
  background:
    linear-gradient(135deg, rgba(16, 118, 255, 0.13), rgba(255, 255, 255, 0) 38%),
    #ffffff;
  border: 1px solid rgba(194, 218, 245, 0.88);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(2, 8, 23, 0.22);
  font-size: 19px;
  font-weight: 750;
}

.scenario-select-field {
  position: relative;
}

.scenario-select-field::before {
  position: absolute;
  bottom: 9px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #0c6ff0;
  content: "вЊ‚";
  background: #eaf4ff;
  border-radius: 8px;
  font-size: 25px;
  line-height: 1;
}

.voice-trainer .scenario-start {
  min-width: 142px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 8px;
  background: #1277f2;
  box-shadow: 0 12px 26px rgba(18, 119, 242, 0.3);
}

.voice-panel {
  display: grid;
  grid-template-columns: minmax(390px, 0.86fr) minmax(690px, 1.42fr);
  gap: clamp(42px, 5.5vw, 86px);
  min-height: 740px;
  padding: 0 28px 0 80px;
  color: #08144a;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.phone-call-screen,
.script-stage {
  min-height: 690px;
}

.phone-call-screen {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 84px 0 28px;
  color: #ffffff;
  overflow: visible;
}

.call-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.speech-status {
  display: none;
  align-items: center;
  max-width: 100%;
  min-height: 46px;
  padding: 0 22px;
  overflow: hidden;
  color: #14f3bc;
  background: rgba(13, 177, 146, 0.2);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speech-status::before {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-right: 13px;
  content: "";
  background: #11f1b8;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(17, 241, 184, 0.8);
}

.speech-status.is-error {
  color: #fecaca;
  background: rgba(190, 18, 60, 0.22);
}

.speech-status.is-error::before {
  background: #fb7185;
}

.speech-status.is-success {
  color: #bbf7d0;
}

.call-timer {
  position: absolute;
  top: 205px;
  right: 64px;
  flex: 0 0 auto;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 2.1vw, 32px);
  letter-spacing: 0;
}

.caller-profile {
  position: relative;
  align-self: center;
  text-align: center;
}

.avatar-halo {
  display: grid;
  place-items: center;
  width: clamp(220px, 15.5vw, 278px);
  height: clamp(220px, 15.5vw, 278px);
  margin: 0 auto 24px;
  background:
    radial-gradient(circle, rgba(22, 57, 88, 0.2) 0 47%, rgba(15, 103, 178, 0.45) 48% 60%, transparent 61%),
    radial-gradient(circle, rgba(38, 119, 202, 0.16), transparent 70%);
  border-radius: 50%;
}

.call-avatar {
  display: grid;
  place-items: center;
  width: 74%;
  height: 74%;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 32%, #c7e6ff 0 8%, transparent 9%),
    radial-gradient(circle at 50% 42%, #114b76 0 18%, transparent 19%),
    radial-gradient(circle at 50% 76%, #eff7ff 0 38%, transparent 39%),
    linear-gradient(135deg, #8bbbe5, #f8d1bf 48%, #e8f6ff);
  border: 7px solid rgba(25, 112, 188, 0.78);
  border-radius: 50%;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
  font-size: 0;
}

.call-label {
  display: block;
  color: rgba(211, 232, 255, 0.86);
  font-size: 16px;
  line-height: 1.2;
}

.phone-call-screen strong[data-call-title] {
  display: block;
  max-width: 100%;
  margin: 8px auto 12px;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: clamp(32px, 2.8vw, 42px);
  line-height: 1.05;
}

.phone-call-screen p {
  margin: 8px 0 0;
  color: rgba(206, 229, 255, 0.86);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.35;
}

.voice-meter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
}

.voice-meter span {
  display: block;
  width: 6px;
  height: 10px;
  background: rgba(69, 118, 164, 0.68);
  border-radius: 999px;
  transition:
    background 0.2s ease,
    height 0.2s ease,
    opacity 0.2s ease;
}

.voice-meter span:nth-child(3n + 1) {
  height: 18px;
}

.voice-meter span:nth-child(4n + 2) {
  height: 33px;
}

.voice-meter span:nth-child(5n + 3) {
  height: 52px;
}

.voice-meter span:nth-child(-n + 10) {
  background: #11ddb4;
}

.voice-meter span:nth-child(8),
.voice-meter span:nth-child(9),
.voice-meter span:nth-child(10) {
  background: #27eaca;
}

.voice-panel.is-listening .voice-meter span,
.voice-panel.is-speaking .voice-meter span {
  animation: voicePulse 0.78s ease-in-out infinite alternate;
}

.voice-panel.is-listening .voice-meter span {
  background: #11f1b8;
}

.voice-panel.is-speaking .voice-meter span {
  background: #2d8cf0;
}

.voice-panel.is-listening .voice-meter span:nth-child(2n),
.voice-panel.is-speaking .voice-meter span:nth-child(2n) {
  animation-delay: 0.12s;
}

.voice-panel.is-listening .voice-meter span:nth-child(3n),
.voice-panel.is-speaking .voice-meter span:nth-child(3n) {
  animation-delay: 0.24s;
}

.voice-last-turn {
  display: none;
}

.voice-last-turn span {
  display: block;
  color: #ffffff;
  font-size: 16px;
  font-weight: 750;
}

.voice-last-turn p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  color: rgba(223, 237, 255, 0.84);
  font-size: 14px;
  line-height: 1.35;
}

.phone-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: clamp(52px, 7vw, 120px);
  align-items: end;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}

.call-control {
  display: grid;
  gap: 12px;
  justify-items: center;
  min-width: 0;
  padding: 0;
  color: #eaf4ff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.call-control:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.call-control span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(86px, 6.8vw, 104px);
  height: clamp(86px, 6.8vw, 104px);
  background: radial-gradient(circle at 50% 35%, #1e5c98, #083663 72%);
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.call-control strong {
  color: #e5f2ff;
  font-size: 19px;
  font-weight: 700;
}

.call-control.pause span::before,
.call-control.pause span::after {
  display: block;
  width: 10px;
  height: 38px;
  content: "";
  background: #ffffff;
  border-radius: 999px;
}

.call-control.pause span::after {
  margin-left: 12px;
}

.call-control.hangup span {
  background: linear-gradient(180deg, #ff404a, #fd3139);
}

.call-control.hangup span::before {
  width: 46px;
  height: 22px;
  content: "";
  border: 11px solid #ffffff;
  border-top: 0;
  border-radius: 0 0 44px 44px;
}

.call-control.settings span::before,
.call-control.settings span::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.call-control.settings span::before {
  width: 44px;
  height: 44px;
  border: 11px dotted #ffffff;
}

.call-control.settings span::after {
  width: 16px;
  height: 16px;
  background: #ffffff;
}

.script-stage {
  display: grid;
  grid-template-rows: minmax(430px, 1fr) auto auto;
  gap: 16px;
  align-self: center;
  min-height: 730px;
  padding: 26px;
  color: #07144f;
  background: rgba(2, 76, 149, 0.38);
  border: 1px solid rgba(28, 145, 255, 0.78);
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 1px rgba(110, 210, 250, 0.12),
    0 28px 70px rgba(0, 0, 0, 0.34);
}

.script-stage .scenario-meta {
  display: none;
}

.script-coach {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 18px;
  align-items: center;
  align-self: stretch;
  min-height: clamp(430px, 31vw, 560px);
  padding: clamp(38px, 5vw, 72px) 24px clamp(24px, 3vw, 40px);
  color: #07144f;
  background:
    radial-gradient(circle at 50% 40%, rgba(211, 236, 255, 0.82), transparent 62%),
    #f2f8ff;
  border: 0;
  border-radius: 22px 22px 0 0;
}

.script-coach[hidden] {
  display: none;
}

.script-prompt {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.script-prompt span {
  display: none;
  min-height: 54px;
  align-items: center;
  padding: 0 30px;
  color: #ffffff;
  background: linear-gradient(180deg, #1884f6, #096ce8);
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(9, 108, 232, 0.2);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 650;
}

.script-prompt p {
  max-width: 900px;
  margin: 0;
  color: #07142f;
  font-size: clamp(38px, 3.25vw, 58px);
  font-weight: 850;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.script-coach.is-system .script-prompt span {
  background: linear-gradient(180deg, #19a4ff, #086deb);
}

.script-coach.is-system .script-prompt p,
.script-coach.is-client .script-prompt p {
  max-width: 1040px;
  color: #102457;
  font-size: clamp(28px, 2.65vw, 42px);
  font-weight: 650;
  line-height: 1.28;
}

.scenario-progress,
.scenario-objectives {
  background: #ffffff;
}

.script-prompt small {
  max-width: 940px;
  color: #526690;
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.script-prompt small[hidden] {
  display: none;
}

.script-arrow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  background: #dcecff;
  border: 0;
  border-radius: 50%;
}

.script-arrow::before {
  width: 16px;
  height: 16px;
  content: "";
  border: solid #2c5f9e;
  border-width: 0 4px 4px 0;
}

.script-arrow.prev::before {
  transform: rotate(135deg);
}

.script-arrow.next::before {
  transform: rotate(-45deg);
}

.script-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.script-coach.is-warning {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 230, 230, 0.82), transparent 62%),
    #fff7f7;
  border-color: #fecdd3;
}

.listening-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 88px;
  padding: 16px 28px;
  background: #f4f9ff;
  border: 1px solid #b8d3f3;
  border-radius: 8px;
}

.listening-icon {
  width: 70px;
  height: 70px;
  background: #e8f3ff;
  border-radius: 50%;
}

.listening-icon i {
  width: 5px;
}

.listening-icon i:nth-child(1),
.listening-icon i:nth-child(5) {
  height: 22px;
}

.listening-icon i:nth-child(2),
.listening-icon i:nth-child(4) {
  height: 43px;
}

.listening-icon i:nth-child(3) {
  height: 58px;
}

.listening-card strong {
  color: #07144f;
  font-size: 20px;
  line-height: 1.2;
}

.listening-card p {
  margin: 8px 0 0;
  color: #7382ae;
  font-size: 16px;
  line-height: 1.35;
}

.stage-help-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 18px 24px;
  color: #07144f;
  background:
    linear-gradient(135deg, rgba(228, 243, 255, 0.86), rgba(255, 255, 255, 0.96)),
    #ffffff;
  border: 1px solid #b8d3f3;
  border-radius: 8px;
}

.stage-help-card[hidden] {
  display: none;
}

.stage-help-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  background: linear-gradient(180deg, #1e94ff, #0875ef);
  border: 8px solid #dbeeff;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(14, 117, 239, 0.22);
}

.stage-help-icon::before {
  width: 24px;
  height: 30px;
  content: "";
  border: 3px solid #ffffff;
  border-radius: 4px;
  box-shadow: inset 0 9px 0 rgba(255, 255, 255, 0.22);
}

.stage-help-icon::after {
  position: absolute;
  width: 12px;
  height: 3px;
  content: "";
  background: #ffffff;
  box-shadow:
    0 7px 0 #ffffff,
    0 14px 0 #ffffff;
}

.stage-help-copy {
  min-width: 0;
}

.stage-help-copy strong {
  display: block;
  color: #07144f;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.15;
}

.stage-help-copy p {
  margin: 6px 0 12px;
  color: #243e70;
  font-size: 17px;
  line-height: 1.35;
}

.stage-help-copy ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stage-help-copy li {
  position: relative;
  padding-left: 28px;
  color: #071f58;
  font-size: 17px;
  line-height: 1.35;
}

.stage-help-copy li::before {
  position: absolute;
  top: 0.5em;
  left: 3px;
  width: 12px;
  height: 12px;
  content: "";
  background: linear-gradient(180deg, #1e94ff, #0875ef);
  border-radius: 50%;
}

.scenario-admin-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.scenario-admin-header,
.knowledge-panel {
  grid-column: 1 / -1;
}

.scenario-admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.scenario-admin-header .section-kicker,
.knowledge-header .section-kicker {
  margin-bottom: 6px;
}

.scenario-admin-header h3,
.knowledge-header h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.scenario-admin-header strong,
.knowledge-header strong {
  flex: 0 0 auto;
  color: #0f766e;
  font-size: 14px;
  font-weight: 900;
}

.scenario-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scenario-admin-grid label,
.scenario-admin-field {
  display: grid;
  gap: 8px;
}

.scenario-admin-grid span,
.scenario-admin-field span {
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.scenario-admin-grid input,
.scenario-admin-field textarea,
.knowledge-panel textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--ink);
  background: #f8fbfd;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  font: inherit;
  line-height: 1.45;
}

.scenario-admin-field textarea {
  min-height: 92px;
  resize: vertical;
}

.scenario-admin-field textarea[data-scenario-admin-objectives],
.scenario-admin-field textarea[data-scenario-admin-rubric] {
  min-height: 132px;
}

.scenario-admin-field textarea[data-scenario-admin-script] {
  min-height: 340px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.scenario-admin-grid input:focus,
.scenario-admin-field textarea:focus,
.knowledge-panel textarea:focus {
  outline: 2px solid rgba(105, 204, 241, 0.45);
  outline-offset: 2px;
}

.scenario-admin-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.scenario-admin-panel.is-saved .scenario-admin-header strong {
  color: #0f766e;
}

.scenario-admin-panel.is-error .scenario-admin-header strong {
  color: #b42318;
}

.passage-history-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: 24px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.passage-history-header,
.passage-history-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.passage-history-header .section-kicker {
  margin-bottom: 6px;
}

.passage-history-header h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.passage-history-header strong {
  flex: 0 0 auto;
  color: #0f766e;
  font-size: 14px;
  font-weight: 900;
}

.passage-history-panel.is-error .passage-history-header strong {
  color: #b42318;
}

.passage-history-actions {
  justify-content: flex-start;
}

.passage-history-list {
  display: grid;
  gap: 12px;
}

.passage-history-item {
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #f8fbfd;
  overflow: hidden;
}

.passage-history-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
}

.passage-history-item summary strong {
  color: #07144f;
  font-size: 16px;
}

.passage-history-item summary span {
  color: #50617d;
  font-size: 14px;
  white-space: nowrap;
}

.passage-history-attempts {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.passage-history-attempt {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border-left: 5px solid #dc2626;
  border-radius: 8px;
}

.passage-history-attempt.is-passed {
  border-left-color: #16a34a;
}

.passage-history-attempt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.passage-history-attempt-head strong {
  color: #07144f;
}

.passage-history-attempt-head span {
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}

.passage-history-text {
  display: grid;
  gap: 5px;
}

.passage-history-text strong {
  color: #0b72e7;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.passage-history-text p,
.passage-history-empty {
  margin: 0;
  color: #17233f;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.passage-history-empty {
  color: #64748b;
  padding: 14px 0;
}

.knowledge-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.knowledge-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.knowledge-panel textarea {
  min-height: 180px;
  resize: vertical;
}

.knowledge-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.knowledge-status {
  min-height: 20px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.42;
}

.knowledge-status.is-success {
  color: #0f766e;
}

.knowledge-status.is-error {
  color: #b42318;
}

@keyframes voicePulse {
  from {
    height: 12px;
    opacity: 0.58;
  }

  to {
    height: 40px;
    opacity: 1;
  }
}

.llm {
  padding: 104px 0;
  color: #ffffff;
  background: #111827;
}

.llm-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.llm-copy {
  max-width: 560px;
}

.llm .section-kicker {
  color: var(--blue);
}

.llm h2 {
  color: #ffffff;
}

.llm-copy p:not(.section-kicker) {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.36;
}

.llm-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.scenario-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.scenario-start {
  min-width: 160px;
}

.scenario-meta {
  min-height: 46px;
  padding: 12px 14px;
  color: #475569;
  background: #f7fbfd;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.38;
}

.scenario-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 64px;
  padding: 18px 34px 6px;
}

.scenario-stage-label,
.scenario-progress strong {
  color: #07144f;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 800;
  line-height: 1.1;
}

.scenario-progress-track {
  height: 18px;
  overflow: hidden;
  background: #dde6f1;
  border-radius: 999px;
}

.scenario-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0a6ff0, #1f97ff);
  border-radius: inherit;
  transition: width 0.24s ease;
}

.scenario-progress strong[data-scenario-score] {
  min-width: 62px;
  text-align: right;
}

.scenario-objectives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 0;
  padding: 0 28px 26px;
  margin: 0;
  list-style: none;
  border: 0;
  border-radius: 0 0 22px 22px;
  overflow: hidden;
}

.scenario-objectives li {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 132px;
  padding: 14px 10px 12px;
  color: #07144f;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid #c7dcf3;
  border-bottom: 1px solid #c7dcf3;
}

.scenario-objectives li + li {
  border-left: 1px solid #d7e3f1;
}

.scenario-objectives li:first-child {
  border-left: 1px solid #c7dcf3;
  border-radius: 8px 0 0 8px;
}

.scenario-objectives li:last-child {
  border-right: 1px solid #c7dcf3;
  border-radius: 0 8px 8px 0;
}

.scenario-objectives li::before {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  color: #07144f;
  content: attr(data-step);
  background: #e7eef9;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 850;
}

.scenario-objectives li strong {
  display: block;
  max-width: 150px;
  color: #07144f;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.28;
}

.scenario-objectives li span {
  display: block;
  margin-top: 6px;
  color: #8190b8;
  font-size: 14px;
  line-height: 1.25;
}

.scenario-objectives li.is-current {
  background: #dceeff;
}

.scenario-objectives li.is-current::before {
  color: #ffffff;
  background: linear-gradient(180deg, #1884f6, #096ce8);
}

.scenario-objectives li.is-current span {
  color: #1177f2;
}

.scenario-objectives li.is-complete span {
  color: #8190b8;
}

.llm-messages {
  display: grid;
  gap: 10px;
  min-height: 220px;
  max-height: 360px;
  padding: 14px;
  overflow: auto;
  background: #f7fbfd;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
}

.llm-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.42;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.llm-message.assistant {
  justify-self: start;
  color: #111827;
  background: #edfaff;
  border: 1px solid #d8f3ff;
}

.llm-message.user {
  justify-self: end;
  color: #ffffff;
  background: #111827;
}

.llm-message.error {
  justify-self: start;
  color: #9f2d20;
  background: #fff2f0;
  border: 1px solid #ffd0ca;
}

.feature-band {
  padding: 120px 0;
  background: #eeeeee;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px) 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.feature-column {
  display: grid;
  gap: 52px;
}

.feature-column.left {
  text-align: right;
}

.feature-column article {
  position: relative;
}

.feature-column h3 {
  font-size: 18px;
}

.feature-column p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.38;
}

.line-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: #111827;
  font-size: 24px;
}

.phone-frame {
  height: 520px;
  overflow: hidden;
  border: 10px solid #111827;
  border-radius: 36px;
  background: #111827;
  box-shadow: 0 34px 82px rgba(17, 24, 39, 0.18);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% center;
}

.benefit-grid p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.benefits {
  padding: 100px 0;
  background: #ffffff;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 38px;
}

.section-heading.compact {
  max-width: 800px;
}

.benefit-grid {
  grid-template-columns: repeat(3, 1fr);
}

.benefit-grid article {
  min-height: 260px;
  padding: 30px;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 36px;
  color: var(--blue-deep);
  background: #edfaff;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 700;
}

.results {
  padding: 96px 0;
  background: #111827;
  color: #ffffff;
}

.results .section-kicker {
  color: var(--blue);
}

.results h2 {
  color: #ffffff;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid div {
  min-height: 170px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.stats-grid strong {
  display: block;
  color: var(--blue);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 900;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.client-strip span {
  display: grid;
  place-items: center;
  min-height: 72px;
  color: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.demo {
  padding: 100px 0;
  background: #ffffff;
}

.demo-copy {
  max-width: 500px;
}

.demo-copy p {
  margin-top: 24px;
}

.lesson-grid {
  grid-template-columns: repeat(2, 1fr);
}

.lesson-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  color: #111827;
  background:
    linear-gradient(135deg, rgba(110, 210, 250, 0.22), rgba(255, 255, 255, 0) 52%),
    #ffffff;
}

.lesson-card::after {
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: 116px;
  height: 116px;
  content: "";
  border-radius: 50%;
  background: rgba(110, 210, 250, 0.38);
}

.lesson-card.accent::after {
  background: rgba(110, 210, 250, 0.5);
}

.lesson-card.green::after {
  background: rgba(56, 214, 163, 0.44);
}

.lesson-card.coral::after {
  background: rgba(255, 120, 104, 0.42);
}

.lesson-card span,
.lesson-card em {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.lesson-card strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 240px;
  margin: 18px 0 22px;
  font-size: 24px;
  line-height: 1.12;
}

.lesson-card .qr {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  margin: 0 0 18px;
  border: 8px solid #ffffff;
  border-radius: 4px;
  background:
    linear-gradient(90deg, #111827 12px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(#111827 12px, transparent 0) 0 0 / 24px 24px,
    conic-gradient(from 90deg, #111827 0 25%, transparent 0 50%, #111827 0 75%, transparent 0) 0 0 /
      18px 18px,
    #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}

.lead {
  padding: 112px 0;
  color: #ffffff;
  background: #272727;
}

.lead-copy {
  align-self: start;
}

.lead-copy p {
  color: rgba(255, 255, 255, 0.68);
  margin-top: 24px;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.lead-form label,
.lead-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
}

.lead-form span,
.lead-form legend {
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  outline: 0;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

.lead-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(110, 210, 250, 0.2);
}

.lead-form fieldset {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.lead-form fieldset label,
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.lead-form input[type="radio"],
.lead-form input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--blue-deep);
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.form-note.success {
  color: var(--green);
  font-weight: 750;
}

.footer {
  padding: 34px 0;
  color: var(--ink);
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer p,
.footer span {
  display: block;
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.footer-brand {
  color: var(--ink);
}

@media (max-width: 1080px) {
  .nav {
    gap: 14px;
    font-size: 15px;
  }

  .demo-button {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trainer-topline {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .trainer-divider {
    display: none;
  }

  .voice-panel {
    grid-template-columns: 1fr;
  }

  .phone-call-screen,
  .script-stage {
    min-height: auto;
  }

  .pricing-heading {
    margin-top: 18px;
  }

  .pricing-slider-card {
    grid-template-columns: 1fr;
  }

  .pricing-slider-panel {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid rgba(108, 240, 255, 0.24);
    border-left: 0;
  }

  .pricing-note {
    display: none;
  }

  .pricing-benefits {
    gap: 18px;
  }

  .pricing-benefit + .pricing-benefit {
    padding-left: 24px;
  }
}

@media (max-width: 860px) {
  .topbar {
    height: 66px;
  }

  .nav {
    position: fixed;
    top: 66px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--ink);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 4px;
  }

  .nav a.is-active::after {
    right: auto;
    bottom: 5px;
    width: 76px;
  }

  .menu-button {
    display: block;
  }

  .brand {
    font-size: 24px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark i {
    width: 4px;
  }

  .brand-mark i:nth-child(1),
  .brand-mark i:nth-child(5) {
    height: 16px;
  }

  .brand-mark i:nth-child(2),
  .brand-mark i:nth-child(4) {
    height: 24px;
  }

  .brand-mark i:nth-child(3) {
    height: 34px;
  }

  .login-button {
    font-size: 15px;
  }

  .pricing-page {
    min-height: auto;
    padding: 96px 0 42px;
  }

  .pricing-container {
    width: min(100% - 32px, 720px);
  }

  .pricing-heading {
    margin: 12px auto 30px;
  }

  .pricing-slider-card {
    min-height: auto;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .pricing-slider-topline {
    align-items: flex-start;
  }

  .pricing-tier-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-tier-list li:last-child {
    grid-column: 1 / -1;
  }

  .plan-card {
    min-height: 360px;
  }

  .pricing-footnote {
    grid-template-columns: 1fr;
    margin: 34px 0 28px;
  }

  .pricing-footnote span {
    display: none;
  }

  .pricing-benefits {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-benefit + .pricing-benefit {
    padding-left: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(97, 205, 255, 0.32);
    border-left: 0;
  }

  .hero {
    min-height: 640px;
    padding: 98px 0 46px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(58, 31, 137, 0.74) 0%, rgba(91, 72, 210, 0.42) 62%, rgba(0, 0, 0, 0.08) 100%),
      linear-gradient(90deg, rgba(68, 33, 155, 0.58), rgba(255, 255, 255, 0));
  }

  .hero-media img {
    object-position: 64% center;
  }

  .lead-grid,
  .speechkit-grid,
  .voice-trainer-grid,
  .llm-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .voice-trainer {
    padding-top: 82px;
  }

  .trainer-topline {
    align-items: stretch;
  }

  .voice-trainer .scenario-toolbar {
    grid-template-columns: 1fr;
  }

  .voice-trainer .scenario-start {
    width: 100%;
  }

  .script-coach {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
    padding: 24px 12px;
  }

  .script-arrow {
    width: 44px;
    height: 44px;
  }

  .scenario-progress {
    grid-template-columns: 1fr auto;
  }

  .scenario-progress-track {
    grid-column: 1 / -1;
    order: 3;
  }

  .scenario-objectives {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-objectives li:nth-child(odd) {
    border-left: 0;
  }

  .benefit-grid,
  .client-strip {
    grid-template-columns: 1fr;
  }

  .benefit-grid article {
    min-height: auto;
  }

  .feature-layout {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .feature-column.left {
    text-align: left;
  }

  .phone-frame {
    order: -1;
    width: min(310px, 86vw);
    height: 460px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    padding: 0 14px;
  }

  .tg-link,
  .lang-toggle {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .auth-modal {
    padding: 14px;
  }

  .auth-card {
    max-height: calc(100dvh - 28px);
    padding: 24px 16px;
    border-radius: 16px;
  }

  .auth-avatar {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
  }

  .auth-avatar::before {
    top: 16px;
    left: 24px;
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  .auth-avatar::after {
    top: 39px;
    left: 19px;
    width: 27px;
    height: 17px;
    border-width: 3px;
  }

  .auth-form h2,
  .auth-signed h2 {
    font-size: 27px;
  }

  .auth-subtitle,
  .auth-signed p {
    margin: 8px 0 18px;
    font-size: 16px;
  }

  .auth-field {
    min-height: 48px;
    margin-bottom: 10px;
  }

  .auth-field input {
    height: 46px;
    padding: 0 48px 0 54px;
    font-size: 16px;
  }

  .auth-icon {
    left: 18px;
    transform: scale(0.82);
    transform-origin: center;
  }

  .auth-eye {
    right: 8px;
  }

  .auth-terms {
    grid-template-columns: 26px 1fr;
    gap: 12px;
    font-size: 14px;
  }

  .auth-terms span {
    width: 26px;
    height: 26px;
  }

  .auth-submit {
    min-height: 48px;
    font-size: 17px;
  }

  .auth-separator {
    margin: 18px 0;
    font-size: 15px;
  }

  .auth-socials {
    gap: 10px;
  }

  .auth-social {
    min-height: 46px;
    font-size: 25px;
  }

  .pricing-heading h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .pricing-heading p {
    font-size: 18px;
  }

  .plan-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .plan-badge {
    position: relative;
    top: auto;
    right: auto;
    justify-self: start;
    margin-bottom: 12px;
  }

  .plan-price {
    font-size: clamp(42px, 13vw, 56px);
  }

  .plan-rate {
    font-size: 21px;
  }

  .plan-action {
    min-height: 62px;
    margin-top: 30px;
  }

  .benefit-symbol {
    width: 68px;
    height: 68px;
  }

  .hero-media img {
    object-position: 67% center;
  }

  .intro,
  .product-shot,
  .speechkit,
  .voice-trainer,
  .llm,
  .feature-band,
  .benefits,
  .results,
  .demo,
  .lead {
    padding: 68px 0;
  }

  .lesson-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    padding: 18px;
  }

  .speech-panel,
  .voice-panel {
    padding: 18px;
  }

  .voice-panel {
    min-height: auto;
    padding: 14px;
  }

  .speech-controls,
  .scenario-admin-grid,
  .scenario-admin-actions,
  .knowledge-actions {
    grid-template-columns: 1fr;
  }

  .scenario-admin-panel,
  .knowledge-panel {
    padding: 18px;
  }

  .scenario-admin-header,
  .knowledge-header {
    display: grid;
  }

  .scenario-toolbar {
    grid-template-columns: 1fr;
  }

  .scenario-start {
    width: 100%;
  }

  .phone-call-screen {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 20px;
    text-align: center;
  }

  .call-avatar {
    margin: 0 auto;
  }

  .trainer-brand strong {
    font-size: 30px;
  }

  .call-topline {
    display: grid;
  }

  .speech-status {
    width: 100%;
    justify-content: center;
  }

  .phone-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .call-control span {
    width: 64px;
    height: 64px;
  }

  .call-control strong {
    font-size: 12px;
  }

  .script-stage {
    padding: 14px;
  }

  .script-coach {
    grid-template-columns: 1fr;
  }

  .script-arrow {
    display: none;
  }

  .script-prompt {
    gap: 28px;
  }

  .script-prompt p {
    font-size: clamp(28px, 11vw, 42px);
  }

  .listening-card {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 18px;
    text-align: center;
  }

  .stage-help-card {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 18px;
    text-align: left;
  }

  .stage-help-copy strong,
  .stage-help-copy p {
    text-align: center;
  }

  .scenario-objectives {
    grid-template-columns: 1fr;
  }

  .scenario-objectives li + li {
    border-top: 1px solid #d7e3f1;
    border-left: 0;
  }
}

/* Auth page: quieter product style */
.auth-page-body {
  background: #f6f5f2;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.auth-page {
  grid-template-columns: minmax(260px, 0.86fr) minmax(420px, 500px);
  gap: clamp(28px, 5vw, 72px);
}

.auth-page-copy {
  gap: 14px;
}

.auth-page-copy p {
  color: #525866;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.auth-page-copy h1 {
  max-width: 520px;
  color: #1d2430;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.16;
}

.auth-page-copy ul {
  gap: 8px;
  max-width: 460px;
}

.auth-page-copy li {
  padding-left: 18px;
  color: #596273;
  font-size: 15px;
}

.auth-page-copy li::before {
  top: 0.72em;
  width: 5px;
  height: 5px;
  background: #596273;
}

.auth-page .auth-card,
.auth-page .auth-card.is-register,
.auth-page .auth-card.is-login,
.auth-page .auth-card.is-profile {
  padding: 24px;
  border-color: #dedbd2;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(31, 36, 48, 0.08);
}

.auth-page .auth-form h2,
.auth-page .auth-card.is-register .auth-form h2,
.auth-page .auth-signed h2 {
  color: #1d2430;
  font-size: 24px;
  font-weight: 700;
}

.auth-page .auth-subtitle,
.auth-page .auth-card.is-register .auth-subtitle,
.auth-page .auth-signed p {
  margin-bottom: 14px;
  color: #697180;
  font-size: 14px;
}

.auth-page .auth-name-grid,
.auth-page .auth-choice-grid,
.auth-page .auth-agency-fields {
  gap: 8px;
}

.auth-page .auth-name-grid {
  margin-bottom: 8px;
}

.auth-page .auth-field,
.auth-page .auth-card.is-register .auth-field {
  min-height: 42px;
  margin-bottom: 8px;
  border-color: #d7d4cb;
  border-radius: 6px;
}

.auth-page .auth-field input,
.auth-page .auth-card.is-register .auth-field input {
  height: 40px;
  padding: 0 38px;
  font-size: 14px;
}

.auth-page .auth-onboarding,
.auth-page .auth-card.is-register .auth-onboarding {
  margin-bottom: 8px;
}

.auth-page .auth-onboarding p,
.auth-page .auth-card.is-register .auth-onboarding p {
  margin-bottom: 7px;
  color: #2d3340;
  font-size: 13px;
  font-weight: 700;
}

.auth-page .auth-choice-grid span,
.auth-page .auth-card.is-register .auth-choice-grid span {
  position: relative;
  min-height: 44px;
  padding: 9px 12px 9px 36px;
  border-color: #d7d4cb;
  border-radius: 6px;
}

.auth-page .auth-choice-grid span::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 12px;
  height: 12px;
  content: "";
  border: 1px solid #9aa1ae;
  border-radius: 50%;
  transform: translateY(-50%);
}

.auth-page .auth-choice-grid input:checked + span::before {
  border-color: #1f5fbf;
  box-shadow: inset 0 0 0 3px #ffffff;
  background: #1f5fbf;
}

.auth-page .auth-choice-grid input:checked + span {
  background: #f7f9fc;
  border-color: #9bb7e4;
  box-shadow: none;
}

.auth-page .auth-choice-icon,
.auth-page .auth-card.is-register .auth-choice-icon {
  display: none;
}

.auth-page .auth-choice-grid strong,
.auth-page .auth-card.is-register .auth-choice-grid strong {
  font-size: 14px;
  font-weight: 700;
}

.auth-page .auth-agency-fields {
  display: grid;
  grid-template-columns: minmax(132px, 0.7fr) minmax(0, 1fr);
  margin-bottom: 0;
}

.auth-page .auth-agency-fields[hidden] {
  display: none;
}

.auth-page .auth-select-field {
  display: grid;
  grid-template-columns: 1fr;
  align-content: stretch;
  gap: 0;
  padding: 0;
}

.auth-page .auth-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.auth-page .auth-select-field select {
  width: 100%;
  height: 40px;
  padding: 0 30px 0 12px;
  color: #111827;
  background: #ffffff;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 14px;
  appearance: none;
  cursor: pointer;
}

.auth-page .auth-select-field::after {
  position: absolute;
  top: 15px;
  right: 13px;
  width: 8px;
  height: 8px;
  content: "";
  border: solid #697180;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}

.auth-icon-briefcase::before {
  inset: 8px 2px 4px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.auth-icon-briefcase::after {
  top: 4px;
  left: 8px;
  width: 10px;
  height: 7px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.auth-page .auth-terms,
.auth-page .auth-card.is-register .auth-terms {
  grid-template-columns: 18px 1fr;
  gap: 8px;
  margin-bottom: 6px;
  color: #596273;
  font-size: 12px;
}

.auth-page .auth-terms span,
.auth-page .auth-card.is-register .auth-terms span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.auth-page .auth-message {
  margin-bottom: 6px;
}

.auth-page .auth-submit,
.auth-page .auth-card.is-register .auth-submit {
  min-height: 42px;
  background: #1f5fbf;
  border-radius: 6px;
  font-size: 14px;
}

.auth-page .auth-switch {
  margin-top: 12px;
  font-size: 13px;
}

@media (max-width: 560px) {
  .auth-page .auth-agency-fields {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   FINAL VOICE TRAINER OVERRIDES
   РњР°РєРµС‚: РµРґРёРЅС‹Р№ С‚С‘РјРЅС‹Р№ СЌРєСЂР°РЅ + РІСЃС‚СЂРѕРµРЅРЅР°СЏ СЃРІРµС‚Р»Р°СЏ РєР°СЂС‚РѕС‡РєР° СЃС†РµРЅР°СЂРёСЏ.
   Р”РѕР±Р°РІР»РµРЅРѕ РїРѕРІРµСЂС… РёСЃС…РѕРґРЅС‹С… СЃС‚РёР»РµР№, С‡С‚РѕР±С‹ РЅРµ Р»РѕРјР°С‚СЊ РѕСЃС‚Р°Р»СЊРЅСѓСЋ СЃС‚СЂР°РЅРёС†Сѓ.
   ========================================================= */

.voice-trainer {
  min-height: 100svh;
  padding: 24px 0 42px;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 110%, rgba(0, 111, 255, 0.38), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(0, 116, 255, 0.22), transparent 22%),
    radial-gradient(circle at 8% 48%, rgba(0, 104, 214, 0.18), transparent 31%),
    linear-gradient(135deg, #05162d 0%, #062756 53%, #031226 100%);
}

.voice-trainer .container {
  width: min(calc(100% - 48px), 1780px);
}

.trainer-stage {
  gap: 26px;
}

.voice-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 0.78fr) minmax(760px, 1.52fr);
  gap: clamp(38px, 5vw, 80px);
  min-height: 760px;
  padding: 0 26px 0 72px;
  color: #08144a;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

/* Р›РµРІР°СЏ С‡Р°СЃС‚СЊ вЂ” СЌС‚Рѕ РѕСЃРЅРѕРІР° РІСЃРµРіРѕ СЌРєСЂР°РЅР°, Р±РµР· РѕС‚РґРµР»СЊРЅРѕР№ "РєР°СЂС‚РѕС‡РєРё". */
.phone-call-screen {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 720px;
  padding: 70px 0 28px;
  color: #ffffff;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.call-topline,
.speech-status,
.voice-last-turn,
.listening-card,
.stage-help-card {
  display: none !important;
}

.caller-profile {
  position: relative;
  align-self: center;
  margin-top: -6px;
  text-align: center;
}

.avatar-halo {
  width: clamp(210px, 14.6vw, 264px);
  height: clamp(210px, 14.6vw, 264px);
  margin: 0 auto 20px;
}

/* РўР°Р№РјРµСЂ: С‚РѕР»СЊРєРѕ mm:ss, РєРѕРјРїР°РєС‚РЅРѕ Рё РІС‹С€Рµ вЂ” СЂСЏРґРѕРј СЃ Р°РІР°С‚Р°СЂРѕРј. */
.call-timer {
  position: absolute;
  z-index: 2;
  top: 118px;
  right: 54px;
  color: rgba(236, 245, 255, 0.96);
  font-variant-numeric: tabular-nums;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* РџРѕРґРїРёСЃРё РєР»РёРµРЅС‚Р° */
.call-label {
  margin-top: 4px;
  color: rgba(211, 232, 255, 0.82);
  font-size: 15px;
}

.phone-call-screen strong[data-call-title] {
  max-width: 100%;
  margin: 8px auto 8px;
  color: #ffffff;
  font-size: clamp(31px, 2.45vw, 39px);
  font-weight: 800;
  line-height: 1.04;
}

.phone-call-screen p {
  max-width: 520px;
  margin: 8px auto 0;
  color: rgba(210, 231, 255, 0.9);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.35;
}

/* Р’РѕР»РЅР° */
.voice-meter {
  min-height: 72px;
  margin-top: 20px;
}

/* Р”РІРµ РіР»Р°РІРЅС‹Рµ РєРЅРѕРїРєРё: РџР°СѓР·Р° / Р—Р°РІРµСЂС€РёС‚СЊ */
.phone-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: clamp(58px, 7vw, 112px);
  align-items: end;
  justify-content: center;
  width: min(420px, 100%);
  margin: 0 auto;
}

.call-control span {
  width: clamp(84px, 6.3vw, 100px);
  height: clamp(84px, 6.3vw, 100px);
}

.call-control strong {
  font-size: 18px;
}

/* РџСЂР°РІР°СЏ РєР°СЂС‚РѕС‡РєР° СЃС†РµРЅР°СЂРёСЏ вЂ” РІРЅСѓС‚СЂРё РѕР±С‰РµРіРѕ С‚С‘РјРЅРѕРіРѕ СЌРєСЂР°РЅР°. */
.script-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 0;
  align-self: center;
  min-height: 720px;
  padding: 24px;
  color: #07144f;
  background: rgba(2, 76, 149, 0.35);
  border: 1px solid rgba(28, 145, 255, 0.68);
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 1px rgba(110, 210, 250, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Р’ С†РµРЅС‚СЂРµ вЂ” С‚РѕР»СЊРєРѕ РѕСЃРЅРѕРІРЅРѕР№ С‚РµРєСЃС‚ СЌС‚Р°РїР°. */
.script-coach {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 500px;
  padding: clamp(46px, 5vw, 78px) clamp(42px, 4vw, 70px);
  color: #07144f;
  background:
    radial-gradient(circle at 50% 40%, rgba(216, 237, 255, 0.82), transparent 64%),
    #f4f9ff;
  border-radius: 22px 22px 0 0;
}

.script-arrow,
.script-prompt span {
  display: none !important;
}

.script-prompt {
  display: grid;
  place-items: center;
  width: 100%;
  text-align: center;
}

.script-prompt p,
.script-coach.is-system .script-prompt p,
.script-coach.is-client .script-prompt p {
  max-width: 1080px;
  margin: 0;
  color: #0a1b53;
  font-size: clamp(32px, 2.75vw, 46px);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

/* РџСЂРѕРіСЂРµСЃСЃ вЂ” РІРЅРёР·Сѓ, РїСЂСЏРјРѕ РЅР°Рґ СЌС‚Р°РїР°РјРё. */
.scenario-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 68px;
  padding: 18px 30px 10px;
  background: #ffffff;
}

.scenario-stage-label,
.scenario-progress strong {
  color: #07144f;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 800;
  line-height: 1.1;
}

.scenario-progress-track {
  height: 14px;
  background: #dde6f1;
}

.scenario-objectives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 0;
  padding: 0 22px 22px;
  margin: 0;
  background: #ffffff;
  border-radius: 0 0 22px 22px;
  overflow: hidden;
}

.scenario-objectives li {
  min-height: 128px;
  padding: 12px 8px 10px;
  background: rgba(255, 255, 255, 0.92);
}

.scenario-objectives li::before {
  width: 42px;
  height: 42px;
  margin-bottom: 9px;
  font-size: 18px;
}

.scenario-objectives li strong {
  max-width: 142px;
  font-size: 14px;
  line-height: 1.24;
}

.scenario-objectives li span {
  margin-top: 5px;
  font-size: 13px;
}

.scenario-objectives li.is-current {
  background: #dceeff;
}

/* РЈР±РёСЂР°РµРј СЃР»СѓР¶РµР±РЅС‹Рµ СЌР»РµРјРµРЅС‚С‹, РєРѕС‚РѕСЂС‹С… РЅРµС‚ РІ С„РёРЅР°Р»СЊРЅРѕРј РјР°РєРµС‚Рµ. */
.script-stage .scenario-meta,
.voice-trainer .scenario-toolbar {
  display: none !important;
}

/* РќР° РґРµСЃРєС‚РѕРїРµ Р±Р»РѕРє РґРѕР»Р¶РµРЅ РІС‹РіР»СЏРґРµС‚СЊ РїРѕС‡С‚Рё РєР°Рє РїРѕР»РЅРѕСЌРєСЂР°РЅРЅС‹Р№ С‚СЂРµРЅР°Р¶С‘СЂ. */
@media (min-width: 1280px) {
  .voice-trainer {
    min-height: 920px;
  }

  .trainer-topline {
    min-height: 62px;
  }
}

/* РџР»Р°РЅС€РµС‚С‹ */
@media (max-width: 1180px) {
  .voice-panel {
    grid-template-columns: minmax(330px, 0.8fr) minmax(590px, 1.45fr);
    gap: 30px;
    padding-left: 28px;
  }

  .call-timer {
    top: 110px;
    right: 24px;
  }

  .script-prompt p,
  .script-coach.is-system .script-prompt p,
  .script-coach.is-client .script-prompt p {
    font-size: clamp(30px, 3.1vw, 40px);
  }
}

/* РЈР·РєРёРµ СЌРєСЂР°РЅС‹ */
@media (max-width: 980px) {
  .voice-trainer .container {
    width: min(calc(100% - 28px), 1780px);
  }

  .voice-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding: 0;
  }

  .phone-call-screen {
    min-height: 560px;
    padding: 32px 18px 20px;
  }

  .call-timer {
    top: 54px;
    right: 34px;
  }

  .script-stage {
    min-height: 640px;
  }

  .script-coach {
    min-height: 390px;
  }

  .scenario-objectives {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .voice-trainer {
    padding: 16px 0 28px;
  }

  .trainer-actions {
    display: none;
  }

  .phone-call-screen {
    min-height: 520px;
  }

  .avatar-halo {
    width: 190px;
    height: 190px;
  }

  .call-timer {
    top: 46px;
    right: 18px;
    font-size: 17px;
  }

  .phone-controls {
    gap: 36px;
  }

  .script-stage {
    min-height: auto;
    padding: 12px;
    border-radius: 20px;
  }

  .script-coach {
    min-height: 330px;
    padding: 32px 18px;
  }

  .script-prompt p,
  .script-coach.is-system .script-prompt p,
  .script-coach.is-client .script-prompt p {
    font-size: clamp(28px, 8vw, 38px);
  }

  .scenario-progress {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 16px 16px 10px;
  }

  .scenario-progress-track {
    grid-column: 1 / -1;
    order: 3;
  }

  .scenario-objectives {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 12px 14px;
  }
}

/*
  Р’РђР–РќРћ:
  CSS РѕС‚РІРµС‡Р°РµС‚ С‚РѕР»СЊРєРѕ Р·Р° РІРЅРµС€РЅРёР№ РІРёРґ.
  Р”Р»СЏ РїРѕР»РЅРѕРіРѕ СЃРѕРІРїР°РґРµРЅРёСЏ СЃ РјР°РєРµС‚РѕРј РІ HTML/JS РґРѕР»Р¶РЅС‹ Р±С‹С‚СЊ С‚Р°РєРёРµ С‚РµРєСЃС‚С‹:
  - Р—Р°РіРѕР»РѕРІРѕРє РєР»РёРµРЅС‚Р°: "РљСЃРµРЅРёСЏ"
  - РћРїРёСЃР°РЅРёРµ: "РџСЂРѕРґР°РµС‚ 1Рє РєРІР°СЂС‚РёСЂСѓ РЅР° СѓР». РЎРІРѕР±РѕРґС‹, РґРѕРј 7"
  - РўР°Р№РјРµСЂ РІ С„РѕСЂРјР°С‚Рµ mm:ss, РЅР°РїСЂРёРјРµСЂ "00:28"
  - РќРµ РІС‹РІРѕРґРёС‚СЊ РєР°СЂС‚РѕС‡РєСѓ "РџРѕСЃР»Рµ СЃС‚Р°СЂС‚Р°..."
*/

/* State screens and call controls */
.voice-trainer {
  padding: 20px 0 34px;
}

.voice-trainer .container {
  width: min(calc(100% - 64px), 1700px);
}

.voice-panel {
  grid-template-columns: minmax(360px, 0.78fr) minmax(720px, 1.48fr);
  gap: clamp(30px, 4vw, 64px);
  min-height: 720px;
  padding: 0 18px 0 64px;
}

.phone-call-screen {
  min-height: 680px;
  padding: 54px 0 20px;
}

.script-stage {
  min-height: 680px;
  padding: 22px;
}

.script-coach {
  min-height: 450px;
  padding: clamp(38px, 4.4vw, 68px) clamp(34px, 3.6vw, 62px);
}

.phone-controls {
  grid-template-columns: repeat(2, minmax(108px, 1fr));
  gap: clamp(26px, 3vw, 50px);
  width: min(320px, 100%);
}

.call-control span {
  width: clamp(78px, 5.9vw, 94px);
  height: clamp(78px, 5.9vw, 94px);
  overflow: hidden;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 116% 116%;
}

.call-control.pause span {
  background-image: url("assets/call-pause.png");
}

.call-control.pause.is-resume span {
  background-image: url("assets/call-play.png");
}

.call-control.hangup span {
  background: url("assets/call-end.png?v=20260918") center / 120% 120% no-repeat !important;
}

.call-control.pause span::before,
.call-control.pause span::after,
.call-control.hangup span::before {
  display: none !important;
}

.scenario-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.scenario-start span {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  overflow: hidden;
  background: url("assets/call-play.png") center / 116% 116% no-repeat;
  border-radius: 50%;
}

.voice-panel.is-idle,
.voice-panel.is-ended {
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 620px;
  padding: 0;
}

.voice-panel.is-idle .phone-call-screen,
.voice-panel.is-idle .script-stage,
.voice-panel.is-ended .phone-call-screen,
.voice-panel.is-ended .script-stage {
  display: none !important;
}

.call-setup-screen,
.call-results-screen {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 620px;
  padding: clamp(22px, 4vw, 54px);
}

.call-setup-screen[hidden],
.call-results-screen[hidden] {
  display: none !important;
}

.call-setup-card,
.call-results-card {
  width: min(100%, 680px);
  padding: clamp(30px, 4vw, 54px);
  color: #07144f;
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(220, 241, 255, 0.92), transparent 58%),
    #f7fbff;
  border: 1px solid rgba(130, 190, 255, 0.76);
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 28px 80px rgba(0, 0, 0, 0.34);
}

.call-setup-card p,
.call-results-card p {
  margin: 0 0 12px;
  color: #1277f2;
  font-size: 16px;
  font-weight: 800;
}

.call-setup-card h3,
.call-results-card h3 {
  margin: 0 0 28px;
  color: #07144f;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
}

.call-setup-card .scenario-select-field {
  margin: 0 auto 22px;
  text-align: left;
}

.call-results-card {
  width: min(100%, 760px);
}

.call-result-score {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  margin: 0 auto 20px;
  color: #ffffff;
  background: linear-gradient(180deg, #1884f6, #0569e6);
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(7, 105, 230, 0.28);
  font-size: 38px;
  font-weight: 850;
}

.call-results-card span[data-result-summary] {
  display: block;
  max-width: 580px;
  margin: 0 auto 26px;
  color: #425a88;
  font-size: 18px;
  line-height: 1.45;
}

.call-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.call-result-actions button {
  min-height: 52px;
  padding: 0 24px;
  color: #ffffff;
  background: #1277f2;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(18, 119, 242, 0.28);
  font-weight: 800;
}

.call-result-actions button + button {
  color: #07144f;
  background: #ffffff;
  border-color: rgba(139, 182, 230, 0.82);
  box-shadow: none;
}

@media (min-width: 1280px) {
  .voice-trainer {
    min-height: 880px;
  }
}

@media (max-width: 980px) {
  .voice-trainer .container {
    width: min(calc(100% - 28px), 1700px);
  }

  .voice-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0;
  }

  .phone-call-screen,
  .script-stage {
    min-height: 620px;
  }
}

@media (max-width: 620px) {
  .call-setup-screen,
  .call-results-screen {
    min-height: 520px;
    padding: 16px;
  }

  .call-setup-card,
  .call-results-card {
    padding: 26px 18px;
    border-radius: 22px;
  }

  .call-result-actions {
    display: grid;
  }
}

/* Script message cards */
.script-coach {
  display: grid;
  grid-template-columns: 1fr;
  place-items: stretch;
  align-self: stretch;
  min-height: clamp(260px, 25vw, 390px);
  padding: clamp(18px, 2.3vw, 34px);
  color: #07144f;
  border-radius: 24px 24px 0 0;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.script-coach.is-system {
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.92), transparent 44%),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
  border: 1px solid rgba(174, 200, 237, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    0 18px 42px rgba(10, 36, 86, 0.14);
}

.script-coach.is-client {
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.82), transparent 44%),
    linear-gradient(135deg, #e8f8ff 0%, #caf0ff 100%);
  border: 1px solid rgba(96, 190, 255, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 20px 48px rgba(20, 144, 255, 0.2);
}

.script-coach.is-agent {
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(135deg, #d7fbff 0%, #75e9ff 100%);
  border: 1px solid rgba(52, 219, 255, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    0 0 0 1px rgba(62, 226, 255, 0.24),
    0 20px 60px rgba(0, 213, 255, 0.34);
}

.script-prompt {
  position: relative;
  display: grid;
  grid-template-columns: clamp(42px, 4vw, 56px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-content: center;
  align-items: start;
  justify-items: start;
  gap: 10px 18px;
  width: 100%;
  min-height: 100%;
  text-align: left;
}

.script-prompt::before {
  grid-row: 1 / 2;
  grid-column: 1;
  display: grid;
  place-items: center;
  width: clamp(36px, 3.5vw, 48px);
  height: clamp(36px, 3.5vw, 48px);
  color: #ffffff;
  border-radius: 50%;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 900;
  line-height: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 12px 24px rgba(6, 84, 170, 0.18);
  content: "i";
}

.script-coach.is-system .script-prompt::before {
  background: linear-gradient(180deg, #8799c2, #5e719d);
  content: "i";
}

.script-coach.is-client .script-prompt::before {
  background: linear-gradient(180deg, #48b9ff, #1688f1);
  content: "в—Џ";
  font-size: clamp(13px, 1.25vw, 17px);
}

.script-coach.is-agent .script-prompt::before {
  background: linear-gradient(180deg, #1ea6ff, #0675ee);
  content: "вњ¦";
}

.script-prompt span {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  display: block !important;
  min-height: 0;
  padding: 0;
  color: #0b48a4;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  font-size: clamp(14px, 1.08vw, 18px);
  font-weight: 850;
  line-height: 1.25;
}

.script-coach.is-system .script-prompt span {
  color: #264575;
  background: transparent;
}

.script-coach.is-client .script-prompt span,
.script-coach.is-agent .script-prompt span {
  color: #0874e8;
}

.script-prompt p,
.script-coach.is-system .script-prompt p,
.script-coach.is-client .script-prompt p,
.script-coach.is-agent .script-prompt p {
  grid-column: 2;
  grid-row: 2;
  max-width: 980px;
  margin: 0;
  color: #07144f;
  font-size: clamp(24px, 2.25vw, 38px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.script-coach.is-system .script-prompt p,
.script-coach.is-client .script-prompt p {
  font-size: clamp(23px, 2vw, 34px);
}

.script-prompt small {
  grid-column: 2;
  grid-row: 3;
  display: block;
  max-width: 820px;
  margin: 0;
  color: #205583;
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 650;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.script-prompt small[hidden] {
  display: none;
}

.script-prompt small::before {
  display: none;
}

.script-coach.is-client .script-prompt small::before,
.script-coach.is-agent .script-prompt small::before {
  background: #22a8ff;
}

.script-coach.is-agent .script-prompt small {
  color: #205583;
}

@media (max-width: 1280px) {
  .script-coach {
    min-height: clamp(250px, 28vw, 360px);
    padding: 24px;
  }

  .script-prompt p,
  .script-coach.is-system .script-prompt p,
  .script-coach.is-client .script-prompt p,
  .script-coach.is-agent .script-prompt p {
    font-size: clamp(23px, 2.6vw, 34px);
  }
}

@media (max-width: 620px) {
  .script-coach {
    min-height: 300px;
    padding: 20px;
    border-radius: 20px 20px 0 0;
  }

  .script-prompt {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .script-prompt p,
  .script-coach.is-system .script-prompt p,
  .script-coach.is-client .script-prompt p,
  .script-coach.is-agent .script-prompt p {
    font-size: clamp(22px, 7vw, 30px);
  }

  .script-prompt small {
    display: block;
    font-size: 15px;
  }
}

/* Temporary manual step navigation for scripted calls. */
.script-coach {
  grid-template-columns: clamp(42px, 4vw, 56px) minmax(0, 1fr) clamp(42px, 4vw, 56px);
  gap: clamp(10px, 1.6vw, 20px);
}

.script-arrow {
  display: grid !important;
  place-items: center;
  align-self: center;
  width: clamp(42px, 4vw, 56px);
  height: clamp(42px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(65, 137, 232, 0.24);
  box-shadow: 0 12px 28px rgba(9, 62, 140, 0.14);
}

.script-arrow.prev {
  grid-column: 1;
}

.script-arrow.next {
  grid-column: 3;
}

.script-prompt {
  grid-column: 2;
}

@media (max-width: 620px) {
  .script-coach {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .script-arrow {
    width: 38px;
    height: 38px;
  }

  .script-arrow::before {
    width: 12px;
    height: 12px;
    border-width: 0 3px 3px 0;
  }
}

/* Role-based cabinet MVP */
.cabinet-section {
  padding: 96px 0;
  color: #101828;
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #f5f8fb 100%);
  border-top: 1px solid #e8eef3;
  border-bottom: 1px solid #e8eef3;
}

.cabinet-heading {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 0 28px;
}

.cabinet-heading h2 {
  margin: 0;
  color: #0f1f3d;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: 0;
}

.cabinet-heading p {
  margin: 0;
  color: #526070;
  font-size: 18px;
  line-height: 1.55;
}

.cabinet-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.cabinet-principles article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px 14px;
  min-height: 128px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(36, 70, 110, 0.06);
}

.cabinet-principle-icon {
  grid-row: span 2;
  position: relative;
  width: 48px;
  height: 48px;
  background: #eef7ff;
  border: 1px solid #cfe4f6;
  border-radius: 50%;
}

.cabinet-principle-icon::before,
.cabinet-principle-icon::after {
  position: absolute;
  content: "";
}

.cabinet-principle-icon.agent::before {
  top: 10px;
  left: 17px;
  width: 10px;
  height: 10px;
  border: 3px solid #1277f2;
  border-radius: 50%;
}

.cabinet-principle-icon.agent::after {
  right: 12px;
  bottom: 10px;
  left: 12px;
  height: 14px;
  border: 3px solid #1277f2;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.cabinet-principle-icon.lead::before {
  top: 14px;
  left: 11px;
  width: 26px;
  height: 19px;
  border: 3px solid #129d72;
  border-radius: 6px;
}

.cabinet-principle-icon.lead::after {
  top: 8px;
  right: 9px;
  width: 11px;
  height: 11px;
  background: #38d6a3;
  border-radius: 50%;
}

.cabinet-principle-icon.director::before {
  top: 12px;
  left: 11px;
  width: 26px;
  height: 24px;
  border: 3px solid #7255d8;
  border-radius: 4px;
}

.cabinet-principle-icon.director::after {
  right: 15px;
  bottom: 11px;
  left: 15px;
  height: 13px;
  background: #c7b8ff;
  border-radius: 3px 3px 0 0;
}

.cabinet-principles strong {
  align-self: end;
  color: #13223a;
  font-size: 18px;
  line-height: 1.15;
}

.cabinet-principles p {
  grid-column: 2;
  margin: 0;
  color: #526070;
  font-size: 15px;
  line-height: 1.42;
}

.cabinet-mode-switch {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  background: #eaf1f7;
  border: 1px solid #dce6ef;
  border-radius: 8px;
}

.cabinet-mode-switch button {
  min-height: 46px;
  padding: 0 12px;
  color: #4a5a6d;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.cabinet-mode-switch button.is-active {
  color: #0f1f3d;
  background: #ffffff;
  border-color: #d4e0ea;
  box-shadow: 0 10px 24px rgba(32, 62, 96, 0.08);
}

.cabinet-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.cabinet-model,
.cabinet-view {
  background: #ffffff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(30, 60, 100, 0.07);
}

.cabinet-model {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.cabinet-model-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.cabinet-model-mark {
  width: 42px;
  height: 42px;
  background:
    linear-gradient(90deg, transparent 45%, #ffffff 45%, #ffffff 55%, transparent 55%),
    linear-gradient(180deg, transparent 45%, #ffffff 45%, #ffffff 55%, transparent 55%),
    linear-gradient(135deg, #1277f2, #38d6a3);
  border-radius: 50%;
}

.cabinet-model-head strong {
  display: block;
  color: #13223a;
  font-size: 17px;
  line-height: 1.2;
}

.cabinet-model-head p,
.cabinet-note {
  margin: 4px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.cabinet-tree {
  display: grid;
  gap: 10px;
}

.cabinet-tree-row,
.cabinet-tree-split > div,
.cabinet-tree-team span {
  display: grid;
  gap: 2px;
  min-height: 52px;
  padding: 12px;
  background: #f6f9fc;
  border: 1px solid #e2ebf3;
  border-radius: 8px;
}

.cabinet-tree-row {
  place-items: center;
  color: #0f1f3d;
  font-weight: 900;
}

.cabinet-tree-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cabinet-tree span,
.cabinet-tree small {
  color: #667085;
  font-size: 12px;
  line-height: 1.25;
}

.cabinet-tree strong {
  color: #13223a;
  font-size: 15px;
}

.cabinet-tree-team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.cabinet-tree-team span {
  min-height: 42px;
  color: #13223a;
  font-size: 14px;
  font-weight: 800;
}

.cabinet-workspace {
  min-width: 0;
}

.cabinet-view {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.cabinet-view[hidden] {
  display: none;
}

.cabinet-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cabinet-view-header span,
.cabinet-panel p,
.cabinet-stat-grid span {
  display: block;
  margin: 0;
  color: #1277f2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cabinet-view-header h3 {
  margin: 4px 0 0;
  color: #0f1f3d;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.cabinet-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
  color: #ffffff;
  background: #1277f2;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(18, 119, 242, 0.22);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.cabinet-menu-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cabinet-menu-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: #405166;
  background: #f4f7fa;
  border: 1px solid #dfe8f1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.cabinet-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cabinet-stat-grid > div {
  min-height: 112px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
}

.cabinet-stat-grid strong {
  display: block;
  margin-top: 10px;
  color: #0f1f3d;
  font-size: 28px;
  line-height: 1;
}

.cabinet-stat-grid small {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
  line-height: 1.3;
}

.cabinet-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cabinet-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 212px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
}

.cabinet-panel.wide {
  grid-column: 1 / -1;
}

.cabinet-panel.accent {
  color: #ffffff;
  background: #0f335f;
  border-color: #0f335f;
}

.cabinet-panel h4 {
  margin: 0;
  color: #13223a;
  font-size: 22px;
  line-height: 1.18;
}

.cabinet-panel.accent h4,
.cabinet-panel.accent p,
.cabinet-panel.accent span {
  color: #ffffff;
}

.cabinet-panel > span {
  color: #526070;
  font-size: 16px;
  line-height: 1.48;
}

.cabinet-panel button {
  justify-self: start;
  min-height: 42px;
  padding: 0 14px;
  color: #0f335f;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.cabinet-panel-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 42px;
  padding: 0 14px;
  color: #0f335f;
  background: #ffffff;
  border-radius: 8px;
  font-weight: 900;
}

.cabinet-empty {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.cabinet-score-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cabinet-score-list li,
.cabinet-table div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  min-height: 50px;
  padding: 10px 12px;
  background: #f7fafc;
  border: 1px solid #e1eaf2;
  border-radius: 8px;
}

.cabinet-score-list span,
.cabinet-table span {
  color: #526070;
  font-size: 14px;
  font-weight: 700;
}

.cabinet-score-list strong,
.cabinet-table b {
  color: #0f1f3d;
  font-size: 16px;
  font-weight: 900;
}

.cabinet-table {
  display: grid;
  gap: 8px;
}

.cabinet-table strong {
  color: #0f1f3d;
  font-size: 15px;
}

.cabinet-table b {
  justify-self: end;
  grid-row: span 2;
}

.agency-structure-panel {
  gap: 18px;
}

.agency-structure-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.agency-structure-head p,
.agency-structure-head h4 {
  margin: 0;
}

.agency-structure-head span {
  color: #526070;
  font-size: 14px;
  font-weight: 800;
}

.agency-structure-head span.is-success {
  color: #0f766e;
}

.agency-structure-head span.is-error {
  color: #dc2626;
}

.agency-structure-panel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.agency-add-button {
  min-height: 46px;
  padding: 0 18px;
  color: #ffffff;
  background: #2563eb;
  border: 0;
  border-radius: 9px;
  font-weight: 900;
  cursor: pointer;
}

.agency-structure-status {
  margin: -8px 0 6px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.agency-structure-status.is-success {
  color: #0f766e;
}

.agency-structure-status.is-error {
  color: #dc2626;
}

.agency-structure-board {
  display: grid;
  justify-items: center;
  gap: 28px;
  min-height: 420px;
  padding: 8px 0 30px;
}

.agency-director-node {
  position: relative;
  z-index: 2;
}

.agency-director-card,
.agency-rop-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: #0f1f3d;
  background: #ffffff;
  border: 1px solid #dfe8f1;
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.agency-director-card {
  min-width: 300px;
  padding: 18px 22px;
}

.agency-director-card > div,
.agency-rop-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.agency-director-card strong,
.agency-director-card span,
.agency-rop-card strong,
.agency-rop-card span {
  display: block;
}

.agency-rop-card {
  position: relative;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  min-width: 250px;
  min-height: 126px;
  padding: 18px;
  border-color: #dce7f3;
  text-align: left;
  cursor: pointer;
}

.agency-rop-card:hover,
.agency-rop-card.is-active {
  border-color: #2563eb;
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.16);
}

.agency-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #174bd8;
  background: #e6efff;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
}

.agency-director-card strong,
.agency-rop-card strong,
.agency-drawer-head h4,
.agency-agent-row strong {
  color: #071737;
  font-size: 18px;
  line-height: 1.15;
}

.agency-director-card span,
.agency-rop-card span,
.agency-drawer-head p,
.agency-agent-row span {
  color: #60708a;
  font-size: 15px;
}

.agency-rop-card b {
  align-self: end;
  color: #174bd8;
  font-size: 15px;
  white-space: nowrap;
}

.agency-structure-lines {
  width: min(680px, 70%);
  height: 52px;
  margin: -12px 0 -8px;
  border-top: 2px solid #cbd7e8;
  border-right: 2px solid #cbd7e8;
  border-left: 2px solid #cbd7e8;
  border-radius: 16px 16px 0 0;
}

.agency-rop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  width: 100%;
}

.agency-drawer {
  position: fixed;
  top: 88px;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  align-content: start;
  gap: 16px;
  width: min(430px, 100vw);
  max-height: none;
  overflow: auto;
  padding: 30px 24px 28px;
  background: #ffffff;
  border: 0;
  border-left: 1px solid #dfe8f1;
  border-radius: 0;
  box-shadow: -24px 0 54px rgba(15, 23, 42, 0.16);
}

.agency-drawer:not([hidden]) {
  animation: agency-drawer-in 0.18s ease-out;
}

.agency-drawer[hidden],
.agency-modal[hidden] {
  display: none;
}

@keyframes agency-drawer-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.agency-drawer-close,
.agency-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: #f3f6fa;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.agency-drawer-close::before,
.agency-drawer-close::after,
.agency-modal-close::before,
.agency-modal-close::after {
  position: absolute;
  top: 17px;
  left: 10px;
  width: 16px;
  height: 2px;
  content: "";
  background: #60708a;
  border-radius: 999px;
}

.agency-drawer-close::before,
.agency-modal-close::before {
  transform: rotate(45deg);
}

.agency-drawer-close::after,
.agency-modal-close::after {
  transform: rotate(-45deg);
}

.agency-drawer-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-right: 42px;
}

.agency-drawer-head h4,
.agency-drawer-head p {
  margin: 0;
}

.agency-drawer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.agency-search {
  display: grid;
}

.agency-search input,
.agency-modal-card input {
  height: 42px;
  min-width: 0;
  padding: 0 12px;
  color: #0f1f3d;
  background: #ffffff;
  border: 1px solid #d8e4ef;
  border-radius: 8px;
  outline: 0;
}

.agency-search input:focus,
.agency-modal-card input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.agency-drawer-actions button,
.agency-modal-card button[type="submit"] {
  min-height: 42px;
  padding: 0 14px;
  color: #ffffff;
  background: #2563eb;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.agency-agent-list {
  display: grid;
  gap: 8px;
}

.agency-agent-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(110px, 150px) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #e1eaf2;
  border-radius: 10px;
}

.agency-agent-row .agency-avatar {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.agency-agent-row select {
  height: 38px;
  min-width: 0;
  color: #0f1f3d;
  background: #ffffff;
  border: 1px solid #d8e4ef;
  border-radius: 8px;
}

.agency-agent-row button,
.agency-delete-rop {
  min-height: 38px;
  padding: 0 12px;
  color: #b42318;
  background: #fff1f0;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.agency-delete-rop {
  justify-self: start;
}

.agency-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.36);
}

.agency-modal-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 28px;
  background: #ffffff;
  border: 1px solid #dfe8f1;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
}

.agency-modal-card h3 {
  margin: 0 40px 0 0;
  color: #071737;
  font-size: 26px;
  line-height: 1.15;
}

.agency-modal-card p {
  margin: -6px 0 0;
  color: #60708a;
  font-weight: 700;
}

.agency-modal-card label {
  display: grid;
  gap: 6px;
}

.agency-modal-card label span {
  color: #526070;
  font-size: 13px;
  font-weight: 800;
}

.cabinet-agent-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
}

.cabinet-agent-card h4 {
  margin-bottom: 6px;
}

.cabinet-agent-card > strong {
  color: #0f1f3d;
  font-size: 22px;
  white-space: nowrap;
}

.cabinet-agent-card small {
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.cabinet-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #12724f;
  font-size: 13px;
  font-weight: 900;
}

.cabinet-status i {
  width: 9px;
  height: 9px;
  background: #38d6a3;
  border-radius: 50%;
}

.cabinet-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cabinet-skill-grid div {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
}

.cabinet-skill-grid span {
  color: #1277f2;
  font-size: 13px;
  font-weight: 900;
}

.cabinet-skill-grid b {
  color: #13223a;
  font-size: 15px;
}

.cabinet-action-list {
  display: grid;
  gap: 8px;
}

.cabinet-action-list button {
  justify-self: stretch;
  color: #13223a;
  background: #f7fafc;
  border-color: #dfe8f1;
}

.cabinet-flat-flow,
.cabinet-cycle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cabinet-flat-flow strong,
.cabinet-flat-flow span,
.cabinet-cycle span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: #13223a;
  background: #f7fafc;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.cabinet-flat-flow strong {
  color: #ffffff;
  background: #1277f2;
  border-color: #1277f2;
}

.cabinet-cycle span {
  color: #0f335f;
  background: #ecf8ff;
  border-color: #caeaff;
}

@media (max-width: 1180px) {
  .cabinet-layout {
    grid-template-columns: 1fr;
  }

  .cabinet-model {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    align-items: start;
  }

  .cabinet-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .cabinet-section {
    padding: 72px 0;
  }

  .cabinet-heading h2 {
    font-size: 34px;
  }

  .cabinet-principles,
  .cabinet-stat-grid,
  .cabinet-main-grid,
  .cabinet-skill-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-panel.wide {
    grid-column: auto;
  }

  .cabinet-mode-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabinet-view-header,
  .cabinet-agent-card {
    display: grid;
  }

  .cabinet-primary-action {
    width: 100%;
  }

  .agency-structure-head,
  .agency-drawer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .agency-add-button,
  .agency-director-card,
  .agency-drawer-actions button {
    width: 100%;
  }

  .agency-rop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agency-structure-lines {
    width: min(420px, 74%);
  }

  .agency-agent-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .agency-agent-row select,
  .agency-agent-row button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .auth-name-grid,
  .auth-choice-grid,
  .auth-agency-fields {
    grid-template-columns: 1fr;
  }

  .auth-card.is-register {
    padding: 24px 16px;
  }

  .auth-card.is-register .auth-form h2 {
    font-size: 30px;
  }

  .auth-card.is-register .auth-subtitle {
    font-size: 17px;
  }

  .auth-card.is-register .auth-avatar {
    width: 70px;
    height: 70px;
    margin-bottom: 14px;
  }

  .auth-card.is-register .auth-avatar::before {
    top: 17px;
    left: 26px;
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  .auth-card.is-register .auth-avatar::after {
    top: 41px;
    left: 21px;
    width: 28px;
    height: 18px;
    border-width: 3px;
    border-top: 0;
    border-radius: 0 0 14px 14px;
  }

  .auth-card.is-register .auth-field {
    min-height: 56px;
    margin-bottom: 12px;
  }

  .auth-card.is-register .auth-field input {
    height: 54px;
    padding: 0 58px;
    font-size: 17px;
  }

  .auth-card.is-register .auth-icon {
    left: 19px;
    transform: scale(0.84);
  }

  .auth-card.is-register .auth-onboarding p {
    font-size: 22px;
  }

  .auth-card.is-register .auth-choice-grid span {
    min-height: 96px;
    padding: 16px;
  }

  .auth-card.is-register .auth-choice-icon {
    width: 62px;
    height: 62px;
  }

  .auth-card.is-register .auth-choice-icon.agency::before {
    left: 20px;
    bottom: 18px;
    width: 9px;
    height: 24px;
    border-width: 3px;
    box-shadow: 15px 0 0 -3px #efeaff, 15px 0 0 0 #4f46ff;
  }

  .auth-card.is-register .auth-choice-icon.agency::after {
    left: 15px;
    bottom: 16px;
    width: 34px;
    height: 3px;
  }

  .auth-card.is-register .auth-choice-icon.solo::before {
    top: 15px;
    left: 24px;
    width: 12px;
    height: 12px;
    border-width: 3px;
  }

  .auth-card.is-register .auth-choice-icon.solo::after {
    right: 18px;
    bottom: 16px;
    left: 18px;
    height: 18px;
    border-width: 3px;
    border-bottom: 0;
  }

  .auth-card.is-register .auth-choice-grid strong {
    font-size: 20px;
  }

  .auth-card.is-register .auth-terms {
    grid-template-columns: 32px 1fr;
    gap: 14px;
    font-size: 15px;
  }

  .auth-card.is-register .auth-terms span {
    width: 32px;
    height: 32px;
  }

  .cabinet-section {
    padding: 58px 0;
  }

  .cabinet-heading h2 {
    font-size: 30px;
  }

  .cabinet-heading p {
    font-size: 16px;
  }

  .cabinet-principles article,
  .cabinet-model,
  .cabinet-view {
    padding: 16px;
  }

  .cabinet-model {
    grid-template-columns: 1fr;
  }

  .cabinet-tree-split,
  .cabinet-mode-switch {
    grid-template-columns: 1fr;
  }

  .cabinet-view-header h3 {
    font-size: 25px;
  }

  .cabinet-stat-grid strong {
    font-size: 25px;
  }

  .agency-structure-panel {
    min-height: 0;
  }

  .agency-structure-board {
    align-items: stretch;
    justify-items: stretch;
    min-height: 0;
  }

  .agency-structure-lines {
    display: none;
  }

  .agency-rop-grid {
    grid-template-columns: 1fr;
  }

  .agency-rop-card {
    min-width: 0;
  }

  .agency-drawer {
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    max-height: none;
    border-radius: 0;
  }

  .agency-modal {
    align-items: end;
    padding: 0;
  }

  .agency-modal-card {
    width: 100%;
    border-radius: 16px 16px 0 0;
  }
}

/* Dedicated cabinet page */
.cabinet-page-body {
  color: #0b1220;
  background: #f4f7fb;
}

.cabinet-page-body .topbar {
  color: #0b1220;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(214, 222, 232, 0.9);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.cabinet-page {
  min-height: 100svh;
  padding-top: 96px;
}

.cabinet-app-section {
  padding-top: 42px;
}

.cabinet-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.cabinet-page-heading h1 {
  margin: 0;
  color: #061a3a;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.cabinet-page-heading p:not(.section-kicker) {
  max-width: 720px;
  margin: 12px 0 0;
  color: #526173;
  font-size: 17px;
}

.cabinet-page .cabinet-workspace {
  display: block;
}

.cabinet-page .cabinet-view {
  width: 100%;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.cabinet-page .cabinet-view[hidden],
.cabinet-page .cabinet-workspace[hidden],
.cabinet-guard[hidden] {
  display: none;
}

.cabinet-guard {
  margin: 0;
  padding: 26px 28px;
  color: #526173;
  background: #ffffff;
  border: 1px solid #dbe5f1;
  border-radius: 16px;
}

.cabinet-logout-button {
  border: 0;
  cursor: pointer;
}

body.is-director-dashboard {
  overflow-x: hidden;
  background: #f3f5f8;
}

body.is-director-dashboard .cabinet-topbar,
body.is-director-dashboard .cabinet-page-heading {
  display: none;
}

body.is-director-dashboard .cabinet-page,
body.is-director-dashboard .cabinet-app-section {
  padding: 0;
}

body.is-director-dashboard .container {
  width: 100%;
}

.director-dashboard {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  min-height: 100svh;
  padding: 0;
  color: #111827;
  background: #f3f5f8;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.cabinet-page .director-dashboard {
  width: 100%;
  box-shadow: none;
}

.director-dashboard[hidden] {
  display: none;
}

.director-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 26px;
  height: 100svh;
  padding: 26px 12px 28px;
  background: #ffffff;
  border-right: 1px solid #e2e9f3;
}

.director-brand {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 18px;
}

.director-brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1c8cff, #74c3ff);
  clip-path: polygon(50% 0, 100% 28%, 100% 100%, 68% 100%, 68% 48%, 32% 48%, 32% 100%, 0 100%, 0 28%);
}

.director-brand strong,
.director-profile strong {
  display: block;
  color: #071633;
  font-size: 19px;
  line-height: 1.1;
}

.director-brand small,
.director-profile small {
  display: block;
  margin-top: 4px;
  color: #72809a;
  font-size: 13px;
  line-height: 1.2;
}

.director-sidebar h2 {
  margin: 10px 18px 0;
  color: #071633;
  font-size: 20px;
  line-height: 1.15;
}

.director-nav,
.director-settings {
  display: grid;
  gap: 10px;
}

.director-nav button,
.director-settings {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  color: #52647f;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.director-nav button.is-active {
  color: #1274ef;
  background: #eaf3ff;
  box-shadow: inset 4px 0 0 #2382ff;
}

.director-nav-icon {
  position: relative;
  width: 24px;
  height: 24px;
  color: currentColor;
}

.director-nav-icon::before,
.director-nav-icon::after {
  position: absolute;
  content: "";
  border: 2px solid currentColor;
  border-radius: 4px;
}

.director-nav-icon.is-report::before {
  inset: 8px 14px 2px 2px;
  background: currentColor;
  box-shadow: 8px -5px 0 currentColor, 16px -11px 0 currentColor;
  border: 0;
  border-radius: 2px;
}

.director-nav-icon.is-exam::before {
  inset: 4px 3px 7px;
  transform: rotate(-8deg);
}

.director-nav-icon.is-learning::before {
  inset: 4px 2px;
  border-radius: 2px 8px 8px 2px;
}

.director-nav-icon.is-structure::before {
  inset: 3px 8px 13px;
}

.director-nav-icon.is-structure::after {
  inset: 13px 2px 3px;
}

.director-nav-icon.is-license::before,
.director-nav-icon.is-settings::before {
  inset: 3px 5px;
}

.director-shell {
  min-width: 0;
  overflow-x: hidden;
}

.director-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  height: 70px;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid #e2e9f3;
}

.director-icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.director-icon-button span::before {
  position: absolute;
  inset: 9px 12px 10px;
  content: "";
  border: 2px solid #40536f;
  border-radius: 12px 12px 8px 8px;
}

.director-icon-button span::after {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  content: "";
  background: #ee1f44;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.director-profile {
  display: grid;
  grid-template-columns: 44px minmax(0, auto);
  gap: 12px;
  align-items: center;
}

.director-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #174bd8;
  background: #e4efff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
}

.director-main {
  display: grid;
  gap: 18px;
  padding: 26px 28px 34px;
}

.director-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.director-headline h3 {
  margin: 0;
  color: #071633;
  font-size: 38px;
  line-height: 1.08;
}

.director-headline p,
.director-panel-head p {
  margin: 6px 0 0;
  color: #72809a;
  font-size: 15px;
}

.director-filters {
  display: flex;
  gap: 14px;
  align-items: center;
}

.director-filters button,
.director-filters label,
.director-panel-head button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  color: #10213d;
  background: #ffffff;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.director-filters input {
  width: min(310px, 28vw);
  min-width: 180px;
  color: #10213d;
  background: transparent;
  border: 0;
  outline: 0;
}

.director-dashboard .cabinet-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.director-dashboard .director-kpi-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 138px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e3ebf5;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.director-kpi-icon {
  display: block;
  width: 58px;
  height: 58px;
  background: #e7f0ff;
  border-radius: 50%;
}

.director-dashboard .director-kpi-card span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.director-kpi-card.is-green .director-kpi-icon {
  background: #ddf8ee;
}

.director-kpi-card.is-yellow .director-kpi-icon {
  background: #fff0c9;
}

.director-kpi-card small,
.director-kpi-card em {
  display: block;
  color: #667693;
  font-size: 14px;
  font-style: normal;
  line-height: 1.25;
}

.director-kpi-card strong {
  display: block;
  margin: 8px 0 8px;
  color: #071633;
  font-size: 34px;
  line-height: 1;
}

.director-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
}

.director-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e3ebf5;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.director-panel-large,
.director-panel-full {
  grid-column: span 1;
}

.director-panel-full {
  grid-column: 1 / -1;
}

.director-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.director-panel-head h4 {
  margin: 0;
  color: #071633;
  font-size: 22px;
  line-height: 1.15;
}

.director-line-chart svg {
  width: 100%;
  height: 248px;
}

.director-chart-grid {
  stroke: #dfE7f2;
  stroke-width: 1;
}

.director-chart-area {
  fill: rgba(38, 128, 247, 0.12);
}

.director-chart-line {
  fill: none;
  stroke: #2680f7;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.director-chart-dot {
  fill: #2680f7;
  stroke: #ffffff;
  stroke-width: 4;
}

.director-chart-label {
  fill: #667693;
  font-size: 13px;
}

.director-chart-badge {
  fill: #2680f7;
  font-size: 16px;
  font-weight: 800;
}

.director-team-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 16px;
  align-items: end;
  min-height: 246px;
}

.director-team-bar {
  display: grid;
  grid-template-rows: auto 160px auto auto;
  gap: 7px;
  align-items: end;
  text-align: center;
}

.director-team-bar > span {
  display: block;
  align-self: end;
  height: var(--bar);
  min-height: 8px;
  background: linear-gradient(180deg, #4ba4ff, #1879ed);
  border-radius: 8px 8px 2px 2px;
}

.director-team-bar strong,
.director-team-bar b {
  color: #071633;
  font-size: 15px;
}

.director-team-bar small {
  color: #72809a;
  font-size: 13px;
}

.director-attention-table {
  display: grid;
}

.director-attention-header,
.director-attention-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px 150px 96px;
  gap: 14px;
  align-items: center;
}

.director-attention-header {
  min-height: 38px;
  padding: 0 16px;
  color: #52647f;
  background: #f3f6fa;
  border-radius: 9px 9px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.director-attention-row {
  min-height: 62px;
  padding: 10px 16px;
  border-bottom: 1px solid #edf2f8;
}

.director-attention-row > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.director-attention-row .agency-avatar {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.director-attention-row strong,
.director-attention-row small {
  display: block;
}

.director-attention-row strong {
  color: #071633;
  font-size: 15px;
}

.director-attention-row small,
.director-attention-row > span {
  color: #667693;
  font-size: 13px;
}

.director-attention-row b,
.director-attention-row em {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.director-attention-row .is-red {
  color: #c8172a;
  background: #ffe6e9;
}

.director-attention-row .is-yellow {
  color: #ad6400;
  background: #fff1cf;
}

.director-attention-row .is-green {
  color: #107653;
  background: #def7ec;
}

.director-readiness {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.director-donut {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  border-radius: 50%;
}

.director-donut strong,
.director-donut span {
  grid-area: 1 / 1;
  display: block;
  z-index: 1;
  text-align: center;
}

.director-donut strong {
  margin-top: -18px;
  color: #071633;
  font-size: 30px;
}

.director-donut span {
  margin-top: 30px;
  color: #72809a;
  font-size: 15px;
}

.director-donut::after {
  grid-area: 1 / 1;
  width: 92px;
  height: 92px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
}

.director-readiness-legend {
  display: grid;
  gap: 16px;
}

.director-readiness-legend span {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  color: #071633;
}

.director-readiness-legend i {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
}

.director-readiness-legend i.is-blue {
  background: #2680f7;
}

.director-readiness-legend i.is-sky {
  background: #7fc2ff;
}

.director-readiness-legend i.is-yellow {
  background: #f7b718;
}

.director-readiness-legend b {
  white-space: pre-line;
  font-size: 14px;
  font-weight: 600;
}

.director-readiness-legend strong {
  font-size: 18px;
}

.director-summary-note {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: #53647f;
  background: #f4f8fc;
  border-radius: 10px;
}

.director-summary-note strong {
  color: #0f3a75;
  font-size: 14px;
}

.director-summary-note span {
  font-size: 12px;
}

.director-dashboard .agency-structure-panel {
  min-height: 520px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

body.is-director-dashboard .agency-drawer {
  top: 70px;
}

@media (max-width: 1180px) {
  .director-dashboard {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .director-dashboard .cabinet-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .director-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .director-dashboard {
    grid-template-columns: 1fr;
  }

  .director-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto auto;
    gap: 16px;
  }

  .director-settings {
    display: none;
  }

  .director-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .director-topbar,
  .director-headline,
  .director-filters,
  .director-panel-head {
    display: grid;
  }

  .director-filters input {
    width: 100%;
  }

  .director-attention-header {
    display: none;
  }

  .director-attention-row {
    grid-template-columns: 1fr;
  }
}

.director-report-dashboard {
  grid-template-columns: 154px minmax(0, 1fr);
  background: #f3f5f8;
}

.director-report-dashboard .director-sidebar {
  gap: 24px;
  padding: 18px 8px;
  background: #fbfcfe;
  border-right-color: #d9e1eb;
}

.director-report-dashboard .director-brand {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  padding: 0 8px;
  color: #111827;
}

.director-report-dashboard .director-brand-mark {
  width: 22px;
  height: 22px;
  background: none;
  clip-path: none;
}

.director-report-dashboard .director-brand-mark::before {
  position: absolute;
  inset: 3px 5px;
  content: "";
  border: 2px solid #2563eb;
  border-top-color: transparent;
  border-radius: 8px;
  transform: rotate(-35deg);
}

.director-report-dashboard .director-brand strong {
  font-size: 15px;
}

.director-report-dashboard .director-nav {
  gap: 8px;
}

.director-report-dashboard .director-nav button {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  color: #46566f;
  font-size: 12px;
  font-weight: 600;
}

.director-report-dashboard .director-nav button.is-active {
  color: #1d4ed8;
  background: #eef2ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.director-report-dashboard .director-nav-icon {
  width: 18px;
  height: 18px;
}

.director-nav-icon.is-home::before {
  inset: 5px 3px 2px;
  transform: rotate(45deg);
}

.director-nav-icon.is-agents::before {
  inset: 4px 9px 10px 3px;
  border-radius: 50%;
}

.director-nav-icon.is-agents::after {
  inset: 10px 2px 3px;
  border-radius: 10px 10px 4px 4px;
}

.director-report-dashboard .director-topbar {
  height: 52px;
  padding: 0 18px;
  background: #fbfcfe;
  border-bottom: 1px solid #d9e1eb;
}

.director-logout {
  min-height: 30px;
  padding: 0 12px;
  color: #46566f;
  background: #f7f9fc;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.director-logout:hover {
  color: #ef233c;
  background: #fff3f5;
  border-color: #ffd5dc;
}

.director-report-dashboard .director-profile {
  grid-template-columns: 28px minmax(0, auto);
  gap: 8px;
}

.director-report-dashboard .director-profile-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.director-report-dashboard .director-profile strong {
  color: #111827;
  font-size: 12px;
  font-weight: 600;
}

.director-report-dashboard .director-profile small {
  margin-top: 1px;
  font-size: 11px;
}

.director-report-dashboard .director-main {
  min-width: 0;
  gap: 16px;
  padding: 24px 28px 32px;
}

.director-report-dashboard .director-headline {
  align-items: center;
}

.director-report-dashboard .director-headline h3 {
  color: #111827;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
}

.director-report-dashboard .director-headline p {
  margin-top: 2px;
  color: #17213b;
  font-size: 16px;
}

.director-period-control button {
  min-height: 38px;
  padding: 0 14px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.director-period-control {
  position: relative;
}

.director-period-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 260px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.12);
}

.director-period-menu[hidden] {
  display: none;
}

.director-period-menu > button {
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  color: #1f2937;
  background: transparent;
  border: 0 !important;
  box-shadow: none;
  font-weight: 600;
  cursor: pointer;
}

.director-period-menu > button:hover {
  background: #f5f7fa;
}

.director-period-custom {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #e8eef6;
}

.director-period-custom span {
  color: #667693;
  font-size: 12px;
  font-weight: 800;
}

.director-period-custom input {
  min-height: 34px;
  padding: 0 10px;
  color: #14213c;
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  font: inherit;
}

.director-period-custom button {
  justify-content: center;
  color: #ffffff;
  background: #2f64ed;
  border-color: #2f64ed !important;
  box-shadow: none;
  font-weight: 900;
}

.director-report-dashboard .cabinet-stat-grid {
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 0.95fr) minmax(360px, 1.65fr);
  gap: 16px;
  min-width: 0;
}

.director-report-dashboard .director-kpi-card {
  position: relative;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  min-height: 132px;
  padding: 22px 24px;
  background: #ffffff;
  border-color: #d8e1eb;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
  overflow: hidden;
}

.director-report-dashboard .director-kpi-card.is-wide {
  grid-template-columns: 58px minmax(140px, 210px) minmax(0, 1fr);
}

.director-report-dashboard .director-kpi-card.is-green {
  background: #ffffff;
  border-color: #d8e1eb;
}

.director-report-dashboard .director-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #e9f2fb;
  border-radius: 50%;
}

.director-report-dashboard .director-kpi-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #0f6c9e;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.director-report-dashboard .director-kpi-icon.is-users {
  background: #e3f5ed;
}

.director-report-dashboard .director-kpi-icon.is-users svg {
  stroke: #13865b;
}

.director-report-dashboard .director-kpi-icon.is-phone {
  background: #ecebff;
}

.director-report-dashboard .director-kpi-icon.is-phone svg {
  stroke: #4b57d9;
}

.director-kpi-text {
  display: grid;
  align-content: center;
  min-width: 0;
}

.director-kpi-value {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
}

.director-report-dashboard .director-kpi-card strong {
  margin: 6px 0 0;
  color: #111827;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
}

.director-report-dashboard .director-kpi-card:first-child .director-kpi-value strong {
  font-size: 46px;
}

.director-kpi-value i {
  color: #111827;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
}

.director-kpi-value b {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
}

.director-kpi-value b.is-green {
  color: #13865b;
}

.director-kpi-value b.is-red {
  color: #dc2f4e;
}

.director-report-dashboard .director-kpi-card small,
.director-report-dashboard .director-kpi-card em {
  color: #667085;
  font-size: 15px;
  font-weight: 500;
}

.director-kpi-spark {
  align-self: center;
  justify-self: stretch;
  min-width: 0;
  max-width: 100%;
  height: 94px;
}

.director-kpi-spark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.director-kpi-spark-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.director-kpi-spark-label {
  fill: #667085;
  font-size: 12px;
  font-weight: 500;
}

.director-report-section {
  display: grid;
  gap: 10px;
}

.director-report-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.director-period-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.director-team-select,
.director-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
}

.director-team-select select,
.director-search input {
  height: 38px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  outline: 0;
}

.director-team-select select {
  min-width: 238px;
  padding: 0 34px 0 12px;
}

.director-search {
  min-width: min(360px, 42vw);
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #d7dee8;
  border-radius: 8px;
}

.director-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
}

.director-report-table {
  overflow: auto;
  min-height: 330px;
  background: #ffffff;
  border: 1px solid #d8e1eb;
  border-radius: 8px;
}

.director-report-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) 88px 108px 78px 92px 128px 84px 148px minmax(150px, 1fr) 34px;
  gap: 0;
  min-width: 1080px;
  border-bottom: 1px solid #e5ebf2;
}

.director-report-row:last-child {
  border-bottom: 0;
}

.director-report-row > * {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 8px 10px;
  border-right: 1px solid #e5ebf2;
  color: #1f2937;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.director-report-row > *:last-child {
  border-right: 0;
}

.director-report-row.is-head {
  background: #f7f9fc;
}

.director-report-row.is-head > span {
  justify-content: center;
  min-height: 54px;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.director-report-row > div:first-child {
  gap: 10px;
}

.director-report-row:not(.is-head) > :nth-child(n + 2):nth-child(-n + 7) {
  justify-content: center;
  text-align: center;
}

.director-report-row .agency-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.director-report-row strong,
.director-report-row small {
  display: block;
}

.director-report-row strong {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.director-report-row small {
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
}

.director-rating-cell {
  display: grid;
  grid-template-columns: 44px 44px minmax(44px, 1fr);
  gap: 4px;
}

.director-rating-cell small.is-green {
  color: #0aad62;
}

.director-rating-cell small.is-red {
  color: #ef233c;
}

.director-rating-spark {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 28px;
}

.director-rating-spark i {
  width: 8px;
  background: #19c579;
  border-radius: 999px 999px 0 0;
}

.director-rating-spark.is-red i {
  background: #ff3154;
}

.director-row-menu {
  justify-content: center;
  color: #2e4d7d;
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

.director-report-structure {
  display: none;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
}

.director-report-structure.is-visible {
  display: grid;
}

.director-report-section[hidden] {
  display: none;
}

.director-period-control button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: #dfe7f2 !important;
  outline: 0;
  appearance: none;
}

@media (max-width: 980px) {
  .director-report-dashboard {
    grid-template-columns: 1fr;
  }

  .director-report-dashboard .director-sidebar {
    position: static;
    height: auto;
    padding: 12px;
  }

  .director-report-dashboard .director-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .director-report-dashboard .director-main {
    padding: 16px;
  }

  .director-report-dashboard .cabinet-stat-grid {
    grid-template-columns: 1fr;
  }

  .director-report-controls,
  .director-report-dashboard .director-headline {
    display: grid;
  }

  .director-search,
  .director-team-select select {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .cabinet-page {
    padding-top: 76px;
  }

  .cabinet-app-section {
    padding-top: 26px;
  }

  .cabinet-page-heading {
    display: grid;
    align-items: start;
  }

  .cabinet-page-heading .cabinet-primary-action {
    width: 100%;
  }
}

/* Dedicated auth page */
.auth-page-body {
  min-height: 100svh;
  color: #172033;
  background: #f4f6f8;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.auth-page-body .topbar,
.auth-page-body .auth-backdrop {
  display: none;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 520px);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  min-height: 100svh;
  padding: clamp(24px, 4vw, 48px);
}

.auth-page-aside {
  display: grid;
  gap: clamp(34px, 7vh, 72px);
  max-width: 620px;
}

.auth-page-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: #152238;
  font-size: 28px;
  font-weight: 800;
}

.auth-page-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.auth-page-brand .brand-mark i {
  width: 4px;
  background: #2563eb;
  box-shadow: none;
}

.auth-page-brand .brand-mark i:nth-child(1),
.auth-page-brand .brand-mark i:nth-child(5) {
  height: 17px;
}

.auth-page-brand .brand-mark i:nth-child(2),
.auth-page-brand .brand-mark i:nth-child(4) {
  height: 26px;
}

.auth-page-brand .brand-mark i:nth-child(3) {
  height: 36px;
}

.auth-page-copy {
  display: grid;
  gap: 18px;
}

.auth-page-copy p {
  margin: 0;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-page-copy h1 {
  max-width: 620px;
  margin: 0;
  color: #111827;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-page-copy ul {
  display: grid;
  gap: 10px;
  max-width: 520px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.auth-page-copy li {
  position: relative;
  padding-left: 24px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.45;
}

.auth-page-copy li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  background: #2563eb;
  border-radius: 50%;
}

.auth-page-panel {
  width: 100%;
}

.auth-page .auth-card,
.auth-page .auth-card.is-register,
.auth-page .auth-card.is-login,
.auth-page .auth-card.is-profile {
  width: 100%;
  max-height: none;
  padding: 28px;
  overflow: visible;
  color: #172033;
  background: #ffffff;
  border: 1px solid #dce3ea;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  backdrop-filter: none;
}

.auth-page .auth-close {
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border-radius: 8px;
}

.auth-page .auth-form,
.auth-page .auth-signed {
  justify-items: stretch;
  width: 100%;
}

.auth-page .auth-avatar {
  display: none;
}

.auth-page .auth-form h2,
.auth-page .auth-card.is-register .auth-form h2,
.auth-page .auth-signed h2 {
  margin-right: 44px;
  color: #111827;
  font-size: 30px;
  line-height: 1.15;
  text-align: left;
}

.auth-page .auth-subtitle,
.auth-page .auth-card.is-register .auth-subtitle,
.auth-page .auth-signed p {
  max-width: 100%;
  margin: 8px 44px 18px 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
}

.auth-page .auth-name-grid {
  width: 100%;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-page .auth-name-grid .auth-field,
.auth-page .auth-form > .auth-field,
.auth-page .auth-card.is-register .auth-form > .auth-field {
  width: 100%;
}

.auth-page .auth-field,
.auth-page .auth-card.is-register .auth-field {
  min-height: 48px;
  margin-bottom: 10px;
  background: #ffffff;
  border-color: #cfd8e3;
  border-radius: 8px;
}

.auth-page .auth-field:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-page .auth-field input,
.auth-page .auth-card.is-register .auth-field input {
  height: 46px;
  padding: 0 46px;
  color: #111827;
  font-size: 15px;
}

.auth-page .auth-icon,
.auth-page .auth-card.is-register .auth-icon {
  left: 14px;
  color: #64748b;
  transform: scale(0.72);
}

.auth-page .auth-eye,
.auth-page .auth-card.is-register .auth-eye {
  right: 8px;
  transform: scale(0.86);
}

.auth-page .auth-onboarding,
.auth-page .auth-card.is-register .auth-onboarding {
  width: 100%;
  margin: 0 0 10px;
}

.auth-page .auth-onboarding p,
.auth-page .auth-card.is-register .auth-onboarding p {
  margin: 0 0 8px;
  color: #172033;
  font-size: 15px;
  line-height: 1.2;
  text-transform: none;
}

.auth-page .auth-choice-grid {
  gap: 10px;
}

.auth-page .auth-choice-grid span,
.auth-page .auth-card.is-register .auth-choice-grid span {
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  background: #ffffff;
  border-color: #cfd8e3;
  border-radius: 8px;
}

.auth-page .auth-choice-grid input:checked + span {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: inset 0 0 0 1px #2563eb;
}

.auth-page .auth-choice-grid strong,
.auth-page .auth-card.is-register .auth-choice-grid strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
}

.auth-page .auth-choice-icon,
.auth-page .auth-card.is-register .auth-choice-icon {
  width: 34px;
  height: 34px;
  background: #eef2f7;
}

.auth-page .auth-choice-icon.agency::before,
.auth-page .auth-card.is-register .auth-choice-icon.agency::before {
  left: 11px;
  bottom: 10px;
  width: 5px;
  height: 14px;
  border: 2px solid #334155;
  box-shadow: 9px 0 0 -2px #eef2f7, 9px 0 0 0 #334155;
}

.auth-page .auth-choice-icon.agency::after,
.auth-page .auth-card.is-register .auth-choice-icon.agency::after {
  left: 8px;
  bottom: 8px;
  width: 20px;
  height: 2px;
  background: #334155;
}

.auth-page .auth-choice-icon.solo::before,
.auth-page .auth-card.is-register .auth-choice-icon.solo::before {
  top: 8px;
  left: 13px;
  width: 7px;
  height: 7px;
  border: 2px solid #334155;
}

.auth-page .auth-choice-icon.solo::after,
.auth-page .auth-card.is-register .auth-choice-icon.solo::after {
  right: 9px;
  bottom: 8px;
  left: 9px;
  height: 10px;
  border: 2px solid #334155;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.auth-page .auth-terms,
.auth-page .auth-card.is-register .auth-terms {
  grid-template-columns: 22px 1fr;
  gap: 10px;
  width: 100%;
  margin: 0 0 8px;
  color: #475569;
  font-size: 12.5px;
  line-height: 1.35;
}

.auth-page .auth-terms span,
.auth-page .auth-card.is-register .auth-terms span {
  width: 22px;
  height: 22px;
  border-color: #cbd5e1;
  border-radius: 6px;
}

.auth-page .auth-terms input:checked + span,
.auth-page .auth-card.is-register .auth-terms input:checked + span {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: inset 0 0 0 5px #ffffff;
}

.auth-page .auth-terms a,
.auth-page .auth-switch button {
  color: #2563eb;
}

.auth-page .auth-message {
  min-height: 18px;
  margin: 0 0 8px;
  font-size: 13px;
  text-align: left;
}

.auth-page .auth-submit,
.auth-page .auth-card.is-register .auth-submit {
  width: 100%;
  min-height: 46px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 8px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 800;
}

.auth-page .auth-cabinet-open {
  margin-bottom: 10px;
}

.auth-page .auth-switch {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 920px) {
  .auth-page {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
    padding: 22px;
  }

  .auth-page-aside {
    max-width: 100%;
    gap: 18px;
  }

  .auth-page-copy {
    display: none;
  }

  .auth-page-panel {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .auth-page {
    padding: 14px;
  }

  .auth-page .auth-card,
  .auth-page .auth-card.is-register,
  .auth-page .auth-card.is-login,
  .auth-page .auth-card.is-profile {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .auth-page .auth-name-grid,
  .auth-page .auth-choice-grid {
    grid-template-columns: 1fr;
  }

  .auth-page .auth-form h2,
  .auth-page .auth-card.is-register .auth-form h2,
  .auth-page .auth-signed h2 {
    font-size: 25px;
  }
}

/* Final auth-page cleanup: neutral layout and reliable form states. */
.auth-page-body {
  background: #f3f5f8;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 650px);
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  padding: 24px;
}

.auth-page-aside {
  display: none;
}

.auth-page-panel {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.auth-page .auth-card,
.auth-page .auth-card.is-register,
.auth-page .auth-card.is-login,
.auth-page .auth-card.is-profile {
  width: 100%;
  padding: 40px 36px 36px;
  color: #101828;
  background: #ffffff;
  border: 1px solid #d6dee8;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(16, 24, 40, 0.09);
}

.auth-page .auth-close {
  display: none;
}

.auth-page .auth-close::before,
.auth-page .auth-close::after {
  top: 20px;
  left: 12px;
  width: 18px;
  background: #667085;
}

.auth-page .auth-form h2,
.auth-page .auth-card.is-register .auth-form h2,
.auth-page .auth-signed h2 {
  margin: 0 52px 10px 0;
  color: #0b1220;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: left;
}

.auth-page .auth-subtitle,
.auth-page .auth-card.is-register .auth-subtitle,
.auth-page .auth-signed p {
  max-width: 460px;
  margin: 0 52px 24px 0;
  color: #53627a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.auth-page .auth-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-bottom: 18px;
}

.auth-page .auth-field,
.auth-page .auth-card.is-register .auth-field {
  position: relative;
  min-height: 56px;
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid #ccd6e4;
  border-radius: 9px;
}

.auth-page .auth-field:focus-within {
  border-color: #2f6df6;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.12);
}

.auth-page .auth-field input,
.auth-page .auth-card.is-register .auth-field input {
  height: 54px;
  padding: 0 48px 0 58px;
  color: #111827;
  font-size: 16px;
  font-weight: 400;
}

.auth-page .auth-field input::placeholder {
  color: #6b778f;
  font-weight: 400;
  opacity: 1;
}

.auth-page .auth-icon,
.auth-page .auth-card.is-register .auth-icon {
  left: 19px;
  color: #64748b;
  transform: scale(0.8);
}

.auth-page .auth-onboarding,
.auth-page .auth-card.is-register .auth-onboarding {
  width: 100%;
  margin: 0 0 14px;
}

.auth-page .auth-onboarding p,
.auth-page .auth-card.is-register .auth-onboarding p {
  margin: 0 0 10px;
  color: #0b1220;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
}

.auth-page .auth-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.auth-page .auth-choice-grid label {
  position: relative;
}

.auth-page .auth-choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auth-page .auth-choice-grid span,
.auth-page .auth-card.is-register .auth-choice-grid span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px 0 48px;
  color: #0b1220;
  background: #ffffff;
  border: 1px solid #ccd6e4;
  border-radius: 9px;
  cursor: pointer;
}

.auth-page .auth-choice-grid span::before {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 15px;
  height: 15px;
  content: "";
  background: #ffffff;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  transform: translateY(-50%);
}

.auth-page .auth-choice-grid input:checked + span {
  background: #ffffff;
  border-color: #2f6df6;
  box-shadow: 0 0 0 1px #2f6df6 inset;
}

.auth-page .auth-choice-grid input:checked + span::before {
  background: #2f6df6;
  border-color: #2f6df6;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.auth-page .auth-choice-grid strong,
.auth-page .auth-card.is-register .auth-choice-grid strong {
  color: #0b1220;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
}

.auth-page .auth-choice-icon,
.auth-page .auth-card.is-register .auth-choice-icon {
  display: none;
}

.auth-page .auth-agency-fields {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  margin: 0 0 12px;
}

.auth-page .auth-agency-fields[hidden] {
  display: none;
}

.auth-page .auth-agency-fields .auth-field {
  margin-bottom: 0;
}

.auth-page .auth-select-field select {
  width: 100%;
  height: 54px;
  padding: 0 40px 0 16px;
  color: #111827;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  appearance: none;
}

.auth-page .auth-select-field select:invalid {
  color: #6b778f;
}

.auth-page .auth-select-field::after {
  top: 23px;
  right: 17px;
}

.auth-page .auth-eye,
.auth-page .auth-card.is-register .auth-eye {
  right: 12px;
  color: #64748b;
  transform: scale(0.9);
}

.auth-page .auth-terms,
.auth-page .auth-card.is-register .auth-terms {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  width: 100%;
  margin: 0 0 18px;
  color: #334155;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.auth-page .auth-terms span,
.auth-page .auth-card.is-register .auth-terms span {
  width: 28px;
  height: 28px;
  border: 2px solid #ccd6e4;
  border-radius: 7px;
}

.auth-page .auth-terms b {
  font-weight: 400;
}

.auth-page .auth-message {
  min-height: 18px;
  margin: 0 0 12px;
  font-size: 13px;
  text-align: left;
}

.auth-page .auth-submit,
.auth-page .auth-card.is-register .auth-submit {
  width: 100%;
  min-height: 52px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 8px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
}

.auth-page .auth-switch {
  margin: 18px 0 0;
  color: #53627a;
  font-size: 15px;
  text-align: center;
}

@media (max-width: 720px) {
  .auth-page {
    align-items: start;
    padding: 16px;
  }

  .auth-page .auth-card,
  .auth-page .auth-card.is-register,
  .auth-page .auth-card.is-login,
  .auth-page .auth-card.is-profile {
    padding: 26px 18px;
  }

  .auth-page .auth-name-grid,
  .auth-page .auth-choice-grid,
  .auth-page .auth-agency-fields {
    grid-template-columns: 1fr;
  }

  .auth-page .auth-form h2,
  .auth-page .auth-card.is-register .auth-form h2,
  .auth-page .auth-signed h2 {
    font-size: 28px;
  }
}

/* Mature product visual pass: keep the UI from drifting into generic AI/SaaS styling. */
:root {
  --blue: #315c9c;
  --blue-deep: #254a7f;
  --blue-solid: #315c9c;
  --violet: #6f6589;
  --ink: #171717;
  --muted: #68707d;
  --line: #d8dee8;
  --soft: #f5f4f1;
  --green: #2f6f73;
  --coral: #b95045;
  --shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

body,
.auth-page-body,
.director-dashboard,
.cabinet-page {
  color: #171717;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  letter-spacing: 0;
}

body {
  background: #f6f5f2;
}

.topbar.is-scrolled,
.director-report-dashboard .director-topbar,
.auth-page .auth-card,
.cabinet-section,
.director-report-dashboard .director-kpi-card,
.director-report-table,
.agency-structure-panel,
.agency-director-card,
.agency-rop-card,
.agency-drawer,
.agency-modal-card {
  border-color: #d8dee8;
  box-shadow: none;
}

.brand,
.director-brand strong,
.auth-page .auth-form h2,
.auth-page .auth-card.is-register .auth-form h2,
.auth-page .auth-signed h2,
.director-report-dashboard .director-headline h3 {
  color: #171717;
  font-weight: 700;
}

.brand {
  font-size: 29px;
}

.brand-mark i,
.topbar.is-scrolled .brand-mark i {
  background: #315c9c;
  box-shadow: none;
}

.nav,
.director-report-dashboard .director-nav button,
.auth-page .auth-subtitle,
.auth-page .auth-card.is-register .auth-subtitle,
.auth-page .auth-signed p,
.director-report-dashboard .director-profile small,
.director-report-dashboard .director-kpi-card small,
.director-report-dashboard .director-kpi-card em {
  color: #68707d;
}

.nav a:hover,
.auth-page a,
.auth-page .auth-switch button,
.director-report-dashboard .director-nav button.is-active {
  color: #315c9c;
}

.nav a.is-active::after {
  background: #315c9c;
  box-shadow: none;
}

.demo-button,
.primary-button,
.login-button,
.auth-page .auth-submit,
.auth-page .auth-card.is-register .auth-submit,
.cabinet-primary-action,
.agency-add-button,
.agency-drawer-actions button,
.agency-modal-card button[type="submit"],
.director-period-custom button {
  color: #ffffff;
  background: #315c9c;
  border-color: #315c9c;
  border-radius: 7px;
  box-shadow: none;
  font-weight: 600;
}

.demo-button:hover,
.primary-button:hover,
.login-button:hover,
.auth-page .auth-submit:hover:not(:disabled),
.cabinet-primary-action:hover,
.agency-add-button:hover,
.agency-drawer-actions button:hover,
.agency-modal-card button[type="submit"]:hover {
  background: #254a7f;
  border-color: #254a7f;
  box-shadow: none;
  transform: none;
}

.ghost-button,
.director-logout,
.director-period-control button,
.director-search,
.auth-page .auth-field,
.auth-page .auth-card.is-register .auth-field,
.auth-page .auth-choice-grid span,
.auth-page .auth-card.is-register .auth-choice-grid span,
.auth-page .auth-select-field,
.agency-search input,
.agency-modal-card input {
  color: #171717;
  background: #ffffff;
  border-color: #d8dee8;
  border-radius: 7px;
  box-shadow: none;
}

.auth-page-body,
body.is-director-dashboard,
.director-report-dashboard {
  background: #f6f5f2;
}

.auth-page .auth-card,
.auth-page .auth-card.is-register,
.auth-page .auth-card.is-login,
.auth-page .auth-card.is-profile,
.cabinet-section,
.agency-structure-panel,
.agency-drawer,
.agency-modal-card {
  background: #fffefa;
  border-radius: 8px;
}

.auth-page .auth-field:focus-within,
.auth-page .auth-card.is-register .auth-field:focus-within,
.auth-page .auth-choice-grid input:checked + span,
.agency-search input:focus,
.agency-modal-card input:focus,
.director-search:focus-within,
.director-period-control button:focus-visible {
  border-color: #315c9c;
  box-shadow: 0 0 0 3px rgba(49, 92, 156, 0.11);
}

.auth-page .auth-choice-grid input:checked + span::before,
.auth-page .auth-terms input:checked + span,
.auth-page .auth-card.is-register .auth-terms input:checked + span {
  background: #315c9c;
  border-color: #315c9c;
}

.director-report-dashboard .director-sidebar,
.director-report-dashboard .director-topbar {
  background: #fffefa;
  border-color: #d8dee8;
}

.director-report-dashboard .director-nav button {
  font-weight: 600;
}

.director-report-dashboard .director-nav button.is-active {
  background: #edf1f7;
  box-shadow: inset 3px 0 0 #315c9c;
}

.director-report-dashboard .cabinet-stat-grid {
  gap: 14px;
}

.director-report-dashboard .director-kpi-card {
  background: #fffefa;
  border-radius: 8px;
}

.director-report-dashboard .director-kpi-icon {
  background: #eef2f6;
}

.director-report-dashboard .director-kpi-icon svg {
  stroke: #315c9c;
}

.director-report-dashboard .director-kpi-icon.is-users {
  background: #e9f1ec;
}

.director-report-dashboard .director-kpi-icon.is-users svg {
  stroke: #2f6f73;
}

.director-report-dashboard .director-kpi-icon.is-phone {
  background: #f0eef4;
}

.director-report-dashboard .director-kpi-card strong,
.director-kpi-value i {
  color: #171717;
  font-weight: 700;
}

.director-kpi-value b.is-red {
  color: #b4233f;
}

.director-kpi-value b.is-green,
.director-rating-cell small.is-green {
  color: #2f6f73;
}

.director-kpi-spark-line {
  stroke: #315c9c;
}

.director-report-row.is-head {
  background: #f3f4f6;
}

.director-report-row.is-head > span,
.director-report-row strong {
  color: #171717;
  font-weight: 600;
}

.director-report-row > * {
  color: #252b36;
}

.director-rating-spark i {
  background: #2f6f73;
}

.director-rating-spark.is-red i {
  background: #b4233f;
}

.agency-rop-card:hover,
.agency-rop-card.is-active {
  border-color: #315c9c;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .director-report-dashboard .cabinet-stat-grid {
    grid-template-columns: 1fr;
  }

  .director-report-dashboard .director-kpi-card.is-wide {
    grid-template-columns: 58px minmax(140px, 210px) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .director-report-dashboard .director-kpi-card,
  .director-report-dashboard .director-kpi-card.is-wide {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .director-kpi-spark {
    grid-column: 1 / -1;
  }
}

/* ROP workspace: denser, flatter, less template-like than a generic SaaS dashboard. */
.director-report-dashboard[data-cabinet-view="rop"] {
  --rop-bg: #f4f2ed;
  --rop-paper: #fffdf8;
  --rop-paper-2: #faf8f2;
  --rop-border: #d8d2c8;
  --rop-border-soft: #e5dfd5;
  --rop-ink: #1d1d1b;
  --rop-muted: #6b6f78;
  --rop-accent: #365f5b;
  --rop-accent-2: #ecefed;
  --rop-danger: #a73446;
  grid-template-columns: 152px minmax(0, 1fr);
  color: var(--rop-ink);
  background: var(--rop-bg);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-sidebar,
.director-report-dashboard[data-cabinet-view="rop"] .director-topbar {
  background: var(--rop-paper);
  border-color: var(--rop-border);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-sidebar {
  padding: 18px 8px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-brand {
  color: var(--rop-ink);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-brand-mark::before {
  border-color: var(--rop-accent);
  border-top-color: transparent;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-brand strong {
  font-size: 15px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav button {
  color: #505660;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav button.is-active {
  color: var(--rop-accent);
  background: var(--rop-accent-2);
  box-shadow: inset 3px 0 0 var(--rop-accent);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav-icon::before,
.director-report-dashboard[data-cabinet-view="rop"] .director-nav-icon::after {
  border-width: 1.7px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-main {
  gap: 18px;
  padding: 28px 30px 34px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-headline h3 {
  color: var(--rop-ink);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.12;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile strong {
  color: var(--rop-ink);
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile small,
.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card small,
.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card em {
  color: var(--rop-muted);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile-avatar,
.director-report-dashboard[data-cabinet-view="rop"] .agency-avatar {
  color: var(--rop-accent);
  background: #e9ede9;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-logout {
  color: #3e4650;
  background: transparent;
  border-color: var(--rop-border);
  border-radius: 6px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-logout:hover {
  color: var(--rop-danger);
  background: #fbf2f2;
  border-color: #dec1c5;
}

.director-report-dashboard[data-cabinet-view="rop"] .cabinet-stat-grid {
  grid-template-columns: minmax(210px, 0.66fr) minmax(240px, 0.74fr) minmax(390px, 1.55fr);
  gap: 12px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  min-height: 112px;
  padding: 18px 18px;
  background: var(--rop-paper);
  border: 1px solid var(--rop-border);
  border-radius: 6px;
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card.is-wide {
  grid-template-columns: 46px minmax(128px, 176px) minmax(0, 1fr);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon {
  width: 42px;
  height: 42px;
  background: var(--rop-paper-2);
  border: 1px solid var(--rop-border-soft);
  border-radius: 6px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--rop-accent);
  stroke-width: 1.9;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon.is-users,
.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon.is-phone {
  background: var(--rop-paper-2);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon.is-users svg,
.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon.is-phone svg {
  stroke: var(--rop-accent);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card small {
  max-width: 190px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card strong {
  margin-top: 6px;
  color: var(--rop-ink);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card:first-child .director-kpi-value strong {
  font-size: 40px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value {
  gap: 8px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value i {
  color: var(--rop-ink);
  font-size: 24px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value b {
  font-size: 17px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value b.is-red {
  color: var(--rop-danger);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value b.is-green {
  color: var(--rop-accent);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark {
  height: 78px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark-line {
  stroke: var(--rop-accent);
  stroke-width: 2;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark-label {
  fill: var(--rop-muted);
  font-size: 11px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-section {
  gap: 12px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-controls {
  align-items: center;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-field {
  color: var(--rop-ink);
  font-size: 13px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button,
.director-report-dashboard[data-cabinet-view="rop"] .director-search {
  min-height: 36px;
  color: var(--rop-ink);
  background: var(--rop-paper);
  border-color: var(--rop-border);
  border-radius: 6px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search {
  min-width: min(340px, 36vw);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search input {
  height: 34px;
  font-size: 13px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-menu {
  background: var(--rop-paper);
  border-color: var(--rop-border);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(29, 29, 27, 0.12);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-menu > button {
  color: var(--rop-ink);
  border-radius: 4px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-menu > button:hover {
  background: var(--rop-accent-2);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-custom button {
  background: var(--rop-accent);
  border-color: var(--rop-accent) !important;
  border-radius: 6px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-table {
  min-height: 320px;
  background: var(--rop-paper);
  border-color: var(--rop-border);
  border-radius: 6px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row {
  border-bottom-color: var(--rop-border-soft);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row > * {
  min-height: 52px;
  padding: 7px 10px;
  color: #252525;
  border-right-color: var(--rop-border-soft);
  font-size: 12px;
  line-height: 1.25;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row.is-head {
  background: #f2f0ea;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row.is-head > span {
  min-height: 46px;
  color: #2a2a27;
  font-size: 11px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row strong {
  color: var(--rop-ink);
  font-size: 12px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row small {
  color: var(--rop-muted);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-spark i {
  background: var(--rop-accent);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-spark.is-red i {
  background: var(--rop-danger);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell small.is-red {
  color: var(--rop-danger);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-row-menu {
  color: #59616c;
}

@media (max-width: 1180px) {
  .director-report-dashboard[data-cabinet-view="rop"] .cabinet-stat-grid {
    grid-template-columns: 1fr;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card.is-wide {
    grid-template-columns: 46px minmax(128px, 176px) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .director-report-dashboard[data-cabinet-view="rop"] {
    grid-template-columns: 1fr;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-main {
    padding: 20px 16px 26px;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card,
  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card.is-wide {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-report-controls {
    display: grid;
  }
}

/* ROP page: Kupislona reference pass */
.cabinet-page-body.is-director-dashboard {
  overflow-x: hidden;
  background: #f8f9fd;
}

.director-report-dashboard[data-cabinet-view="rop"] {
  --ks-purple: #7145f7;
  --ks-purple-dark: #6236e9;
  --ks-blue: #54bfff;
  --ks-lavender: #f1edff;
  --ks-ink: #151b3f;
  --ks-muted: #697392;
  --ks-border: #e5e8f2;
  --ks-bg: #f8f9fd;
  --ks-danger: #e54865;
  --ks-success: #159b75;
  grid-template-columns: 226px minmax(0, 1fr);
  min-width: 0;
  color: var(--ks-ink);
  background: var(--ks-bg);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.director-report-dashboard[data-cabinet-view="rop"] *,
.director-report-dashboard[data-cabinet-view="rop"] *::before,
.director-report-dashboard[data-cabinet-view="rop"] *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-sidebar {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 226px;
  height: 100svh;
  gap: 30px;
  padding: 22px 14px 28px;
  overflow: hidden;
  background: #ffffff;
  border-right: 1px solid #dfe4f1;
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-sidebar::before,
.director-report-dashboard[data-cabinet-view="rop"] .director-sidebar::after {
  content: "";
  position: absolute;
  left: -128px;
  bottom: -210px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  pointer-events: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-sidebar::before {
  background: linear-gradient(140deg, rgba(84, 191, 255, 0.32), rgba(113, 69, 247, 0.08) 58%, transparent 59%);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-sidebar::after {
  left: -164px;
  bottom: -254px;
  width: 520px;
  height: 520px;
  border: 28px solid rgba(113, 69, 247, 0.12);
  border-top-color: rgba(84, 191, 255, 0.24);
  background: transparent;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-brand,
.director-report-dashboard[data-cabinet-view="rop"] .director-nav {
  position: relative;
  z-index: 1;
}

.director-report-dashboard[data-cabinet-view="rop"] .rop-kupislona-brand {
  display: flex;
  align-items: center;
  grid-template-columns: none;
  gap: 0;
  height: 30px;
  padding: 0 14px;
  margin: 0 0 18px;
  color: #121451;
  text-decoration: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .rop-kupislona-brand .director-brand-mark {
  display: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .rop-kupislona-brand strong {
  position: relative;
  color: #121451;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .rop-kupislona-brand strong::after {
  content: "";
  position: absolute;
  right: -23px;
  top: 1px;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(#54bfff, #54bfff) 2px 11px / 14px 4px no-repeat,
    linear-gradient(#54bfff, #54bfff) 10px 1px / 4px 13px no-repeat,
    linear-gradient(#54bfff, #54bfff) 15px 5px / 4px 9px no-repeat;
  border-radius: 8px;
  transform: rotate(-24deg);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav {
  display: grid;
  gap: 12px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav button {
  position: relative;
  justify-content: flex-start;
  min-height: 54px;
  padding: 0 18px 0 60px;
  color: #697392;
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 38px;
  background: transparent;
  border-radius: 999px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav button.is-active {
  color: var(--ks-purple);
  background: var(--ks-lavender);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav button.is-active::before {
  background: var(--ks-purple);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 24px;
  height: 24px;
  color: currentColor;
  background: transparent;
  border: 0;
  border-radius: 0;
  transform: translateY(-50%);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav-icon::before,
.director-report-dashboard[data-cabinet-view="rop"] .director-nav-icon::after {
  content: "";
  position: absolute;
  background: transparent;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav-icon.is-trainer::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav-icon.is-trainer::after {
  left: 10px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(135deg);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav-icon.is-agents::before {
  left: 4px;
  top: 3px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 9px 0 0 -1px #ffffff, 9px 0 0 1px currentColor;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav-icon.is-agents::after {
  left: 2px;
  bottom: 3px;
  width: 18px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-shell {
  min-width: 0;
  background: var(--ks-bg);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  height: 76px;
  min-height: 76px;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #dfe4f1;
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile {
  display: grid;
  grid-template-columns: 44px max-content;
  align-items: center;
  gap: 12px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile-avatar {
  width: 44px;
  height: 44px;
  color: var(--ks-purple);
  background: #e9e4ff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile strong {
  color: var(--ks-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile small {
  margin-top: 3px;
  color: var(--ks-muted);
  font-size: 14px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-logout {
  min-width: 96px;
  min-height: 48px;
  padding: 0 22px;
  color: #3d4569;
  background: #ffffff;
  border: 1px solid #dce1ee;
  border-radius: 10px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-logout:hover,
.director-report-dashboard[data-cabinet-view="rop"] .director-logout:focus-visible {
  color: var(--ks-purple);
  background: #fbfaff;
  border-color: rgba(113, 69, 247, 0.34);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-main {
  position: relative;
  display: grid;
  align-content: start;
  gap: 28px;
  min-width: 0;
  min-height: calc(100svh - 76px);
  padding: 36px 30px 44px 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 100%, rgba(113, 69, 247, 0.12), transparent 34%),
    radial-gradient(circle at 0% 76%, rgba(84, 191, 255, 0.12), transparent 36%),
    linear-gradient(180deg, #fbfcff 0%, #f8f9fd 100%);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-main::after {
  content: "";
  position: absolute;
  left: -14px;
  bottom: -300px;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  border: 44px solid rgba(113, 69, 247, 0.06);
  border-top-color: rgba(84, 191, 255, 0.11);
  pointer-events: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-headline,
.director-report-dashboard[data-cabinet-view="rop"] .cabinet-stat-grid,
.director-report-dashboard[data-cabinet-view="rop"] .director-report-section {
  position: relative;
  z-index: 1;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-headline {
  display: block;
  margin: 0 0 -6px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-headline h3 {
  margin: 0;
  color: var(--ks-ink);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
}

.director-report-dashboard[data-cabinet-view="rop"] .rop-page-subtitle {
  max-width: 860px;
  margin: 9px 0 0;
  color: var(--ks-muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.42;
}

.director-report-dashboard[data-cabinet-view="rop"] .cabinet-stat-grid {
  display: grid;
  grid-template-columns: minmax(330px, 1.02fr) minmax(310px, 0.94fr) minmax(560px, 2.06fr);
  gap: 14px;
  min-width: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-width: 0;
  min-height: 176px;
  padding: 34px 28px;
  color: var(--ks-ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--ks-border);
  border-radius: 12px;
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card::before {
  display: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card.is-wide {
  grid-template-columns: 64px minmax(190px, 220px) minmax(320px, 1fr);
  gap: 24px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon {
  width: 64px;
  height: 64px;
  background: var(--ks-lavender);
  border-radius: 10px;
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--ks-purple);
  stroke-width: 2.1;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon.is-users {
  background: #edfaff;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon.is-users svg {
  stroke: #248ce8;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon.is-phone {
  background: var(--ks-lavender);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon.is-phone svg {
  stroke: var(--ks-purple);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-text {
  display: grid;
  align-content: center;
  gap: 9px;
  min-width: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card small {
  max-width: 260px;
  color: #697392;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.32;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  white-space: nowrap;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card strong,
.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card:first-child .director-kpi-value strong {
  margin: 0;
  color: #080d2e;
  font-size: 44px;
  font-weight: 800;
  line-height: 0.96;
  font-variant-numeric: tabular-nums;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value i {
  color: #080d2e;
  font-size: 25px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value b {
  margin: 2px 0 0;
  color: var(--ks-danger);
  font-size: 23px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value b.is-green {
  color: var(--ks-success);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value b.is-red {
  color: var(--ks-danger);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card em {
  display: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark {
  align-self: center;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  height: 94px;
  margin: 4px 4px 0 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark-line {
  fill: none;
  stroke: var(--ks-purple);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark-label {
  fill: #697392;
  font-size: 12px;
  font-weight: 700;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: auto;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark.is-empty {
  display: grid;
  place-items: center;
  height: 94px;
  color: #697392;
  font-size: 13px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-section {
  display: grid;
  gap: 16px;
  margin-top: 2px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-field {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ks-ink);
  font-size: 16px;
  font-weight: 800;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button,
.director-report-dashboard[data-cabinet-view="rop"] .director-search {
  min-height: 50px;
  color: var(--ks-ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--ks-border);
  border-radius: 10px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button {
  min-width: 272px;
  padding: 0 48px 0 18px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #697392;
  border-bottom: 2px solid #697392;
  transform: translateY(-65%) rotate(45deg);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button span:first-child,
.director-report-dashboard[data-cabinet-view="rop"] .director-search > span {
  position: relative;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: transparent;
  font-size: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button span:first-child::before {
  content: "";
  position: absolute;
  inset: 2px 3px 3px;
  border: 2px solid var(--ks-purple);
  border-radius: 4px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button span:first-child::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 7px;
  height: 2px;
  background: var(--ks-purple);
  box-shadow: 0 -4px 0 -1px var(--ks-purple);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search {
  width: min(420px, 33vw);
  min-width: 320px;
  padding: 0 18px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search > span::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ks-purple);
  border-radius: 50%;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search > span::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 8px;
  height: 2px;
  background: var(--ks-purple);
  border-radius: 999px;
  transform: rotate(45deg);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search input {
  height: 48px;
  color: var(--ks-ink);
  font-size: 16px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search input::placeholder {
  color: #8189a6;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button:hover,
.director-report-dashboard[data-cabinet-view="rop"] .director-search:hover {
  border-color: rgba(113, 69, 247, 0.34);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button:focus-visible,
.director-report-dashboard[data-cabinet-view="rop"] .director-search:focus-within {
  border-color: var(--ks-purple);
  box-shadow: 0 0 0 3px rgba(113, 69, 247, 0.12);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-menu {
  background: #ffffff;
  border: 1px solid var(--ks-border);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(21, 27, 63, 0.14);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-menu > button {
  color: var(--ks-ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-menu > button:hover {
  color: var(--ks-purple);
  background: var(--ks-lavender);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-custom button {
  color: #ffffff;
  background: var(--ks-purple);
  border-color: var(--ks-purple) !important;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-custom button:hover {
  background: var(--ks-purple-dark);
  border-color: var(--ks-purple-dark) !important;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-table {
  min-height: 378px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--ks-border);
  border-radius: 12px;
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) 112px 128px 104px 114px 150px 110px 190px minmax(260px, 1fr) 42px;
  min-width: 1220px;
  border-bottom: 1px solid var(--ks-border);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row:last-child {
  border-bottom: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row > * {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 80px;
  padding: 12px 14px;
  color: #30385d;
  border-right: 1px solid var(--ks-border);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.24;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row > *:last-child {
  border-right: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row.is-head {
  background: rgba(250, 251, 255, 0.96);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row.is-head > span {
  justify-content: center;
  min-height: 94px;
  color: #5d6689;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row:not(.is-head):hover {
  background: #fbfaff;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row > div:first-child {
  gap: 18px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row:not(.is-head) > :nth-child(n + 2):nth-child(-n + 7) {
  justify-content: center;
  text-align: center;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row strong {
  color: var(--ks-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row small {
  margin-top: 4px;
  color: #697392;
  font-size: 13px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row .agency-avatar {
  width: 50px;
  height: 50px;
  color: #1976d2;
  background: #e6f1ff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row:nth-child(3) .agency-avatar {
  color: var(--ks-purple);
  background: #f0ebff;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell {
  display: grid;
  grid-template-columns: 42px 42px minmax(56px, 1fr);
  align-items: center;
  gap: 8px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell strong {
  color: #080d2e;
  font-size: 16px;
  font-weight: 800;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell small {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell small.is-green {
  color: var(--ks-success);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell small.is-red {
  color: var(--ks-danger);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-spark {
  display: inline-flex;
  align-items: end;
  gap: 4px;
  height: 32px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-spark i {
  width: 7px;
  background: linear-gradient(180deg, #7145f7 0%, #e54865 100%);
  border-radius: 999px 999px 0 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-spark.is-red i {
  background: linear-gradient(180deg, #7145f7 0%, #e54865 100%);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-row-menu {
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #536080;
  border-radius: 8px;
  font-size: 22px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-row-menu:hover,
.director-report-dashboard[data-cabinet-view="rop"] .director-row-menu:focus-visible {
  color: var(--ks-purple);
  background: var(--ks-lavender);
}

@media (max-width: 1320px) {
  .director-report-dashboard[data-cabinet-view="rop"] .cabinet-stat-grid {
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card.is-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .director-report-dashboard[data-cabinet-view="rop"] {
    grid-template-columns: 1fr;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-sidebar {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-main {
    padding: 26px 18px 34px;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .cabinet-stat-grid {
    grid-template-columns: 1fr;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card,
  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card.is-wide {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark {
    grid-column: 1 / -1;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-report-controls {
    display: grid;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-search {
    width: 100%;
    min-width: 0;
  }
}

/* ROP workspace, Kupislona brand pass */
.cabinet-page-body.is-director-dashboard {
  overflow-x: hidden;
  background: #f8f9fd;
}

.director-report-dashboard[data-cabinet-view="rop"] {
  --ks-purple: #7145f7;
  --ks-purple-hover: #6236e9;
  --ks-blue: #54bfff;
  --ks-cyan: #7de8f5;
  --ks-lavender: #f1edff;
  --ks-ink: #151b3f;
  --ks-muted: #697392;
  --ks-bg: #f8f9fd;
  --ks-card: #ffffff;
  --ks-border: #e5e8f2;
  --ks-border-strong: #d9deec;
  --ks-danger: #e54865;
  --ks-success: #159b75;
  --ks-gradient: linear-gradient(110deg, #8542f5 0%, #655cf6 48%, #69dff4 100%);
  grid-template-columns: 208px minmax(0, 1fr);
  min-width: 0;
  color: var(--ks-ink);
  background: var(--ks-bg);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.director-report-dashboard[data-cabinet-view="rop"] *,
.director-report-dashboard[data-cabinet-view="rop"] *::before,
.director-report-dashboard[data-cabinet-view="rop"] *::after {
  box-sizing: border-box;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-shell,
.director-report-dashboard[data-cabinet-view="rop"] .director-main,
.director-report-dashboard[data-cabinet-view="rop"] .director-report-section {
  min-width: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-sidebar {
  width: 208px;
  padding: 18px 12px;
  background: var(--ks-card);
  border-right: 1px solid var(--ks-border);
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-brand {
  gap: 11px;
  margin-bottom: 28px;
  color: var(--ks-ink);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-brand-mark {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-brand-mark::before {
  width: 18px;
  height: 18px;
  background: var(--ks-gradient);
  border-radius: 9px 9px 9px 3px;
  box-shadow: 8px -4px 0 rgba(84, 191, 255, 0.25);
  transform: rotate(-38deg);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-brand strong {
  color: var(--ks-ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav {
  gap: 6px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav button {
  position: relative;
  min-height: 48px;
  padding: 0 14px 0 42px;
  color: var(--ks-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 3px;
  height: 30px;
  background: transparent;
  border-radius: 999px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav button.is-active {
  color: var(--ks-purple);
  background: var(--ks-lavender);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav button.is-active::before {
  background: var(--ks-purple);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav-icon {
  left: 15px;
  width: 18px;
  height: 18px;
  color: currentColor;
  background: transparent;
  border: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav-icon::before {
  width: 12px;
  height: 7px;
  inset: auto auto 1px 3px;
  border: 1.8px solid currentColor;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: transparent;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav-icon::after {
  width: 7px;
  height: 7px;
  top: 2px;
  left: 5.5px;
  background: transparent;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-topbar {
  min-height: 64px;
  padding: 10px 24px;
  background: var(--ks-card);
  border-bottom: 1px solid var(--ks-border);
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile {
  gap: 10px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile-avatar,
.director-report-dashboard[data-cabinet-view="rop"] .agency-avatar {
  color: var(--ks-purple);
  background: var(--ks-lavender);
  font-weight: 800;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile strong {
  color: var(--ks-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile small {
  color: var(--ks-muted);
  font-size: 12px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-logout {
  min-height: 36px;
  padding: 0 18px;
  color: var(--ks-ink);
  background: #ffffff;
  border: 1px solid var(--ks-border-strong);
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-logout:hover,
.director-report-dashboard[data-cabinet-view="rop"] .director-logout:focus-visible {
  color: var(--ks-purple);
  border-color: rgba(113, 69, 247, 0.4);
  background: #fbfaff;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px 28px 36px;
  background:
    radial-gradient(circle at 18% -12%, rgba(125, 232, 245, 0.22), transparent 34%),
    linear-gradient(180deg, #fbfcff 0%, var(--ks-bg) 34%, var(--ks-bg) 100%);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-headline {
  display: block;
  margin: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-headline h3 {
  margin: 0;
  color: var(--ks-ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .rop-page-subtitle {
  margin: 6px 0 0;
  color: var(--ks-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.director-report-dashboard[data-cabinet-view="rop"] .cabinet-stat-grid {
  display: grid;
  grid-template-columns: minmax(210px, 24fr) minmax(240px, 24fr) minmax(480px, 52fr);
  gap: 12px;
  min-width: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  min-height: 136px;
  padding: 22px 24px;
  color: var(--ks-ink);
  background: var(--ks-card);
  border: 1px solid var(--ks-border);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card::before {
  display: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card.is-wide {
  grid-template-columns: 46px minmax(168px, 220px) minmax(260px, 1fr);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #edf7ff;
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon svg {
  width: 25px;
  height: 25px;
  stroke: #1283bf;
  stroke-width: 2.1;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon.is-users {
  background: #e9fff9;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon.is-users svg {
  stroke: var(--ks-success);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon.is-phone {
  background: var(--ks-lavender);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon.is-phone svg {
  stroke: var(--ks-purple);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-text {
  align-content: center;
  gap: 8px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card small {
  max-width: 210px;
  color: var(--ks-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card strong,
.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card:first-child .director-kpi-value strong {
  margin: 0;
  color: var(--ks-ink);
  font-size: 40px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value i {
  color: var(--ks-ink);
  font-size: 25px;
  font-style: normal;
  font-weight: 800;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value b {
  margin-left: 4px;
  font-size: 18px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value b.is-red {
  color: var(--ks-danger);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value b.is-green {
  color: var(--ks-success);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card em {
  color: var(--ks-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark {
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  height: 92px;
  margin: 2px 0 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark-line {
  fill: none;
  stroke: var(--ks-purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark-label {
  fill: var(--ks-muted);
  font-size: 11px;
  font-weight: 700;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: auto;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark.is-empty {
  display: grid;
  place-items: center;
  height: 92px;
  color: var(--ks-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-section {
  gap: 12px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ks-ink);
  font-size: 14px;
  font-weight: 800;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control {
  position: relative;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button,
.director-report-dashboard[data-cabinet-view="rop"] .director-search {
  min-height: 40px;
  color: var(--ks-ink);
  background: #ffffff;
  border: 1px solid var(--ks-border-strong);
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button {
  padding: 0 14px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search {
  width: min(440px, 36vw);
  min-width: 260px;
  padding: 0 14px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search span,
.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button span:first-child {
  color: var(--ks-purple);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search input {
  height: 38px;
  color: var(--ks-ink);
  font-size: 14px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search input::placeholder {
  color: #8a93ad;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button:hover,
.director-report-dashboard[data-cabinet-view="rop"] .director-search:hover {
  border-color: rgba(113, 69, 247, 0.42);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button:focus-visible,
.director-report-dashboard[data-cabinet-view="rop"] .director-search:focus-within {
  border-color: var(--ks-purple);
  box-shadow: 0 0 0 3px rgba(113, 69, 247, 0.12);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-menu {
  background: #ffffff;
  border: 1px solid var(--ks-border);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(21, 27, 63, 0.14);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-menu > button {
  color: var(--ks-ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-menu > button:hover {
  color: var(--ks-purple);
  background: var(--ks-lavender);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-custom span {
  color: var(--ks-muted);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-custom input {
  color: var(--ks-ink);
  border-color: var(--ks-border-strong);
  border-radius: 8px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-custom button {
  color: #ffffff;
  background: var(--ks-purple);
  border-color: var(--ks-purple) !important;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-custom button:hover {
  background: var(--ks-purple-hover);
  border-color: var(--ks-purple-hover) !important;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-table {
  min-height: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  background: #ffffff;
  border: 1px solid var(--ks-border);
  border-radius: 12px;
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row {
  grid-template-columns: minmax(210px, 1.3fr) 110px 136px 96px 116px 160px 106px 184px minmax(210px, 1fr) 44px;
  min-width: 1180px;
  border-bottom: 1px solid var(--ks-border);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row:hover:not(.is-head) {
  background: #faf9ff;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row > * {
  min-height: 64px;
  padding: 10px 12px;
  color: var(--ks-ink);
  border-right: 1px solid var(--ks-border);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row > *:last-child {
  border-right: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row.is-head {
  background: #fafafe;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row.is-head > span {
  justify-content: center;
  min-height: 54px;
  color: var(--ks-ink);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row:not(.is-head) > :nth-child(n + 2):nth-child(-n + 7) {
  justify-content: center;
  text-align: center;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row strong {
  color: var(--ks-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row small {
  margin-top: 3px;
  color: var(--ks-muted);
  font-size: 12px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row .agency-avatar {
  width: 36px;
  height: 36px;
  color: var(--ks-purple);
  background: #eaf1ff;
  font-size: 11px;
  border-radius: 50%;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell {
  grid-template-columns: 44px 38px minmax(56px, 1fr);
  gap: 5px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell strong {
  font-size: 14px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell small.is-green {
  color: var(--ks-success);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell small.is-red {
  color: var(--ks-danger);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-spark {
  gap: 3px;
  height: 28px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-spark i {
  width: 7px;
  background: var(--ks-success);
  border-radius: 999px 999px 0 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-spark.is-red i {
  background: var(--ks-danger);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-row-menu {
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--ks-muted);
  border-radius: 8px;
  font-size: 20px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-row-menu:hover,
.director-report-dashboard[data-cabinet-view="rop"] .director-row-menu:focus-visible {
  color: var(--ks-purple);
  background: var(--ks-lavender);
}

@media (max-width: 1280px) {
  .director-report-dashboard[data-cabinet-view="rop"] .cabinet-stat-grid {
    grid-template-columns: minmax(210px, 1fr) minmax(230px, 1fr);
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card.is-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .director-report-dashboard[data-cabinet-view="rop"] {
    grid-template-columns: 1fr;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-sidebar {
    position: static;
    width: auto;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--ks-border);
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-main {
    padding: 22px 16px 30px;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .cabinet-stat-grid {
    grid-template-columns: 1fr;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card,
  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card.is-wide {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 124px;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark {
    grid-column: 1 / -1;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-report-controls {
    display: grid;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-search {
    width: 100%;
    min-width: 0;
  }
}

/* ROP page final spec pass: B2B SaaS proportions, neutral palette, real chart area. */
.director-report-dashboard[data-cabinet-view="rop"] {
  --rop-bg: #f8fafc;
  --rop-paper: #ffffff;
  --rop-paper-2: #f8fafc;
  --rop-border: #e2e8f0;
  --rop-border-soft: #f1f5f9;
  --rop-ink: #111827;
  --rop-muted: #64748b;
  --rop-subtle: #94a3b8;
  --rop-accent: #2563eb;
  --rop-accent-hover: #1d4ed8;
  --rop-accent-2: #eff6ff;
  --rop-positive: #16a34a;
  --rop-danger: #dc2626;
  grid-template-columns: 208px minmax(0, 1fr);
  background: var(--rop-bg);
  color: var(--rop-ink);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-sidebar {
  padding: 20px 12px;
  background: #ffffff;
  border-right: 1px solid var(--rop-border);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-topbar {
  height: 60px;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--rop-border);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-brand {
  padding: 0 10px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-brand strong {
  color: var(--rop-ink);
  font-size: 15px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-brand-mark::before {
  border-color: var(--rop-accent);
  border-top-color: transparent;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav button {
  min-height: 40px;
  color: #334155;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-nav button.is-active {
  color: var(--rop-accent);
  background: var(--rop-accent-2);
  box-shadow: inset 3px 0 0 var(--rop-accent);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-main {
  gap: 20px;
  padding: 28px 32px 34px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-headline h3 {
  margin: 0;
  color: var(--rop-ink);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.18;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile strong {
  color: var(--rop-ink);
  font-size: 13px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile small {
  color: var(--rop-muted);
  font-size: 12px;
  font-weight: 400;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-profile-avatar,
.director-report-dashboard[data-cabinet-view="rop"] .agency-avatar {
  color: var(--rop-accent);
  background: var(--rop-accent-2);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-logout {
  min-height: 36px;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--rop-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-logout:hover {
  color: var(--rop-ink);
  background: var(--rop-bg);
  border-color: #cbd5e1;
}

.director-report-dashboard[data-cabinet-view="rop"] .cabinet-stat-grid {
  grid-template-columns: minmax(190px, 22fr) minmax(220px, 25fr) minmax(460px, 53fr);
  gap: 12px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  min-height: 128px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--rop-border);
  border-radius: 10px;
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card.is-wide {
  grid-template-columns: 34px minmax(136px, 176px) minmax(0, 1fr);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon {
  align-self: start;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--rop-accent);
  stroke-width: 1.9;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card small {
  max-width: 220px;
  color: var(--rop-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card strong,
.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card:first-child .director-kpi-value strong {
  margin-top: 8px;
  color: var(--rop-ink);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value {
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value i {
  color: var(--rop-ink);
  font-size: 22px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value b {
  display: inline-flex;
  margin-left: 4px;
  font-size: 16px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value b.is-red {
  color: var(--rop-danger);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-value b.is-green {
  color: var(--rop-positive);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark {
  align-self: center;
  height: 92px;
  min-width: 0;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark.is-empty {
  display: grid;
  place-items: center;
  color: var(--rop-subtle);
  font-size: 12px;
  font-weight: 400;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark-line {
  stroke: var(--rop-accent);
  stroke-width: 2;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark-label {
  fill: var(--rop-muted);
  font-size: 11px;
  font-weight: 400;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: auto;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-controls {
  gap: 16px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-field {
  color: var(--rop-ink);
  font-size: 13px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button,
.director-report-dashboard[data-cabinet-view="rop"] .director-search {
  min-height: 38px;
  color: var(--rop-ink);
  background: #ffffff;
  border: 1px solid var(--rop-border);
  border-radius: 8px;
  box-shadow: none;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search {
  min-width: min(380px, 38vw);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-search input {
  height: 36px;
  color: var(--rop-ink);
  font-size: 13px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button:hover,
.director-report-dashboard[data-cabinet-view="rop"] .director-search:hover {
  border-color: #cbd5e1;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-control button:focus-visible,
.director-report-dashboard[data-cabinet-view="rop"] .director-search:focus-within {
  border-color: var(--rop-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-menu {
  background: #ffffff;
  border-color: var(--rop-border);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-menu > button {
  color: var(--rop-ink);
  border-radius: 6px;
  font-weight: 500;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-menu > button:hover {
  background: var(--rop-bg);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-custom button {
  background: var(--rop-accent);
  border-color: var(--rop-accent) !important;
  border-radius: 8px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-period-custom button:hover {
  background: var(--rop-accent-hover);
  border-color: var(--rop-accent-hover) !important;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-table {
  min-height: 0;
  background: #ffffff;
  border: 1px solid var(--rop-border);
  border-radius: 10px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row {
  border-bottom-color: var(--rop-border-soft);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row:hover:not(.is-head) {
  background: #f8fafc;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row > * {
  min-height: 58px;
  padding: 8px 12px;
  color: #111827;
  border-right: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row.is-head {
  background: #f8fafc;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row.is-head > span {
  min-height: 48px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row strong {
  color: var(--rop-ink);
  font-size: 13px;
  font-weight: 600;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-report-row small {
  color: var(--rop-muted);
  font-size: 12px;
  font-weight: 400;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell {
  grid-template-columns: 44px 40px minmax(52px, 1fr);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell small.is-green {
  color: var(--rop-positive);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-cell small.is-red {
  color: var(--rop-danger);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-spark i {
  background: var(--rop-positive);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-rating-spark.is-red i {
  background: var(--rop-danger);
}

.director-report-dashboard[data-cabinet-view="rop"] .director-row-menu {
  color: #64748b;
  border-radius: 6px;
}

.director-report-dashboard[data-cabinet-view="rop"] .director-row-menu:hover,
.director-report-dashboard[data-cabinet-view="rop"] .director-row-menu:focus-visible {
  color: var(--rop-ink);
  background: #f1f5f9;
}

@media (max-width: 1180px) {
  .director-report-dashboard[data-cabinet-view="rop"] .cabinet-stat-grid {
    grid-template-columns: 1fr;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card.is-wide {
    grid-template-columns: 34px minmax(136px, 176px) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .director-report-dashboard[data-cabinet-view="rop"] {
    grid-template-columns: 1fr;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-main {
    padding: 22px 16px 28px;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card,
  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-card.is-wide {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-kpi-spark {
    grid-column: 1 / -1;
  }

  .director-report-dashboard[data-cabinet-view="rop"] .director-report-controls {
    display: grid;
  }
}
