:root {
  --font-base: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dark: #24262d;
  --navy: #1f2b5e;
  --green: #37ea97;
  --orange: #fe6e46;
  --purple: #5546fe;
  --blue-soft: #4e5d9c;
  --white: #ffffff;
  --gray: #777a87;
  --gray-soft: #a9abb7;
  --light: #dde0ee;
  --lavender: #eef1ff;
  --panel: rgba(78, 93, 156, 0.07);
  --line: rgba(78, 93, 156, 0.14);
  --line-soft: rgba(78, 93, 156, 0.08);
  --bg: #f8f9fd;
  --radius-ui: 8px;
  --radius-card: 16px;
  --radius-panel: 18px;
  --radius-pill-sm: 21px;
  --radius-pill: 27px;
  --shadow-soft: 0 16px 40px rgba(31, 43, 94, 0.08);
  --shadow-cta: 0 4px 22.5px rgba(0, 0, 0, 0.15);

  /* Responsive Scaling */
  --ui-scale: 1;

  /* Responsive Spacing & Grid */
  --app-max-width: 1480px;
  --container-padding: clamp(16px, 2.5vw, 36px);
  --grid-gap-lg: clamp(24px, 3vw, 56px);
  --grid-gap-md: clamp(16px, 2vw, 28px);
  --grid-gap-sm: clamp(12px, 1.2vw, 18px);

  /* Adaptive Typography */
  --fs-h1: clamp(34px, 3vw, 64px);
  --fs-h2: clamp(26px, 2vw, 42px);
  --fs-body: clamp(14px, 0.95vw, 17px);
  --fs-caption: clamp(12px, 0.75vw, 14px);
  
  /* Hero Specific Typography */
  --fs-hero-title: clamp(42px, 5vw, 72px);
  --fs-hero-lead: clamp(28px, 3vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  color: var(--dark);
  font-size: var(--fs-body);
  background:
    radial-gradient(circle at top left, rgba(55, 234, 151, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(85, 70, 254, 0.06), transparent 22%),
    #F4F6FB;
  -webkit-font-smoothing: antialiased;
}

/* Prevent overflow globally */
img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

.main-content,
.card,
.panel,
.form-grid,
.hero,
.service-layout,
.messages-layout,
.panel-card,
.section-block {
  min-width: 0;
}

body.body--overlay-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

button {
  border: none;
  background: transparent;
}

button:not([disabled]) {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.is-hidden {
  display: none !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(55, 234, 151, 0.10);
  border: 1px solid rgba(55, 234, 151, 0.18);
  color: #35D98E;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.eyebrow--dark {
  background: var(--panel);
  border-color: var(--line);
  color: var(--blue-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.btn:hover:not([disabled]) {
  transform: translateY(-1px);
}

.btn-primary {
  background: #37ea97;
  color: #0b0f1c;
  font-weight: 700;
  box-shadow: 
    0 8px 24px rgba(55, 234, 151, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover:not([disabled]) {
  background: #3EE58F;
  box-shadow: 
    0 12px 30px rgba(55, 234, 151, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(20, 30, 60, 0.04);
  color: #1f2b5e;
  border: 1px solid rgba(30, 30, 50, 0.08);
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: none;
}

.btn-secondary:hover:not([disabled]) {
  border-color: rgba(31, 43, 94, 0.16);
  box-shadow:
    0 14px 30px rgba(31, 43, 94, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.btn-secondary--quiet {
  min-height: 40px;
  padding: 0 18px;
  border-color: rgba(31, 43, 94, 0.08);
  box-shadow: none;
}

.btn-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-transform: lowercase;
}

.btn-dark:hover:not([disabled]) {
  background: rgba(255, 255, 255, 0.14);
}

.btn-dark.btn-disabled {
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger {
  background: rgba(254, 110, 70, 0.1);
  color: #fe6e46;
  border: 1px solid rgba(254, 110, 70, 0.2);
  box-shadow: none;
}

.btn-danger:hover:not([disabled]) {
  background: rgba(254, 110, 70, 0.16);
}

.btn-disabled,
.btn:disabled {
  background: rgba(36, 38, 45, 0.1);
  color: rgba(36, 38, 45, 0.38);
  border: 1px solid rgba(36, 38, 45, 0.06);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 1;
}

.dark-card .btn-disabled,
.dark-card .btn:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-icon {
  width: 46px;
  min-width: 46px;
  padding: 0;
  aspect-ratio: 1;
}

.btn__arrow {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(31, 43, 94, 0.08);
  border: 1px solid rgba(31, 43, 94, 0.08);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs--dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-tab {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  color: rgba(31, 43, 94, 0.7);
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
  border: 0;
  text-transform: lowercase;
}

.tabs--dark .btn-tab {
  color: rgba(255, 255, 255, 0.74);
}

.btn-tab.active {
  background: #fe6e46;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(254, 110, 70, 0.24);
}

.tabs--dark .btn-tab:hover:not(.active):not([disabled]) {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-tab:hover:not(.active):not([disabled]) {
  background: rgba(31, 43, 94, 0.06);
  color: rgba(31, 43, 94, 0.92);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field span {
  color: rgba(36, 38, 45, 0.72);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.field__hint {
  color: rgba(36, 38, 45, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.field input,
.field select,
.field textarea,
.filters-row input,
.filters-row select,
.subtable input,
.subtable select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(31, 43, 94, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--dark);
  font-size: 15px;
  font-weight: 400;
  outline: none;
  min-width: 0;
}

.field input[readonly] {
  color: rgba(36, 38, 45, 0.58);
  background: rgba(244, 247, 252, 0.92);
}

.field textarea {
  min-height: 110px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filters-row input:focus,
.filters-row select:focus,
.subtable input:focus,
.subtable select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(55, 234, 151, 0.12);
}

.auth-screen {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 18% 35%, rgba(57, 229, 140, 0.18), transparent 30%),
    radial-gradient(circle at 82% 45%, rgba(57, 229, 140, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(246, 248, 252, 1));
}

.auth-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--container-padding);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 597px);
  gap: clamp(24px, 4vw, 36px);
  align-items: center;
}

@media (max-width: 1100px) {
  .auth-shell {
    max-width: 960px;
    grid-template-columns: 1fr 390px;
    gap: 48px;
  }
}

@media (max-width: 820px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.auth-brand {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: center;
  align-self: center;
  text-align: left;
  max-width: 460px;
}

.auth-brand::before {
  content: "";
  position: absolute;
  left: -120px;
  top: -100px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 45%, rgba(57, 229, 140, 0.22), rgba(57, 229, 140, 0.08) 35%, transparent 68%);
  filter: blur(16px);
  z-index: 0;
  pointer-events: none;
}

.auth-brand::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 50% 50%, rgba(85, 70, 254, 0.05), transparent 60%);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

.auth-brand__logo {
  position: relative;
  z-index: 1;
  width: clamp(260px, 28vw, 340px);
  display: block;
}

.auth-brand__subtitle {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: var(--navy);
  font-size: clamp(62px, 6vw, 72px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.auth-brand__headline {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: var(--navy);
  opacity: 0.85;
  font-size: clamp(30px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.auth-brand__text {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  color: #5a5d6a;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.45;
  opacity: 0.58;
}

.auth-card {
  width: 100%;
  max-width: 597px;
  justify-self: end;
  border-radius: 36px;
  padding: 48px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 22px 60px rgba(31, 43, 94, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(57, 229, 140, 0.06), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(15, 23, 42, 0.03), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-card__head h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #1f2b5e;
}

.auth-card__head p {
  display: none;
}

.auth-note,
.auth-code-meta,
.auth-hint,
.hero-panel p,
.service-card p,
.panel-card p,
.helper-text,
.gate-note {
  color: var(--gray);
  line-height: 1.6;
}

.auth-step {
  display: none;
  margin-top: 32px;
}

.auth-step.is-active {
  display: block;
}

.auth-card .field {
  gap: 12px;
}

.auth-card .field span {
  font-size: 18px;
  font-weight: 500;
  color: rgba(31, 43, 94, 0.76);
}

.auth-card .field input {
  height: 58px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(31, 43, 94, 0.08);
  box-shadow: none;
  font-size: 17px;
  padding: 0 24px;
  color: #1f2b5e;
}

.auth-card .field input::placeholder {
  color: rgba(31, 43, 94, 0.28);
  opacity: 1;
  font-weight: 400;
}

.auth-card .field input:focus {
  border-color: rgba(55, 234, 151, 0.65);
  box-shadow: 0 0 0 5px rgba(55, 234, 151, 0.10);
  background: #fff;
}

.auth-card .btn-primary {
  width: 100%;
  height: 58px;
  margin-top: 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  background: #67e89a;
  color: #1f2b5e;
  box-shadow: 0 14px 34px rgba(103, 232, 154, 0.24);
}

.auth-card .btn-primary:hover {
  background: #42efa1;
  box-shadow:
    0 18px 36px rgba(55, 234, 151, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.auth-note,
.auth-foot {
  margin-top: 16px;
}

.auth-note {
  font-size: 15px;
  opacity: 0.55;
  margin-top: 20px;
  text-align: center;
}

.auth-card .btn-primary,
.auth-card .btn-secondary {
  width: 100%;
  justify-content: center;
}

.auth-card .btn-primary {
  min-height: 60px;
}

.auth-card .btn-secondary {
  min-height: 48px;
  border-radius: 16px;
}

.auth-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.auth-code-meta {
  margin: 16px 0;
}

.auth-hint {
  margin: 10px 0 0;
  font-size: 13px;
}

.topbar {
  position: relative;
  z-index: 120;
  padding: 24px 0 0;
  width: 100%;
}

.topbar__nav {
  width: 100%;
  margin: 0 auto;
  min-height: 64px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(12px, 2vw, 28px);
  border-radius: 18px;
  background: var(--dark);
  color: var(--white);
  box-shadow:
    0 22px 44px rgba(31, 43, 94, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: clip;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 18px);
  min-width: 0;
  justify-self: start;
}

.topbar__menu-button {
  color: var(--white);
}

.topbar__nav .topbar__menu-button,
.topbar__nav .topbar__icon,
.topbar__nav .topbar__user-block {
  border: 0;
  box-shadow: none;
}

.topbar__nav .topbar__menu-button,
.topbar__nav .topbar__icon {
  background: transparent;
}

.topbar__nav .topbar__menu-button:hover:not([disabled]),
.topbar__nav .topbar__icon:hover:not([disabled]) {
  background: transparent;
  opacity: 0.82;
}

.topbar__nav .topbar__user-block {
  background: transparent;
  padding-inline: 0;
  min-height: auto;
}

.topbar__menu-button svg {
  width: 24px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  min-width: 140px;
  padding: 8px 12px;
  text-align: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: all 120ms ease;
  outline: none;
  border-radius: 12px;
  justify-self: center;
}

.header-brand:hover {
  opacity: 0.92;
  filter: drop-shadow(0 0 10px rgba(62, 229, 143, 0.08));
}

.header-brand:active {
  transform: scale(0.985);
}

.brand-logo {
  width: auto;
  height: 28px;
  display: block;
  margin-bottom: 0;
}

.brand-title {
  color: rgba(255, 255, 255, 0.94);
  width: 118px;
  margin-top: -1px;
  font-size: 16px;
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.03em;
  text-shadow: none;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.topbar__icon {
  color: var(--white);
  position: relative;
}

.topbar__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar__icon--plain {
  min-width: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
}

.topbar__icon--plain svg {
  width: 19px;
  height: 19px;
}

.topbar__messages-button.has-unread {
  color: #ffffff;
}

.topbar__messages-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #37ea97;
  color: #1f2b5e;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 8px 16px rgba(55, 234, 151, 0.24),
    0 0 0 2px rgba(36, 38, 45, 0.92);
}

.platform-tabs {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.platform-tabs::-webkit-scrollbar {
  display: none;
}

.topbar__user-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-height: 46px;
  padding: 0 18px;
  text-align: right;
  color: var(--white);
}

.topbar__user-name {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-transform: lowercase;
}

.topbar__user-phone {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 500;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(31, 34, 44, 0.98), rgba(23, 26, 34, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
}

.profile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-menu__item {
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-transform: lowercase;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: none;
}

.profile-menu__item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-menu__separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  margin: 6px 8px;
}

.profile-menu__item--danger {
  color: rgba(255, 120, 100, 0.6);
}

.profile-menu__item--danger:hover {
  color: #ff7864 !important;
  background: rgba(255, 120, 100, 0.04);
}

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 28, 0.2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.nav-drawer-backdrop:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: clamp(240px, 18vw, 320px);
  height: auto;
  max-height: calc(100dvh - 24px);
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(180deg, #161A28 0%, #0F1730 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0 24px 24px 0;
  box-shadow: 
    40px 0 90px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 1001;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0;
  transform: translateX(-16px);
  visibility: hidden;
  transition: 
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 260ms cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.nav-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.nav-drawer::-webkit-scrollbar {
  width: 8px;
}

.nav-drawer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.nav-drawer__brand {
  margin-bottom: 24px;
}

.nav-drawer__hero {
  position: relative;
}

.nav-drawer__hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-transform: lowercase;
  margin-bottom: 2px;
  line-height: 1.1;
}

.nav-drawer__tagline {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: lowercase;
}

.nav-drawer__icon-box {
  font-size: 20px;
  opacity: 0.8;
}

.nav-drawer__hero-subtitle {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  line-height: 1.42;
  font-weight: 400;
  text-transform: lowercase;
  max-width: 140px;
}

.tel-glow-element {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(55, 234, 151, 0.08), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: subtleGlowPulse 8s ease-in-out infinite;
}

@keyframes subtleGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.nav-drawer__menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  margin-right: -6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.nav-drawer__menu::-webkit-scrollbar {
  width: 8px;
}

.nav-drawer__menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.nav-drawer__section {
  border-top: 1px solid rgba(255, 255, 255, 0.025);
  padding-top: 16px;
}

.nav-drawer__section:first-child {
  border-top: none;
  padding-top: 0;
}

.nav-drawer__label {
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  margin-bottom: 10px;
  padding-left: 4px;
}

.nav-drawer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer__item {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(13px, 0.85vw, 15px);
  font-weight: 500;
  line-height: 1.1;
  text-align: left;
  text-transform: lowercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 180ms ease;
  position: relative;
  box-shadow: none;
}

.nav-drawer__item:hover:not([disabled]) {
  color: #fff;
  transform: translateX(2px);
}

.nav-drawer__item.is-active {
  color: var(--white);
  background: rgba(0, 0, 0, 0.12);
}

.nav-drawer__item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 18px;
  background: #ff784e;
  box-shadow: 0 0 18px rgba(255, 120, 78, 0.18);
  border-radius: 999px;
}

.nav-drawer__item--danger {
  color: rgba(255, 120, 95, 0.76);
  font-weight: 500;
}

.nav-drawer__item--danger:hover {
  color: #ff8a6d !important;
}

.menu-status {
  height: 18px;
  min-width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  padding: 0 8px;
  border-radius: 999px;
  text-transform: lowercase;
  letter-spacing: 0;
}

.menu-status--beta {
  background: rgba(55, 234, 151, 0.12);
  color: #37ea97;
  border: 1px solid rgba(55, 234, 151, 0.22);
}

.menu-status--muted {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
}

.nav-drawer__footer {
  position: static;
  margin-top: 0;
  padding-top: 18px;
  padding-bottom: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-drawer__signature {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signature-label {
  color: rgba(255, 255, 255, 0.32);
  font-size: 11px;
  font-weight: 400;
}

.signature-user {
  color: #3EE58F;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 560;
  transition: all 0.2s ease;
}

.signature-user:hover {
  text-shadow: 0 0 12px rgba(62, 229, 143, 0.18);
  opacity: 1;
}

.app-shell {
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding-inline: var(--container-padding);
}

.platform-shell {
  width: 100%;
  margin: 24px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.platform-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-card,
.section-block,
.hero-panel {
  position: relative;
  border-radius: 24px;
  padding: clamp(20px, 2.5vw, 32px);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(248, 250, 255, 0.92) 46%,
      rgba(238, 244, 252, 0.82) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 20px 48px rgba(31, 43, 94, 0.08),
    0 8px 20px rgba(31, 43, 94, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  min-width: 0;
}

.panel-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 64px rgba(31, 43, 94, 0.12),
    0 12px 28px rgba(31, 43, 94, 0.06);
}

.profitability-card {
  border-radius: 24px;
  padding: 22px;
}

.profitability-card h3 {
  margin: 8px 0 0;
  color: var(--dark);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.service-panel .section-block__head h2 {
  color: var(--dark);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.14;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.service-switcher {
  margin-bottom: 18px;
}

.people-switcher {
  margin-bottom: 18px;
}

.service-panel {
  display: none;
}

.service-panel.is-active {
  display: block;
}

.people-panel {
  display: none;
}

.people-panel.is-active {
  display: block;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(24px, 4vw, 36px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 247, 252, 0.88) 52%, rgba(234, 241, 248, 0.82) 100%);
  align-items: center;
  width: 100%;
}

.hero-content {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 72px;
  align-items: center;
}

.hero-panel__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.hero-left {
  max-width: 560px;
  min-width: 0;
  position: relative;
}

.hero-left::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -140px;
  top: -120px;
  background:
    radial-gradient(circle,
      rgba(55,234,151,0.18) 0%,
      rgba(55,234,151,0.09) 32%,
      rgba(55,234,151,0.03) 56%,
      transparent 72%);
  filter: blur(26px);
  pointer-events: none;
  z-index: 0;
}

.hero-left > * {
  position: relative;
  z-index: 1;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.hero-pulse-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #37EA97;
  position: relative;
  flex: 0 0 auto;
  box-shadow:
    0 0 0 8px rgba(55,234,151,0.12),
    0 0 34px rgba(55,234,151,0.34);
  animation: pulseDot 5.8s ease-in-out infinite;
  transform: translateY(2px);
}

.hero-pulse-dot::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: inherit;
  background:
    radial-gradient(circle,
      rgba(55,234,151,0.24) 0%,
      rgba(55,234,151,0.10) 38%,
      transparent 72%
    );
  filter: blur(8px);
  animation: pulseHalo 5.8s ease-in-out infinite;
}

.hero-title,
.hero-panel h1 {
  margin: 0;
  font-size: var(--fs-hero-title);
  line-height: 0.96;
  font-weight: 600;
  color: #24262d;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-panel__lead {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: var(--fs-hero-lead);
  line-height: 1.08;
  font-weight: 600;
  color: rgba(36, 38, 45, 0.68);
  letter-spacing: -0.03em;
}

.hero-panel__description {
  max-width: 520px;
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(36, 38, 45, 0.56);
}

.hero-actions .btn {
  min-height: 52px;
  padding-inline: 24px;
  white-space: nowrap;
}

.hero-panel__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.hero-actions .btn-primary {
  background: #FE6E46;
  color: #FFFFFF;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow:
    0 14px 30px rgba(254,110,70,0.22),
    inset 0 1px 0 rgba(255,255,255,0.24);
}

.hero-actions .btn-primary:hover:not([disabled]) {
  background: #FF7650;
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px rgba(254,110,70,0.28),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 43, 94, 0.08);
  color: #1F2B5E;
  box-shadow: 0 10px 24px rgba(31, 43, 94, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-actions .btn-secondary:hover:not([disabled]) {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  border-color: rgba(31, 43, 94, 0.12);
}

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

.hero-workspace__grid,
.module-grid,
.modules-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  gap: clamp(12px, 1.2vw, 18px);
  width: 100%;
  min-width: 0;
}

.dark-card {
  background: #1a1d26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 22px 44px rgba(31, 43, 94, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-panel__actions .btn {
  min-height: 56px;
  padding-inline: 28px;
}

.hero-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1.34 / 1;
  min-height: 214px;
  padding: 24px;
  overflow: hidden;
  color: var(--white);
  border-radius: 24px;
  box-shadow:
    0 24px 44px rgba(31, 43, 94, 0.12),
    0 8px 20px rgba(31, 43, 94, 0.08);
  isolation: isolate;
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
  background: transparent;
}

.hero-tile::before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -1;
  border-radius: inherit;
  transition: opacity 0.3s ease;
}

.hero-tile--people::before {
  background:
    radial-gradient(circle at 78% 24%, rgba(55, 234, 151, 0.28), transparent 34%),
    linear-gradient(160deg, #2a345e 0%, #1f2b5e 54%, #161e3d 100%);
}

.hero-tile--profitability::before {
  background:
    radial-gradient(circle at 72% 26%, rgba(55, 234, 151, 0.18), transparent 30%),
    linear-gradient(160deg, #1f2b5e 0%, #161e3d 50%, #0f152b 100%);
}

.hero-tile--base::before {
  background:
    radial-gradient(circle at 80% 22%, rgba(55, 234, 151, 0.18), transparent 28%),
    linear-gradient(160deg, #242d54 0%, #1a1f3d 54%, #12162b 100%);
}

.hero-tile--premium::before {
  background:
    radial-gradient(circle at 78% 24%, rgba(55, 234, 151, 0.18), transparent 34%),
    radial-gradient(circle at 35% 30%, rgba(180, 148, 255, 0.12), transparent 38%),
    linear-gradient(160deg, #0c111d 0%, #141926 58%, #1a1d26 100%);
}

.hero-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.hero-tile__graphic {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.hero-tile__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.hero-tile__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: auto;
}

.hero-tile h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  transition: color 0.28s ease;
  align-self: flex-start;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.98);
}

.hero-tile p,
.hero-tile__meta {
  margin: 12px 0 16px;
  max-width: 24ch;
  font-size: 13px;
  line-height: 1.46;
  color: rgba(255, 255, 255, 0.65);
}

.hero-tile__anchor {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-tile__anchor strong {
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.hero-tile__anchor span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.hero-tile p strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.hero-tile:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 54px rgba(31, 43, 94, 0.16),
    0 12px 28px rgba(31, 43, 94, 0.1);
}

.hero-tile:hover h2 {
  color: #8df3c5;
}

.hero-tile--premium:hover h2 {
  color: inherit;
}

.hero-tile__badge,
.summary-tile span,
.mini-panel span,
.service-card__tag {
  display: block;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.hero-tile__badge {
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 560;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: lowercase;
}

.hero-tile__badge--success {
  background: rgba(61, 228, 140, 0.12);
  border: 1px solid rgba(61, 228, 140, 0.18);
  color: #45E59A;
}

.hero-tile__badge--muted {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  border: 0;
}

.hero-tile__badge--beta {
  background: rgba(120, 120, 255, 0.12);
  color: rgba(195, 205, 255, 0.9);
  border: 0;
}

.hero-tile__content .btn {
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
}

.hero-tile__pill {
  position: absolute;
  bottom: 30px;
  width: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(55, 234, 151, 0.98), rgba(55, 234, 151, 0.3));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 36px rgba(55, 234, 151, 0.18);
}

.hero-tile__pill--left {
  right: 72px;
  height: 122px;
}

.hero-tile__pill--right {
  right: 30px;
  height: 84px;
}

.hero-tile__ring {
  position: absolute;
  right: 24px;
  bottom: 28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 18px solid rgba(55, 234, 151, 0.92);
  box-shadow:
    0 0 0 16px rgba(55, 234, 151, 0.12),
    0 0 32px rgba(55, 234, 151, 0.16);
}

.hero-tile__ring-core {
  position: absolute;
  right: 57px;
  bottom: 61px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
}

.hero-tile__line {
  position: absolute;
  right: 28px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(55, 234, 151, 0), rgba(55, 234, 151, 0.96));
  box-shadow: 0 0 20px rgba(55, 234, 151, 0.08);
}

.hero-tile__line--top {
  bottom: 114px;
  width: 104px;
}

.hero-tile__line--middle {
  bottom: 80px;
  width: 132px;
}

.hero-tile__line--bottom {
  bottom: 46px;
  width: 88px;
}

.hero-tile__node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 8px rgba(55, 234, 151, 0.08);
}

.hero-tile__node--top {
  right: 120px;
  bottom: 111px;
}

.hero-tile__node--middle {
  right: 148px;
  bottom: 77px;
}

.hero-tile__node--bottom {
  right: 104px;
  bottom: 43px;
}

.hero-tile__premium-glow {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 234, 151, 0.24) 0%, rgba(55, 234, 151, 0.08) 40%, transparent 72%);
  filter: blur(10px);
  z-index: -1;
}

.hero-tile__premium-orbit {
  position: absolute;
  right: 38px;
  bottom: 42px;
  width: 116px;
  height: 68px;
  border-radius: 999px;
  border: 1px solid rgba(55, 234, 151, 0.4);
  transform: rotate(-18deg);
}

.hero-tile__premium-dot {
  position: absolute;
  right: 78px;
  bottom: 88px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(55, 234, 151, 1), rgba(121, 255, 201, 0.7));
  box-shadow:
    0 0 24px rgba(55, 234, 151, 0.3),
    0 0 0 10px rgba(55, 234, 151, 0.08);
}

.hero-tile__premium-line {
  position: absolute;
  right: 32px;
  bottom: 40px;
  width: 112px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(180, 148, 255, 0.42), rgba(55, 234, 151, 0.56));
  opacity: 0.94;
}

.hero-tile--premium h2 {
  background: linear-gradient(90deg, #fff 4%, #ceb6ff 28%, #ffb590 62%, #fff0d8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tile--people .hero-tile__meta,
.hero-tile--profitability .hero-tile__meta,
.hero-tile--premium .hero-tile__meta,
.hero-tile--base .hero-tile__meta {
  margin-top: -2px;
}

@keyframes pulseDot {
  0%, 100% {
    transform: translateY(2px) scale(1);
    box-shadow:
      0 0 0 8px rgba(55,234,151,0.12),
      0 0 34px rgba(55,234,151,0.34);
  }
  50% {
    transform: translateY(2px) scale(1.08);
    box-shadow:
      0 0 0 14px rgba(55,234,151,0.08),
      0 0 54px rgba(55,234,151,0.46);
  }
}

@keyframes pulseHalo {
  0%, 100% {
    transform: scale(1);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.92;
  }
}

.summary-tile span,
.mini-panel span,
.service-card__tag {
  color: var(--gray);
}

.metric-tile strong,
.summary-tile strong,
.mini-panel strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.08;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.summary-tile strong[data-tone="good"] {
  color: #1c8b57;
}

.summary-tile strong[data-tone="danger"] {
  color: var(--orange);
}

.section-block__head,
.panel-card__head,
.table-card__head,
.bonus-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-card__head {
  flex-wrap: wrap;
}

.panel-card__head .button {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
  flex: 0 1 auto;
}

.object-sidebar .panel-card__head {
  align-items: flex-start;
}

.object-sidebar #newProjectButton,
.object-sidebar #deleteProjectButton {
  width: 100%;
  justify-content: center;
}

.object-sidebar #deleteProjectButton {
  margin-top: 4px;
}

.panel-card__head--compact {
  margin-bottom: 14px;
}

.section-block h2,
.panel-card h3,
.section-block h3,
.bonus-card h4 {
  margin: 10px 0 0;
  font-weight: 500;
}

.service-grid,
.section-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  margin-top: 24px;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

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

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 28px;
  border-radius: var(--radius-panel);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(244, 247, 252, 0.88) 46%,
      rgba(232, 240, 248, 0.72) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 42px rgba(31, 43, 94, 0.08),
    0 6px 18px rgba(31, 43, 94, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(55, 234, 151, 0.28);
  box-shadow:
    0 24px 56px rgba(31, 43, 94, 0.12),
    0 10px 24px rgba(31, 43, 94, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.service-card__body {
  flex: 1;
}

.service-card__icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 43, 94, 0.96), rgba(78, 93, 156, 0.86));
  box-shadow:
    0 16px 26px rgba(31, 43, 94, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
}

.service-card__head-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.service-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.service-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

.tree-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--dark);
  font-size: 14px;
}

.tree-list li {
  position: relative;
  padding-left: 18px;
}

.tree-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(55, 234, 151, 0.9);
}

.tree-list--light,
.tree-list--light li {
  color: rgba(255, 255, 255, 0.84);
}

.tree-list--light li::before {
  background: rgba(255, 255, 255, 0.86);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag-cloud .chip {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
}

.card-link {
  margin-top: 14px;
  padding: 0;
  color: var(--blue-soft);
  font-size: 14px;
  font-weight: 600;
}

.stack-list,
.project-list,
.people-list,
.people-cards,
.club-grid,
.scale-list,
.subtable-list {
  display: grid;
  gap: 12px;
}

.snapshot-card,
.event-card,
.department-card,
.employee-card,
.club-card,
.vote-card,
.project-card,
.scale-row,
.person-chip,
.profitability-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(244, 247, 252, 0.86) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 42px rgba(31, 43, 94, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

.project-card {
  width: 100%;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  box-shadow: none;
}

.project-card:hover {
  transform: none;
}

.project-card.is-active {
  border-color: rgba(55, 234, 151, 0.24);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(243, 249, 246, 0.95) 100%
    );
}

.card-copy {
  display: grid;
  gap: 8px;
}

.snapshot-card strong,
.employee-card strong,
.club-card strong,
.project-card strong,
.department-card strong,
.event-card strong,
.vote-card strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.snapshot-card p,
.event-card p,
.employee-card p,
.club-card p,
.project-card p,
.department-card p,
.vote-card p {
  margin: 8px 0 0;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.people-list,
.club-grid {
  grid-template-columns: 1fr;
}

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

.club-card__meta,
.employee-card__meta,
.project-card__meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card__head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.project-card__head > :first-child {
  min-width: 0;
}

.object-card,
.object-card * {
  min-width: 0;
}

.object-title,
.object-meta,
.object-company {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object-title {
  font-size: 15px;
}

.object-meta,
.object-company {
  font-size: 12px;
}

.vote-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-card__company {
  margin: 14px 0 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.employee-card__contacts {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--gray);
  font-size: 13px;
}

.employee-card__contact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.employee-card__icon {
  width: 18px;
  color: var(--blue-soft);
  text-align: center;
}

.department-card__meta {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.department-card__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(78, 93, 156, 0.08);
}

.department-card__line span {
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
}

.department-card__line strong {
  font-size: 14px;
  text-align: right;
}

.event-card,
.club-card,
.snapshot-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.event-card:hover,
.club-card:hover,
.snapshot-card:hover,
.vote-card:hover,
.employee-card:hover,
.department-card:hover {
  transform: translateY(-3px);
  border-color: rgba(55, 234, 151, 0.22);
  box-shadow:
    0 24px 56px rgba(31, 43, 94, 0.1),
    0 10px 24px rgba(31, 43, 94, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.card-actions .btn {
  min-height: 40px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(244, 247, 252, 0.92);
  border: 1px solid rgba(31, 43, 94, 0.08);
  color: #1f2b5e;
  font-size: 10px;
  font-weight: 700;
  box-shadow: none;
}

.chip--green {
  background: rgba(55, 234, 151, 0.14);
  border-color: rgba(55, 234, 151, 0.2);
  color: #177354;
}

.chip--orange {
  background: rgba(254, 110, 70, 0.14);
  border-color: rgba(254, 110, 70, 0.2);
  color: #b34d2b;
}

.chip--purple {
  background: rgba(31, 43, 94, 0.08);
  border-color: rgba(31, 43, 94, 0.08);
  color: #53639b;
}

.chip--status {
  min-height: 24px;
  padding: 0 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profit-layout {
  display: grid;
  grid-template-columns: minmax(220px, 252px) minmax(0, 1fr) minmax(260px, 280px);
  gap: 24px;
  align-items: start;
}

.service-layout > * {
  min-width: 0;
}

.panel-card--sticky {
  position: sticky;
  top: 88px;
  height: fit-content;
}

.profit-main,
.profit-summary {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.mini-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-tile,
.mini-panel {
  min-width: 0;
}

.kpi-panel {
  gap: 20px;
}

.kpi-group {
  display: grid;
  gap: 12px;
}

.kpi-group__head {
  color: rgba(36, 38, 45, 0.58);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.summary-tile {
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-top: 1px solid rgba(31, 43, 94, 0.08);
}

.summary-grid .summary-tile:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 0;
}

.summary-tile--result {
  padding: 0 0 14px;
  border-top: 0;
  border-bottom: 1px solid rgba(31, 43, 94, 0.08);
}

.summary-tile span {
  display: block;
  margin-bottom: 6px;
  color: rgba(36, 38, 45, 0.58);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.summary-tile strong {
  color: var(--dark);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.summary-grid .summary-tile strong {
  font-size: 17px;
}

.summary-tile--result strong {
  font-size: 26px;
  color: #1f9e6d;
}

.summary-grid--secondary {
  margin-top: 0;
}

.table-card {
  margin-top: 18px;
}

.table-card__head h4 {
  margin: 0;
  font-weight: 500;
}

.subtable {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(110px, 0.6fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr) 42px;
  gap: 10px;
  align-items: center;
}

.subtable--head {
  margin-bottom: 10px;
  padding: 0 6px;
}

.subtable--head span {
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
}

.subtable-list .subtable {
  padding: 10px;
  border-radius: var(--radius-ui);
  background: var(--panel);
}

.subtable input[data-field="amount"] {
  text-align: right;
}

.row-remove {
  font-size: 18px;
  line-height: 1;
}

.gate-note {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-ui);
  background: rgba(78, 93, 156, 0.07);
}

.gate-note.is-open {
  background: rgba(55, 234, 151, 0.14);
  color: var(--dark);
}

.bonus-card {
  margin-top: 0;
  padding: 18px 0 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid rgba(31, 43, 94, 0.08);
}

.bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(31, 43, 94, 0.08);
  color: rgba(36, 38, 45, 0.58);
}

.bonus-row strong {
  color: var(--dark);
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -0.02em;
  text-align: right;
  font-weight: 600;
}

.bonus-row--total strong {
  font-size: 17px;
}

.bonus-row:first-of-type {
  border-top: 0;
}

.bonus-card__head {
  margin-bottom: 12px;
}

.bonus-card__head h4 {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
}

.bonus-rate-box {
  display: grid;
  gap: 2px;
  text-align: right;
}

.bonus-rate-box span {
  color: rgba(36, 38, 45, 0.58);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.bonus-rate-box strong {
  color: var(--dark);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.scale-track {
  position: relative;
  margin-top: 0;
}

.scale-track__bar {
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(85, 70, 254, 0.2) 0%, rgba(85, 70, 254, 0.28) 20%, rgba(55, 234, 151, 0.52) 56%, rgba(55, 234, 151, 0.9) 100%);
}

.scale-track__pointer {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--dark);
  box-shadow: var(--shadow-soft);
  transform: translate(-50%, -50%);
}

.scale-track__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: rgba(36, 38, 45, 0.58);
  font-size: 12px;
}

.scale-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(31, 43, 94, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scale-row strong {
  white-space: nowrap;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
}

.scale-row.is-active {
  color: #1f9e6d;
  border-top-color: rgba(55, 234, 151, 0.28);
}

.scale-row.is-active strong {
  color: #1f9e6d;
}

.insights-card {
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 43, 94, 0.08);
}

.insights-list {
  display: grid;
  gap: 10px;
}

.insight-item {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(78, 93, 156, 0.05);
}

.insight-item strong {
  display: block;
  margin-bottom: 6px;
}

.insight-item p {
  margin: 0;
  color: var(--gray);
  line-height: 1.5;
}

.insight-item--good {
  border-color: rgba(55, 234, 151, 0.28);
  background: rgba(55, 234, 151, 0.1);
}

.insight-item--warning {
  border-color: rgba(254, 110, 70, 0.2);
  background: rgba(254, 110, 70, 0.08);
}

.insight-item--danger {
  border-color: rgba(254, 110, 70, 0.28);
  background: rgba(254, 110, 70, 0.12);
}

.filters-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.people-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap-md);
}

.employee-card__head,
.project-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.employee-card__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.employee-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(221, 224, 238, 0.86), rgba(232, 240, 248, 0.92));
  box-shadow: 0 8px 20px rgba(31, 43, 94, 0.08);
  flex-shrink: 0;
}

.messages-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: var(--grid-gap-md);
  min-height: 620px;
}

.messages-sidebar,
.messages-thread {
  min-width: 0;
}

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

.message-preview {
  width: 100%;
  padding: 18px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(244, 247, 252, 0.88) 46%,
      rgba(232, 240, 248, 0.72) 100%
    );
  box-shadow:
    0 18px 42px rgba(31, 43, 94, 0.08),
    0 6px 18px rgba(31, 43, 94, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.message-preview:hover,
.message-preview.is-active {
  transform: translateY(-2px);
  border-color: rgba(55, 234, 151, 0.28);
  box-shadow:
    0 24px 56px rgba(31, 43, 94, 0.1),
    0 10px 24px rgba(31, 43, 94, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.message-preview__head,
.messages-thread__head,
.messages-thread__actions,
.message-preview__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-preview__user,
.messages-thread__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.message-preview__user strong,
.messages-thread__identity strong {
  display: block;
  font-size: 16px;
}

.message-preview__user p,
.messages-thread__identity p {
  margin: 4px 0 0;
  color: var(--gray);
  font-size: 13px;
}

.message-preview__badge {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #37ea97;
  color: #103f33;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.message-preview__meta {
  margin-top: 14px;
  align-items: flex-start;
  color: var(--gray);
  font-size: 12px;
}

.message-preview__text {
  margin: 12px 0 0;
  color: var(--dark);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.messages-thread {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  gap: 16px;
}

.messages-thread__head,
.messages-thread__body,
.messages-thread__composer {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.messages-thread__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}

.messages-thread__composer {
  display: grid;
  gap: 14px;
}

.messages-thread__actions {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(74%, 560px);
  padding: 14px 16px;
  border-radius: 18px 18px 18px 6px;
  background: rgba(78, 93, 156, 0.08);
  border: 1px solid rgba(78, 93, 156, 0.1);
}

.message-bubble--own {
  margin-left: auto;
  border-radius: 18px 18px 6px 18px;
  background: rgba(55, 234, 151, 0.16);
  border-color: rgba(55, 234, 151, 0.24);
}

.message-bubble__author {
  margin-bottom: 6px;
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.message-bubble p {
  margin: 0;
  color: var(--dark);
  line-height: 1.5;
}

.message-bubble__time {
  display: block;
  margin-top: 10px;
  color: var(--gray);
  font-size: 12px;
}

.person-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.panel-card--wide-placeholder {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1320px) {
  .profit-layout {
    grid-template-columns: 1fr;
  }

  .panel-card--sticky {
    position: static;
  }

  .section-grid,
  .service-grid,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    min-height: auto;
  }

}

@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-left {
    max-width: none;
  }
}

@media (max-width: 1023px) {
  .topbar__nav {
    min-height: 86px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header-brand {
    position: static;
    transform: none;
    order: -1;
    width: auto;
    margin-right: auto;
    pointer-events: auto;
    padding-left: 0;
  }

  .header-brand:active {
    transform: scale(0.985);
  }

  .topbar__nav {
    flex-wrap: wrap;
  }

  .topbar__left,
  .topbar__right {
    width: 100%;
    justify-content: space-between;
  }

  .platform-tabs {
    flex: 1;
    overflow-x: auto;
  }

  .form-grid,
  .mini-grid,
  .summary-grid,
  .filters-row,
  .people-cards,
  .club-grid,
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .subtable,
  .subtable-list .subtable {
    grid-template-columns: 1fr;
  }

  .subtable--head {
    display: none;
  }

  .btn {
    min-height: 44px;
    padding: 0 24px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding-top: 10px;
  }

  .topbar__nav,
  .platform-shell {
    width: calc(100vw - 20px);
  }

  .auth-card,
  .hero-panel,
  .panel-card,
  .section-block {
    padding: 18px;
  }

  .auth-inline,
  .section-block__head,
  .panel-card__head,
  .table-card__head,
  .bonus-card__head {
    flex-direction: column;
  }

  .auth-brand {
    text-align: center;
    align-items: center;
    justify-self: center;
  }

  .auth-brand::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-panel h1,
  .hero-title {
    font-size: clamp(48px, 14vw, 64px);
  }

  .hero-panel__lead {
    max-width: none;
    font-size: clamp(24px, 7vw, 32px);
  }

  .hero-panel__actions {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .hero-panel__actions .btn,
  .hero-tile__content .btn {
    width: 100%;
    justify-content: center;
  }

  .topbar__left {
    gap: 10px;
  }

  .btn-tab {
    padding: 0 14px;
  }

  .profile-menu {
    right: 0;
    left: 0;
    min-width: 0;
  }

  .nav-drawer {
    width: calc(100vw - 20px);
    margin: 10px;
    min-height: calc(100dvh - 20px);
  }

  .hero-workspace__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-workspace__grid {
    grid-template-columns: 1fr;
  }

  .hero-tile {
    min-height: 220px;
  }

  .hero-tile h2 {
    font-size: 22px;
  }

  .messages-thread__actions,
  .message-preview__head,
  .message-preview__meta,
  .messages-thread__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .message-bubble {
    max-width: 100%;
  }
}

/* NEW STYLES */

.badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(254, 110, 70, 0.1);
  color: var(--orange);
  border: 1px solid rgba(254, 110, 70, 0.15);
}

.btn--sm {
  min-height: 46px;
  padding: 0 24px;
  font-size: 14px;
  border-radius: 14px;
}

.section-block__desc {
  margin: 12px 0 0;
  font-size: 16px;
  max-width: 600px;
}

/* Responsive Breakpoints & Adaptive Refinements */

@media (max-width: 1720px) {
  .hero-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-left,
  .hero-panel__lead,
  .hero-panel__description {
    max-width: none;
  }

  .hero-workspace {
    width: 100%;
  }

  .hero-workspace__grid,
  .module-grid,
  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px;
  }

  .hero-tile {
    aspect-ratio: auto;
    min-height: 240px;
  }

  .hero-tile h2 {
    font-size: 18px;
  }

  .hero-tile p,
  .hero-tile__meta {
    max-width: 22ch;
    font-size: 12px;
  }

  .nav-drawer {
    width: min(300px, 76vw);
    padding: 16px 14px;
    top: 10px;
    bottom: 10px;
    max-height: calc(100dvh - 20px);
  }

  .nav-drawer__brand {
    margin-bottom: 16px;
  }

  .nav-drawer__tagline,
  .nav-drawer__hero-subtitle {
    margin-bottom: 4px;
  }

  .nav-drawer__menu {
    gap: 10px;
  }

  .nav-drawer__section {
    padding-top: 12px;
  }

  .nav-drawer__label {
    margin-bottom: 8px;
  }

  .nav-drawer__item {
    padding: 7px 10px;
    font-size: 13px;
  }

  .nav-drawer__footer {
    padding-top: 16px;
  }

  .signature-label,
  .signature-user {
    font-size: 10px;
  }
}

@media (min-width: 2200px) {
  .app-shell {
    max-width: 1680px;
  }
}

@media (max-width: 1512px) {
  :root {
    --ui-scale: 0.92;
    --app-max-width: 1240px;
  }

  .hero-title {
    font-size: clamp(42px, 4vw, 58px);
  }

  .hero-lead {
    font-size: clamp(30px, 3vw, 44px);
  }

  .hero-tile {
    padding: 20px;
  }

  .hero-workspace__grid,
  .module-grid,
  .modules-grid {
    gap: 14px;
  }

  .hero-tile {
    aspect-ratio: auto;
    min-height: 228px;
  }
}

@media (max-width: 1440px) {
  .hero-panel {
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 0.92fr);
    gap: 28px;
  }

  .service-layout {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  }

  .kpi-panel {
    grid-column: 1 / -1;
  }

  .hero-title,
  .hero-panel h1 {
    font-size: clamp(36px, 4vw, 52px);
  }

  .hero-panel__lead {
    font-size: clamp(28px, 2.8vw, 40px);
  }

  .hero-panel__description {
    font-size: 16px;
  }

  .hero-actions .btn,
  .hero-panel__actions .btn {
    min-height: 50px;
    padding-inline: 22px;
  }
}

@media (max-width: 1200px) {
  .hero-panel {
    grid-template-columns: 1fr;
    padding: 32px;
  }

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

  .hero-title-row {
    margin-bottom: 16px;
  }

  .hero-panel__actions {
    flex-wrap: wrap;
  }

  .service-layout,
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .object-sidebar {
    position: static;
    width: 100%;
  }

  .nav-drawer {
    width: min(320px, 82vw);
  }
}

@media (max-width: 820px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }

  .auth-brand {
    text-align: center;
    align-items: center;
  }

  .auth-card {
    justify-self: center;
  }
}

/* Responsive system layer */
@media (max-width: 1360px) {
  .topbar__user-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-panel,
  .hero-content {
    gap: clamp(24px, 3vw, 40px);
  }

  .profit-layout {
    grid-template-columns: minmax(220px, 248px) minmax(0, 1fr);
  }

  .profit-summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .topbar__nav {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand right"
      "left left";
    align-items: start;
    row-gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header-brand {
    grid-area: brand;
    justify-self: start;
    min-width: 0;
    padding-inline: 0;
  }

  .topbar__left {
    grid-area: left;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .topbar__right {
    grid-area: right;
    justify-self: end;
    min-width: 0;
  }

  .platform-tabs {
    width: 100%;
  }

  .hero-panel,
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-left,
  .hero-panel__lead,
  .hero-panel__description {
    max-width: none;
  }

  .hero-workspace__grid,
  .module-grid,
  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

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

  .filters-row,
  .people-cards,
  .messages-layout,
  .section-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 920px) {
  .auth-screen {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .auth-brand,
  .auth-card {
    justify-self: stretch;
    max-width: none;
  }

  .auth-brand {
    text-align: center;
    align-items: center;
  }

  .auth-brand::before {
    left: 50%;
    top: -80px;
    width: min(92vw, 560px);
    height: min(92vw, 560px);
    transform: translateX(-50%);
  }

  .auth-brand::after {
    right: 50%;
    bottom: -20px;
    width: min(72vw, 320px);
    height: min(72vw, 320px);
    transform: translateX(50%);
  }

  .auth-card {
    padding: clamp(22px, 5vw, 36px);
    border-radius: 28px;
  }

  .topbar__nav {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "right"
      "left";
  }

  .topbar__right {
    width: 100%;
    justify-content: space-between;
    justify-self: stretch;
  }

  .topbar__user-block {
    align-items: flex-start;
    text-align: left;
    padding-inline: 0;
    min-width: 0;
    flex: 1 1 auto;
  }

  .topbar__user-name {
    max-width: 100%;
  }

  .hero-left::before {
    width: min(70vw, 320px);
    height: min(70vw, 320px);
    left: -40px;
    top: -40px;
  }

  .hero-panel__actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    flex: 1 1 calc(50% - 12px);
    min-width: min(100%, 220px);
  }

  .hero-workspace__grid,
  .module-grid,
  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .service-grid,
  .club-grid,
  .mini-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .profit-layout {
    grid-template-columns: 1fr;
  }

  .object-sidebar,
  .profit-summary,
  .profit-main {
    grid-column: auto;
  }

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

  .subtable > * {
    min-width: 0;
  }

  .message-bubble {
    max-width: 100%;
  }

  .nav-drawer {
    width: min(320px, calc(100vw - 24px));
    padding: 14px 12px;
    top: 12px;
    bottom: 12px;
    left: 0;
    max-height: calc(100dvh - 24px);
  }

  .nav-drawer__menu {
    gap: 8px;
  }

  .nav-drawer__section {
    padding-top: 10px;
  }

  .nav-drawer__item {
    padding: 7px 10px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .app-shell,
  .platform-shell {
    max-width: 100%;
    padding-inline: 16px;
  }

  .app-shell {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .nav-drawer {
    top: 12px;
    bottom: 12px;
    left: 0;
    max-height: calc(100dvh - 24px);
  }

  .topbar {
    padding-top: 16px;
  }

  .topbar__nav {
    min-height: auto;
    padding: 18px 20px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand right"
      "left left";
    row-gap: 14px;
    align-items: start;
  }

  .header-brand {
    grid-area: brand;
    justify-self: start;
    align-items: flex-start;
    min-width: 0;
    padding: 0;
  }

  .brand-logo {
    height: 22px;
  }

  .brand-title {
    width: auto;
    font-size: 13px;
  }

  .topbar__left {
    grid-area: left;
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .topbar__menu-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 999px;
  }

  .topbar__menu-button svg {
    width: 20px;
    height: 12px;
  }

  .topbar__right {
    grid-area: right;
    display: grid;
    grid-template-columns: minmax(0, auto) auto auto;
    grid-template-areas:
      "user msg logout";
    gap: 10px;
    align-items: start;
    justify-self: end;
  }

  .topbar__user-block {
    grid-area: user;
    align-items: flex-end;
    text-align: right;
    min-height: 0;
    padding: 0;
  }

  .topbar__user-name {
    font-size: 14px;
    line-height: 1.15;
  }

  .topbar__user-phone {
    display: none;
  }

  .topbar__messages-button {
    grid-area: msg;
  }

  .topbar__icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  #logoutButton {
    grid-area: logout;
  }

  .platform-tabs {
    width: 100%;
  }

  .platform-tabs.tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    width: 100%;
  }

  .platform-tabs .btn-tab {
    min-height: 48px;
    padding: 0 10px;
    font-size: 15px;
    line-height: 1;
  }

  .hero-panel,
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 28px 24px;
    gap: 24px;
  }

  .hero-title-row {
    gap: 16px;
    margin-bottom: 18px;
  }

  .hero-pulse-dot {
    width: 22px;
    height: 22px;
    box-shadow:
      0 0 0 7px rgba(55, 234, 151, 0.11),
      0 0 24px rgba(55, 234, 151, 0.2);
  }

  .hero-pulse-dot::before {
    inset: -18px;
    filter: blur(6px);
  }

  .hero-title,
  .hero-panel h1 {
    font-size: clamp(42px, 12vw, 56px);
    line-height: 0.96;
  }

  .hero-panel__lead {
    margin-bottom: 18px;
    font-size: clamp(32px, 9vw, 38px);
    line-height: 1.15;
  }

  .hero-panel__description {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-panel__actions {
    gap: 14px;
  }

  .hero-actions .btn,
  .hero-panel__actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    height: 56px;
    padding-inline: 20px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
  }

  .hero-workspace__grid,
  .module-grid,
  .modules-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .hero-tile {
    min-height: 210px;
    aspect-ratio: auto;
    padding: 18px;
  }

  .hero-tile__top {
    gap: 8px;
  }

  .hero-tile h2 {
    font-size: 18px;
  }

  .hero-tile p,
  .hero-tile__meta {
    max-width: none;
    font-size: 14px;
    line-height: 1.42;
  }

  .hero-tile__badge {
    height: 20px;
    padding: 0 9px;
    font-size: 10px;
  }

  .hero-tile__content .btn {
    width: 100%;
    min-height: 44px;
    padding: 0 20px;
    justify-content: center;
  }

  .hero-tile__pill--left {
    right: 68px;
    height: 108px;
  }

  .hero-tile__pill--right {
    right: 24px;
    height: 74px;
  }

  .hero-tile__ring {
    right: 18px;
    bottom: 22px;
    width: 96px;
    height: 96px;
    border-width: 16px;
  }

  .hero-tile__ring-core {
    right: 46px;
    bottom: 50px;
  }

  .hero-tile__line--top {
    width: 92px;
  }

  .hero-tile__line--middle {
    width: 116px;
  }

  .hero-tile__line--bottom {
    width: 78px;
  }

  .hero-tile__premium-glow {
    width: 128px;
    height: 128px;
  }

  .hero-tile__premium-orbit {
    right: 28px;
    bottom: 36px;
    width: 104px;
    height: 60px;
  }

  .hero-tile__premium-line {
    right: 26px;
    bottom: 34px;
    width: 96px;
  }
}

@media (max-width: 640px) {
  :root {
    --container-padding: 12px;
  }

  body {
    font-size: 14px;
  }

  .auth-screen {
    padding-inline: 12px;
  }

  .auth-brand__logo {
    width: min(68vw, 260px);
  }

  .auth-brand__subtitle {
    margin-top: 18px;
    font-size: clamp(42px, 14vw, 58px);
  }

  .auth-brand__headline {
    font-size: clamp(24px, 7vw, 30px);
  }

  .auth-brand__text {
    font-size: 15px;
  }

  .auth-inline,
  .section-block__head,
  .panel-card__head,
  .table-card__head,
  .bonus-card__head,
  .project-card__head,
  .employee-card__head,
  .message-preview__head,
  .message-preview__meta,
  .messages-thread__head,
  .messages-thread__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__left,
  .topbar__right {
    gap: 10px;
  }

  .platform-tabs,
  .tabs {
    width: 100%;
    max-width: 100%;
  }

  .platform-tabs .btn-tab,
  .service-switcher .btn-tab,
  .people-switcher .btn-tab {
    flex: 0 0 auto;
  }

  .auth-card,
  .hero-panel,
  .panel-card,
  .section-block,
  .service-card,
  .message-preview,
  .messages-thread__head,
  .messages-thread__body,
  .messages-thread__composer {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-title,
  .hero-panel h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .hero-panel__lead {
    font-size: clamp(22px, 7.5vw, 30px);
  }

  .hero-panel__description,
  .section-block__desc {
    font-size: 14px;
  }

  .auth-card .btn-primary,
  .auth-card .btn-secondary,
  .object-sidebar #newProjectButton,
  .object-sidebar #deleteProjectButton {
    width: 100%;
    min-width: 0;
  }

  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .service-grid,
  .section-grid,
  .filters-row,
  .form-grid,
  .people-cards,
  .club-grid,
  .mini-grid,
  .summary-grid,
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .hero-tile {
    min-height: 220px;
    padding: 16px;
  }

  .hero-tile h2 {
    font-size: 20px;
  }

  .hero-tile__content .btn {
    width: 100%;
    justify-content: center;
  }

  .employee-avatar {
    width: 56px;
    height: 56px;
  }

  .message-preview__user,
  .messages-thread__identity,
  .person-chip,
  .card-actions {
    width: 100%;
    min-width: 0;
  }

  .nav-drawer {
    width: calc(100vw - 24px);
    margin: 12px;
    min-height: calc(100dvh - 24px);
  }
}
