/* ===== ACCOUNT PAGE ===== */
body.acc-page { background: #0a0a0a; color: #f5f5f7; min-height: 100vh; }

/* ─── Plan badge (nav, right of name/school) ─── */
.plan-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  align-self: center;
  flex-shrink: 0;
}
.plan-badge--free  {
  background: rgba(255,255,255,.12);
  color: #f0f0f0;
  border: 1px solid rgba(255,255,255,.35);
}
.plan-badge--trial {
  background: rgba(255,159,10,.18);
  color: #ff9f0a;
  border: 1px solid rgba(255,159,10,.3);
}
.plan-badge--paid  {
  background: #1a4d2e;
  color: #4ade80;
  border: 1px solid #2d7a46;
}

/* ─── Plan lock icon (on gated CTAs) ─── */
.plan-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 6px;
  color: #ff9f0a;
  opacity: .9;
}
.plan-lock svg { display: block; }
.acc-start-card .plan-lock {
  position: absolute;
  top: 16px;
  right: 16px;
  margin-left: 0;
}
.acc-start-card { position: relative; }

/* ─── Scroll Animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in--d1 {
  transition-delay: 0.1s;
}

.fade-in--d2 {
  transition-delay: 0.2s;
}

.fade-in--d3 {
  transition-delay: 0.3s;
}

/* ─── Enhanced Button Styles ─── */
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ─── Tab Hover Effects ─── */
.acc-tab {
  position: relative;
  overflow: hidden;
}

.acc-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width 0.3s ease-out;
}

.acc-tab:hover::after {
  width: 100%;
}

.acc-tab--active::after {
  width: 100%;
}

/* ─── Dropzone Enhanced Effects ─── */
.acc-dropzone {
  position: relative;
  overflow: hidden;
}

.acc-dropzone::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 113, 227, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.acc-dropzone:hover::before {
  animation: shimmer 0.5s ease-in-out;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

/* ─── Loading States ─── */
.acc-loading {
  position: relative;
  overflow: hidden;
}

.acc-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ─── Micro-interactions ─── */
.pg-product-card__tags span {
  transition: all 0.2s ease-out;
}

.pg-product-card__tags span:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.acc-tip {
  transition: transform 0.3s ease-out;
}

.acc-tip:hover {
  transform: translateY(-2px);
}

/* Demo Panel Styles (from main page) */
.demo-badge {
  background: rgba(255,255,255,.06);
  color: #86868b;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: inline-block;
}

.demo-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  justify-content: center;
  flex-wrap: wrap;
}

.demo-tab {
  background: none;
  border: none;
  color: #86868b;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease-out;
  position: relative;
}

.demo-tab:hover {
  color: #f5f5f7;
}

.demo-tab--active {
  color: #f5f5f7;
}

.demo-tab--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}

.demo-tab-panel {
  text-align: left;
}

.demo-optimized-summary {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.demo-optimized-summary h3 {
  color: #f5f5f7;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 600;
}

.demo-score-comparison {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.demo-score-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-score-label {
  font-size: 0.88rem;
  color: #86868b;
}

.demo-score-value {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Rules Hero */
.rules-hero {
  text-align: center;
  margin-bottom: 48px;
}

.rules-hero__badge {
  background: var(--blue);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-block;
}

.rules-hero__title {
  font-size: 2rem;
  font-weight: 700;
  color: #f5f5f7;
  margin-bottom: 16px;
}

.rules-score-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: center;
}

.rules-score-box__formula {
  font-size: 0.95rem;
  color: #86868b;
  margin-bottom: 16px;
  font-family: monospace;
}

.rules-score-box__scale {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rules-scale {
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: 12px;
}

.rules-scale--green {
  background: rgba(48,209,88,.2);
  color: #30d158;
}

.rules-scale--yellow {
  background: rgba(255,159,10,.2);
  color: #ff9f0a;
}

.rules-scale--red {
  background: rgba(255,69,58,.2);
  color: #ff453a;
}

.rules-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.rules-col {
  position: relative;
}

.rules-col__track {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rules-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease-out, border-color 0.3s ease-out;
}

.rules-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.12);
}

.rules-card__badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.rules-card__badge--hard {
  background: rgba(255,69,58,.2);
  color: #ff453a;
}

.rules-card__badge--soft {
  background: rgba(255,159,10,.2);
  color: #ff9f0a;
}

.rules-card__badge--info {
  background: rgba(0,113,227,.2);
  color: #0071e3;
}

.rules-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 8px;
}

.rules-card__text {
  font-size: 0.88rem;
  color: #86868b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.rules-card__src {
  font-size: 0.76rem;
  color: #86868b;
  font-style: italic;
}

.acc-main { max-width: 960px; margin: 0 auto; padding: 88px 24px 100px; }

/* ─── Header ─── */
.acc-header {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.acc-header__title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  color: #f5f5f7;
  line-height: 1.05;
  margin-bottom: 18px;
}
.acc-header__title--gradient {
  background: linear-gradient(90deg, #a1c4fd 0%, #c2e9fb 50%, #a1c4fd 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
.acc-header__sub {
  font-size: 1.05rem;
  color: #86868b;
  font-weight: 300;
  line-height: 1.6;
  max-width: 560px;
}

.profile-wizard-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 28px 0 0;
}

.profile-wizard-wrapper .wizard-section {
  width: 100%;
  max-width: 1120px;
  padding-top: 0;
}

.account-wizard .wizard-section {
  background: transparent;
}

.account-wizard .wizard-inner {
  max-width: 980px;
}

.account-wizard .wiz-landing,
.account-wizard .wiz-flow {
  padding: 3rem 2.5rem;
  border-radius: 16px;
}

.account-wizard .wiz-title { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.account-wizard .wiz-sub { font-size: clamp(1rem, 2.2vw, 1.24rem); }
.account-wizard .wiz-cards { max-width: 620px; gap: 16px; }
.account-wizard .wiz-card { padding: 20px; }
.account-wizard .wiz-card__title { font-size: 15px; }
.account-wizard .wiz-card__desc { font-size: 12px; }
.account-wizard .wiz-cta { max-width: 620px; }

.profile-wizard-history {
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 0 24px;
}

.profile-wizard-history__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f5f7;
  margin: 0 0 16px;
}

.profile-wizard-history__list {
  display: grid;
  gap: 12px;
}

.profile-wizard-history__empty {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 14px;
  color: #86868b;
  font-size: .88rem;
}

.profile-wizard-history__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  padding: 12px 14px;
}

/* Эпик 4.1 — compare bar */
.profile-wizard-history__compare-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0,113,227,.08);
  border: 1px solid rgba(0,113,227,.25);
  border-radius: 10px;
  margin-bottom: 8px;
}
.profile-wizard-history__compare-info {
  font-size: .82rem;
  color: #86868b;
}
.profile-wizard-history__compare-btn {
  background: var(--blue); color: #fff; border: none; border-radius: 8px;
  padding: 8px 18px; font-family: var(--font); font-size: .84rem; font-weight: 500;
  cursor: pointer; transition: background .15s;
}
.profile-wizard-history__compare-btn:hover:not(:disabled) { background: var(--blue-hover); }
.profile-wizard-history__compare-btn:disabled { opacity: .4; cursor: not-allowed; }
.profile-wizard-history__compare-chk {
  width: 16px; height: 16px; cursor: pointer; accent-color: #0071e3;
}

/* Score badges */
.profile-wizard-history__score {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 12px;
  font-size: .72rem; font-weight: 700;
  margin-left: 8px; vertical-align: middle;
  border: 1px solid;
}
.profile-wizard-history__score--A { color: #30d158; background: rgba(48,209,88,.12); border-color: rgba(48,209,88,.4); }
.profile-wizard-history__score--B { color: #4da3ff; background: rgba(0,113,227,.12); border-color: rgba(0,113,227,.4); }
.profile-wizard-history__score--C { color: #ffd60a; background: rgba(255,214,10,.12); border-color: rgba(255,214,10,.4); }
.profile-wizard-history__score--D { color: #ff9f0a; background: rgba(255,159,10,.12); border-color: rgba(255,159,10,.4); }
.profile-wizard-history__score--F { color: #ff453a; background: rgba(255,69,58,.12); border-color: rgba(255,69,58,.4); }
.profile-wizard-history__score-num { opacity: .8; font-weight: 500; font-size: .68rem; }

.profile-wizard-history__name {
  display: block;
  font-size: .92rem;
  color: #f5f5f7;
  font-weight: 600;
}

.profile-wizard-history__date {
  display: block;
  font-size: .76rem;
  color: #86868b;
  margin-top: 2px;
}

.profile-wizard-history__delete {
  border: 1px solid rgba(255,69,58,.45);
  color: #ff453a;
  background: rgba(255,69,58,.1);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font);
  font-size: .78rem;
  cursor: pointer;
}

.profile-wizard-history__open {
  border: 1px solid rgba(0,113,227,.45);
  color: #4da3ff;
  background: rgba(0,113,227,.12);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font);
  font-size: .78rem;
  cursor: pointer;
}

#accountAuditSection.showcase--dark {
  background: transparent;
  padding-top: 24px;
}

/* ─── Back button ─── */
.acc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #f5f5f7;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .15s;
  backdrop-filter: blur(8px);
}
.acc-back-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  transform: translateX(-2px);
}
.acc-back-btn svg { flex-shrink: 0; opacity: .8; }

/* ─── Upload / Dropzone ─── */
.acc-upload { margin-bottom: 28px; }
.acc-dropzone {
  border: 2px dashed rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 52px 28px;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.acc-dropzone:hover,
.acc-dropzone--over { border-color: var(--blue); background: rgba(0,113,227,.05); }
.acc-dropzone__icon { display: block; margin: 0 auto 16px; opacity: .3; color: #f5f5f7; }
.acc-dropzone__title { font-size: 1rem; font-weight: 600; color: #f5f5f7; margin-bottom: 6px; }
.acc-dropzone__sub { font-size: .88rem; color: #86868b; }
.acc-dropzone__btn {
  background: none; border: none; color: var(--blue); cursor: pointer;
  font-family: var(--font); font-size: .88rem; font-weight: 500;
  padding: 0; text-decoration: underline;
}
.acc-dropzone__fmt { font-size: .76rem; color: rgba(255,255,255,.2); margin-top: 12px; }

.acc-error {
  display: none; color: var(--red); font-size: .82rem; margin-top: 8px;
  padding: 10px 16px; background: rgba(255,69,58,.07);
  border-radius: 10px; border: 1px solid rgba(255,69,58,.18);
}
.acc-actions { margin-top: 14px; }

/* ─── Intro Section (Product Cards) ─── */
.acc-intro__header {
  text-align: center;
  margin-bottom: 48px;
}
.acc-intro__eyebrow {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.acc-intro__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #f5f5f7;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.pg-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.pg-product-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.pg-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}

.pg-product-card__img {
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: #1d1d1f;
  border: 1px solid rgba(255,255,255,.08);
}

.pg-product-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 12px;
  line-height: 1.3;
}

.pg-product-card__desc {
  font-size: 0.95rem;
  color: #86868b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.pg-product-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pg-product-card__tags span {
  background: rgba(255,255,255,.08);
  color: #86868b;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 500;
}

/* Product Mockups */
.pg-product-mock {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1d1d1f;
  border-radius: 12px;
  padding: 16px;
}

.pg-product-mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.pg-product-mock__dots {
  display: flex;
  gap: 4px;
}

.pg-product-mock__dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}

.pg-product-mock__dots span:first-child {
  background: #ff453a;
}

.pg-product-mock__dots span:nth-child(2) {
  background: #ffcc00;
}

.pg-product-mock__dots span:nth-child(3) {
  background: #30d158;
}

.pg-product-mock__tab {
  font-size: 0.88rem;
  color: #f5f5f7;
  font-weight: 500;
}

.pg-product-mock__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pg-product-mock__badge {
  background: rgba(255,69,58,.2);
  color: #ff453a;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.pg-product-mock__badge--red {
  background: rgba(255,69,58,.2);
  color: #ff453a;
}

.pg-product-mock__summary {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f5f5f7;
}

/* Mini Grid */
.pg-product-mock__grid-mini {
  width: 100%;
  font-size: 0.76rem;
}

.pg-product-mock__grid-head {
  display: grid;
  grid-template-columns: 40px repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #86868b;
}

.pg-product-mock__grid-row {
  display: grid;
  grid-template-columns: 40px repeat(3, 1fr);
  gap: 4px;
}

.pg-product-mock__day {
  color: #86868b;
  font-weight: 500;
}

.pg-product-mock__cell {
  background: rgba(48,209,88,.1);
  color: #30d158;
  padding: 4px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.7rem;
}

.pg-product-mock__cell--ok {
  background: rgba(48,209,88,.1);
  color: #30d158;
}

.pg-product-mock__cell--err {
  background: rgba(255,69,58,.1);
  color: #ff453a;
}

/* Heat Grid */
.pg-product-mock__heat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.pg-product-mock__heat-cell {
  height: 24px;
  border-radius: 4px;
}

.pg-product-mock__heat-cell--low {
  background: rgba(48,209,88,.3);
}

.pg-product-mock__heat-cell--med {
  background: rgba(255,159,10,.3);
}

.pg-product-mock__heat-cell--high {
  background: rgba(255,69,58,.3);
}

/* Recommendations List */
.pg-product-mock__rec-list {
  width: 100%;
  text-align: left;
}

.pg-product-mock__rec-item {
  background: rgba(255,255,255,.06);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.76rem;
  color: #f5f5f7;
}

/* ─── Results Tabs ─── */
.acc-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.acc-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex: 1;
}
.acc-actions-header {
  display: flex;
  gap: 8px;
  align-items: center;
}
.acc-tab {
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.38);
  padding: 7px 16px; border-radius: 980px;
  transition: color .15s, background .15s;
  white-space: nowrap; flex-shrink: 0;
}
.acc-tab:hover { color: #f5f5f7; }
.acc-tab--active { color: #f5f5f7; background: rgba(255,255,255,.1); }

.acc-tab-panel { color: #f5f5f7; }

/* ─── Audit Summary ─── */
.acc-audit-summary {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
  font-size: .88rem; margin-bottom: 24px;
  padding: 14px 20px; border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.acc-audit-summary--ok {
  background: rgba(48,209,88,.06);
  border-color: rgba(48,209,88,.18);
}
.acc-audit-stat { font-weight: 600; color: #f5f5f7; }
.acc-audit-stat--v { color: #ff453a; }
.acc-audit-stat--w { color: #ffd60a; }

/* ─── Audit Score Cards ─── */
.acc-audit-scores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.acc-score-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px 16px;
  transition: border-color .15s;
}
.acc-score-card:hover { border-color: rgba(255,255,255,.14); }
.acc-score-card__name { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }

.acc-issue { font-size: .78rem; line-height: 1.45; margin-bottom: 4px; }
.acc-issue--v { color: #ff453a; }
.acc-issue--w { color: #ffd60a; }
.acc-issue--ok { color: #30d158; }
.acc-issue__id { font-weight: 700; margin-right: 4px; font-family: monospace; font-size: .72rem; }

/* ─── Table wrapper (grid / heat) ─── */
.acc-tbl-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.07); }
.acc-grid-tbl { width: max-content; border-collapse: collapse; font-size: .76rem; }
.tbl-hdr-cls { position: sticky; left: 0; z-index: 3; background: #0a0a0a; }
.acc-heat-tbl { width: 100%; border-collapse: collapse; font-size: .76rem; }
.acc-grid-tbl th, .acc-grid-tbl td,
.acc-heat-tbl th, .acc-heat-tbl td {
  border: 1px solid rgba(255,255,255,.06); padding: 5px 8px;
}
.acc-grid-tbl th, .acc-heat-tbl th {
  background: rgba(255,255,255,.04); font-weight: 600; color: #86868b;
}
.acc-heat-note { font-size: .82rem; color: #86868b; line-height: 1.6; margin-bottom: 14px; padding: 12px 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; }
.acc-heat-note strong { color: #e5e5e7; }

/* ─── T-0510: Grid sort bar ─── */
.grid-sort {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px; font-size: .78rem;
}
.grid-sort__label { color: #86868b; font-weight: 500; margin-right: 4px; }
.grid-sort__btn {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  color: #86868b; font-family: var(--font); font-size: .72rem; font-weight: 600;
  padding: 4px 12px; border-radius: 980px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.grid-sort__btn:hover { color: #f5f5f7; border-color: rgba(255,255,255,.18); }
.grid-sort__btn--active { color: #f5f5f7; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }

/* ─── T-0510: Row severity borders ─── */
.grid-row--hard td { border-bottom: 2px solid rgba(255,69,58,.35) !important; }
.grid-row--soft td { border-bottom: 2px solid rgba(255,159,10,.25) !important; }
.demo__cell--warn { border: 2px solid #ff9f0a !important; }
.demo__cell--viol { border: 2px solid #ff453a !important; }

/* ─── T-0510: Floating tooltip ─── */
.grid-tip {
  display: none; position: fixed; z-index: 9000;
  background: #1c1c1e; border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 10px 14px;
  font-size: .76rem; color: #e5e5e7; line-height: 1.55;
  max-width: 320px; pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
}
.grid-tip b { color: #f5f5f7; font-weight: 700; }
.grid-tip__hr { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 6px 0; }
.grid-tip__issue { margin-bottom: 4px; line-height: 1.4; }
.grid-tip__issue span { color: #86868b; font-size: .7rem; }
.grid-tip__issue--v { color: #ff453a; }
.grid-tip__issue--w { color: #ffd60a; }

/* ─── T-0511: Class detail panel ─── */
.tbl-cls-cell--click { cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.tbl-cls-cell--click:hover { text-decoration-style: solid; }

.cls-detail-overlay {
  display: none; position: fixed; inset: 0; z-index: 1800;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.cls-detail-overlay--open { display: block; }

.cls-detail {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1900;
  width: 440px; max-width: 100vw;
  background: #1c1c1e; border-left: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
  overflow-y: auto;
}
.cls-detail--open { transform: translateX(0); }

.cls-detail__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 14px; border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.cls-detail__title { font-size: 1.2rem; font-weight: 700; color: #f5f5f7; }
.cls-detail__grade { font-size: .82rem; font-weight: 400; color: #86868b; margin-left: 8px; }
.cls-detail__close {
  background: rgba(255,255,255,.08); border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: .85rem; color: #86868b;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cls-detail__close:hover { background: rgba(255,255,255,.18); color: #f5f5f7; }

.cls-detail__status {
  margin: 14px 22px 0; padding: 10px 14px; border-radius: 10px;
  font-size: .82rem; color: #86868b; border: 1px solid;
}

.cls-detail__section { padding: 16px 22px 0; }
.cls-detail__section-title {
  font-size: .76rem; font-weight: 700; color: #86868b;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}

/* Mini schedule grid */
.cls-detail__grid-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid rgba(255,255,255,.07); }
.cls-detail__grid { width: 100%; border-collapse: collapse; font-size: .72rem; }
.cls-detail__grid th, .cls-detail__grid td { border: 1px solid rgba(255,255,255,.06); padding: 3px 4px; text-align: center; }
.cls-detail__grid th { background: rgba(255,255,255,.04); color: #86868b; font-weight: 600; }
.cls-detail__day { font-weight: 700; color: #f5f5f7; background: rgba(0,0,0,.3); width: 28px; }
.cls-detail__day-sum { font-weight: 700; color: #86868b; background: rgba(0,0,0,.3); }

/* Bar chart */
.cls-detail__profile {
  display: flex; gap: 8px; align-items: flex-end; height: 80px;
  padding: 0 10px 4px;
}
.cls-detail__bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.cls-detail__bar { width: 100%; max-width: 36px; border-radius: 4px 4px 0 0; min-height: 2px; transition: height .3s; }
.cls-detail__bar-val { font-size: .65rem; font-weight: 700; color: #f5f5f7; margin-top: 4px; }
.cls-detail__bar-day { font-size: .6rem; color: #86868b; }

/* Issues */
.cls-detail__issue { padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; }
.cls-detail__issue--v { background: rgba(255,69,58,.07); border: 1px solid rgba(255,69,58,.18); }
.cls-detail__issue--w { background: rgba(255,159,10,.07); border: 1px solid rgba(255,159,10,.18); }
.cls-detail__issue-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.cls-detail__issue-badge {
  font-size: .66rem; font-weight: 700; font-family: monospace;
  padding: 1px 8px; border-radius: 980px;
}
.cls-detail__issue-badge--v { background: rgba(255,69,58,.18); color: #ff453a; }
.cls-detail__issue-badge--w { background: rgba(255,159,10,.18); color: #ff9f0a; }
.cls-detail__issue-name { font-size: .82rem; font-weight: 600; color: #f5f5f7; }
.cls-detail__issue-desc { font-size: .78rem; color: rgba(255,255,255,.55); line-height: 1.5; }
.cls-detail__issue-sug { font-size: .76rem; color: #30d158; margin-top: 3px; }

/* Actions */
.cls-detail__actions { padding: 18px 22px 24px; margin-top: auto; }
.cls-detail__dl-btn {
  display: block; width: 100%; padding: 12px 0; text-align: center;
  background: rgba(0,113,227,.15); border: 1px solid rgba(0,113,227,.3);
  color: #0071e3; font-family: var(--font); font-size: .88rem; font-weight: 600;
  border-radius: 12px; cursor: pointer; transition: background .15s;
}
.cls-detail__dl-btn:hover { background: rgba(0,113,227,.25); }

@media (max-width: 480px) {
  .cls-detail { width: 100%; border-left: none; }
}

/* ─── Recommendations ─── */
.rec-empty { color: #86868b; font-size: .88rem; padding: 24px 0; }

/* ─── Recommendations by class (accordion) ─── */
.rec-class-group {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; margin-bottom: 8px; overflow: hidden;
}
.rec-class-group__hdr {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; cursor: pointer;
  background: rgba(255,255,255,.04);
  transition: background .15s;
  user-select: none;
}
.rec-class-group__hdr:hover { background: rgba(255,255,255,.07); }
.rec-class-group__name { font-size: .95rem; font-weight: 700; color: #f5f5f7; }
.rec-class-group__meta { font-size: .78rem; color: #86868b; flex: 1; }
.rec-class-group__arrow {
  font-size: .9rem; color: rgba(255,255,255,.3);
  transition: transform .2s; display: inline-block;
}
.rec-class-group__body {
  display: none; padding: 12px 18px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.rec-class-group--open .rec-class-group__body { display: block; }
.rec-class-group--open .rec-class-group__arrow { transform: rotate(90deg); }

/* ─── Collapsible class cards (matches main page renderRecs) ─── */
.rec-parallel { margin-bottom: 12px; }
.rec-parallel__row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rec-cls-card { flex: 1; min-width: 200px; max-width: 400px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; overflow: hidden; }
.rec-cls-card__hdr { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; transition: background .15s; }
.rec-cls-card__hdr:hover { background: rgba(255,255,255,.05); }
.rec-cls-card__name { font-size: .95rem; font-weight: 700; min-width: 32px; }
.rec-cls-card__meta { font-size: .72rem; color: #86868b; flex: 1; }
.rec-cls-card__arrow { font-size: 1rem; color: #555; transition: transform .2s; }
.rec-cls-card__body { display: none; padding: 0 14px 10px; }
.rec-cls-card--open .rec-cls-card__body { display: block; }
.rec-cls-card--open .rec-cls-card__arrow { transform: rotate(90deg); }

.rec-item { border-radius: 10px; padding: 10px 12px; margin-bottom: 7px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); }
.rec-item--v { background: rgba(255,69,58,.06); border-color: rgba(255,69,58,.15); }
.rec-item__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.rec-item__badge { font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; color: #000; background: #ff9f0a; }
.rec-item--v .rec-item__badge { background: #ff453a; }
.rec-item__name { font-size: .84rem; font-weight: 600; color: #e5e5e7; }
.rec-item__desc { font-size: .80rem; color: rgba(255,255,255,.45); line-height: 1.55; }
.rec-item__suggest { font-size: .78rem; color: #22d3ee; margin-top: 4px; }

/* ─── Fixed variant screen ─── */
.fix-header { margin-bottom: 20px; }
.fix-header__title { font-size: 1.15rem; font-weight: 700; color: #f5f5f7; margin-bottom: 4px; }
.fix-header__desc { font-size: .82rem; color: #86868b; }
.fix-compare {
  display: inline-flex; flex-direction: column; gap: 0;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; overflow: hidden; margin-bottom: 24px; min-width: 280px;
}
.fix-compare__row {
  display: flex; align-items: center; gap: 0;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.fix-compare__row:last-child { border-bottom: none; }
.fix-compare__row--hdr { background: rgba(255,255,255,.04); }
.fix-compare__lbl { flex: 1; font-size: .82rem; color: #86868b; font-weight: 500; }
.fix-compare__col { width: 64px; text-align: center; font-size: .88rem; font-weight: 600; color: #f5f5f7; }
.fix-compare__col--after { color: #30d158; }
.fix-compare__arrow { width: 28px; text-align: center; color: rgba(255,255,255,.25); font-size: .8rem; }
.fix-grid-wrap { margin-top: 8px; }

/* ─── Intro Section ─── */
.acc-intro { margin-top: 40px; }
.acc-intro__title {
  font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 20px;
}
.acc-intro__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.acc-intro-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 22px 20px;
  transition: border-color .2s, background .2s;
}
.acc-intro-card:hover { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.acc-intro-card__num {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: var(--blue); margin-bottom: 12px; opacity: .8;
}
.acc-intro-card__name {
  font-size: .95rem; font-weight: 700;
  color: #f5f5f7; margin-bottom: 8px; letter-spacing: -.02em;
}
.acc-intro-card__desc {
  font-size: .82rem; color: #86868b; line-height: 1.55; margin-bottom: 14px;
}
.acc-intro-card__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.acc-intro-card__tags span {
  font-size: .65rem; font-weight: 600; padding: 2px 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 980px; color: rgba(255,255,255,.4);
}

/* ─── Tip box ─── */
.acc-tip {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(0,113,227,.05);
  border: 1px solid rgba(0,113,227,.14);
  border-radius: 16px; padding: 20px 22px;
}
.acc-tip__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.acc-tip__title { font-size: .92rem; font-weight: 700; color: #f5f5f7; margin-bottom: 5px; }
.acc-tip__text { font-size: .82rem; color: #86868b; line-height: 1.6; margin-bottom: 14px; }

/* ─── Profile dropdown menu ─── */
.nav__profile-wrap { position: relative; display: inline-block; }
.nav__profile-caret {
  margin-left: 4px; color: rgba(255,255,255,.55);
  transition: transform .18s ease, color .15s;
  flex-shrink: 0;
}
.nav__profile-wrap.is-open .nav__profile-caret { transform: rotate(180deg); color: #f5f5f7; }

.profile-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px;
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  display: none;
  z-index: 1800;
}
.nav__profile-wrap.is-open .profile-menu { display: block; }

.profile-menu__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: .88rem; font-weight: 500;
  color: #f5f5f7; text-align: left;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.profile-menu__item:hover { background: rgba(255,255,255,.08); }
.profile-menu__item svg { color: #86868b; flex-shrink: 0; }
.profile-menu__item:hover svg { color: #f5f5f7; }
.profile-menu__item--danger { color: #ff453a; }
.profile-menu__item--danger svg { color: #ff453a; }
.profile-menu__item--danger:hover { background: rgba(255,69,58,.12); }

.profile-menu__sep {
  height: 1px; background: rgba(255,255,255,.07); margin: 6px 4px;
}

@media (max-width: 480px) {
  .profile-menu { right: 0; left: auto; min-width: 200px; }
}

/* ─── Profile Modal ─── */
.profile-overlay {
  display: none; position: fixed; inset: 0; z-index: 1900;
  background: rgba(0,0,0,.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: profOverlayIn .2s ease;
}
.profile-overlay--open { display: block; }
@keyframes profOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.profile-modal {
  position: fixed; z-index: 2000;
  top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.95);
  width: 400px; max-width: calc(100% - 2rem); max-height: calc(100vh - 4rem);
  background: #1c1c1e; border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; box-shadow: 0 24px 64px rgba(0,0,0,.5);
  display: none; flex-direction: column;
  overflow-y: auto;
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.profile-modal--open {
  display: flex; opacity: 1; transform: translate(-50%, -50%) scale(1);
}

.profile-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.profile-modal__title { font-size: 1.1rem; font-weight: 700; color: #f5f5f7; letter-spacing: -.02em; }
.profile-modal__close {
  background: rgba(255,255,255,.08); border: none; cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px;
  font-size: .8rem; color: #86868b;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.profile-modal__close:hover { background: rgba(255,255,255,.15); color: #f5f5f7; }

.profile-modal__form { padding: 20px 24px; flex: 1; }
.profile-modal__form .field { margin-bottom: 16px; }
.profile-modal__form .field__label { color: #86868b; font-size: .8rem; margin-bottom: 6px; }
.profile-modal__form .field__input {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #f5f5f7;
  border-radius: 10px; padding: 10px 14px; width: 100%; font-size: .9rem;
  transition: border-color .15s;
}
.profile-modal__form .field__input::placeholder { color: rgba(255,255,255,.2); }
.profile-modal__form .field__input:focus { border-color: var(--blue); outline: none; }
.profile-modal__form .field__err { color: #ff453a; font-size: .72rem; display: block; margin-top: 3px; }

.profile-modal__err { color: #ff453a; font-size: .8rem; margin-bottom: 8px; display: block; }
.profile-modal__ok { color: #30d158; font-size: .8rem; margin-bottom: 8px; display: block; }

.profile-modal__footer {
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: auto; flex-shrink: 0;
}
.profile-modal__logout {
  display: block; width: 100%; text-align: center; padding: 12px 0;
  font-family: var(--font); font-size: .82rem; font-weight: 500;
  color: #86868b; background: none; border: none; cursor: pointer;
  transition: color .15s;
}
.profile-modal__logout:hover { color: #ff453a; }

/* ─── Shared field overrides on dark page ─── */
body.acc-page .field__label { color: #86868b; }
body.acc-page .field__input {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #f5f5f7;
}
body.acc-page .field__input::placeholder { color: rgba(255,255,255,.2); }
body.acc-page .field__input:focus { border-color: var(--blue); }

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .acc-intro__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .acc-intro__grid { grid-template-columns: 1fr; }
  .acc-tip { flex-direction: column; gap: 10px; }
  .profile-modal { width: 100%; border-left: none; }
  .acc-audit-scores { grid-template-columns: 1fr 1fr; }
  .acc-tabs { gap: 2px; }
  .acc-tab { font-size: .78rem; padding: 6px 12px; }
}

/* ─── Быстрый старт через Excel ─── */
.acc-builder__xlsx { background: linear-gradient(160deg, rgba(0,113,227,.08), rgba(0,113,227,.02)); border: 1px solid rgba(0,113,227,.25); border-radius: 16px; padding: 20px 24px; margin-bottom: 28px; }
.acc-builder__xlsx-title { font-size: 1rem; font-weight: 700; color: #f5f5f7; margin-bottom: 4px; }
.acc-builder__xlsx-sub { font-size: .84rem; color: #86868b; line-height: 1.5; margin-bottom: 16px; }
.acc-builder__xlsx-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-builder__xlsx-or { font-size: .78rem; color: #6e6e73; text-align: center; margin: 16px 0 0; font-style: italic; }

/* ═══ Generator v2 section ═══ */
.acc-gen2 { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.acc-gen2__head { margin-bottom: 24px; }
.acc-gen2__title { font-size: 1.4rem; font-weight: 700; color: #f5f5f7; margin-bottom: 6px; }
.acc-gen2__sub { font-size: .9rem; color: #86868b; }

.acc-gen2__template-link,
.acc-upload__template-link {
  margin: 14px 0 0; text-align: center; font-size: .85rem;
}
.acc-gen2__template-link a,
.acc-upload__template-link a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); text-decoration: none;
  padding: 6px 10px; border-radius: 8px;
  transition: background .15s;
}
.acc-gen2__template-link a:hover,
.acc-upload__template-link a:hover { background: rgba(0,113,227,.08); text-decoration: underline; }

.acc-gen2__info { margin-top: 20px; }
.acc-gen2__stats { display: flex; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.acc-gen2__stat { font-size: .9rem; color: #ccc; }
.acc-gen2__stat strong { color: #30d158; font-size: 1.1rem; margin-right: 4px; }
.acc-gen2__errs { color: #ff9f0a; font-size: .85rem; margin-bottom: 12px; }

.acc-gen2__progress { margin-top: 20px; }
.acc-gen2__bar-wrap { height: 6px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.acc-gen2__bar { height: 100%; background: #30d158; border-radius: 4px; transition: width .2s; }
.acc-gen2__status { font-size: .85rem; color: #86868b; }

.acc-gen2__result { margin-top: 24px; }
.acc-gen2__score-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.acc-gen2__score { font-size: 1.6rem; font-weight: 800; color: #30d158; }
.acc-gen2__placed { font-size: .9rem; color: #86868b; }
.acc-gen2__violations { margin-bottom: 16px; }
.acc-gen2__actions { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.acc-gen2__actions .btn--ghost { background: rgba(255,255,255,.06); color: #ccc; border-color: rgba(255,255,255,.12); }
.acc-gen2__actions .btn--ghost:hover { background: rgba(255,255,255,.1); color: #f5f5f7; }
.acc-gen2__view-toggle { display: flex; gap: 0; margin-bottom: 12px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 3px; width: fit-content; }
.gen2-toggle { padding: 7px 18px; border: none; background: none; color: #86868b; font-family: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; border-radius: 8px; transition: all .15s; }
.gen2-toggle:hover { color: #ccc; }
.gen2-toggle--active { background: rgba(255,255,255,.1); color: #f5f5f7; }

/* Schedule grid — unified table */
.acc-gen2__grid { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
.gen2-tbl { border-collapse: collapse; font-size: .75rem; white-space: nowrap; }
.gen2-tbl thead { position: sticky; top: 0; z-index: 2; }
.gen2-corner { padding: 6px 8px; color: #555; font-weight: 600; text-align: center; background: #1c1c1e; border-bottom: 1px solid rgba(255,255,255,.08); }
.gen2-cls-hdr { padding: 6px 6px; color: #f5f5f7; font-weight: 700; text-align: center; background: #1c1c1e; border-bottom: 1px solid rgba(255,255,255,.08); min-width: 80px; }
.gen2-day { padding: 6px 10px; color: #86868b; font-weight: 700; text-align: center; vertical-align: middle; border-right: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); writing-mode: vertical-lr; text-orientation: mixed; letter-spacing: .05em; }
.gen2-ln { color: #444; text-align: center; width: 24px; padding: 4px; border-right: 1px solid rgba(255,255,255,.04); }
.gen2-cell { padding: 5px 6px; text-align: center; border: 1px solid rgba(255,255,255,.04); color: #ccc; cursor: default; transition: background .15s; }
.gen2-cell:hover { background: rgba(255,255,255,.06); }
.gen2-cell--hard { background: rgba(59,130,246,.08); color: #6db3f8; }
.gen2-cell--hard:hover { background: rgba(59,130,246,.15); }
.gen2-cell--warn { background: rgba(255,159,10,.1); color: #ffb84d; outline: 1px solid rgba(255,159,10,.25); }
.gen2-cell--warn:hover { background: rgba(255,159,10,.18); }
.gen2-cell--stream { background: rgba(167,139,250,.1); color: #a78bfa; }
.gen2-cell--stream:hover { background: rgba(167,139,250,.18); }
.gen2-cell--empty { background: none; border-color: rgba(255,255,255,.02); }
.gen2-cell--drop-ok { outline: 2px dashed #30d158 !important; background: rgba(48,209,88,.06) !important; }
.gen2-cell--drop-no { outline: 2px dashed #ff453a !important; background: rgba(255,69,58,.06) !important; opacity: .5; }
.gen2-cell--drop-hover { background: rgba(48,209,88,.15) !important; outline-color: #30d158 !important; }
.gen2-cell[draggable="true"] { cursor: grab; }
.gen2-cell[draggable="true"]:active { cursor: grabbing; }
.gen2-tbl tr:last-child td { border-bottom: 1px solid rgba(255,255,255,.06); }
.gen2-tr--day-start td { border-top: 8px solid #111 !important; }
.acc-gen2__actions--bottom { margin-top: 20px; margin-bottom: 0; }

/* ─── Upload section header ─── */
.acc-upload__header {
  margin: 12px 0 24px;
}
.acc-upload__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f5f5f7;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.acc-upload__sub {
  font-size: 0.95rem;
  color: #86868b;
  margin: 0;
  line-height: 1.5;
}

/* ─── Save button variant ─── */
.btn--save {
  background: rgba(48, 78, 209, 0.12);
  border: 1px solid #0077ed;
  color: #0071e3;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn--save:hover {
  background: rgba(48, 78, 209, 0.12);
  border-color: #0077ed;
  transform: translateY(-2px);
}
.btn--save:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}


/* ─── Saved schedules section ─── */
.acc-saved {
  max-width: 900px;
  margin: 48px auto 0;
  padding: 0 24px 64px;
}
.acc-saved__header {
  margin-bottom: 20px;
}
.acc-saved__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f5f5f7;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.acc-saved__sub {
  font-size: 0.85rem;
  color: #86868b;
  margin: 0;
}
