:root {
  color-scheme: light;
  --td-bg: #eef2ff;
  --td-bg-2: #f7f8ff;
  --td-surface: rgba(255, 255, 255, 0.78);
  --td-surface-strong: rgba(255, 255, 255, 0.92);
  --td-border: rgba(120, 130, 170, 0.16);
  --td-border-strong: rgba(120, 130, 170, 0.24);
  --td-text: #171a24;
  --td-text-soft: #374151;
  --td-muted: #6b7280;
  --td-faint: #9ca3af;
  --td-primary: #7c3aed;
  --td-primary-hover: #6d28d9;
  --td-primary-gradient: linear-gradient(135deg, #6275ff 0%, #8c72ff 52%, #c64ce8 100%);
  --td-accent-blue: #6275ff;
  --td-accent-lavender: #8c72ff;
  --td-glass-sidebar: rgba(255, 255, 255, 0.58);
  --td-purple-soft: #f3e8ff;
  --td-blue-soft: #eff6ff;
  --td-green-soft: #ecfdf5;
  --td-orange-soft: #fff7ed;
  --td-red-soft: #fef2f2;
  --td-pink-soft: #fdf2f8;
  --td-shadow: 0 24px 80px rgba(31, 41, 55, 0.08), 0 2px 8px rgba(31, 41, 55, 0.04);
  --td-shadow-soft: 0 16px 48px rgba(31, 41, 55, 0.07), 0 1px 4px rgba(31, 41, 55, 0.035);
  --td-shadow-control: 0 14px 32px rgba(98, 117, 255, 0.13), 0 2px 8px rgba(31, 41, 55, 0.055);
  --td-shadow-control-press: 0 5px 14px rgba(98, 117, 255, 0.16), 0 1px 3px rgba(31, 41, 55, 0.08);
  --td-ease-glass: cubic-bezier(0.2, 0.82, 0.2, 1);
  --td-radius-xl: 32px;
  --td-radius-lg: 28px;
  --td-radius-md: 18px;
  --td-radius-sm: 14px;
  --td-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

* {
  box-sizing: border-box;
}

body.td-page {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--td-text);
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.08), transparent 34rem),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.08), transparent 36rem),
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.45), transparent 42rem),
    linear-gradient(180deg, #eef2ff 0%, #f7f8ff 52%, #edf4ff 100%);
  font-family: var(--td-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.td-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(120, 130, 170, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 130, 170, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
}

.td-codex-cursor-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  opacity: 0.36;
  color: rgba(78, 96, 198, 0.58);
  pointer-events: none;
  mix-blend-mode: multiply;
  contain: strict;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.td-page svg:not(.td-brand-glyph) {
  display: block;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.42;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.td-glass-panel {
  overflow: hidden;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-xl);
  background: var(--td-surface);
  box-shadow: var(--td-shadow);
  backdrop-filter: blur(14px) saturate(1.08);
}

.td-hub-shell,
.td-login-main,
.td-login-footer,
.td-app-shell {
  position: relative;
  z-index: 1;
}

.td-surface-card {
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-md);
  background: var(--td-surface-strong);
  box-shadow: var(--td-shadow-soft);
}

.td-eyebrow {
  margin: 0 0 12px;
  color: var(--td-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.td-primary-button,
.td-secondary-button,
.td-small-button,
.td-icon-button,
.td-arrow-button,
.td-language-pill,
.td-user-chip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 44px;
  border-radius: var(--td-radius-sm);
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition:
    transform 220ms var(--td-ease-glass),
    box-shadow 220ms var(--td-ease-glass),
    background 220ms var(--td-ease-glass),
    background-position 520ms var(--td-ease-glass),
    border-color 220ms var(--td-ease-glass),
    color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.td-primary-button::before,
.td-secondary-button::before,
.td-small-button::before,
.td-icon-button::before,
.td-arrow-button::before,
.td-language-pill::before,
.td-user-chip::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.52), transparent 42%),
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.42), transparent 36%);
  transition: opacity 220ms var(--td-ease-glass), transform 220ms var(--td-ease-glass);
  transform: translateY(3px);
}

.td-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 18px;
  color: #fff;
  font-weight: 700;
  background: var(--td-primary-gradient);
  background-size: 180% 180%;
  background-position: 0% 50%;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.24);
}

.td-primary-button:hover {
  transform: translateY(-2px) scale(1.006);
  background-position: 100% 46%;
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.td-primary-button:hover::before,
.td-secondary-button:hover::before,
.td-small-button:hover::before,
.td-icon-button:hover::before,
.td-arrow-button:hover::before,
.td-language-pill:hover::before,
.td-user-chip:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.td-primary-button:active,
.td-secondary-button:active,
.td-small-button:active,
.td-icon-button:active,
.td-arrow-button:active,
.td-language-pill:active,
.td-user-chip:active {
  transform: translateY(1px) scale(0.988);
  box-shadow: var(--td-shadow-control-press);
  transition-duration: 120ms;
}

.td-primary-button:active {
  background-position: 70% 56%;
  box-shadow: 0 7px 16px rgba(124, 58, 237, 0.24), 0 1px 2px rgba(31, 41, 55, 0.12);
}

.td-secondary-button,
.td-small-button,
.td-icon-button,
.td-language-pill,
.td-user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--td-text-soft);
  border: 1px solid var(--td-border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset, 0 8px 22px rgba(31, 41, 55, 0.035);
}

.td-secondary-button:hover,
.td-small-button:hover,
.td-icon-button:hover,
.td-language-pill:hover,
.td-user-chip:hover {
  color: var(--td-primary-hover);
  border-color: rgba(124, 58, 237, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(243, 232, 255, 0.72)),
    rgba(243, 232, 255, 0.72);
  box-shadow: var(--td-shadow-control);
  transform: translateY(-1px);
}

.td-secondary-button {
  height: 48px;
  padding: 0 18px;
  font-weight: 700;
}

.td-small-button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--td-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.td-icon-button,
.td-arrow-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
}

.td-button-icon,
.td-arrow-svg {
  width: 18px;
  height: 18px;
}

.td-theme-toggle {
  position: relative;
}

.td-page .td-theme-toggle .td-theme-sun {
  display: none;
}

html[data-theme="dark"] .td-page .td-theme-toggle .td-theme-moon {
  display: none;
}

html[data-theme="dark"] .td-page .td-theme-toggle .td-theme-sun {
  display: block;
}

.td-mini-chevron {
  width: 14px;
  height: 14px;
}

.td-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.td-card-header h2 {
  margin: 0;
  color: var(--td-text);
  font-size: 1.02rem;
  line-height: 1.2;
}

/* Hub */
.td-hub-shell {
  width: min(100% - 36px, 1120px);
  margin: 0 auto;
  padding: 54px 0;
}

.td-hub-hero {
  position: relative;
  padding: clamp(30px, 5vw, 58px);
}

.td-hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  color: var(--td-primary);
  font-size: 1.02rem;
  font-weight: 800;
}

.td-hub-mark,
.td-brand-mark,
.td-login-logo,
.td-card-icon,
.td-stat-icon,
.td-ai-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(243, 232, 255, 0.62));
}

.td-hub-mark,
.td-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.td-brand .td-brand-mark {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}

.td-brand .td-brand-glyph,
.td-brand-logo {
  width: 100%;
  height: 100%;
}

.td-brand-glyph {
  display: block;
  width: 72%;
  height: 72%;
  border-radius: inherit;
  object-fit: contain;
}

.td-brand-logo {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.td-brand-logo--dark {
  display: none;
}

html[data-theme="dark"] .td-brand-logo--light,
body[data-theme="dark"] .td-brand-logo--light {
  display: none;
}

html[data-theme="dark"] .td-brand-logo--dark,
body[data-theme="dark"] .td-brand-logo--dark {
  display: block;
}

.td-brand-glyph--login {
  width: 100%;
  height: 100%;
}

.td-hub-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--td-text);
  font-size: clamp(2.6rem, 8vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.td-hub-hero p:not(.td-eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--td-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.td-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.td-hub-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 158px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.td-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.24);
  box-shadow: 0 20px 52px rgba(31, 41, 55, 0.1);
}

.td-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  color: var(--td-primary);
}

.td-card-svg {
  width: 24px;
  height: 24px;
}

.td-hub-card-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0 16px;
}

.td-hub-card-copy strong {
  font-size: 1rem;
}

.td-hub-card-copy small {
  color: var(--td-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.td-hub-arrow {
  width: 20px;
  height: 20px;
  color: var(--td-primary);
}

.td-sidebar-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-top: 22px;
  padding: 28px;
}

.td-sidebar-sample {
  display: grid;
  gap: 18px;
  min-height: 300px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.44)),
    var(--td-glass-sidebar);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 24px 60px rgba(47, 56, 95, 0.1);
  backdrop-filter: blur(14px) saturate(1.08);
}

.td-sidebar-sample-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.td-sidebar-sample-brand span:last-child {
  display: grid;
  gap: 2px;
}

.td-sidebar-sample-brand strong {
  color: var(--td-text);
  font-size: 0.95rem;
}

.td-sidebar-sample-brand small {
  color: var(--td-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.td-sidebar-sample-links {
  display: grid;
  gap: 5px;
}

.td-sidebar-showcase-copy {
  max-width: 650px;
}

.td-sidebar-showcase-copy h2 {
  margin: 0;
  color: var(--td-text);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.td-sidebar-showcase-copy p:not(.td-eyebrow) {
  margin: 14px 0 22px;
  color: var(--td-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.td-system-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 22px;
  padding: 30px;
}

.td-system-panel h2 {
  margin: 0;
  font-size: 1.7rem;
}

.td-system-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.td-system-list span {
  padding: 10px 14px;
  border: 1px solid var(--td-border);
  border-radius: 999px;
  color: var(--td-text-soft);
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
  font-weight: 650;
}

/* Login */
.td-page--login {
  display: flex;
  flex-direction: column;
}

.td-login-main {
  display: grid;
  place-items: center;
  width: min(100% - 32px, 520px);
  min-height: calc(100vh - 94px);
  margin: 0 auto;
  padding: 48px 0 24px;
}

.td-login-brand {
  display: grid;
  justify-items: center;
  gap: 0;
  margin-bottom: 30px;
  text-align: center;
}

.td-login-logo {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  box-shadow: 0 24px 54px rgba(124, 58, 237, 0.16);
}

.td-login-card {
  width: 100%;
  padding: 30px;
}

.td-login-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  color: var(--td-text);
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: var(--td-radius-sm);
  background: rgba(248, 113, 113, 0.12);
  font-size: 0.9rem;
  line-height: 1.35;
}

.td-login-card-head {
  margin-bottom: 24px;
  text-align: center;
}

.td-login-card-head h1 {
  margin: 0;
  font-size: 1.72rem;
  line-height: 1.15;
}

.td-login-card-head p {
  margin: 10px 0 0;
  color: var(--td-muted);
}

.td-form {
  display: grid;
  gap: 16px;
}

.td-field {
  display: grid;
  gap: 8px;
  color: var(--td-text-soft);
  font-size: 0.86rem;
  font-weight: 650;
}

.td-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.td-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  color: var(--td-text);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-sm);
  outline: none;
  background: rgba(255, 255, 255, 0.86);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.td-input-wrap input::placeholder {
  color: var(--td-faint);
}

.td-input-wrap input:focus {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.td-input-wrap input:-webkit-autofill,
.td-input-wrap input:-webkit-autofill:hover,
.td-input-wrap input:-webkit-autofill:focus,
.td-input-wrap input:-webkit-autofill:active {
  border-color: var(--td-border);
  caret-color: var(--td-text);
  -webkit-text-fill-color: var(--td-text);
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.86) inset;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.86) inset;
  transition: background-color 9999s ease-out, color 9999s ease-out;
}

.td-input-wrap input:-webkit-autofill:focus {
  border-color: rgba(124, 58, 237, 0.5);
  -webkit-box-shadow:
    0 0 0 1000px rgba(255, 255, 255, 0.96) inset,
    0 0 0 4px rgba(124, 58, 237, 0.12);
  box-shadow:
    0 0 0 1000px rgba(255, 255, 255, 0.96) inset,
    0 0 0 4px rgba(124, 58, 237, 0.12);
}

.td-input-wrap--password input {
  padding-right: 48px;
}

.td-input-icon {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  color: #8b95a7;
  pointer-events: none;
}

.td-password-reveal {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--td-muted);
  border: 1px solid rgba(120, 130, 170, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateY(-50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 170ms var(--td-ease-glass),
    transform 170ms var(--td-ease-glass),
    color 170ms ease,
    background 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.td-password-reveal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.td-password-reveal:hover,
.td-password-reveal:focus-visible {
  color: var(--td-primary);
  border-color: rgba(124, 58, 237, 0.24);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(98, 117, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.td-password-reveal:active {
  transform: translateY(calc(-50% + 1px)) scale(0.98);
  box-shadow: 0 4px 12px rgba(98, 117, 255, 0.12);
}

.td-password-eye {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
}

.td-password-reveal.is-showing .td-password-eye--show,
.td-password-reveal:not(.is-showing) .td-password-eye--hide {
  display: none;
}

.td-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 2px;
  font-size: 0.86rem;
}

.td-form-row a,
.td-inline-link,
.td-login-bottom a,
.td-create-link {
  color: var(--td-primary);
  font-weight: 700;
}

.td-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.td-inline-link:hover {
  text-decoration: underline;
}

.td-inline-link:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.35);
  outline-offset: 3px;
  border-radius: 6px;
}

.td-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--td-muted);
}

.td-checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--td-primary);
}

.td-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--td-muted);
  font-size: 0.85rem;
}

.td-divider::before,
.td-divider::after {
  content: "";
  height: 1px;
  background: var(--td-border);
}

.td-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.td-social-icon {
  width: 20px;
  height: 20px;
  color: var(--td-text);
}

.td-social-icon--google {
  color: #4285f4;
}

.td-login-bottom {
  margin: 20px 0 0;
  color: var(--td-muted);
  text-align: center;
  font-size: 0.92rem;
}

.td-login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  width: min(100% - 32px, 900px);
  min-height: 76px;
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--td-muted);
  font-size: 0.82rem;
}

.td-login-footer a:hover {
  color: var(--td-primary);
}

.td-footer-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--td-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.td-footer-link:hover {
  color: var(--td-primary);
}

.td-footer-link:focus,
.td-footer-link:focus-visible,
.td-footer-link:active {
  outline: none;
  box-shadow: none;
  background: transparent;
}

.td-lite-modal[hidden] {
  display: none;
}

.td-lite-modal {
  position: fixed;
  inset: 0;
  z-index: var(--studerria-layer-auth-lite-modal, 1160);
  display: grid;
  place-items: center;
  padding: 20px;
}

.td-lite-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 36, 0.22);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.td-lite-sheet {
  position: relative;
  width: min(100%, 620px);
  max-height: min(78vh, 720px);
  padding: 24px;
  overflow: auto;
  border-radius: 28px;
  transform: translateY(8px) scale(0.985);
  opacity: 0;
  transition: opacity 180ms var(--td-ease-glass), transform 180ms var(--td-ease-glass);
}

.td-lite-modal.is-open .td-lite-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.td-lite-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.td-lite-kicker {
  margin: 0 0 8px;
  color: var(--td-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.td-lite-sheet-head h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.td-lite-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: var(--td-muted);
  border: 1px solid var(--td-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 1.35rem;
  line-height: 1;
}

.td-lite-release-list {
  display: grid;
  gap: 10px;
}

.td-lite-release {
  padding: 14px 16px;
  border: 1px solid var(--td-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.td-lite-release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--td-text);
}

.td-lite-release-head span,
.td-lite-empty {
  color: var(--td-muted);
}

.td-lite-release ul {
  margin: 0;
  padding-left: 18px;
  color: var(--td-text-soft);
}

.td-lite-release li + li {
  margin-top: 5px;
}

.td-lite-sheet-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.td-lite-sheet-footer .td-secondary-button {
  min-height: 40px;
  padding: 0 14px;
}

.td-lite-release-list--full {
  max-height: none;
  padding-right: 0;
}

.td-forgot-password-sheet {
  width: min(100%, 390px);
  max-height: none;
  padding: 22px;
}

.td-forgot-password-text {
  margin: 0;
  color: var(--td-text-soft);
  line-height: 1.5;
}

.td-language-pill {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--td-muted);
  font-size: 0.82rem;
}

.td-legal-main {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: 44px 0 18px;
}

.td-legal-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 24px;
  box-shadow: 0 20px 46px rgba(124, 58, 237, 0.14);
}

.td-legal-card {
  padding: clamp(24px, 4vw, 42px);
}

.td-legal-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.td-legal-back {
  width: fit-content;
  margin-bottom: 6px;
  color: var(--td-primary);
  font-weight: 750;
}

.td-legal-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.td-legal-head p {
  max-width: 720px;
  margin: 0;
  color: var(--td-text-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.td-legal-head span {
  color: var(--td-muted);
  font-size: 0.9rem;
}

.td-legal-sections {
  display: grid;
  gap: 16px;
}

.td-legal-section {
  padding: 18px 0 0;
  border-top: 1px solid var(--td-border);
}

.td-legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.td-legal-section p,
.td-legal-section li {
  color: var(--td-text-soft);
  line-height: 1.62;
}

.td-legal-section p,
.td-legal-section ul {
  margin: 0;
}

.td-legal-section ul {
  padding-left: 20px;
}

.td-legal-section li + li {
  margin-top: 8px;
}

/* App shell */
.td-app-shell {
  width: min(100% - 32px, 1460px);
  margin: 22px auto;
}

.td-app-frame {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
}

.td-topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--td-border);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(20px);
}

.td-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--td-primary);
  font-size: 1.04rem;
  font-weight: 800;
  white-space: nowrap;
}

.td-hub-theme-toggle {
  position: absolute;
  top: clamp(24px, 4vw, 42px);
  right: clamp(24px, 4vw, 42px);
  min-height: 38px;
  padding: 0 14px;
  color: var(--td-text-soft);
  border: 1px solid var(--td-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  font-weight: 750;
}

.td-mobile-topbar {
  display: none;
}

.td-mobile-brand,
.td-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--td-text);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.td-sidebar {
  min-width: 0;
  padding: 16px 0 16px 16px;
  z-index: 20;
}

.td-sidebar-inner {
  position: sticky;
  top: 22px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 76px);
  min-height: 650px;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46)),
    var(--td-glass-sidebar);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 24px 60px rgba(47, 56, 95, 0.1);
  backdrop-filter: blur(16px) saturate(1.14);
}

.td-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 18px;
}

.td-sidebar-brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.td-sidebar-brand-copy strong {
  color: var(--td-text);
  font-size: 0.95rem;
  line-height: 1.05;
}

.td-sidebar-brand-copy small {
  color: var(--td-muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
}

.td-sidebar-theme {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 13px;
}

.td-sidebar-nav {
  display: grid;
  gap: 4px;
  padding: 8px 0 0;
}

.td-sidebar-nav--secondary {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 130, 170, 0.12);
}

.td-sidebar-section-title {
  padding: 0 10px 6px;
  color: var(--td-faint);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.td-sidebar-link,
.td-sidebar-logout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 0 10px;
  color: var(--td-text-soft);
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.td-sidebar-link:hover,
.td-sidebar-logout:hover {
  color: var(--td-primary-hover);
  border-color: rgba(120, 130, 170, 0.16);
  background: rgba(255, 255, 255, 0.58);
}

.td-sidebar-link.is-active {
  color: #364fc7;
  border-color: rgba(98, 117, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(98, 117, 255, 0.16), rgba(140, 114, 255, 0.12)),
    rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 26px rgba(98, 117, 255, 0.12);
}

.td-sidebar-link.is-active::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8aa0ff, #b68cff);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
  opacity: 0.72;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.td-sidebar-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.td-sidebar-link:hover .nav-icon,
.td-sidebar-logout:hover .nav-icon {
  opacity: 0.95;
  transform: translateY(-1px) scale(1.015);
}

.td-sidebar-link.is-active .nav-icon,
.td-sidebar-link[aria-current="page"] .nav-icon,
.td-sidebar-logout:focus-visible .nav-icon {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(150, 130, 255, 0.25));
}

.td-sidebar-spacer {
  flex: 1 1 auto;
  min-height: 18px;
}

.td-sidebar-footer {
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid rgba(120, 130, 170, 0.12);
}

.td-sidebar-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 9px;
  border: 1px solid rgba(120, 130, 170, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.td-sidebar-user .td-user-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-sidebar-logout {
  justify-content: flex-start;
  width: 100%;
  color: var(--td-muted);
}

.td-sidebar-backdrop {
  display: none;
}

.td-navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.td-navlinks::-webkit-scrollbar {
  display: none;
}

.td-navlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--td-muted);
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.td-navlink:hover {
  color: var(--td-primary);
  background: rgba(243, 232, 255, 0.5);
}

.td-navlink.is-active {
  color: var(--td-primary);
  background: rgba(243, 232, 255, 0.86);
}

.td-navlink-icon {
  width: 17px;
  height: 17px;
}

.td-nav-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  min-width: 0;
}

.td-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(210px, 18vw);
  min-width: 150px;
  height: 42px;
}

.td-search input {
  width: 100%;
  height: 100%;
  padding: 0 14px 0 40px;
  color: var(--td-text);
  border: 1px solid var(--td-border);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.72);
}

.td-search input:focus {
  border-color: rgba(124, 58, 237, 0.42);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.td-search-icon {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 17px;
  color: #8b95a7;
  pointer-events: none;
}

.td-user-chip {
  height: 42px;
  padding: 0 10px 0 7px;
  border-radius: 999px;
}

.td-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--td-primary-gradient);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.2);
}

.td-user-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.td-user-copy strong {
  font-size: 0.82rem;
  line-height: 1;
}

.td-user-copy small {
  color: var(--td-muted);
  font-size: 0.68rem;
  line-height: 1;
}

.td-chevron-icon {
  width: 14px;
  height: 14px;
  color: var(--td-muted);
}

.td-app-content {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
}

.td-dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.td-dashboard-header h1 {
  margin: 0;
  color: var(--td-text);
  font-size: clamp(1.8rem, 3.3vw, 2.45rem);
  line-height: 1.08;
}

.td-dashboard-header p {
  margin: 8px 0 0;
  color: var(--td-muted);
  font-size: 1rem;
}

.td-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.td-stat-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 136px;
  padding: 20px;
}

.td-stat-card > span:not(.td-stat-icon) {
  color: var(--td-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.td-stat-card strong {
  color: var(--td-text);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
}

.td-stat-card small {
  color: var(--td-muted);
  font-size: 0.84rem;
}

.td-stat-card small em {
  color: #ef4444;
  font-style: normal;
  font-weight: 750;
}

.td-stat-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--td-primary);
}

.td-stat-svg {
  width: 20px;
  height: 20px;
}

.td-dashboard-grid,
.td-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
  margin-bottom: 18px;
}

.td-dashboard-card {
  padding: 20px;
}

.td-schedule-list,
.td-task-list {
  display: grid;
  gap: 10px;
}

.td-schedule-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 0 12px;
  border: 1px solid rgba(120, 130, 170, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.td-schedule-row.is-current {
  border-color: rgba(124, 58, 237, 0.2);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.11), rgba(243, 232, 255, 0.42));
}

.td-schedule-row.is-current::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: var(--td-primary-gradient);
}

.td-schedule-row time {
  color: var(--td-text-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.td-schedule-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.td-schedule-row strong,
.td-task-row strong {
  overflow: hidden;
  color: var(--td-text);
  font-size: 0.92rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-schedule-row span,
.td-task-row span {
  color: var(--td-muted);
  font-size: 0.82rem;
}

.td-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--td-muted);
  background: rgba(243, 244, 246, 0.86);
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
}

.td-badge--violet {
  color: var(--td-primary);
  background: rgba(243, 232, 255, 0.96);
}

.td-task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  border-bottom: 1px solid rgba(120, 130, 170, 0.1);
}

.td-task-row:last-child {
  border-bottom: 0;
}

.td-task-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.td-task-check {
  width: 19px;
  height: 19px;
  color: #94a3b8;
}

.td-task-row time {
  color: var(--td-muted);
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
}

.td-task-row time.is-hot {
  color: #ef4444;
}

.td-create-link {
  display: inline-flex;
  margin: 16px 0 0 30px;
  font-size: 0.88rem;
}

.td-progress-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.td-progress-ring {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 56%, transparent 57%),
    conic-gradient(var(--td-primary) 0 72%, rgba(196, 181, 253, 0.45) 72% 100%);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12), 0 16px 38px rgba(124, 58, 237, 0.1);
}

.td-progress-ring span {
  color: var(--td-text);
  font-size: 1.3rem;
  font-weight: 800;
}

.td-progress-content {
  display: grid;
  gap: 12px;
}

.td-progress-content > strong {
  color: #16a34a;
  font-size: 0.88rem;
}

.td-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--td-muted);
  font-size: 0.88rem;
}

.td-progress-row b {
  color: var(--td-text);
  font-size: 0.9rem;
}

.td-bar-chart {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  min-height: 184px;
}

.td-bar-axis {
  display: grid;
  color: var(--td-muted);
  font-size: 0.78rem;
}

.td-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(26px, 1fr));
  align-items: end;
  gap: 14px;
  min-height: 176px;
  padding-top: 8px;
  border-bottom: 1px solid rgba(120, 130, 170, 0.16);
  background-image: linear-gradient(to top, rgba(120, 130, 170, 0.12) 1px, transparent 1px);
  background-size: 100% 44px;
}

.td-bars span {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  height: var(--bar);
  min-height: 44px;
  border-radius: 10px 10px 4px 4px;
  background: rgba(196, 181, 253, 0.75);
}

.td-bars span.is-active {
  background: var(--td-primary-gradient);
}

.td-bars b {
  position: absolute;
  bottom: -28px;
  color: var(--td-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.td-ai-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(243, 232, 255, 0.74), rgba(239, 246, 255, 0.72));
  box-shadow: var(--td-shadow-soft);
}

.td-ai-icon {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  color: var(--td-primary);
}

.td-ai-svg {
  width: 22px;
  height: 22px;
}

.td-ai-strip h2 {
  margin: 0;
  font-size: 1rem;
}

.td-ai-strip p {
  margin: 4px 0 0;
  color: var(--td-muted);
  font-size: 0.9rem;
}

.td-arrow-button {
  color: var(--td-primary);
  border: 1px solid rgba(124, 58, 237, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

/* Schedule */
.td-schedule-board {
  padding: 24px;
}

.td-schedule-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--td-border);
}

.td-schedule-head h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.td-schedule-head p {
  margin: 10px 0 0;
  color: var(--td-text-soft);
  font-weight: 700;
}

.td-schedule-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.td-week-header {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(96px, 1fr));
  align-items: center;
  min-width: 920px;
  padding: 20px 0 16px;
}

.td-week-header div {
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--td-muted);
}

.td-week-header small {
  font-size: 0.78rem;
  font-weight: 700;
}

.td-week-header strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--td-text);
  font-size: 0.9rem;
}

.td-week-header .is-active small {
  color: var(--td-primary);
}

.td-week-header .is-active strong {
  color: #fff;
  background: var(--td-primary-gradient);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.25);
}

.td-calendar-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
}

.td-calendar-scroll::-webkit-scrollbar {
  height: 10px;
}

.td-calendar-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
}

.td-calendar-grid {
  --hour-height: 56px;
  position: relative;
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(96px, 1fr));
  min-width: 920px;
  border-top: 1px solid rgba(120, 130, 170, 0.12);
  border-bottom: 1px solid rgba(120, 130, 170, 0.12);
}

.td-time-axis {
  display: grid;
  grid-template-rows: repeat(11, var(--hour-height));
  color: var(--td-muted);
  font-size: 0.82rem;
}

.td-time-axis span {
  transform: translateY(-0.55em);
}

.td-day-lane {
  position: relative;
  min-height: calc(var(--hour-height) * 11);
  border-left: 1px solid rgba(120, 130, 170, 0.12);
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-height) - 1px), rgba(120, 130, 170, 0.12) calc(var(--hour-height) - 1px), rgba(120, 130, 170, 0.12) var(--hour-height)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
}

.td-day-lane.is-today {
  background:
    linear-gradient(180deg, rgba(243, 232, 255, 0.26), transparent 44%),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-height) - 1px), rgba(120, 130, 170, 0.12) calc(var(--hour-height) - 1px), rgba(120, 130, 170, 0.12) var(--hour-height));
}

.td-current-time {
  position: absolute;
  left: 64px;
  right: 0;
  top: calc(var(--hour-height) * 2.5);
  z-index: 3;
  height: 1px;
  background: #ef4444;
}

.td-current-time span {
  position: absolute;
  left: -58px;
  top: -10px;
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 800;
}

.td-event {
  position: absolute;
  left: 10px;
  right: 10px;
  top: calc(var(--start) * var(--hour-height));
  min-height: 58px;
  height: calc(var(--span) * var(--hour-height));
  padding: 10px 11px;
  overflow: hidden;
  border: 1px solid rgba(120, 130, 170, 0.15);
  border-left-width: 3px;
  border-radius: 13px;
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.07);
}

.td-event span,
.td-event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-event strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--td-text);
  font-size: 0.78rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.td-event span {
  margin-top: 5px;
  color: var(--td-text-soft);
  font-size: 0.72rem;
}

.td-event small {
  margin-top: 2px;
  color: var(--td-muted);
  font-size: 0.7rem;
}

.td-event--lecture {
  border-left-color: #7c3aed;
  background: rgba(243, 232, 255, 0.82);
}

.td-event--practice {
  border-left-color: #10b981;
  background: rgba(236, 253, 245, 0.9);
}

.td-event--lab {
  border-left-color: #d946ef;
  background: rgba(253, 242, 248, 0.9);
}

.td-event--other {
  border-left-color: #3b82f6;
  background: rgba(239, 246, 255, 0.92);
}

.td-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 18px;
  color: var(--td-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.td-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.td-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.td-dot--lecture {
  background: #7c3aed;
}

.td-dot--practice {
  background: #10b981;
}

.td-dot--lab {
  background: #d946ef;
}

.td-dot--other {
  background: #3b82f6;
}

.td-schedule-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.td-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
  padding: 4px 4px 0;
}

.td-page-kicker {
  margin: 0 0 8px;
  color: var(--td-primary);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.td-page-header h1 {
  margin: 0;
  color: var(--td-text);
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.td-page-header p:not(.td-page-kicker) {
  max-width: 46rem;
  margin: 10px 0 0;
  color: var(--td-muted);
  font-size: 0.98rem;
}

.td-page-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  gap: 8px;
}

.td-floating-next {
  position: sticky;
  top: 18px;
  z-index: 8;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: min(100%, 420px);
  min-height: 42px;
  margin: -4px 4px -2px 0;
  padding: 8px 13px 8px 10px;
  color: var(--td-text-soft);
  border: 1px solid rgba(98, 117, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(239, 246, 255, 0.58)),
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 46px rgba(47, 56, 95, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px) saturate(1.14);
  animation: tdFloatingStatusIn 360ms var(--td-ease-glass) both;
}

.td-floating-next span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  color: #3f55dc;
  border: 1px solid rgba(98, 117, 255, 0.18);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.td-floating-next strong {
  overflow: hidden;
  color: var(--td-text);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-floating-next.is-now {
  border-color: rgba(69, 192, 164, 0.24);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.7), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.56);
}

.td-floating-next.is-now span {
  color: #047857;
  border-color: rgba(69, 192, 164, 0.2);
  background: rgba(236, 253, 245, 0.78);
}

@keyframes tdFloatingStatusIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.td-button-cluster {
  display: inline-flex;
  gap: 6px;
  padding: 3px;
  border: 1px solid var(--td-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
}

.td-button-cluster .td-icon-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-color: transparent;
  background: transparent;
}

.td-day-switcher {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.58);
}

.td-day-pill {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: start;
  gap: 5px;
  min-height: 92px;
  padding: 14px;
  color: var(--td-text-soft);
  border: 1px solid rgba(120, 130, 170, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition:
    transform 220ms var(--td-ease-glass),
    border-color 220ms var(--td-ease-glass),
    background 220ms var(--td-ease-glass),
    box-shadow 220ms var(--td-ease-glass),
    color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.td-day-pill::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(135deg, rgba(98, 117, 255, 0.12), rgba(255, 255, 255, 0.18));
  transition: opacity 220ms var(--td-ease-glass), transform 220ms var(--td-ease-glass);
  transform: translateY(3px);
}

.td-day-pill:hover {
  transform: translateY(-1px) scale(1.004);
  border-color: rgba(98, 117, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 30px rgba(47, 56, 95, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.td-day-pill:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.td-day-pill:active {
  transform: translateY(1px) scale(0.988);
  box-shadow: 0 5px 12px rgba(47, 56, 95, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition-duration: 120ms;
}

.td-day-pill span {
  color: var(--td-muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.td-day-pill strong {
  color: var(--td-text);
  font-size: 1.28rem;
  line-height: 1;
}

.td-day-pill small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--td-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.td-day-pill.has-classes small::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6f83ff, #8c72ff);
  box-shadow: 0 0 0 3px rgba(98, 117, 255, 0.12);
}

.td-day-pill.is-active {
  color: #3343b8;
  border-color: rgba(98, 117, 255, 0.42);
  background:
    linear-gradient(145deg, rgba(98, 117, 255, 0.24), rgba(185, 170, 255, 0.18)),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 18px 42px rgba(98, 117, 255, 0.17);
  backdrop-filter: blur(14px) saturate(1.08);
}

.td-day-pill.is-active span,
.td-day-pill.is-active small {
  color: #465bd9;
}

.td-day-pill.is-active.has-classes small::before {
  background: linear-gradient(135deg, #4058f4, #9b6dff);
  box-shadow: 0 0 0 4px rgba(98, 117, 255, 0.16), 0 0 14px rgba(98, 117, 255, 0.24);
}

.td-day-pill.is-today::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 13px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #5b7cff;
  box-shadow: 0 0 0 4px rgba(98, 117, 255, 0.14);
}

.td-day-pill.is-quiet {
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.td-day-pill.is-quiet small {
  color: var(--td-faint);
}

.td-schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.td-schedule-panel,
.td-overview-card,
.td-empty-state {
  min-width: 0;
  padding: 20px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.58);
}

.td-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.td-section-head h2 {
  margin: 0;
  color: var(--td-text);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.td-section-head p {
  margin: 5px 0 0;
  color: var(--td-muted);
  font-size: 0.86rem;
}

.td-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  color: #2563eb;
  border: 1px solid rgba(98, 117, 255, 0.18);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 760;
}

.td-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #5b7cff;
  box-shadow: 0 0 0 4px rgba(98, 117, 255, 0.12);
}

.td-lesson-list {
  display: grid;
  gap: 11px;
}

.td-lesson-card {
  --lesson-accent: #7c8cff;
  position: relative;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 14px 16px 14px 20px;
  overflow: hidden;
  border: 1px solid rgba(120, 130, 170, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 36px rgba(47, 56, 95, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.td-lesson-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 4px;
  border-radius: 999px;
  background: var(--lesson-accent);
}

.td-lesson-card:hover {
  transform: translateY(-1px);
  border-color: rgba(98, 117, 255, 0.24);
  box-shadow: 0 20px 48px rgba(47, 56, 95, 0.09);
}

.td-lesson-card.is-now {
  border-color: rgba(98, 117, 255, 0.3);
  background:
    linear-gradient(135deg, rgba(98, 117, 255, 0.12), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.56);
  box-shadow: 0 20px 50px rgba(98, 117, 255, 0.14);
}

.td-lesson-card time {
  color: var(--td-text-soft);
  font-size: 0.88rem;
  font-weight: 760;
  white-space: nowrap;
}

.td-lesson-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.td-lesson-main strong {
  overflow: hidden;
  color: var(--td-text);
  font-size: 1rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-lesson-main span {
  overflow: hidden;
  color: var(--td-muted);
  font-size: 0.86rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-lesson-meta {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  min-width: 176px;
}

.td-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--td-muted);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.td-inline-icon {
  width: 15px;
  height: 15px;
}

.td-lesson-card--lecture {
  --lesson-accent: #6f83ff;
}

.td-lesson-card--practice {
  --lesson-accent: #8c72ff;
}

.td-lesson-card--seminar {
  --lesson-accent: #67a7ff;
}

.td-lesson-card--lab {
  --lesson-accent: #45c0a4;
}

.td-badge--blue {
  color: #3553d8;
  background: rgba(239, 246, 255, 0.92);
}

.td-badge--green {
  color: #047857;
  background: rgba(236, 253, 245, 0.92);
}

.td-badge--soft {
  color: #4f46e5;
  background: rgba(238, 242, 255, 0.92);
}

.td-schedule-aside {
  display: grid;
  gap: 14px;
}

.td-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.td-overview-grid span {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(120, 130, 170, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.td-overview-grid strong {
  color: var(--td-text);
  font-size: 1.35rem;
  line-height: 1;
}

.td-overview-grid small {
  color: var(--td-muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.td-next-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(98, 117, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(98, 117, 255, 0.1), rgba(255, 255, 255, 0.45));
}

.td-next-icon,
.td-empty-orb {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(98, 117, 255, 0.12);
  border-radius: 13px;
  color: #526bff;
  background: rgba(239, 246, 255, 0.52);
}

.td-next-card-icon {
  width: 17px;
  height: 17px;
}

.td-next-card strong,
.td-homework-item strong {
  display: block;
  color: var(--td-text);
  font-size: 0.92rem;
}

.td-next-card span,
.td-homework-item span {
  display: block;
  margin-top: 4px;
  color: var(--td-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.td-homework-item {
  padding: 14px;
  border: 1px solid rgba(120, 130, 170, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.td-empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.td-empty-state h2 {
  margin: 0;
  color: var(--td-text);
  font-size: 0.98rem;
}

.td-empty-state p {
  margin: 5px 0 0;
  color: var(--td-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.td-empty-icon {
  width: 19px;
  height: 19px;
}

@media (max-width: 1080px) {
  .td-app-frame {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .td-sidebar {
    padding-left: 12px;
  }

  .td-sidebar-inner {
    padding: 14px 10px;
  }

  .td-topnav {
    grid-template-columns: 1fr auto;
  }

  .td-navlinks {
    grid-column: 1 / -1;
    order: 3;
    padding-bottom: 12px;
  }

  .td-nav-actions {
    min-width: 0;
  }

  .td-search {
    width: 180px;
  }

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

  .td-dashboard-grid,
  .td-lower-grid,
  .td-system-panel,
  .td-sidebar-showcase,
  .td-schedule-layout {
    grid-template-columns: 1fr;
  }

  .td-lesson-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .td-lesson-meta {
    grid-column: 2;
    justify-content: start;
    min-width: 0;
  }

  .td-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .td-hub-shell {
    width: min(100% - 24px, 1120px);
    padding: 28px 0;
  }

  .td-hub-hero {
    padding: 28px;
  }

  .td-hub-brand {
    margin-bottom: 34px;
  }

  .td-hub-card {
    min-height: 132px;
  }

  .td-login-main {
    width: min(100% - 24px, 520px);
    padding-top: 34px;
  }

  .td-login-card {
    padding: 24px;
    border-radius: 26px;
  }

  .td-form-row {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .td-social-grid {
    grid-template-columns: 1fr;
  }

  .td-app-shell {
    width: min(100% - 20px, 1240px);
    margin: 10px auto;
  }

  .td-app-frame {
    display: block;
    min-height: calc(100vh - 20px);
    border-radius: 26px;
  }

  .td-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--td-border);
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(18px);
  }

  .td-mobile-brand {
    min-width: 0;
    font-size: 0.94rem;
  }

  .td-sidebar {
    position: fixed;
    inset: 12px auto 12px 12px;
    width: min(306px, calc(100vw - 32px));
    padding: 0;
    transform: translateX(calc(-100% - 18px));
    transition: transform 220ms ease;
    z-index: 60;
  }

  .td-sidebar-inner {
    position: static;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }

  body.td-sidebar-open .td-sidebar {
    transform: translateX(0);
  }

  .td-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    opacity: 0;
    pointer-events: none;
    background: rgba(9, 11, 25, 0.28);
    backdrop-filter: blur(4px);
    transition: opacity 180ms ease;
  }

  body.td-sidebar-open .td-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .td-topnav {
    gap: 12px;
    padding: 12px 14px 0;
  }

  .td-user-copy,
  .td-chevron-icon {
    display: none;
  }

  .td-search {
    display: none;
  }

  .td-app-content {
    padding: 18px 14px;
  }

  .td-page-header {
    align-items: start;
    flex-direction: column;
  }

  .td-page-actions {
    justify-content: start;
    width: 100%;
  }

  .td-page-header p:not(.td-page-kicker) {
    max-width: 20rem;
  }

  .td-stats-grid {
    grid-template-columns: 1fr;
  }

  .td-dashboard-card {
    padding: 16px;
  }

  .td-schedule-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .td-schedule-row .td-badge {
    grid-column: 2;
    justify-self: start;
  }

  .td-task-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .td-task-row time {
    grid-column: 2;
    justify-self: start;
  }

  .td-progress-layout,
  .td-ai-strip {
    grid-template-columns: 1fr;
  }

  .td-progress-ring {
    justify-self: center;
  }

  .td-arrow-button {
    justify-self: end;
  }

  .td-schedule-board {
    padding: 16px;
  }

  .td-schedule-head {
    flex-direction: column;
  }

  .td-schedule-controls {
    justify-content: start;
  }

  .td-day-switcher {
    grid-template-columns: repeat(7, 112px);
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .td-floating-next {
    position: static;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 18px;
  }

  .td-floating-next strong {
    white-space: normal;
  }

  .td-day-switcher::-webkit-scrollbar {
    height: 8px;
  }

  .td-day-switcher::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(98, 117, 255, 0.18);
  }

  .td-lesson-card {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
  }

  .td-lesson-meta {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .td-empty-state {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .td-codex-cursor-canvas {
    display: none;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --td-bg: #101123;
  --td-bg-2: #17182b;
  --td-surface: rgba(22, 24, 43, 0.76);
  --td-surface-strong: rgba(25, 27, 48, 0.9);
  --td-border: rgba(226, 232, 240, 0.12);
  --td-border-strong: rgba(226, 232, 240, 0.2);
  --td-text: #f8fafc;
  --td-text-soft: #dbe3ef;
  --td-muted: #a8b3c7;
  --td-faint: #7b879b;
  --td-glass-sidebar: rgba(18, 21, 38, 0.64);
  --td-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.2);
  --td-shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.22), 0 1px 4px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] body.td-page {
  background:
    radial-gradient(38rem 34rem at 0% 0%, rgba(124, 58, 237, 0.12), transparent 72%),
    radial-gradient(42rem 36rem at 100% 100%, rgba(59, 130, 246, 0.11), transparent 74%),
    radial-gradient(42rem 32rem at 52% 35%, rgba(255, 255, 255, 0.035), transparent 76%),
    linear-gradient(180deg, #0f1024 0%, #14162c 52%, #0d1224 100%);
}

html[data-theme="dark"] body.td-page::before {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(226, 232, 240, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.06) 1px, transparent 1px);
}

html[data-theme="dark"] .td-codex-cursor-canvas {
  opacity: 0.34;
  color: rgba(191, 169, 255, 0.72);
  mix-blend-mode: screen;
}

html[data-theme="dark"] .td-topnav {
  border-bottom-color: rgba(226, 232, 240, 0.1);
  background: rgba(15, 16, 36, 0.58);
}

html[data-theme="dark"] .td-mobile-topbar {
  border-bottom-color: rgba(226, 232, 240, 0.1);
  background: rgba(15, 18, 34, 0.62);
}

html[data-theme="dark"] .td-sidebar-inner {
  border-color: rgba(226, 232, 240, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    var(--td-glass-sidebar);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 26px 70px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .td-sidebar-sample {
  border-color: rgba(226, 232, 240, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(18, 21, 38, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 26px 70px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .td-sidebar-nav--secondary,
html[data-theme="dark"] .td-sidebar-footer {
  border-color: rgba(226, 232, 240, 0.1);
}

html[data-theme="dark"] .td-sidebar-link:hover,
html[data-theme="dark"] .td-sidebar-logout:hover {
  color: #dbe4ff;
  border-color: rgba(167, 139, 250, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

html[data-theme="dark"] .td-sidebar-link.is-active {
  color: #dbe4ff;
  border-color: rgba(139, 164, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(98, 117, 255, 0.22), rgba(167, 139, 250, 0.12)),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(98, 117, 255, 0.12);
}

html[data-theme="dark"] .td-sidebar-user {
  border-color: rgba(226, 232, 240, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="dark"] .td-hub-mark,
html[data-theme="dark"] .td-brand-mark,
html[data-theme="dark"] .td-login-logo,
html[data-theme="dark"] .td-card-icon,
html[data-theme="dark"] .td-stat-icon,
html[data-theme="dark"] .td-ai-icon {
  border-color: rgba(139, 164, 255, 0.12);
  background: linear-gradient(145deg, rgba(139, 164, 255, 0.1), rgba(124, 58, 237, 0.16));
}

html[data-theme="dark"] .td-surface-card {
  border-color: rgba(139, 164, 255, 0.08);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .td-secondary-button,
html[data-theme="dark"] .td-small-button,
html[data-theme="dark"] .td-icon-button,
html[data-theme="dark"] .td-language-pill,
html[data-theme="dark"] .td-user-chip,
html[data-theme="dark"] .td-hub-theme-toggle {
  color: var(--td-text-soft);
  border-color: rgba(139, 164, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .td-primary-button::before,
html[data-theme="dark"] .td-secondary-button::before,
html[data-theme="dark"] .td-small-button::before,
html[data-theme="dark"] .td-icon-button::before,
html[data-theme="dark"] .td-arrow-button::before,
html[data-theme="dark"] .td-language-pill::before,
html[data-theme="dark"] .td-user-chip::before,
html[data-theme="dark"] .td-day-pill::before {
  background: linear-gradient(135deg, rgba(139, 164, 255, 0.11), rgba(167, 139, 250, 0.08));
  transform: none;
}

html[data-theme="dark"] .td-secondary-button:hover,
html[data-theme="dark"] .td-small-button:hover,
html[data-theme="dark"] .td-icon-button:hover,
html[data-theme="dark"] .td-language-pill:hover,
html[data-theme="dark"] .td-user-chip:hover,
html[data-theme="dark"] .td-hub-theme-toggle:hover {
  color: #ddd6fe;
  border-color: rgba(139, 164, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(124, 58, 237, 0.18)),
    rgba(124, 58, 237, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .td-search input,
html[data-theme="dark"] .td-input-wrap input {
  color: var(--td-text);
  border-color: rgba(226, 232, 240, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .td-input-wrap input:-webkit-autofill,
html[data-theme="dark"] .td-input-wrap input:-webkit-autofill:hover,
html[data-theme="dark"] .td-input-wrap input:-webkit-autofill:focus,
html[data-theme="dark"] .td-input-wrap input:-webkit-autofill:active {
  border-color: rgba(226, 232, 240, 0.12);
  caret-color: var(--td-text);
  -webkit-text-fill-color: var(--td-text);
  -webkit-box-shadow: 0 0 0 1000px rgb(40, 42, 61) inset;
  box-shadow: 0 0 0 1000px rgb(40, 42, 61) inset;
}

html[data-theme="dark"] .td-input-wrap input:-webkit-autofill:focus {
  border-color: rgba(124, 58, 237, 0.5);
  -webkit-box-shadow:
    0 0 0 1000px rgb(40, 42, 61) inset,
    0 0 0 4px rgba(124, 58, 237, 0.22);
  box-shadow:
    0 0 0 1000px rgb(40, 42, 61) inset,
    0 0 0 4px rgba(124, 58, 237, 0.22);
}

html[data-theme="dark"] .td-password-reveal,
html[data-theme="dark"] .td-lite-close,
html[data-theme="dark"] .td-lite-release {
  border-color: rgba(139, 164, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .td-password-reveal:hover,
html[data-theme="dark"] .td-password-reveal:focus-visible {
  color: #ddd6fe;
  border-color: rgba(139, 164, 255, 0.22);
  background: rgba(124, 58, 237, 0.16);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .td-lite-modal-backdrop {
  background: rgba(5, 7, 18, 0.42);
}

html[data-theme="dark"] .td-search input::placeholder,
html[data-theme="dark"] .td-input-wrap input::placeholder {
  color: rgba(219, 227, 239, 0.52);
}

html[data-theme="dark"] .td-divider::before,
html[data-theme="dark"] .td-divider::after,
html[data-theme="dark"] .td-task-row,
html[data-theme="dark"] .td-schedule-head,
html[data-theme="dark"] .td-week-header,
html[data-theme="dark"] .td-calendar-grid {
  border-color: rgba(226, 232, 240, 0.1);
}

html[data-theme="dark"] .td-system-list span,
html[data-theme="dark"] .td-schedule-row,
html[data-theme="dark"] .td-badge,
html[data-theme="dark"] .td-button-cluster,
html[data-theme="dark"] .td-day-switcher,
html[data-theme="dark"] .td-day-pill,
html[data-theme="dark"] .td-schedule-panel,
html[data-theme="dark"] .td-overview-card,
html[data-theme="dark"] .td-empty-state,
html[data-theme="dark"] .td-lesson-card,
html[data-theme="dark"] .td-overview-grid span,
html[data-theme="dark"] .td-homework-item {
  border-color: rgba(139, 164, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

html[data-theme="dark"] .td-day-switcher,
html[data-theme="dark"] .td-schedule-panel,
html[data-theme="dark"] .td-overview-card,
html[data-theme="dark"] .td-empty-state {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(19, 22, 40, 0.62);
}

html[data-theme="dark"] .td-day-pill:hover,
html[data-theme="dark"] .td-lesson-card:hover {
  border-color: rgba(139, 164, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.075);
}

html[data-theme="dark"] .td-day-pill.is-active,
html[data-theme="dark"] .td-lesson-card.is-now {
  color: #dbe4ff;
  border-color: rgba(139, 164, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(98, 117, 255, 0.2), rgba(167, 139, 250, 0.11)),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 44px rgba(98, 117, 255, 0.11);
}

html[data-theme="dark"] .td-day-pill {
  box-shadow: none;
}

html[data-theme="dark"] .td-day-pill:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .td-live-pill,
html[data-theme="dark"] .td-next-icon,
html[data-theme="dark"] .td-empty-orb,
html[data-theme="dark"] .td-next-card {
  border-color: rgba(139, 164, 255, 0.16);
  background: rgba(98, 117, 255, 0.12);
}

html[data-theme="dark"] .td-floating-next {
  color: var(--td-text-soft);
  border-color: rgba(139, 164, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(98, 117, 255, 0.1)),
    rgba(19, 22, 40, 0.7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .td-floating-next span {
  color: #c7d2fe;
  border-color: rgba(139, 164, 255, 0.2);
  background: rgba(98, 117, 255, 0.16);
}

html[data-theme="dark"] .td-floating-next.is-now {
  border-color: rgba(52, 211, 153, 0.2);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(19, 22, 40, 0.68);
}

html[data-theme="dark"] .td-floating-next.is-now span {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.18);
  background: rgba(16, 185, 129, 0.14);
}

html[data-theme="dark"] .td-badge--blue,
html[data-theme="dark"] .td-badge--soft {
  color: #c7d2fe;
  background: rgba(98, 117, 255, 0.14);
}

html[data-theme="dark"] .td-badge--green {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
}

html[data-theme="dark"] .td-schedule-row.is-current {
  border-color: rgba(167, 139, 250, 0.25);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.24), rgba(124, 58, 237, 0.08));
}

html[data-theme="dark"] .td-badge--violet {
  color: #ddd6fe;
  background: rgba(124, 58, 237, 0.22);
}

html[data-theme="dark"] .td-ai-strip {
  border-color: rgba(196, 181, 253, 0.16);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(59, 130, 246, 0.12));
}

html[data-theme="dark"] .td-progress-ring {
  background:
    radial-gradient(circle, rgba(25, 27, 48, 0.98) 0 56%, transparent 57%),
    conic-gradient(var(--td-primary) 0 72%, rgba(196, 181, 253, 0.18) 72% 100%);
}

html[data-theme="dark"] .td-bars {
  border-bottom-color: rgba(226, 232, 240, 0.12);
  background-image: linear-gradient(to top, rgba(226, 232, 240, 0.08) 1px, transparent 1px);
}

html[data-theme="dark"] .td-bars span {
  background: rgba(139, 92, 246, 0.28);
}

html[data-theme="dark"] .td-day-lane {
  border-left-color: rgba(226, 232, 240, 0.1);
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-height) - 1px), rgba(226, 232, 240, 0.08) calc(var(--hour-height) - 1px), rgba(226, 232, 240, 0.08) var(--hour-height)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

html[data-theme="dark"] .td-day-lane.is-today {
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.16), transparent 44%),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-height) - 1px), rgba(226, 232, 240, 0.08) calc(var(--hour-height) - 1px), rgba(226, 232, 240, 0.08) var(--hour-height));
}

html[data-theme="dark"] .td-event--lecture {
  border-left-color: #a78bfa;
  background: rgba(76, 29, 149, 0.44);
}

html[data-theme="dark"] .td-event--practice {
  border-left-color: #34d399;
  background: rgba(6, 78, 59, 0.42);
}

html[data-theme="dark"] .td-event--lab {
  border-left-color: #e879f9;
  background: rgba(112, 26, 117, 0.38);
}

html[data-theme="dark"] .td-event--other {
  border-left-color: #60a5fa;
  background: rgba(30, 64, 175, 0.34);
}
