@scope (#panel-generate) {
.layout {
 max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 56px;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.content {
  padding: 36px 36px 34px;
  max-width: 100%;
  background: linear-gradient(165deg, #ffffff 0%, #fbfcff 55%, #f8faff 100%);
  border: 1px solid rgba(47, 109, 246, 0.1);
  border-radius: 20px;
  box-shadow:
    0 8px 40px rgba(47, 109, 246, 0.07),
    0 2px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

/* PRO / разблокированный редактор: как карточки на «Моё резюме» и «Сравнить» — рамка var(--border), без тени */
.content[data-view="app"] {
  padding: clamp(1.1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.15rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: none;
  overflow: visible;
}

.content[data-view="gate"] {
  background: linear-gradient(155deg, #ffffff 0%, #f4f7ff 40%, #eef3ff 78%, #fafcff 100%);
  border-color: rgba(47, 109, 246, 0.16);
  box-shadow:
    0 18px 60px rgba(47, 109, 246, 0.12),
    0 2px 14px rgba(0, 0, 0, 0.04);
}

.content[data-view="gate"]::after {
  content: "";
  position: absolute;
  inset: -50% -20% auto auto;
  width: 70%;
  height: 130%;
  background: radial-gradient(
    ellipse 80% 70% at 70% 35%,
    rgba(99, 140, 255, 0.22) 0%,
    rgba(99, 140, 255, 0.10) 36%,
    transparent 70%
  );
  pointer-events: none;
  animation: gateGlow 7.5s ease-in-out infinite;
}

.content h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
}

.lead {
  margin: 0 0 1.25rem;
  max-width: 44rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
}

.tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(47, 109, 246, 0.14);
  background: rgba(47, 109, 246, 0.06);
  margin: 10px 0 18px;
}

.tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 18px;
  max-width: 46rem;
}

.clear-all-mobile {
  display: none;
}

@media (max-width: 640px) {
  .clear-all-btn--desktop {
    display: none;
  }

  .clear-all-mobile {
    display: block;
    margin: 0 0 16px;
    max-width: 46rem;
  }

  .clear-all-mobile .btn {
    width: 100%;
    justify-content: center;
  }
}

.tab {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: 0.15s ease;
}

.tab[aria-selected="true"] {
  color: var(--text);
  background: #fff;
  border-color: rgba(47, 109, 246, 0.18);
  box-shadow: 0 6px 18px rgba(47, 109, 246, 0.10);
}

.panel {
  display: none;
}
.panel[data-active="true"] {
  display: block;
}

.field {
  margin: 0 0 14px;
  max-width: 46rem;
}

.field-msg {
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 6px 0 0;
  min-height: 0;
}

.field-msg--error {
  color: #b91c1c;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  outline: none;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

textarea:focus {
  border-color: rgba(47, 109, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

.file-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  max-width: 46rem;
}

/* Кастомный вид: кнопка выбора и подпись файла (не нативный серый UI) */
.file-row input[type="file"],
.avatar-controls input[type="file"] {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(47, 109, 246, 0.16);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.file-row input[type="file"]::file-selector-button,
.avatar-controls input[type="file"]::file-selector-button,
.file-row input[type="file"]::-webkit-file-upload-button,
.avatar-controls input[type="file"]::-webkit-file-upload-button {
  margin-right: 14px;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: rgba(47, 109, 246, 0.08);
  color: var(--primary);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.file-row input[type="file"]:hover::file-selector-button,
.avatar-controls input[type="file"]:hover::file-selector-button,
.file-row input[type="file"]:hover::-webkit-file-upload-button,
.avatar-controls input[type="file"]:hover::-webkit-file-upload-button {
  background: rgba(47, 109, 246, 0.14);
}

.file-row input[type="file"]:focus,
.avatar-controls input[type="file"]:focus {
  outline: none;
  border-color: rgba(47, 109, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.box {
  margin: 16px 0 18px;
  padding: 15px 16px 15px 18px;
  max-width: 46rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  background: linear-gradient(90deg, #f0f4ff 0%, #f8faff 100%);
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
}

.pro-area {
  position: relative;
  max-width: 46rem;
}

.pro-area[data-locked="true"] {
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

.gate {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 18px;
}

.gate-card {
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  animation: gateIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gateIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gate-card__glow { display: none; }

@keyframes gateGlow {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.72; transform: translateY(10px); }
}

.gate-card__head {
  position: relative;
  margin: 0 0 14px;
}

.gate-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(47, 109, 246, 0.92);
  font-weight: 900;
}

.gate-title {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: rgba(15, 23, 42, 0.96);
}

.gate-sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 42rem;
}

.gate-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}

.gate-right-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
}

.gate-body.gate-body--plans .gate-right-col {
  align-items: stretch;
}

/* Две карточки тарифов шире, чем колонка 320px — даём правой колонке место */
.gate-body.gate-body--plans {
  grid-template-columns: minmax(0, 1fr) minmax(280px, min(100%, 540px));
}

.gate-left {
  min-width: 0;
  max-width: 42rem;
}

.gate-features li {
  margin: 0.45rem 0;
}

.gate-right {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(47, 109, 246, 0.12);
  background: rgba(255,255,255,0.66);
  padding: 14px;
  box-shadow: 0 14px 38px rgba(47, 109, 246, 0.06);
}

.feature-list {
  margin: 0;
  padding: 0 0 0 18px;
  color: rgba(17,24,39,0.86);
  line-height: 1.6;
}

.gate-showcase {
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
  position: relative;
  width: 100%;
  max-width: min(100%, 320px);
  border-radius: 18px;
  border: 1px solid rgba(47, 109, 246, 0.12);
  background: rgba(255, 255, 255, 0.66);
  padding: 16px 14px 26px;
  box-shadow: 0 14px 38px rgba(47, 109, 246, 0.06);
}

.gate-showcase__stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 6px 2px 10px;
}

.gate-showcase__orb {
  position: absolute;
  width: min(120%, 340px);
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(47, 109, 246, 0.22) 0%, transparent 68%);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
  animation: gateShowcaseOrb 10s ease-in-out infinite;
}

@keyframes gateShowcaseOrb {
  0%, 100% { opacity: 0.75; transform: scale(1) translate(0, 6px); }
  50% { opacity: 1; transform: scale(1.06) translate(0, -4px); }
}

.gate-showcase__sheet--far {
  position: absolute;
  width: 82%;
  max-width: 252px;
  aspect-ratio: 1 / 1.25;
  border-radius: 12px;
  background: linear-gradient(160deg, #dbe4ff 0%, #cfd9ff 100%);
  border: 1px solid rgba(47, 109, 246, 0.12);
  box-shadow: 0 10px 28px rgba(47, 109, 246, 0.1);
  transform: rotate(-11deg) translate(-14px, 18px);
  z-index: 0;
  opacity: 0.72;
  animation: gateShowcaseFar 9s ease-in-out infinite;
}

@keyframes gateShowcaseFar {
  0%, 100% { transform: rotate(-11deg) translate(-14px, 18px); }
  50% { transform: rotate(-9deg) translate(-10px, 14px); }
}

.gate-showcase__sheet--back {
  position: absolute;
  width: 86%;
  max-width: 268px;
  aspect-ratio: 1 / 1.22;
  border-radius: 12px;
  background: linear-gradient(148deg, #e6edff 0%, #dce6ff 55%, #d0dfff 100%);
  border: 1px solid rgba(47, 109, 246, 0.16);
  box-shadow: 0 14px 36px rgba(47, 109, 246, 0.14);
  transform: rotate(-7deg) translate(-8px, 10px);
  z-index: 1;
  animation: gateShowcaseBack 7.5s ease-in-out infinite;
}

@keyframes gateShowcaseBack {
  0%, 100% { transform: rotate(-7deg) translate(-8px, 10px); }
  50% { transform: rotate(-5.5deg) translate(-5px, 6px); }
}

.gate-showcase__sheet--mid {
  position: absolute;
  width: 88%;
  max-width: 278px;
  aspect-ratio: 1 / 1.2;
  border-radius: 13px;
  background: linear-gradient(135deg, #f8faff 0%, #eef3ff 55%, #e2ebff 100%);
  border: 1px solid rgba(47, 109, 246, 0.14);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  transform: rotate(4deg) translate(10px, 6px);
  z-index: 2;
  opacity: 0.92;
  animation: gateShowcaseMid 8s ease-in-out infinite;
}

@keyframes gateShowcaseMid {
  0%, 100% { transform: rotate(4deg) translate(10px, 6px); }
  50% { transform: rotate(2deg) translate(6px, 2px); }
}

.gate-showcase__sheet--front {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 292px;
  aspect-ratio: 1 / 1.18;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(47, 109, 246, 0.12);
  box-shadow:
    0 22px 56px rgba(15, 23, 42, 0.11),
    0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 11px 13px 12px;
  transform: rotate(2.5deg);
  animation: gateShowcaseFloat 7s ease-in-out infinite;
  overflow: hidden;
}

@keyframes gateShowcaseFloat {
  0%, 100% { transform: rotate(2.2deg) translateY(0) translateX(0); }
  33% { transform: rotate(3.2deg) translateY(-6px) translateX(2px); }
  66% { transform: rotate(2deg) translateY(-3px) translateX(-2px); }
}

.gate-showcase__stage {
  position: relative;
  min-height: 168px;
  margin-top: 2px;
}

.gate-showcase__scene {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.gate-showcase__scene--1 {
  animation: gateScene1 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.gate-showcase__scene--2 {
  animation: gateScene2 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.gate-showcase__scene--3 {
  animation: gateScene3 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.gate-showcase__scene--4 {
  animation: gateScene4 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes gateScene1 {
  0%, 1.5% { opacity: 0; transform: translateY(10px) scale(0.98); }
  3%, 22% { opacity: 1; transform: translateY(0) scale(1); }
  25%, 100% { opacity: 0; transform: translateY(8px) scale(0.98); }
}

@keyframes gateScene2 {
  0%, 24% { opacity: 0; transform: translateY(10px) scale(0.98); }
  26%, 47% { opacity: 1; transform: translateY(0) scale(1); }
  50%, 100% { opacity: 0; transform: translateY(8px) scale(0.98); }
}

@keyframes gateScene3 {
  0%, 49% { opacity: 0; transform: translateY(10px) scale(0.98); }
  51%, 72% { opacity: 1; transform: translateY(0) scale(1); }
  75%, 100% { opacity: 0; transform: translateY(8px) scale(0.98); }
}

@keyframes gateScene4 {
  0%, 74% { opacity: 0; transform: translateY(10px) scale(0.98); }
  76%, 96% { opacity: 1; transform: translateY(0) scale(1); }
  99%, 100% { opacity: 0; transform: translateY(8px) scale(0.98); }
}

.gate-showcase__scene-caption {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(47, 109, 246, 0.88);
  margin: 0 0 10px;
}

.gate-showcase__gen-bar {
  height: 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-bottom: 10px;
}

.gate-showcase__gen-bar > i {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(47, 109, 246, 0.25), rgba(47, 109, 246, 0.75));
  animation: gateGenSweep 1.8s ease-in-out infinite;
}

@keyframes gateGenSweep {
  0% { transform: translateX(-30%); opacity: 0.75; }
  50% { transform: translateX(120%); opacity: 1; }
  100% { transform: translateX(240%); opacity: 0.75; }
}

.gate-showcase__gen-dots {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}

.gate-showcase__gen-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(47, 109, 246, 0.35);
  animation: gateGenDot 1.2s ease-in-out infinite;
}

.gate-showcase__gen-dots span:nth-child(2) { animation-delay: 0.15s; }
.gate-showcase__gen-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes gateGenDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.gate-showcase__scene--minimal .gate-showcase__header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
}

.gate-showcase__scene--minimal .gate-showcase__avatar {
  margin: 0 auto;
}

.gate-showcase__scene--minimal .gate-showcase__lines {
  align-items: center;
}

.gate-showcase__scene--minimal .gate-showcase__line--title {
  width: 88%;
}

.gate-showcase__scene--minimal .gate-showcase__line--sub {
  width: 52%;
}

.gate-showcase__scene--minimal .gate-showcase__block {
  margin-bottom: 11px;
}

.gate-showcase__build {
  display: flex;
  gap: 8px;
  min-height: 132px;
}

.gate-showcase__build-rail {
  width: 34px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 5px;
  border-radius: 10px;
  background: rgba(47, 109, 246, 0.06);
  border: 1px solid rgba(47, 109, 246, 0.12);
}

.gate-showcase__build-rail span {
  height: 8px;
  border-radius: 4px;
  background: rgba(47, 109, 246, 0.2);
}

.gate-showcase__build-rail span:nth-child(2) {
  opacity: 0.65;
}

.gate-showcase__build-rail span:nth-child(3) {
  opacity: 0.45;
}

.gate-showcase__build-main {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px dashed rgba(47, 109, 246, 0.22);
  padding: 8px 8px 9px;
  background: rgba(248, 250, 255, 0.9);
}

.gate-showcase__build-chip {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(47, 109, 246, 0.1);
  color: rgba(37, 99, 235, 0.95);
  margin-bottom: 7px;
  border: 1px solid rgba(47, 109, 246, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .gate-showcase__orb,
  .gate-showcase__sheet--far,
  .gate-showcase__sheet--back,
  .gate-showcase__sheet--mid,
  .gate-showcase__sheet--front,
  .gate-showcase__scene,
  .gate-showcase__line--title,
  .gate-showcase__gen-bar > i,
  .gate-showcase__gen-dots span,
  .gate-showcase__mini {
    animation: none !important;
  }

  .gate-showcase__scene {
    position: absolute;
    opacity: 0 !important;
    transform: none !important;
  }

  .gate-showcase__scene--2 {
    position: relative;
    display: block;
    opacity: 1 !important;
  }

  .gate-showcase__scene--1,
  .gate-showcase__scene--3,
  .gate-showcase__scene--4 {
    display: none !important;
  }

  .gate-showcase__line--title {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.13), rgba(15, 23, 42, 0.05));
    background-size: auto;
  }

  .gate-showcase__gen-bar > i {
    width: 65%;
    transform: none;
  }

  .gate-showcase__sheet--far {
    transform: rotate(-11deg) translate(-14px, 18px);
  }

  .gate-showcase__sheet--back {
    transform: rotate(-7deg) translate(-8px, 10px);
  }

  .gate-showcase__sheet--mid {
    transform: rotate(4deg) translate(10px, 6px);
  }

  .gate-showcase__sheet--front {
    transform: rotate(2.5deg);
  }
}

.gate-showcase__toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.gate-showcase__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
}

.gate-showcase__toolbar-label {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(100, 116, 139, 0.88);
}

.gate-showcase__header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 11px;
}

.gate-showcase__avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(140deg, rgba(47, 109, 246, 0.22), rgba(129, 161, 255, 0.4));
  border: 1px solid rgba(47, 109, 246, 0.22);
}

.gate-showcase__lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gate-showcase__line {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.13), rgba(15, 23, 42, 0.05));
}

.gate-showcase__line--title {
  height: 9px;
  width: 74%;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.1) 0%,
    rgba(47, 109, 246, 0.22) 45%,
    rgba(15, 23, 42, 0.1) 100%
  );
  background-size: 180% 100%;
  animation: gateShowcaseLineShimmer 4.2s ease-in-out infinite;
}

@keyframes gateShowcaseLineShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gate-showcase__line--sub {
  height: 6px;
  width: 46%;
  opacity: 0.88;
}

.gate-showcase__line--short {
  width: 58%;
}

.gate-showcase__block {
  margin-bottom: 9px;
}

.gate-showcase__pill {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(47, 109, 246, 0.09);
  color: rgba(37, 99, 235, 0.98);
  margin-bottom: 5px;
  border: 1px solid rgba(47, 109, 246, 0.16);
}

.gate-showcase__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed rgba(47, 109, 246, 0.16);
}

.gate-showcase__tag {
  font-size: 0.6rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(47, 109, 246, 0.14);
  color: rgba(17, 24, 39, 0.78);
}

.gate-showcase__minis {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  max-width: min(100%, 320px);
  margin-top: 6px;
  padding: 6px 2px 4px;
}

.gate-showcase__mini {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(47, 109, 246, 0.14);
  padding: 8px 8px 9px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(47, 109, 246, 0.07);
  animation: gateShowcaseMini 5.5s ease-in-out infinite;
}

.gate-showcase__mini--a {
  animation-delay: 0s;
  transform-origin: 50% 100%;
}

.gate-showcase__mini--b {
  animation-delay: -1.8s;
  transform-origin: 50% 100%;
}

.gate-showcase__mini--c {
  animation-delay: -3.6s;
  transform-origin: 50% 100%;
}

.gate-showcase__mini--a .gate-showcase__mini-bar {
  background: linear-gradient(90deg, rgba(47, 109, 246, 0.35), rgba(129, 161, 255, 0.45));
}

.gate-showcase__mini--b .gate-showcase__mini-bar {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.35), rgba(59, 130, 246, 0.4));
}

.gate-showcase__mini--c .gate-showcase__mini-bar {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.35), rgba(147, 51, 234, 0.32));
}

@keyframes gateShowcaseMini {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.03); }
}

.gate-showcase__mini-bar {
  height: 5px;
  border-radius: 4px;
  margin-bottom: 7px;
  opacity: 0.95;
}

.gate-showcase__mini-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gate-showcase__mini-lines span {
  display: block;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.05));
}

.gate-showcase__mini-lines span:nth-child(2) {
  width: 78%;
}

.gate-showcase__mini-lines span:nth-child(3) {
  width: 62%;
}

.gate-showcase__mini-lines span:nth-child(4) {
  width: 55%;
}

.gate-showcase__steps {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gate-showcase__step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(17, 24, 39, 0.8);
}

.gate-showcase__step-num {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: rgba(47, 109, 246, 0.1);
  border: 1px solid rgba(47, 109, 246, 0.18);
  font-weight: 900;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(47, 109, 246, 0.95);
}

@media (max-width: 640px) {
  .gate-showcase__scene-caption {
    font-size: 0.72rem;
  }
  .gate-showcase__toolbar-label {
    font-size: 0.72rem;
  }
  .gate-showcase__step {
    font-size: 0.93rem;
    line-height: 1.45;
  }
  .gate-showcase__step-num {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 0.78rem;
  }
}

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

.plan {
  border-radius: 18px;
  border: 1px solid rgba(47, 109, 246, 0.16);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 30px rgba(47, 109, 246, 0.07);
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
}

.plan[data-highlight="true"] {
  border-color: rgba(47, 109, 246, 0.32);
  box-shadow: 0 16px 48px rgba(47, 109, 246, 0.14);
  outline: 3px solid rgba(47, 109, 246, 0.10);
  outline-offset: 0;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(47, 109, 246, 0.12);
  border: 1px solid rgba(47, 109, 246, 0.18);
  color: rgba(15, 23, 42, 0.9);
}

.plan__name {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
  color: rgba(17,24,39,0.9);
}

.plan__price {
  margin: 10px 0 6px;
  font-size: 1.6rem;
  font-weight: 1000;
  letter-spacing: -0.03em;
  color: rgba(15,23,42,0.95);
}

.plan__small {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 50;
}

.overlay[data-open="true"] { display: flex; }

.modal {
  width: 100%;
  max-width: 560px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(165deg, #ffffff 0%, #fbfcff 55%, #f8faff 100%);
  box-shadow: 0 30px 120px rgba(0,0,0,0.24);
  overflow: hidden;
}

.modal__head {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(47, 109, 246, 0.12);
  background: rgba(255,255,255,0.88);
}

.modal__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(47, 109, 246, 0.14);
  background: rgba(47, 109, 246, 0.06);
  cursor: pointer;
  font-weight: 900;
}

.modal__body {
  padding: 16px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.mini {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 6px 0 0;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.ai-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  filter: drop-shadow(0 2px 8px rgba(255, 168, 0, 0.18));
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 46rem;
}

.row {
  max-width: 46rem;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 0;
}

select,
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 12px;
  padding: 10px 10px;
  font-size: 0.95rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  outline: none;
}

.exp-to-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: rgba(47, 109, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.65rem;
  color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232f6df6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem 1rem;
}

.editor {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(47, 109, 246, 0.22);
  max-width: 46rem;
}

.editor h2 {
  margin: 0 0 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.exp-item {
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  margin: 10px 0;
}

.exp-item .mini-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.custom-sec-item {
  margin: 10px 0;
}

.avatar-editor {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.avatar-preview {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,0.10);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  flex: 0 0 auto;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-controls {
  flex: 1 1 280px;
  min-width: 220px;
  display: grid;
  gap: 10px;
}

.toggle-card {
  max-width: 46rem;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(47, 109, 246, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 8px 28px rgba(47, 109, 246, 0.06),
    0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.toggle-card__text {
  min-width: 0;
}

.toggle-card__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
  color: var(--text);
}

.toggle-card__hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.switch {
  position: relative;
  width: 52px;
  height: 32px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.24);
  border: 1px solid rgba(15, 23, 42, 0.10);
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.switch-thumb {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.08);
  transition: left 0.18s ease, transform 0.18s ease;
}

.switch input:checked + .switch-track {
  background: rgba(47, 109, 246, 0.92);
  border-color: rgba(47, 109, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.14);
}

.switch input:checked + .switch-track .switch-thumb {
  left: 23px;
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid rgba(47, 109, 246, 0.65);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .switch-track,
  .switch-thumb {
    transition: none;
  }
}

.status {
  margin-top: 14px;
  max-width: 46rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(47, 109, 246, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  display: none;
  white-space: pre-wrap;
}

.status[data-kind="error"] {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.06);
  color: #7f1d1d;
}

.status[data-kind="ok"] {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(22, 163, 74, 0.06);
  color: #14532d;
}

.status[data-kind="info"],
.status[data-kind="bad"] {
  border-color: rgba(47, 109, 246, 0.2);
  background: rgba(47, 109, 246, 0.06);
  color: var(--muted);
}

.status[data-kind="bad"] {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.06);
  color: #7f1d1d;
}

.editor-hints {
  margin-bottom: 14px;
  max-width: 46rem;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.editor-hints--ok {
  border: 1px solid rgba(47, 109, 246, 0.2);
  background: rgba(47, 109, 246, 0.06);
  color: var(--muted);
}

.editor-hints ul {
  margin: 8px 0 0 1.1rem;
  padding: 0;
}

.editor-hints li {
  margin: 4px 0;
}

.pdf-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 8px;
  width: 100%;
  min-width: 0;
}

.pdf-section-heading .pdf-section-heading__view {
  flex: 1 1 auto;
  min-width: 0;
}

.pdf-section-heading.is-editing .pdf-section-heading__input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.pdf-section-heading__view {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text, #0f172a);
  line-height: 1.3;
}

.pdf-section-heading__input {
  flex: 1 1 200px;
  max-width: min(100%, 360px);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(47, 109, 246, 0.35);
}

.pdf-section-heading__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted, #64748b);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pdf-section-heading__edit:hover {
  border-color: rgba(47, 109, 246, 0.35);
  color: #2f6df6;
  background: rgba(47, 109, 246, 0.06);
}

.pdf-section-heading__edit:focus-visible {
  outline: 2px solid rgba(47, 109, 246, 0.55);
  outline-offset: 2px;
}

.pdf-section-heading__toolbar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.pdf-section-heading__save,
.pdf-section-heading__cancel {
  display: none;
}

.pdf-section-heading.is-editing .pdf-section-heading__edit {
  display: none;
}

.pdf-section-heading.is-editing .pdf-section-heading__save,
.pdf-section-heading.is-editing .pdf-section-heading__cancel {
  display: inline-flex;
}

.pdf-section-heading__save,
.pdf-section-heading__cancel {
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted, #64748b);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pdf-section-heading__save:hover {
  border-color: rgba(22, 163, 74, 0.45);
  color: #15803d;
  background: rgba(22, 163, 74, 0.08);
}

.pdf-section-heading__cancel:hover {
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.06);
}

.pdf-section-heading__save:focus-visible,
.pdf-section-heading__cancel:focus-visible {
  outline: 2px solid rgba(47, 109, 246, 0.55);
  outline-offset: 2px;
}

.pdf-section-heading.is-editing .pdf-section-heading__view {
  display: none;
}

.pdf-section-heading:not(.is-editing) .pdf-section-heading__input {
  display: none !important;
}

.field__sub-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--muted, #64748b);
  font-weight: 500;
}

.auth-modal-status {
  margin-top: 0;
  margin-bottom: 12px;
  max-width: none;
}

.footer {
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  width: 100%;
  border-top: 1px solid rgba(47, 109, 246, 0.08);
  border-bottom: 1px solid rgba(47, 109, 246, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  box-sizing: border-box;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.socials {
  display: flex;
  gap: 15px;
  align-items: center;
}

.socials a {
  display: inline-flex;
  line-height: 0;
}

.socials img {
  width: 20px;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}

.socials a:hover img,
.socials > img:hover {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .layout {
    padding: 16px max(12px, env(safe-area-inset-left)) 40px max(12px, env(safe-area-inset-right));
  }
  .content {
    padding: 22px 18px 28px;
    border-radius: 16px;
  }
  .content[data-view="app"] {
    padding: clamp(1.1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.15rem);
    border-radius: 14px;
  }
  .gate-body {
    grid-template-columns: 1fr;
  }
  /* Иначе .gate-body.gate-body--plans (выше по специфичности) оставляет 2 колонки и левая сжимается в 0 — текст наезжает на тарифы */
  .gate-body.gate-body--plans {
    grid-template-columns: 1fr;
  }
  .gate-right-col {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }
  .gate-body.gate-body--plans .gate-right-col {
    max-width: min(100%, 540px);
  }
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .site-header__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    z-index: 40;
  }
  .site-header__inner {
    flex-wrap: nowrap;
    align-items: center;
    row-gap: 0;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }
  .brand__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .site-header__actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
    max-width: min(52vw, 240px);
  }
  .site-header__menu-btn {
    display: inline-flex;
  }
  .site-header__actions .plan-pill-group {
    flex: 0 1 auto;
    justify-content: flex-end;
    min-width: 0;
    max-width: none;
    width: auto;
  }
  .site-header__actions .plan-pill-group .pill {
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }
  .site-header__actions .plan-pill-group .pill__line {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-header__menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: min(calc(100vw - 24px), 320px);
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 12px;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(47, 109, 246, 0.14);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12), 0 4px 14px rgba(47, 109, 246, 0.08);
  }
  .site-header__menu-panel.is-open {
    display: flex;
  }
  .site-header__menu-panel .btn {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    text-align: center;
    font-size: 0.88rem;
    padding: 0.65rem 0.85rem;
    white-space: normal;
    line-height: 1.25;
    justify-content: center;
  }

  #gateActions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  #gateActions .btn {
    width: 100%;
    flex: 1 1 auto;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: normal;
    justify-content: center;
  }

  .plans {
    grid-template-columns: 1fr;
  }
  .plan .btn {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.25;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .file-row {
    grid-template-columns: 1fr;
  }
  .gate-body {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gate-right-col {
    align-items: stretch;
  }

  .gate-showcase {
    max-width: none;
  }
  .code-row {
    grid-template-columns: 1fr;
  }
}

/* Обязательные согласия (первый вход) */
.consent-overlay {
  z-index: 60;
}

.consent-modal__h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.consent-modal__lead {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.consent-stack {
  display: grid;
  gap: 12px;
  margin: 18px 0 16px;
}

.toggle-card__title .consent-doc-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}

.toggle-card__title .consent-doc-link:hover {
  color: var(--primary);
}

/* Опыт: «По настоящее время» — справа в колонке «По»; текст по центру по вертикали относительно свитча */
.exp-present-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 6px;
  padding: 0;
  background: none;
  border: none;
  width: 100%;
  max-width: 100%;
}

.exp-present-row__title {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  min-height: 26px;
  height: 26px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.exp-present-row .switch.switch--sm {
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin: 0;
  flex: 0 0 auto;
}

.switch.switch--sm {
  width: 42px;
  height: 26px;
  flex: 0 0 auto;
}

.switch.switch--sm .switch-thumb {
  width: 20px;
  height: 20px;
  left: 3px;
}

.switch.switch--sm input:checked + .switch-track .switch-thumb {
  left: 19px;
}

/* Flatpickr: календарь в стиле Resumly */
.flatpickr-calendar.flatpickr-calendar--resumly {
  z-index: 80;
  border-radius: 14px;
  border: 1px solid rgba(47, 109, 246, 0.16);
  box-shadow:
    0 12px 40px rgba(47, 109, 246, 0.12),
    0 4px 16px rgba(15, 23, 42, 0.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #fff;
}

.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-months {
  padding: 8px 8px 4px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(47, 109, 246, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
}

.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-current-month {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-weekdays {
  padding: 4px 6px;
  background: rgba(247, 249, 252, 0.95);
}

.flatpickr-calendar.flatpickr-calendar--resumly span.flatpickr-weekday {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
}

.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-day {
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
}

.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-day:hover {
  background: rgba(47, 109, 246, 0.1);
  border-color: transparent;
}

.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-day.today {
  border-color: rgba(47, 109, 246, 0.45);
  color: var(--primary);
}

.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-day.selected,
.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-day.startRange,
.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-day.endRange {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 109, 246, 0.35);
}

.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-day.flatpickr-disabled,
.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-day.prevMonthDay,
.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-day.nextMonthDay {
  color: rgba(100, 116, 139, 0.55);
}

.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-prev-month,
.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-next-month {
  border-radius: 8px;
  fill: var(--primary);
}

.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-prev-month:hover,
.flatpickr-calendar.flatpickr-calendar--resumly .flatpickr-next-month:hover {
  background: rgba(47, 109, 246, 0.1);
}

.exp-item input.exp-fp-date-alt {
  width: 100%;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 12px;
  padding: 10px 10px;
  font-size: 0.95rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  outline: none;
  font-family: inherit;
  color: var(--text);
  min-height: 42px;
}

.exp-item input.exp-fp-date-alt:focus {
  border-color: rgba(47, 109, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

.exp-item input.exp-fp-date-alt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.04);
}
}
