:root {
  --tt-ink: #0d1730;
  --tt-muted: #526078;
  --tt-line: #e3e7ee;
  --tt-blue: #2d63dc;
  --tt-blue-deep: #214fb9;
  --tt-soft: #f7f9fd;
}

.tt-site-header,
.tt-site-footer,
.tt-site-header * ,
.tt-site-footer * {
  box-sizing: border-box;
}

.tt-site-header {
  min-height: 60px !important;
  padding: 0 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
  position: sticky !important;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--tt-line) !important;
  box-shadow: 0 2px 12px rgba(18, 34, 66, 0.025) !important;
  backdrop-filter: blur(14px);
}

.tt-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: var(--tt-ink) !important;
  font-size: 20px !important;
  font-weight: 780 !important;
  letter-spacing: -0.055em;
  text-decoration: none !important;
}

.tt-site-brand img {
  display: block;
  width: 29px !important;
  height: 29px !important;
  object-fit: contain;
}

.tt-site-actions { display: flex; align-items: center; gap: 22px; }
.tt-site-nav { display: flex !important; align-items: center; gap: 27px !important; }
.tt-site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #273247 !important;
  font-size: 13px !important;
  font-weight: 560 !important;
  letter-spacing: -0.015em;
  text-decoration: none !important;
  white-space: nowrap;
}
.tt-site-nav a:hover, .tt-site-nav a:focus-visible { color: var(--tt-blue) !important; }
.tt-site-nav .chevron { color: #758199; font-size: 14px; transform: translateY(-1px); }

.tt-account-link {
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  color: #23314a !important;
  border: 1.5px solid #56647a;
  border-radius: 50%;
  text-decoration: none !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.tt-account-link:hover { background: #f2f5fb; border-color: var(--tt-blue); color: var(--tt-blue) !important; transform: translateY(-1px); }
.tt-account-link svg { width: 17px; height: 17px; }

.tt-auth-site-header .header-left { display: flex; align-items: center; }
.tt-auth-site-header .tt-site-nav { margin-left: auto; }
.tt-auth-site-header .user-info {
  display: flex !important;
  align-items: center;
  gap: 12px;
  color: #4d5a70;
  font-size: 13px;
}
.tt-auth-site-header .btn-logout {
  padding: 7px 12px !important;
  color: #344159 !important;
  background: #fff !important;
  border: 1px solid var(--tt-line) !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}
.tt-auth-site-header .btn-logout:hover { color: var(--tt-blue) !important; border-color: #bfd0f5 !important; }

.tt-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--tt-ink);
  border: 1px solid var(--tt-line);
  border-radius: 8px;
  cursor: pointer;
}
.tt-menu-toggle span, .tt-menu-toggle span::before, .tt-menu-toggle span::after {
  display: block; width: 17px; height: 1.5px; background: currentColor; content: "";
}
.tt-menu-toggle span { position: relative; }
.tt-menu-toggle span::before { position: absolute; top: -5px; }
.tt-menu-toggle span::after { position: absolute; top: 5px; }

.tt-site-footer {
  margin-top: 80px !important;
  padding: 44px 32px 24px !important;
  background: #fbfcfe !important;
  border-top: 1px solid var(--tt-line) !important;
  color: var(--tt-muted) !important;
  font-family: inherit;
}
.tt-site-footer__inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(210px, 1.6fr) repeat(3, minmax(110px, .7fr)); gap: 40px; }
.tt-site-footer__brand { color: var(--tt-ink); display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 780; letter-spacing: -0.04em; text-decoration: none; }
.tt-site-footer__brand img { width: 25px; height: 25px; object-fit: contain; }
.tt-site-footer__intro { max-width: 245px; margin: 13px 0 0; font-size: 13px; line-height: 1.55; }
.tt-site-footer h2 { margin: 0 0 13px; color: #263247; font-size: 12px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.tt-site-footer a { display: block; width: max-content; max-width: 100%; color: var(--tt-muted) !important; text-decoration: none !important; font-size: 13px; line-height: 1.8; }
.tt-site-footer a:hover { color: var(--tt-blue) !important; }
.tt-site-footer__bottom { max-width: 1180px; margin: 38px auto 0; padding-top: 18px; border-top: 1px solid var(--tt-line); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
body.ad-mode .tt-site-footer { display: none !important; }

body.tt-landing-page .hero-wrapper {
  background: #fbfcfe !important;
  border-bottom: 1px solid var(--tt-line);
}
body.tt-landing-page .hero::before,
body.tt-landing-page .hero::after { opacity: .22 !important; }
body.tt-landing-page .hero-badge {
  color: var(--tt-blue-deep) !important;
  background: #f1f5ff !important;
  border-color: #d7e2fb !important;
  box-shadow: none !important;
}
body.tt-landing-page .hero h1,
body.tt-landing-page .hero-highlight {
  color: var(--tt-ink) !important;
  -webkit-text-fill-color: var(--tt-ink) !important;
  background: none !important;
}
body.tt-landing-page .hero-content > p { color: #3e4c64 !important; }
body.tt-landing-page .btn-large-primary {
  color: #fff !important;
  background: var(--tt-blue) !important;
  box-shadow: 0 8px 18px rgba(45, 99, 220, .18) !important;
}
body.tt-landing-page .btn-large-secondary {
  color: #273247 !important;
  background: #fff !important;
  border: 1px solid #dfe4ec !important;
  box-shadow: none !important;
}

body.tt-tool-page {
  background: #f6f8fb !important;
  padding: 0 !important;
}
body.tt-tool-page > .container {
  width: 100%;
  max-width: none !important;
  min-height: calc(100vh - 60px);
  margin: 0 !important;
  border-radius: 0 !important;
  border-left: 1px solid var(--tt-line);
  border-right: 1px solid var(--tt-line);
  box-shadow: 0 8px 30px rgba(20, 34, 66, .035) !important;
}
body.tt-tool-page .ws-hero,
body.tt-tool-page .worksheet-workspace {
  box-shadow: none !important;
}
body.tt-tool-page .tool-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 40px 40px !important;
}
body.tt-tool-page .ws-intro {
  max-width: 760px;
  margin: 0 auto 18px !important;
}
body.tt-tool-page .ws-kicker { margin-bottom: 6px !important; }
body.tt-tool-page .ws-intro h2 {
  margin-bottom: 13px !important;
  font-size: clamp(29px, 3.4vw, 36px) !important;
}
body.tt-tool-page .ws-search-input {
  min-height: 46px !important;
  padding: 10px 80px 10px 46px !important;
  border-radius: 9px !important;
}
body.tt-tool-page .ws-search-icon { top: 13px !important; }
body.tt-tool-page .ws-search-spinner { top: 14px !important; }
body.tt-tool-page .ws-search-results { top: 54px !important; }
body.tt-tool-page .ws-recent { margin-top: 10px !important; }
body.tt-tool-page .ws-small-chip { padding: 6px 10px !important; }
body.tt-tool-page .ws-quick-grade select { padding-top: 6px !important; padding-bottom: 6px !important; }
body.tt-tool-page .ws-workspace {
  grid-template-columns: minmax(0, 1fr) 256px !important;
  gap: 18px !important;
}
@media (max-width: 850px) {
  body.tt-tool-page .ws-workspace { grid-template-columns: 1fr !important; }
}
body.tt-tool-page .ws-context-line { margin-bottom: 10px !important; }
body.tt-tool-page .ws-context-title { font-size: 17px !important; }
body.tt-tool-page .ws-recipe-grid { gap: 12px !important; }
body.tt-tool-page .ws-recipe-card {
  min-height: 196px !important;
  padding: 14px !important;
  border-radius: 9px !important;
}
body.tt-tool-page .ws-recipe-card.is-selected { padding: 13px !important; }
body.tt-tool-page .ws-recipe-sheet {
  width: 40px !important;
  height: 48px !important;
  gap: 5px !important;
  padding: 10px 7px !important;
  margin-bottom: 10px !important;
}
body.tt-tool-page .ws-recipe-title { font-size: 14px !important; }
body.tt-tool-page .ws-recipe-description {
  display: -webkit-box;
  margin: 5px 0 8px !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 11px !important;
  line-height: 1.35 !important;
}
body.tt-tool-page .ws-recipe-meta { gap: 8px !important; font-size: 10px !important; }
body.tt-tool-page .ws-recipe-alignment { margin-top: 6px !important; font-size: 10px !important; }
body.tt-tool-page .ws-deliverable {
  top: 74px !important;
  padding: 16px !important;
  border-radius: 10px !important;
}
body.tt-tool-page .ws-deliverable h3 { font-size: 16px !important; }
body.tt-tool-page .ws-deliverable-list {
  gap: 10px !important;
  padding: 14px 0 !important;
  margin: 12px 0 14px !important;
}
body.tt-tool-page .ws-deliverable-row { font-size: 12px !important; }
body.tt-tool-page .ws-create-action .generate-btn { min-height: 44px !important; }
body.tt-tool-page .ws-customize { margin-top: 14px !important; }

body.tt-easy-grader-page {
  padding: 0 !important;
  background: #f6f8fb !important;
}
body.tt-easy-grader-page > .container {
  margin: 32px auto !important;
  border: 1px solid var(--tt-line);
  box-shadow: 0 8px 30px rgba(20, 34, 66, .04) !important;
}

body.app-chrome-refined {
  background: #f6f8fb !important;
}
body.app-chrome-refined .page-wrapper {
  min-height: calc(100vh - 64px) !important;
  background: #f6f8fb !important;
}
body.app-chrome-refined .main-content {
  background: #f6f8fb !important;
  padding: 40px !important;
  overflow: visible !important;
}
body.app-chrome-refined .sidebar {
  flex: 0 0 280px;
  width: 280px !important;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  background: #fff !important;
  border-right: 1px solid var(--tt-line) !important;
  box-shadow: 5px 0 24px rgba(20, 33, 60, .025) !important;
}
body.app-chrome-refined .sidebar-header {
  min-height: 92px;
  padding: 22px 17px !important;
  border-bottom: 1px solid #edf0f5 !important;
}
body.app-chrome-refined .sidebar-logo { color: var(--tt-ink) !important; font-weight: 780 !important; letter-spacing: -0.045em; }
body.app-chrome-refined .sidebar-logo .brand-logo { width: 41px !important; height: 41px !important; }
body.app-chrome-refined .sidebar-logo .brand-name { font-size: 25px !important; }
body.app-chrome-refined .sidebar-nav { padding: 14px 8px !important; }
body.app-chrome-refined .nav-item {
  min-height: 48px;
  margin: 3px 0 !important;
  padding: 12px 16px !important;
  border-radius: 7px !important;
  color: #667085 !important;
  font-size: 16px;
  font-weight: 520;
}
body.app-chrome-refined .nav-item .nav-icon { width: 23px; font-size: 17px; }
body.app-chrome-refined .nav-item.active,
body.app-chrome-refined .nav-item:hover {
  background: #eef0ff !important;
  color: #5e6be2 !important;
}
body.app-chrome-refined .nav-divider { margin: 14px -8px !important; background: #edf0f5 !important; }
body.app-chrome-refined .nav-label {
  padding: 8px !important;
  color: #98a1b2 !important;
  font-size: 11px !important;
  letter-spacing: .04em;
}
body.app-chrome-refined .user-profile-card {
  margin: auto 12px 16px !important;
  padding: 12px !important;
  border: 1px solid #e3e7ef !important;
  border-radius: 8px !important;
  background: #fbfcfe !important;
}
body.app-chrome-refined .user-avatar {
  width: 38px !important;
  height: 38px !important;
  background: #dce3ff !important;
  color: #4259bb !important;
}

/* Authenticated dashboard and settings share the same calm, card-led workspace. */
body.app-chrome-refined .welcome-header {
  padding: 34px 32px !important;
  margin: 0 0 32px !important;
  border: 1px solid #e8ebf1;
  border-radius: 14px !important;
  box-shadow: 0 3px 12px rgba(22, 34, 63, .045) !important;
}
body.app-chrome-refined .welcome-header h1 {
  margin: 0 0 8px !important;
  color: #202939 !important;
  font-size: clamp(29px, 3vw, 34px) !important;
  letter-spacing: -.035em;
}
body.app-chrome-refined .welcome-header p {
  color: #7b8494 !important;
  font-size: 16px !important;
}
body.app-chrome-refined .featured-tools { margin-bottom: 24px !important; }
body.app-chrome-refined .featured-tools-header { margin-bottom: 15px !important; }
body.app-chrome-refined .featured-tools-header h2 {
  color: #202939 !important;
  font-size: 18px !important;
  letter-spacing: -.02em;
}
body.app-chrome-refined .featured-tools-header a,
body.app-chrome-refined .featured-tool-cta { color: #6877dc !important; }
body.app-chrome-refined .featured-tools-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
body.app-chrome-refined .featured-tool-card {
  min-height: 258px;
  padding: 25px 17px !important;
  border: 1.5px solid #dfe5fb !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 7px rgba(38, 50, 83, .025);
}
body.app-chrome-refined .featured-tool-card:hover {
  border-color: #aebcf5 !important;
  box-shadow: 0 10px 24px rgba(78, 98, 200, .13) !important;
  transform: translateY(-3px);
}
body.app-chrome-refined .featured-tool-icon { font-size: 39px !important; }
body.app-chrome-refined .featured-tool-name {
  color: #252d3d !important;
  font-size: 16px !important;
  line-height: 1.25;
}
body.app-chrome-refined .featured-tool-desc {
  color: #8790a1 !important;
  font-size: 13px !important;
  line-height: 1.42;
}
body.app-chrome-refined .dashboard-section {
  border: 1px solid #e8ebf1;
  border-radius: 14px !important;
  box-shadow: 0 3px 12px rgba(22, 34, 63, .04) !important;
}
body.app-chrome-refined .time-saved-widget,
body.app-chrome-refined .referral-banner,
body.app-chrome-refined #betaBanner {
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(82, 91, 190, .16) !important;
}

@media (max-width: 780px) {
  .tt-site-header { min-height: 58px !important; padding: 0 18px !important; }
  .tt-site-brand { font-size: 18px !important; }
  .tt-site-actions { gap: 10px; }
  .tt-menu-toggle { display: inline-grid; }
  .tt-site-nav {
    display: none !important;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 1px !important;
    background: #fff;
    border: 1px solid var(--tt-line);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(13, 23, 48, .12);
  }
  .tt-site-header.tt-menu-open .tt-site-nav { display: flex !important; }
  .tt-site-nav a { padding: 11px 10px; border-radius: 7px; }
  .tt-site-nav a:hover { background: #f4f7fd; }
  .tt-auth-site-header .user-info .user-name { display: none; }
  .tt-auth-site-header .tt-site-nav { margin-left: 0; }
  .tt-site-footer { margin-top: 48px !important; padding: 36px 22px 20px !important; }
  .tt-site-footer__inner { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
  .tt-site-footer__intro { grid-column: 1 / -1; }
  .tt-site-footer__bottom { flex-direction: column; margin-top: 28px; }
  body.app-chrome-refined .page-wrapper { min-height: calc(100vh - 58px) !important; }
  body.app-chrome-refined .main-content { padding: 22px 18px !important; }
  body.app-chrome-refined .welcome-header { padding: 24px 20px !important; margin-bottom: 24px !important; }
  body.app-chrome-refined .welcome-header h1 { font-size: 28px !important; }
  body.app-chrome-refined .featured-tools-grid { grid-template-columns: 1fr !important; }
  body.app-chrome-refined .featured-tool-card { min-height: 0; }
  body.tt-tool-page .tool-content { padding: 14px 14px 30px !important; }
  body.tt-tool-page .ws-intro { margin-bottom: 22px !important; }
  body.tt-tool-page .ws-workspace { grid-template-columns: 1fr !important; }
  body.tt-tool-page .ws-deliverable { position: static !important; }
  body.tt-tool-page .ws-recipe-card { min-height: 0 !important; }
}

@media (min-width: 781px) and (max-width: 980px) {
  body.app-chrome-refined .featured-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}