:root {
  --color-bg: #020202;
  --color-panel: rgba(7, 7, 9, 0.76);
  --color-panel-soft: rgba(12, 13, 18, 0.82);
 --color-cream: #f5c561;
  --color-cream-soft: #f5c561;
  --color-white: #ffffff;
  --color-muted: #b8b5c7;
  --color-dim: #7f7a8e;
  --color-line: rgba(255, 255, 255, 0.105);
  --color-line-strong: rgba(255, 255, 255, 0.52);
  --color-purple: #8068ff;
  --color-peach: #ff8b86;
  --color-green: #10b981;
  --color-gold: #f59e0b;
  --color-red: #ff2f2f;
  --glass-bg: #ffffff03;
  --glass-blur: 4px;
  --shadow-glass:
    inset 0 1px 40px 0 #ffffff33, inset 0 4px 18px 0 #ffffff4d,
    inset 0 39px 56px -36px #ffffff80;
  --primary-btn-bg: #0000000d;
  --primary-btn-border: linear-gradient(180deg, #ffffff 0%, #ffffff00 100%);
  --primary-btn-shadow:
    0 16px 112px 0 #0000000a, 0 4px 58px 0 #0000000a, 0 1px 84px 0 #00000005;
  --primary-btn-blur: 1px;
  --font-main: "Inter", sans-serif;
  --sidebar-width: 226px;
  --sidebar-collapsed: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.app-body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-white);
  background:
    radial-gradient(
      circle at 24% 7%,
      rgba(255, 255, 255, 0.055),
      transparent 14rem
    ),
    radial-gradient(
      circle at 75% 0%,
      rgba(128, 104, 255, 0.075),
      transparent 13rem
    ),
    var(--color-bg);
  font-family: var(--font-main);
}

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

.auth-view {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  overflow: hidden;
  background: #000000;
}

.auth-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  pointer-events: none;
}

.auth-view::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(
      circle at 62% 43%,
      rgba(255, 255, 255, 0.42),
      transparent 6rem
    ),
    radial-gradient(
      circle at 18% 26%,
      rgba(255, 255, 255, 0.18),
      transparent 5rem
    ),
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.56)),
    repeating-radial-gradient(
      circle at 22% 20%,
      rgba(255, 255, 255, 0.22) 0 1px,
      transparent 1px 90px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035),
      transparent 18%,
      transparent 82%,
      rgba(255, 255, 255, 0.035)
    );
  mix-blend-mode: screen;
  opacity: 0.42;
}

.auth-view::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: radial-gradient(
    circle,
    transparent 0 52%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

.auth-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 565px);
  min-height: 610px;
  align-items: center;
  border-radius: 24px;
  padding: 52px;
  background: var(--glass-bg);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.auth-screen {
  width: 100%;
}

.auth-screen--login {
  max-width: 370px;
  margin: 0 auto;
}

.auth-card__icon,
.auth-card__icon--large {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 16px;
  color: #000000;
  background: var(--color-cream);
}

.auth-card__head {
  margin-bottom: 36px;
  text-align: center;
}

.auth-card__head--otp {
  margin-bottom: 28px;
}

.auth-card__title,
.auth-card__subtitle {
  margin: 0;
}

.auth-card__title {
  color: var(--color-white);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.auth-card__subtitle {
  margin-top: 10px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
}

.auth-card__email {
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 4px;
}

.auth-field {
  min-height: 86px;
}

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

.auth-field__label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.auth-link-button {
  border: 0;
  padding: 0;
  color: var(--color-white);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-input {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 15px;
  color: var(--color-white);
  background: #f1f3ff33;
}


.auth-field.is-invalid .auth-input {
  border-color: var(--color-red);
}

.auth-input__icon {
  width: 17px;
  height: 17px;
  color: #f0edf8;
}

.auth-input__control {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--color-white);
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.auth-input__control::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.auth-input__button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--color-white);
  background: transparent;
  cursor: pointer;
}

.auth-input__button .icon {
  width: 16px;
  height: 16px;
}

.auth-field__error {
  min-height: 18px;
  margin: 5px 0 0;
  color: var(--color-red);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.auth-check {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  margin: 7px 0 18px;
  cursor: pointer;
}

.auth-check__input {
  position: absolute;
  opacity: 0;
}

.auth-check__box {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 5px;
  background: #edf2ff;
}

.auth-check__input:checked + .auth-check__box::before {
  width: 11px;
  height: 11px;
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-check__text {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
}

.auth-submit {
  display: inline-flex;
  width: 100%;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  color: #000000;
  background: var(--color-cream);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit:disabled,
.otp-foot__button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.auth-submit.is-loading {
  color: #ffffff;
  background: #16a34a;
}

.auth-submit--otp {
  min-height: 58px;
  margin-top: 24px;
  font-size: 18px;
}

.otp-form {
  display: grid;
}

.otp-toast {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 0 15px;
  color: #000000;
  background: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 600;
}

.otp-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.otp-input {
  width: 100%;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.2);
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  outline: 0;
}

.otp-group.is-invalid .otp-input {
  border-color: var(--color-red);
}

.otp-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--color-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.25;
  text-transform: uppercase;
}

.otp-foot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  margin-top: 31px;
}

.otp-foot__text,
.otp-foot__timer {
  margin: 0;
  color: var(--color-white);
  font-size: 14px;
}

.otp-foot__button,
.otp-back {
  border: 0;
  padding: 0;
  color: var(--color-white);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.otp-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.dashboard-shell {
  position: relative;
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 24px 24px 284px;
}

.glass-panel,
.glass-strip,
.glass-button {
  border: 1px solid var(--color-line);
  background: var(--glass-bg);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 15px;
  height: 15px;
}

.sidebar {
  position: fixed;
  top: 30px;
  bottom: 30px;
  left: max(30px, calc((100vw - 1440px) / 2 + 6px));
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  min-height: 640px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  transition:
    width 0.24s ease,
    transform 0.24s ease;
}

.sidebar::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.2),
      transparent 17%,
      transparent 83%,
      rgba(255, 255, 255, 0.16)
    ),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0.75;
}

.sidebar__brand,
.sidebar__nav,
.sidebar__actions {
  position: relative;
  z-index: 1;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 30px 20px 30px;
}

.sidebar__toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #000000;
  background: var(--color-cream);
  cursor: pointer;
}

.icon--menu {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
}

.sidebar__brand-title,
.sidebar__brand-subtitle,
.sidebar__label {
  white-space: nowrap;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.sidebar__brand-title {
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.sidebar__brand-subtitle {
  margin: 5px 0 0;
  color: var(--color-cream);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.sidebar__nav {
  display: grid;
  gap: 6px;
  padding: 0 0 0 0;
}

.sidebar__link {
  position: relative;
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: #dedbea;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.sidebar__link::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 2px;
  content: "";
  opacity: 0;
  background: var(--color-cream);
}

.sidebar__link--active {
  color: var(--color-cream);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.02)
  );
  font-weight: 700;
}

.sidebar__link--active::after {
  opacity: 1;
}

.sidebar__template-group {
  position: relative;
  margin: 0 5px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.sidebar__template-group.is-expanded {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(
      circle at 6% 8%,
      rgba(255, 255, 255, 0.17),
      transparent 22%
    ),
    radial-gradient(
      circle at 97% 78%,
      rgba(255, 255, 255, 0.12),
      transparent 28%
    ),
    rgba(4, 4, 6, 0.3);
  box-shadow:
    inset 0 1px 20px rgba(255, 255, 255, 0.12),
    inset 0 -14px 26px rgba(255, 255, 255, 0.035),
    0 8px 24px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

.sidebar__template-toggle {
  width: 100%;
  border: 0;
  text-align: left;
}

.sidebar__template-toggle::after {
  display: none;
}

.sidebar__template-chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  transition: transform 0.22s ease;
}

.sidebar__template-group.is-expanded .sidebar__template-chevron {
  transform: rotate(180deg);
}

.sidebar__submenu {
  display: grid;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 12px 0 48px;
  transition:
    max-height 0.24s ease,
    opacity 0.18s ease,
    padding-bottom 0.24s ease;
}

.sidebar__template-group.is-expanded .sidebar__submenu {
  max-height: 104px;
  padding-bottom: 8px;
  opacity: 1;
}

.sidebar__submenu-link {
  position: relative;
  display: flex;
  min-height: 35px;
  align-items: center;
  color: #eeeaf2;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}

.sidebar__submenu-link:first-child::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: -6px;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.12)
  );
}

.sidebar__submenu-link:hover,
.sidebar__submenu-link.is-current {
  color: var(--color-cream);
}

.sidebar__actions {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding: 0 18px 20px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  color: var(--color-white);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn--primary {
  position: relative;
  overflow: hidden;

  width: auto;
  min-height: 44px;
  padding: 12px 28px;

  text-decoration: none;
  color: #fff;

  border-top: 1.4px solid #ffffff66;
  border-bottom: 1.4px solid #ffffff66;
  border-radius: 999px;
  background:
    linear-gradient(#09090900, #09090900) padding-box,
    linear-gradient(
        180deg,
        #ffffff00 40%,
        #ffffff17 0.01%,
        #ffffff7a 0.01%,
        #ffffff00 10%
      )
      border-box;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.btn--primary::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 4px;
  height: 45%;
  border-radius: inherit;
  pointer-events: none;

  filter: blur(8px);
}

.btn--primary::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -14px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;

  background: rgba(255, 255, 255, 0.08);
  filter: blur(20px);
}

.btn--primary .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 2px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
}

.btn--primary .sidebar__label {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn--danger {
  border: 1px solid var(--color-red);
  color: #ff4b4b;
  background: rgba(0, 0, 0, 0.16);
}

.icon--logout {
  display: none;
}

.main-area {
  position: relative;
}

.topbar {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-radius: 999px;
  padding: 10px 23px 10px 16px;
  background: var(--glass-bg);
}

.search-box {
  display: flex;
  width: min(402px, 100%);
  height: 40px;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 16px;
  color: #111111;
  background: var(--color-cream-soft);
}

.icon--search {
  width: 16px;
  height: 16px;
}

.search-box__input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #000000;
  background: transparent;
  font: inherit;
  font-size: 16px;
}

.search-box__input::placeholder {
  color: #111111;
  opacity: 1;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.credits-pill {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 7px;
  border-color: rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--color-cream);
  font-size: 16px;
  font-weight: 700;
}

.icon--bolt {
  width: 16px;
  height: 16px;
}

.icon-button,
.avatar-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  color: #e7ddff;
  background: transparent;
  cursor: pointer;
}

.avatar-button {
  position: relative;
  border: 1px solid rgba(210, 185, 255, 0.56);
  border-radius: 999px;
  padding: 0;
}

.avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-initials {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: inherit;
  color: #050505;
  background: var(--color-cream);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 0 31px;
}

.hero-copy__title {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(24px, 3vw, 37px);
  font-weight: 700;
  line-height: 1.05;
}

.hero-copy__wave {
  display: inline-block;
  transform: translateY(-2px);
}

.hero-copy__subtitle {
  margin: 10px 0 0;
  color: #d1ccd6;
  font-size: 12px;
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.glass-card {
  border: 1px solid #ffffff27;
  border-radius: 16px;
  background: var(--glass-bg);
}

.stat-card {
  min-height: 116px;
  padding: 20px;
}

.stat-card--cream {
  color: #050505;
  border-radius: 15px;
  background: var(--color-white);
}

.stat-card__label,
.stat-card__value,
.stat-card__meta {
  margin: 0;
}

.stat-card__label {
  color: currentColor;
  font-size: 16px;
  line-height: 1.2;
}

.stat-card__value {
  margin-top: 10px;
  color: currentColor;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.stat-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 15px;
  color: currentColor;
  font-size: 12px;
  opacity: 0.92;
}

.mini-progress,
.project-progress {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: #22293b;
}

.mini-progress {
  height: 6px;
  margin-top: 19px;
}

.mini-progress__bar,
.project-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--color-cream);
}

.mini-progress__bar--short {
  width: 45%;
}

.mini-progress__bar--wide {
  width: 84%;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 45px;
  margin-top: 62px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}

.section-head__title {
  margin: 0;
  color: var(--color-white);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.section-head__title--muted {
  color: #d9d8ea;
}

.range-pill {
  min-width: 112px;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--color-cream);
  font-size: 14px;
  font-weight: 600;
}

.chart-card {
  min-height: 308px;
  padding: 16px 24px 22px;
  border-radius: 22px;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  height: 34px;
  font-size: 10px;
}

.chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.chart-legend__item::before {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  content: "";
}

.chart-legend__item--pages::before {
  background: var(--color-peach);
}

.chart-legend__item--blogs::before {
  background: var(--color-purple);
}

.chart-svg {
  display: block;
  width: 100%;
  height: 238px;
  overflow: visible;
}

.chart-svg__grid-line {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.3;
}

.chart-svg__axis {
  fill: var(--color-white);
  font-family: var(--font-main);
  font-size: 13px;
}

.chart-svg__line {
  fill: none;
  stroke-width: 7;
  stroke-linecap: square;
  stroke-linejoin: round;
}

.chart-svg__line--pages {
  stroke: var(--color-peach);
}

.chart-svg__line--blogs {
  stroke: var(--color-purple);
}

.chart-svg__baseline {
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 1.2;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.action-card {
  min-height: 167px;
  padding: 22px;
}

.action-card__icon,
.summary-card__icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 10px;
  color: #c7c7d9;
  background: rgba(255, 255, 255, 0.07);
}

.action-card__icon--purple {
  color: #c9b4ff;
  background: rgba(128, 104, 255, 0.2);
}

.action-card__icon--blue {
  color: #7c88b6;
  background: rgba(86, 103, 161, 0.1);
}

.action-card__title {
  margin: 17px 0 8px;
  color: #dce2f7;
  font-size: 16px;
  font-weight: 700;
}

.action-card__text {
  max-width: 180px;
  margin: 0;
  color: #cbc3d7;
  font-size: 16px;
  line-height: 1.45;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 31px;
  margin-top: 43px;
}

.project-list {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.project-row {
  min-height: 64px;
  padding: 15px;
  border-radius: 10px;
}

.project-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-row__title,
.project-row__percent {
  margin: 0;
}

.project-row__title {
  color: #dce2f7;
  font-size: 16px;
  font-weight: 700;
}

.project-row__percent {
  color: #cbc3d7;
  font-size: 10px;
}

.project-progress {
  height: 4px;
  margin-top: 14px;
}

.project-progress__bar--eighty {
  width: 80%;
}

.project-progress__bar--fortyfive {
  width: 45%;
  background: #d9def2;
}

.project-progress__bar--twelve {
  width: 12%;
  background: #d9def2;
}

.section-head--table {
  margin-bottom: 18px;
}

.view-link {
  color: var(--color-cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.blog-table {
  overflow: hidden;
  border-radius: 10px;
  background: var(--glass-bg);
}

.blog-table__row {
  display: grid;
  grid-template-columns: minmax(150px, 1.5fr) minmax(100px, 0.9fr) minmax(70px, 0.65fr) minmax(105px, 0.8fr) minmax(62px, 0.5fr);
  min-height: 82px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  padding: 0 42px;
  gap: 12px;
}

.blog-table__row--head {
  min-height: 72px;
  border-top: 0;
  background-color: #141b2b80;
}

.blog-table__cell {
  margin: 0;
  color: #ebe8f6;
  font-size: 14px;
  line-height: 1.35;
}

.blog-table__row--head .blog-table__cell {
  color: #c9c6d8;
  font-weight: 700;
}

.blog-table__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  /* -webkit-line-clamp: 2; */
  overflow-wrap: anywhere;
}

.blog-table__empty {
  display: flex;
  min-height: 164px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #c9c6d8;
  font-size: 14px;
  text-align: center;
}

.status-pill,
.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.status-pill {
  min-width: 54px;
  min-height: 20px;
  padding: 0 9px;
}

.status-pill--draft {
  color: #8992aa;
  background: rgba(126, 141, 178, 0.16);
}

.status-pill--published {
  color: #00e3a4;
  background: rgba(0, 208, 146, 0.14);
}

.status-pill--reviewing {
  color: #ffb21b;
  background: rgba(255, 175, 22, 0.15);
}

.status-pill--save,
.status-pill--pending {
  color: #ffb21b;
  background: rgba(255, 175, 22, 0.15);
}

.score-pill {
  min-width: 30px;
  min-height: 30px;
  color: #00e3a4;
  background: rgba(0, 208, 146, 0.12);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.summary-card {
  display: flex;
  min-height: 106px;
  align-items: center;
  gap: 17px;
  padding: 24px 18px;
}

.summary-card__icon {
  width: 33px;
  height: 33px;
  border-radius: 8px;
}

.summary-card__icon .icon {
  width: 17px;
  height: 17px;
}

.summary-card__icon--violet {
  color: #d6c8ff;
  background: rgba(128, 104, 255, 0.16);
}

.summary-card__icon--green {
  color: #00f0a8;
  background: rgba(0, 208, 146, 0.13);
}

.summary-card__icon--gold {
  color: var(--color-gold);
  background: rgba(255, 175, 22, 0.13);
}

.summary-card__title,
.summary-card__value {
  margin: 0;
}

.summary-card__title {
  color: #cbc3d7;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.summary-card__title--cream {
  color: var(--color-cream);
}

.summary-card__title--green {
  color: var(--color-green);
}

.summary-card__title--gold {
  color: var(--color-gold);
}

.summary-card__value {
  margin-top: 6px;
  color: #f0eef8;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
}

@media (max-width: 1180px) {
  .dashboard-shell {
    padding-right: 40px;
  }

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

  .work-grid,
  .lower-grid {
    gap: 22px;
  }
}

@media (max-width: 1024px) {
  .dashboard-shell {
    padding: 24px 24px 36px calc(var(--sidebar-collapsed) + 42px);
  }

  .sidebar {
    top: 24px;
    bottom: 24px;
    left: 18px;
    width: var(--sidebar-collapsed);
    min-height: 0;
    border-radius: 18px;
  }

  .sidebar.is-open {
    width: var(--sidebar-width);
  }

  .sidebar__brand {
    padding: 24px 20px 30px;
  }

  .sidebar__brand-copy,
  .sidebar__label {
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
  }

  .sidebar:not(.is-open) .sidebar__brand-copy,
  .sidebar:not(.is-open) .sidebar__label {
    display: none;
  }

  .sidebar.is-open .sidebar__brand-copy,
  .sidebar.is-open .sidebar__label {
    display: block;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .sidebar__link {
    justify-content: flex-start;
    padding: 0 26px;
  }

  .sidebar.is-open .sidebar__link {
    padding: 0 16px;
  }

  .sidebar:not(.is-open) .sidebar__template-group {
    margin: 0;
    overflow: visible;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .sidebar:not(.is-open) .sidebar__template-toggle {
    padding: 0 26px;
  }

  .sidebar:not(.is-open) .sidebar__template-chevron,
  .sidebar:not(.is-open) .sidebar__submenu {
    display: none;
  }

  .sidebar__actions {
    padding: 0 16px 20px;
  }

  .btn {
    padding: 0;
  }

  .sidebar.is-open .btn {
    width: 100%;
    padding: 0 14px;
  }

  .btn--danger {
    color: var(--color-red);
  }

  .icon--logout {
    display: block;
  }

  .sidebar.is-open .icon--logout {
    display: none;
  }

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

  .work-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .auth-view {
    padding: 18px;
    align-items: start;
  }

  .auth-card {
    margin-top: 20px;
    padding: 52px 26px 42px;
    border-radius: 22px;
  }

  .auth-card__title--large {
    font-size: 28px;
  }

  .auth-card__subtitle--large {
    font-size: 15px;
  }

  .otp-group {
    gap: 8px;
  }

  .otp-input {
    height: 56px;
    font-size: 24px;
  }

  .otp-foot {
    grid-template-columns: 1fr auto;
    row-gap: 10px;
  }

  .otp-foot__button {
    grid-column: 2;
  }

  .dashboard-shell {
    padding: 18px 16px 30px 92px;
  }

  .sidebar {
    top: 18px;
    bottom: 18px;
    left: 12px;
    width: 64px;
  }

  .sidebar.is-open {
    width: min(218px, calc(100vw - 24px));
  }

  .sidebar__brand {
    padding: 20px 14px 24px;
  }

  .sidebar__link {
    padding: 0 20px;
  }

  .sidebar__actions {
    padding: 0 10px 14px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    border-radius: 22px;
    padding: 12px;
  }

  .search-box {
    width: 100%;
  }

  .topbar__actions {
    justify-content: space-between;
  }

  .hero-row {
    padding: 28px 0 24px;
  }

  .stats-grid,
  .quick-actions,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    margin-top: 36px;
  }

  .chart-card {
    padding: 14px 12px 16px;
  }

  .chart-legend {
    gap: 12px;
    font-size: 9px;
  }

  .blog-table {
    overflow-x: auto;
  }

  .blog-table__row {
    min-width: 640px;
    padding: 0 24px;
  }

  .summary-card__title {
    font-size: 18px;
  }
}

@media (max-width: 460px) {
  .auth-view {
    padding: 12px;
  }

  .auth-card {
    padding: 44px 20px 34px;
  }

  .auth-card__title {
    font-size: 22px;
  }

  .auth-card__title--large {
    font-size: 25px;
  }

  .auth-input {
    height: 44px;
  }

  .otp-toast {
    font-size: 13px;
  }

  .otp-input {
    height: 50px;
    font-size: 21px;
  }

  .otp-error {
    font-size: 11px;
  }

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

  .dashboard-shell {
    padding-left: 82px;
    padding-right: 10px;
  }

  .credits-pill {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero-copy__title {
    font-size: 25px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head--table {
    flex-direction: row;
    align-items: center;
  }
}

/* Global notification toast */
.writer-toast-viewport {
  position: fixed;
  top: 8px;
  right: 20px;
  z-index: 10000;
  display: grid;
  width: min(350px, calc(100vw - 24px));
  gap: 12px;
  pointer-events: none;
}

.writer-toast {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  border: 1px solid #ede8d0;
  border-radius: 12px;
  padding: 20px;
  color: #27303a;
  background: #fbfaf7;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateX(calc(100% + 28px));
  pointer-events: auto;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.writer-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.writer-toast.is-leaving {
  opacity: 0;
  transform: translateX(calc(100% + 28px));
}

.writer-toast--no-close {
  grid-template-columns: 36px minmax(0, 1fr);
}

.writer-toast--clickable {
  cursor: pointer;
}

.writer-toast__icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 9px;
  color: #000000;
  background: #ede8d0;
}

.writer-toast__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.writer-toast__content {
  min-width: 0;
  transform: translateY(3px);
}

.writer-toast__title,
.writer-toast__message {
  margin: 0;
}

.writer-toast__title {
  color: #27303a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.writer-toast__message {
  margin-top: 8px;
  color: #2e4058;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.writer-toast__close {
  display: grid;
  width: 24px;
  height: 32px;
  place-items: center;
  align-self: center;
  border: 0;
  padding: 0;
  color: #9da5ae;
  background: transparent;
  cursor: pointer;
}

.writer-toast__close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.writer-toast__close:hover {
  color: #68727d;
}

@media (max-width: 440px) {
  .writer-toast-viewport {
    top: 8px;
    right: 12px;
    width: calc(100vw - 24px);
  }

  .writer-toast {
    min-height: 132px;
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    gap: 15px;
    border-radius: 18px;
    padding: 23px 18px;
  }

  .writer-toast__icon {
    width: 34px;
    height: 34px;
  }

  .writer-toast__title {
    font-size: 18px;
  }

  .writer-toast__message {
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.45;
  }

  .writer-toast__close,
  .writer-toast__close svg {
    width: 22px;
    height: 22px;
  }
}
