/* Кабинет SHOKERI BEAUTY — читаемость. Посадка только .app-body. */
.app-body .luxe-stage {
  opacity: 0.78;
  pointer-events: none;
}
.app-body .app-shell::before {
  opacity: 0.35;
  filter: blur(28px);
}
.app-body .app-shell .app-pad::before {
  display: none;
}
.app-body .app-h {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #fff8fb;
}
.app-body .muted {
  color: rgba(255, 240, 246, 0.82);
}
.app-body .card,
.app-body .plan-item,
.app-body .home-route-item {
  background: rgba(14, 6, 16, 0.88);
  border-color: rgba(255, 196, 220, 0.28);
}
.app-body .card.soft {
  background: linear-gradient(160deg, rgba(40, 10, 28, 0.92), rgba(18, 8, 16, 0.9));
}

.cab-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-family: var(--font-label);
}
.cab-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: rgba(255, 244, 248, 0.9);
  max-width: 42ch;
}
.cab-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cab-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(14, 6, 16, 0.82);
  border: 1px solid rgba(255, 196, 220, 0.22);
  font-size: 0.92rem;
}
.cab-steps b {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #1a0610;
  font-size: 0.78rem;
}

.cab-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.cab-stat {
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(14, 6, 16, 0.9);
  border: 1px solid rgba(255, 196, 220, 0.22);
  text-align: center;
  min-width: 0;
}
.cab-stat b {
  display: block;
  font-size: 0.95rem;
  color: #fff8fb;
  line-height: 1.2;
  word-break: break-word;
}
.cab-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: rgba(255, 236, 245, 0.7);
  line-height: 1.25;
}

.cab-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 14px 12px 12px;
  border-radius: 20px;
  background: rgba(14, 6, 16, 0.88);
  border: 1px solid rgba(255, 196, 220, 0.26);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cab-progress-main {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 96px;
}
.cab-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255, 140, 190, 0.55);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  box-shadow: 0 0 0 4px rgba(255, 61, 154, 0.08);
}
.cab-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cab-avatar-empty {
  text-align: center;
  padding: 8px;
  font-size: 0.72rem;
  line-height: 1.25;
  color: rgba(255, 236, 245, 0.78);
}
.cab-avatar-empty strong {
  display: block;
  font-size: 0.9rem;
  color: #fff8fb;
  margin-bottom: 2px;
}
.cab-avatar-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-family: var(--font-label);
  text-align: center;
}
.cab-avatar-date {
  font-size: 0.72rem;
  color: rgba(255, 236, 245, 0.7);
  text-align: center;
  max-width: 11ch;
  line-height: 1.25;
}
.cab-progress-track {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cab-shot {
  flex: 0 0 auto;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.cab-shot-frame {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 196, 220, 0.4);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
  color: rgba(255, 236, 245, 0.7);
  padding: 4px;
}
.cab-shot-frame.has-photo {
  border-style: solid;
  border-color: rgba(232, 176, 122, 0.5);
}
.cab-shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cab-shot.is-due .cab-shot-frame {
  border-color: rgba(255, 61, 154, 0.7);
  box-shadow: 0 0 16px rgba(255, 61, 154, 0.2);
}
.cab-shot-label {
  font-size: 0.68rem;
  color: rgba(255, 236, 245, 0.75);
  text-align: center;
  line-height: 1.2;
}
.cab-progress-note {
  flex: 1 1 120px;
  min-width: 110px;
  font-size: 0.8rem;
  color: rgba(255, 236, 245, 0.78);
  line-height: 1.4;
}
.cab-progress-note strong {
  display: block;
  color: #fff8fb;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.cab-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.cab-tab {
  flex: 1 1 calc(25% - 8px);
  min-width: 104px;
  border: 1px solid rgba(255, 196, 220, 0.28);
  background: rgba(14, 6, 16, 0.88);
  color: rgba(255, 244, 248, 0.92);
  border-radius: 999px;
  padding: 10px 12px;
  font: 650 0.8rem/1.2 var(--font-body);
  cursor: pointer;
  text-align: center;
}
.cab-tab.is-on {
  border-color: transparent;
  background: var(--grad);
  color: #1a0610;
}
.face-studio-head .cab-tabs {
  width: 100%;
  margin: 12px 0 0;
}

.cab-tip { margin-bottom: 14px; }

.cab-home--clear {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cab-home--clear > .home-top {
  margin-bottom: 2px;
}
.cab-sec-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-family: var(--font-label);
  font-weight: 700;
}
.cab-now,
.cab-doors-sec,
.cab-day-sec {
  margin: 0;
}
.cab-next {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 16px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 196, 220, 0.42);
  box-shadow: 0 10px 28px rgba(80, 10, 40, 0.28);
}
.cab-next__k,
.cab-next .card-title {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-family: var(--font-label);
  font-weight: 700;
}
.cab-next h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #fff8fb;
  font-weight: 700;
}
.cab-next p { margin: 0; color: rgba(255, 244, 248, 0.88); }
.cab-next .btn {
  width: 100%;
  min-height: 48px;
}
.cab-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cab-door {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 196, 220, 0.28);
  background: rgba(14, 6, 16, 0.9);
  color: #fff8fb;
  text-align: left;
  cursor: pointer;
  min-height: 76px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cab-door:hover,
.cab-door:focus-visible {
  border-color: rgba(255, 210, 230, 0.55);
  background: rgba(36, 12, 28, 0.95);
  outline: none;
}
.cab-door strong {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}
.cab-door span {
  font-size: 0.78rem;
  color: rgba(255, 236, 245, 0.72);
  line-height: 1.3;
}
.cab-fold {
  padding: 0;
  overflow: hidden;
}
.cab-fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
  color: #fff0f6;
  font-size: 0.95rem;
}
.cab-fold > summary::-webkit-details-marker { display: none; }
.cab-fold > summary::after {
  content: "▾";
  float: right;
  opacity: 0.55;
  font-size: 0.85rem;
}
.cab-fold[open] > summary {
  border-bottom: 1px solid rgba(255, 196, 220, 0.18);
  margin-bottom: 0;
}
.cab-fold[open] > summary::after { content: "▴"; }
.cab-fold > :not(summary) {
  padding: 12px 16px 16px;
}
.cab-home--clear > #home-today-card {
  margin: 0;
}
.cab-home--clear .sb-path--home {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cab-home--clear .sb-path__check-card,
.cab-home--clear .sb-path__mission {
  margin: 0;
}
#home-today-card .plan-item { margin-bottom: 8px; }
#home-today-card .plan-content span {
  color: rgba(255, 236, 245, 0.78);
}

.cab-extra summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--champagne);
  list-style: none;
}
.cab-extra summary::-webkit-details-marker { display: none; }
.cab-extra[open] summary { margin-bottom: 10px; }

.app-body .app-shell {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  min-height: 0;
  padding-bottom: 96px;
}
.app-body .tabbar,
.app-body .path-bar {
  left: 50%;
  right: auto;
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin: 0;
  transform: translateX(-50%);
}
.app-body .site-header { z-index: 100; }
.app-body .site-footer {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 28px 0 calc(36px + 88px + env(safe-area-inset-bottom));
}
.app-body .app-shell:has([data-panel="auth"].active) ~ .site-footer,
.app-body .app-shell:has([data-panel="onboarding"].active) ~ .site-footer,
.app-body .app-shell:has([data-panel="quiz"].active) ~ .site-footer {
  padding-bottom: 40px;
}
.app-body .app-shell:has([data-panel="onboarding"].active) ~ .sb-spec,
.app-body .app-shell:has([data-panel="quiz"].active) ~ .sb-spec,
.app-body .app-shell:has([data-panel="path"].active) ~ .sb-spec {
  display: none !important;
}
.cab-courses { margin: 8px 0 18px; }
.cab-courses .cab-lead { max-width: 52ch; }
.app-body .cab-courses .grid-2 { padding: 0; }
.app-body .cab-courses .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-body .tabbar button {
  color: rgba(255, 236, 245, 0.62);
  font-weight: 600;
}
.app-body .tabbar button.active {
  color: #ffd0e6;
}
.app-body .tabbar button span:first-child {
  font-size: 1.05rem;
  line-height: 1;
}

.app-body .sb-cab-back {
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.app-body .sb-cab-back .btn {
  min-height: 40px;
}

.cab-auth .auth-tabs,
.cab-profile .btn { margin-top: 4px; }

@media (min-width: 1024px) {
  .app-body .app-shell,
  .app-body .tabbar,
  .app-body .path-bar {
    width: min(1120px, calc(100% - 32px));
    max-width: 1120px;
  }
  .cab-home {
    display: block;
    max-width: none;
    margin: 0;
    padding-top: 24px;
  }
  .cab-tab {
    flex: 1 1 calc(20% - 8px);
    min-width: 120px;
    padding: 10px 16px;
  }
  .cab-next {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cab-next .btn {
    width: 100%;
    max-width: 320px;
  }
  .cab-avatar {
    width: 112px;
    height: 112px;
  }
  .cab-auth,
  .cab-onb,
  [data-panel="profile"] .app-pad,
  [data-panel="coach"] .app-pad,
  [data-panel="body"] .app-pad,
  [data-panel="inner"] .app-pad,
  [data-panel="pay"] .app-pad {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 40px;
  }
  [data-panel="face"].active .face-studio-head .cab-tabs {
    flex: 1 1 100%;
    margin-top: 18px;
  }
}

@media (max-width: 1023px) {
  .cab-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cab-tab {
    flex: 1 1 calc(50% - 8px);
    min-width: calc(50% - 8px);
  }
  .cab-progress-note { display: none; }
}

@media (max-width: 430px) {
  .cab-tab { font-size: 0.76rem; }
  .cab-next h2 { font-size: 1.35rem; }
  .cab-doors { grid-template-columns: 1fr; }
  .cab-door { min-height: 64px; }
  .app-body .tabbar button { font-size: 0.62rem; }
  .app-body .app-shell,
  .app-body .tabbar,
  .app-body .path-bar {
    width: calc(100% - 20px);
  }
}
