/* ============================================================
   Work Together — Design System v2 (overlay)
   ------------------------------------------------------------
   This file loads AFTER style.css and re-skins existing
   components without renaming any IDs, classes, or JS hooks.
   To revert: remove the <link> tag in the 3 HTML files,
   or delete this file. Nothing else needs to change.
   ============================================================ */

/* ---------- 1. Design tokens (override) ---------- */
:root {
  --orange: #FF6A1A;
  --orange-dark: #C2410C;
  --orange-soft: #FFF1E6;
  --orange-soft-2: #FFE3D1;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --body: #475569;
  --muted: #64748B;
  --soft: #F1F5F9;
  --canvas: #F8FAFC;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --border-soft: #EEF2F6;
  --border-orange: #FFE3D1;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.10);
  --shadow-orange: 0 10px 22px rgba(255, 106, 26, 0.22);
}

/* ---------- 2. Page canvas & global type ---------- */
body {
  background:
    radial-gradient(circle at 8% -5%, rgba(255, 106, 26, 0.06), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(255, 183, 77, 0.05), transparent 28%),
    linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 60%, #FFFFFF 100%);
  color: var(--ink);
}

h1, h2 { letter-spacing: -0.02em; }
h3, h4 { letter-spacing: -0.01em; }
.eyebrow {
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 11px;
  color: var(--orange-dark);
}
.muted { color: var(--body); font-weight: 500; line-height: 1.6; }
.lead { font-weight: 500; color: var(--body); line-height: 1.6; }

label span,
.field-help,
.multi-select-field > span {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 11.5px;
  color: #475569;
  text-transform: none;
}
.field-help.center { text-align: center; }

input, select, textarea {
  padding: 11px 13px;
  border-radius: 11px;
  border-color: var(--border);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #94A3B8; font-weight: 500; }
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.14);
}

/* Decorative landing orbs — quiet them down */
.landing-page::before,
.landing-page::after { display: none; }

/* ---------- 3. Buttons ---------- */
.button {
  font-weight: 600;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  transition: transform .12s ease, box-shadow .14s ease,
              background .14s ease, border-color .14s ease;
}
.button.large { padding: 14px 22px; font-size: 15px; border-radius: 13px; }
.button.xsmall { padding: 7px 10px; font-size: 12px; border-radius: 9px; }
.button.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.button.primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 106, 26, 0.30);
}
.button.secondary {
  background: var(--orange-soft);
  border-color: var(--orange-soft-2);
  color: var(--orange-dark);
  box-shadow: none;
}
.button.secondary:hover {
  background: #FFE7D4;
  border-color: #FFD1B0;
}
.button.outline {
  background: #fff;
  border-color: var(--orange-soft-2);
  color: var(--orange-dark);
}
.button.outline:hover { background: var(--orange-soft); }
.button.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-2);
}
.button.ghost:hover {
  background: var(--soft);
  border-color: #CBD5E1;
}
.button.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.button.dark:hover { background: #0a0e1a; }
.button.danger {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}
.button.danger:hover { background: #FEE2E2; border-color: #FCA5A5; }
.icon-button {
  width: 40px; height: 40px;
  border-radius: 12px;
  border-color: var(--border);
  font-size: 20px;
  font-weight: 600;
}
.icon-button:hover { background: var(--soft); border-color: #CBD5E1; }

/* ---------- 4. Topbar / nav / brand ---------- */
.topbar {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange) 0%, #FF8A4A 100%);
  box-shadow: 0 6px 14px rgba(255, 106, 26, 0.30);
  letter-spacing: -0.03em;
  font-size: 14px;
}
.brand strong { font-size: 15px; letter-spacing: -0.01em; }
.brand small {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.main-nav { gap: 4px; }
.main-nav button {
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  color: #334155;
  border-color: transparent;
  background: transparent;
}
.main-nav button:hover {
  background: var(--soft);
  color: var(--ink);
  border-color: transparent;
}
.main-nav button.active {
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-color: transparent;
}

.notification-button {
  position: relative;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 12px;
  border-color: var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: none;
}
.notification-button:hover { background: var(--soft); border-color: #CBD5E1; }
.notification-button .count-badge {
  position: absolute;
  top: -4px; right: -4px;
  margin: 0;
  border: 2px solid #fff;
  font-size: 10px;
  min-width: 18px; height: 18px;
  background: var(--orange);
}

/* Mobile hamburger via pseudo-elements (no HTML change) */
.mobile-menu-button {
  position: relative;
  width: 42px; height: 42px;
  padding: 0;
  font-size: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.mobile-menu-button::before,
.mobile-menu-button::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.mobile-menu-button::before { top: 14px; box-shadow: 0 6px 0 0 var(--ink); }
.mobile-menu-button::after { bottom: 14px; }

.language-switch button {
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 5. Page container ---------- */
.page-shell {
  width: min(1280px, calc(100% - 36px));
  padding: 32px 0 72px;
}

/* ---------- 6. Section headings ---------- */
.section-title-row { margin-bottom: 22px; }
.section-title-row h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.section-title-row h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
}
.section-title-row p.muted { margin-top: 6px; }

.section-block {
  padding: 28px;
  border-radius: 22px;
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}

/* ---------- 7. Hero ---------- */
.landing-hero {
  gap: 48px;
  align-items: center;
  min-height: auto;
  padding: 24px 0 8px;
}
.landing-chip {
  border: 1px solid var(--orange-soft-2);
  background: var(--orange-soft);
  color: var(--orange-dark);
  padding: 6px 14px 6px 6px;
  font-weight: 600;
  font-size: 12.5px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.chip-prefix {
  background: var(--orange);
  color: #fff;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-copy { padding: 16px 0; }
.hero-copy h1 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 800;
}
.hero-copy h1 span { color: var(--orange); }
.hero-copy .lead {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--body);
}
.hero-actions { margin-top: 28px; }
.hero-social-proof { margin-top: 24px; }
.hero-social-proof p {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}
.avatar-stack span {
  width: 36px; height: 36px;
  font-size: 11.5px;
  border: 2.5px solid #fff;
}

.hero-product-preview {
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
  box-shadow: var(--shadow-md);
  padding: 22px;
  backdrop-filter: none;
}
.preview-topline strong {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.text-link {
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 13px;
}
.text-link:hover { color: var(--orange); }

.preview-card,
.preview-panel,
.mini-competition-card,
.testimonial-card {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.preview-card { padding: 16px; }
.team-preview-line strong { color: var(--ink); font-size: 14px; }
.team-preview-line small { color: var(--muted); font-weight: 600; }
.team-preview-line em {
  background: #ECFDF5;
  color: #047857;
  font-weight: 800;
  font-size: 11.5px;
}
.activity-panel strong { color: var(--ink); font-size: 14px; letter-spacing: -0.01em; }
.activity-panel p {
  border-left: 2px solid var(--orange-soft-2);
  color: var(--body);
  font-weight: 500;
  font-size: 13px;
}

/* ---------- 8. Stats strip ---------- */
.landing-stats-strip {
  margin-top: 36px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F0 100%);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 4px;
  gap: 0;
}
.landing-stat {
  border: 0;
  border-right: 1px solid #FFE3D1;
  background: transparent;
  padding: 18px 12px;
  min-height: auto;
  border-radius: 14px;
}
.landing-stat:last-child { border-right: 0; }
.landing-stat:hover {
  background: rgba(255, 106, 26, 0.04);
  transform: none;
}
.landing-stat strong {
  color: var(--ink);
  font-size: 30px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.landing-stat small {
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- 9. Feature cards (What you can do) ---------- */
.landing-feature-grid { gap: 16px; }
.feature-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  background: #fff;
  min-height: 240px;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-soft-2);
}
.feature-card strong {
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.feature-card p {
  font-weight: 500;
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.55;
}
.feature-icon {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(135deg, #FFF1E6, #FFFFFF);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 26, 0.16),
              0 8px 18px rgba(255, 106, 26, 0.10);
  border-radius: 16px;
  width: 52px; height: 52px;
}

/* ---------- 10. How it works ---------- */
.how-grid { gap: 14px; }
.how-grid article {
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.how-grid span {
  width: 44px; height: 44px;
  font-size: 17px;
  font-weight: 800;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border: 1px solid var(--orange-soft-2);
  border-radius: 14px;
}
.how-grid strong {
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.how-grid p {
  color: var(--body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- 11. Organizer CTA ---------- */
.organizer-cta {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #2A1B0E 100%);
  color: #fff;
  border-radius: 24px;
  padding: 36px;
  border: 0;
  box-shadow: var(--shadow-md);
}
.organizer-cta::after { display: none; }
.organizer-cta h2 { color: #fff; }
.organizer-cta .eyebrow { color: #FFB07A; }
.organizer-cta p:not(.eyebrow) { color: #CBD5E1; font-weight: 500; }

/* ---------- 12. Testimonials ---------- */
.landing-testimonials { margin-top: 32px; }
.testimonial-card {
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}
.testimonial-card strong { font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.testimonial-card small { color: var(--muted); font-weight: 600; }
.testimonial-card p { font-weight: 500; color: var(--body); line-height: 1.6; }
.rating-dots i {
  width: 8px; height: 8px;
  background: var(--orange);
  box-shadow: none;
}

/* ---------- 13. Footer ---------- */
.landing-footer {
  margin-top: 48px;
  padding: 36px 32px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.landing-footer strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.landing-footer button {
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
}
.landing-footer button:hover { color: var(--orange-dark); }
.landing-footer p { color: var(--muted); font-weight: 500; font-size: 13.5px; }

/* ---------- 14. Cards: items, lists, rows ---------- */
.item-card,
.list-row,
.saved-row,
.request-row,
.task-row,
.team-workspace-row,
.team-message,
.member-line {
  border-color: var(--border-soft);
  border-radius: 16px;
}
.item-card {
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .14s ease, border-color .14s ease;
}
.item-card:hover {
  border-color: var(--orange-soft-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.item-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.item-meta {
  font-weight: 500;
  color: var(--body);
  line-height: 1.5;
}
.list-row p, .saved-row p, .request-row p {
  color: var(--body);
  font-weight: 500;
  font-size: 13px;
}

/* Score pill */
.score-pill {
  width: 56px; height: 50px;
  border-radius: 14px;
  background: var(--ink);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}
.score-pill strong { font-size: 16px; }

/* Tags */
.tag {
  border-color: var(--orange-soft-2);
  background: var(--orange-soft);
  color: var(--orange-dark);
  padding: 4px 10px;
  font-weight: 700;
  font-size: 11.5px;
}
.tag.gray {
  border-color: var(--border-soft);
  background: var(--soft);
  color: #475569;
}
.mini-chip {
  border-color: var(--border-soft);
  background: #fff;
  color: var(--body);
  font-weight: 700;
  font-size: 11.5px;
}

/* Status badges & pills */
.status-badge { padding: 4px 10px; font-size: 11.5px; font-weight: 600; border-radius: 999px; }
.status-pill { padding: 5px 11px; font-size: 11.5px; font-weight: 600; }
.status-draft { background: var(--soft); color: #475569; }
.status-pending { background: #FEF3C7; color: #92400E; }
.status-approved { background: #DCFCE7; color: #166534; }
.status-rejected { background: #FEE2E2; color: #991B1B; }
.status-open { background: #DBEAFE; color: #1D4ED8; }
/* Additional status colors for extended lifecycle stages and user states */
.status-new { background: #DBEAFE; color: #1D4ED8; }
.status-reviewed { background: #E9D5FF; color: #6B21A8; }
.status-shortlisted { background: #CCFBF1; color: #065F46; }
.status-contacted { background: #FEF9C3; color: #92400E; }
.status-unverified { background: var(--soft); color: #475569; }
.status-verified { background: #DCFCE7; color: #166534; }
.status-active { background: #DCFCE7; color: #166534; }
.status-suspended { background: #FEE2E2; color: #991B1B; }
.status-closed { background: var(--soft); color: #475569; }
.status-accepted { background: #DCFCE7; color: #166534; }
.status-declined { background: #FEE2E2; color: #991B1B; }

/* ---------- 15. Filter shells ---------- */
.competition-filter-shell,
.team-filter-shell,
.member-filter-shell {
  border-radius: 18px;
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.filter-toolbar { gap: 10px; }
.filter-search-field input { padding: 11px 14px; border-radius: 12px; }
.filter-toggle {
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13.5px;
}
.filter-drawer {
  border-radius: 18px;
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.filters-panel { border-radius: 16px; }
.active-filter-chip {
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

/* ---------- 16. Forms / form cards ---------- */
.form-card {
  border-radius: 20px;
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

/* ---------- 17. Tabs / role grid / demo grid ---------- */
.tabs button,
.demo-grid button,
.role-grid button {
  border-color: var(--border);
  border-radius: 11px;
  background: #fff;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-2);
}
.tabs button.active,
.role-grid button.active {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-dark);
  box-shadow: 0 6px 16px rgba(255, 106, 26, 0.10),
              inset 0 0 0 1px rgba(255, 106, 26, 0.12);
}
.demo-grid button:hover { border-color: var(--orange-soft-2); background: var(--orange-soft); color: var(--orange-dark); }

/* ---------- 18. Modals & toast ---------- */
.modal-overlay {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-card {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.modal-header h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.toast {
  background: var(--ink);
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
}

/* ---------- 19. Empty states ---------- */
.empty-state {
  padding: 40px 28px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--canvas);
  color: var(--muted);
  font-weight: 600;
}
.empty-state.compact { padding: 18px; }

/* ---------- 20. Auth shell ---------- */
.auth-info-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 106, 26, 0.30), transparent 38%),
    linear-gradient(135deg, #0F172A 0%, #1E293B 70%);
  padding: 40px;
}
.auth-info-panel h1 {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.03em;
  font-weight: 800;
}
.auth-info-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  line-height: 1.6;
}
.auth-info-panel .eyebrow { color: #FFB07A; }
.auth-note-grid div {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 14px;
}
.auth-note-grid strong { font-weight: 800; }
.auth-note-grid span {
  color: rgba(255, 255, 255, 0.70);
  font-weight: 500;
  font-size: 13px;
}

/* Hide the very busy auth orbs/lines for a cleaner panel */
.auth-decor,
.auth-grid-lines,
.auth-form-orb { display: none; }

.auth-card-redesign {
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: 28px;
  background: #fff;
}
.tabs.two button {
  padding: 11px 12px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
}
.role-select-box {
  border-radius: 16px;
  border-color: var(--border-soft);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFAF6 100%);
}
.divider {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* ---------- 21. Onboarding ---------- */
.onboarding-shell { gap: 28px; }
.onboarding-side {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFAF6 100%);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.onboarding-side h1 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.025em;
}

/* ---------- 22. Discovery (find team / find members) ---------- */
.discovery-shell {
  border-radius: 20px;
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
  background:
    radial-gradient(circle at top right, rgba(255, 140, 56, 0.05), transparent 30%),
    linear-gradient(180deg, #FFFFFF 0%, #FFFDFA 100%);
}
.discovery-shell:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--orange-soft-2);
  transform: translateY(-2px);
}
.discovery-summary-panel {
  border-radius: 14px;
  border-color: var(--border-soft);
}
.discovery-summary-text {
  color: var(--body);
  font-weight: 500;
}
.discovery-score-pill {
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}

/* ---------- 23. Profile / dashboard / content cards ---------- */
.content-card,
.dashboard-feature-card,
.profile-identity-card,
.dashboard-profile-card,
.dashboard-activity-card,
.saved-items-card,
.dashboard-create-team-card {
  border-color: var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.content-card h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.social-link-pill {
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
}

/* ---------- 24. Workspace polish ---------- */
.workspace-tabs button {
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
}
.team-chat-box {
  border-radius: 16px;
  background: var(--canvas);
  border-color: var(--border-soft);
}
.chat-bubble {
  border-radius: 14px;
  border-color: var(--border-soft);
}
.chat-message-row.mine .chat-bubble {
  background: var(--orange-soft);
  border-color: var(--orange-soft-2);
}

/* ---------- 25. Tables ---------- */
.table-card {
  border-radius: 16px;
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}
th {
  background: var(--canvas);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--muted);
}
td { font-weight: 500; color: var(--ink); }

/* ---------- 26. Mobile / responsive refinements ---------- */
@media (max-width: 1050px) {
  .topbar { padding: 12px 16px; }

  .main-nav.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-top: 8px;
  }
  .main-nav.open button {
    text-align: left;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
  }
  .auth-actions.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-top: 8px;
  }
  .auth-actions.open .button { width: 100%; justify-content: center; }
  .auth-actions.open .language-switch { justify-content: center; }

  .landing-hero { gap: 32px; }
}

@media (max-width: 720px) {
  .page-shell { padding: 20px 0 56px; }
  .landing-hero { padding: 8px 0; }
  .hero-copy { padding: 8px 0; }
  .hero-copy h1 {
    font-size: clamp(34px, 9vw, 46px);
    letter-spacing: -0.03em;
  }
  .hero-copy .lead { font-size: 15.5px; margin-top: 16px; }
  .hero-product-preview { padding: 16px; border-radius: 20px; }

  .landing-stats-strip { padding: 4px; }
  .landing-stat {
    padding: 14px 8px;
    border-right: 0;
    border-bottom: 1px solid #FFE3D1;
  }
  .landing-stat:last-child { border-bottom: 0; }
  .landing-stat strong { font-size: 24px; }

  .organizer-cta { padding: 24px; border-radius: 20px; }
  .section-block { padding: 18px; border-radius: 18px; }
  .form-card { padding: 18px; border-radius: 18px; }
  .modal-card { padding: 18px; border-radius: 18px; }

  .feature-card { padding: 20px; min-height: 0; }
  .how-grid article { padding: 20px; }
  .testimonial-card { padding: 18px; }
  .landing-footer { padding: 24px 18px; border-radius: 20px; }
}

@media (max-width: 480px) {
  .topbar { padding: 10px 12px; gap: 10px; }
  .brand strong { font-size: 14px; }
  .brand small { display: none; }
  .auth-info-panel { padding: 24px; }
  .onboarding-side { padding: 20px; }
}

/* ---------- 27. Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .button, .feature-card, .item-card, .discovery-shell, .landing-stat {
    transition: none !important;
  }
  .button.primary:hover,
  .feature-card:hover,
  .item-card:hover,
  .discovery-shell:hover { transform: none !important; }
}

/* ---------- end Design System v2 ---------- */


/* ---------- Social link logo polish ---------- */
.social-links-row.icon-only {
  gap: 12px;
}

.social-link-pill {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  padding: 0;
}

.social-link-pill .social-brand-icon {
  width: 22px;
  height: 22px;
}

.social-link-pill.social-discord .social-brand-icon {
  width: 24px;
  height: 24px;
}

.social-link-pill.is-disabled {
  opacity: .88;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.social-link-pill:is(button) {
  font: inherit;
  border-width: 1px;
}
.social-link-pill.is-copyable:hover {
  border-color: rgba(88, 101, 242, .45);
  box-shadow: 0 16px 34px rgba(88, 101, 242, .16);
}


/* ---------- Profile social editor CTA ---------- */
.profile-social-action-row {
  padding-top: 2px;
}

.social-edit-button {
  border-radius: 999px;
  min-height: 42px;
  padding-inline: 18px;
  box-shadow: 0 12px 26px rgba(249, 115, 22, .12);
}

.social-edit-button::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  font-weight: 600;
}

.social-links-editor-form .small-copy {
  margin-top: -2px;
  margin-bottom: 2px;
}

.social-links-form-grid label {
  background: var(--w2g-surface-2, rgba(248, 250, 252, .72));
  border: 1px solid var(--w2g-line, rgba(226, 232, 240, .92));
  border-radius: 18px;
  padding: 12px;
}

.social-links-form-grid label span {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--w2g-muted, #64748b);
  margin-bottom: 8px;
}


.form-warning {
  margin: 2px 0 4px;
}
.social-links-form-grid input.field-error {
  background: #fff7f7;
}

html[data-theme="dark"] .social-links-form-grid input.field-error {
  background: rgba(220, 38, 38, 0.16);
}


/* ---------- Smooth nav + dashboard micro-interactions ---------- */
.main-nav button {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform .18s ease,
    background-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.main-nav button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 120%, rgba(255, 107, 43, .18), transparent 58%);
  opacity: 0;
  transform: scale(.82);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}

.main-nav button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .075);
}

.main-nav button:hover::before {
  opacity: 1;
  transform: scale(1);
}

.main-nav button.active {
  position: relative;
  animation: navPillIn .24s ease both;
}

.main-nav button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 107, 43, .05), rgba(255, 107, 43, .72), rgba(255, 107, 43, .05));
  transform: translateX(-50%);
  opacity: .9;
}

/* Dashboard gets a slightly more product-like focus when active/hovered */
.main-nav button[data-route="dashboard"] {
  isolation: isolate;
}

.main-nav button[data-route="dashboard"]:hover,
.main-nav button[data-route="dashboard"].active {
  box-shadow: 0 12px 26px rgba(255, 107, 43, .14);
}

.main-nav button[data-route="dashboard"].active::before {
  opacity: .95;
  transform: scale(1.04);
}

/* Route/page reveal */
.view.active-view {
  animation: pageFadeUp .24s ease both;
}

.view.active-view .section-title-row {
  animation: sectionTitleIn .34s ease both;
}

.view.active-view .dashboard-layout,
.view.active-view .simple-grid,
.view.active-view .card-grid,
.view.active-view .competition-grid,
.view.active-view .team-grid,
.view.active-view .members-grid {
  animation: contentSoftIn .32s ease both;
}

.view.active-view .content-card,
.view.active-view .section-block,
.view.active-view .filters-panel,
.view.active-view .competition-card,
.view.active-view .team-card,
.view.active-view .member-card {
  animation: cardRiseIn .34s ease both;
  will-change: transform, opacity;
}

.view.active-view .content-card:nth-child(1),
.view.active-view .section-block:nth-child(1),
.view.active-view .competition-card:nth-child(1),
.view.active-view .team-card:nth-child(1),
.view.active-view .member-card:nth-child(1) { animation-delay: .02s; }

.view.active-view .content-card:nth-child(2),
.view.active-view .section-block:nth-child(2),
.view.active-view .competition-card:nth-child(2),
.view.active-view .team-card:nth-child(2),
.view.active-view .member-card:nth-child(2) { animation-delay: .06s; }

.view.active-view .content-card:nth-child(3),
.view.active-view .section-block:nth-child(3),
.view.active-view .competition-card:nth-child(3),
.view.active-view .team-card:nth-child(3),
.view.active-view .member-card:nth-child(3) { animation-delay: .10s; }

.view.active-view .content-card:nth-child(4),
.view.active-view .section-block:nth-child(4),
.view.active-view .competition-card:nth-child(4),
.view.active-view .team-card:nth-child(4),
.view.active-view .member-card:nth-child(4) { animation-delay: .14s; }

.view.active-view .content-card:hover,
.view.active-view .competition-card:hover,
.view.active-view .team-card:hover,
.view.active-view .member-card:hover {
  transform: translateY(-2px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Buttons feel more clickable without looking game-like */
.button,
.social-edit-button,
.notification-button,
.language-switch button {
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease;
}

.button:hover,
.social-edit-button:hover,
.notification-button:hover,
.language-switch button:hover {
  transform: translateY(-1px);
}

.button.primary:hover,
.button.secondary:hover,
.social-edit-button:hover {
  box-shadow: 0 14px 30px rgba(255, 107, 43, .16);
}

/* Gentle attention dot for Dashboard only when it is not active */
.main-nav button[data-route="dashboard"]:not(.active)::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 107, 43, .75);
  box-shadow: 0 0 0 4px rgba(255, 107, 43, .09);
  opacity: .72;
}

@keyframes navPillIn {
  from { transform: translateY(1px) scale(.985); }
  to { transform: translateY(0) scale(1); }
}

@keyframes pageFadeUp {
  from { opacity: .75; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sectionTitleIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes contentSoftIn {
  from { opacity: .72; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardRiseIn {
  from { opacity: 0; transform: translateY(12px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav button,
  .main-nav button::before,
  .main-nav button.active,
  .view.active-view,
  .view.active-view .section-title-row,
  .view.active-view .dashboard-layout,
  .view.active-view .simple-grid,
  .view.active-view .card-grid,
  .view.active-view .competition-grid,
  .view.active-view .team-grid,
  .view.active-view .members-grid,
  .view.active-view .content-card,
  .view.active-view .section-block,
  .view.active-view .filters-panel,
  .view.active-view .competition-card,
  .view.active-view .team-card,
  .view.active-view .member-card,
  .button,
  .social-edit-button,
  .notification-button,
  .language-switch button {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .main-nav button[data-route="dashboard"]:not(.active)::after {
    box-shadow: none;
  }
}


/* ---------- University onboarding polish ---------- */
.university-picker-card {
  animation: cardRiseIn .34s ease both;
}

.university-input-shell:focus-within {
  border-color: rgba(255, 107, 43, .46);
  box-shadow: 0 0 0 4px rgba(255, 107, 43, .1);
}

.profile-university-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.profile-university-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 107, 43, .35);
  box-shadow: 0 14px 30px rgba(255, 107, 43, .12);
}


/* ---------- Conditional university field polish ---------- */
.university-field-inline {
  animation: cardRiseIn .24s ease both;
}

.university-field-inline .university-input-shell {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.university-field-inline .university-input-shell:focus-within {
  transform: translateY(-1px);
}


/* ---------- Onboarding action + university visual polish ---------- */
.onboarding-page .form-card.wide .button-row.between {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,250,246,.92) 100%);
}

.onboarding-page #onboardingBackButton {
  opacity: .96;
}

.onboarding-page #onboardingNextButton {
  box-shadow: 0 14px 28px rgba(255, 107, 43, .18);
}

.university-field-inline {
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.university-field-inline:hover {
  border-color: rgba(255, 107, 43, .20);
  box-shadow: 0 14px 28px rgba(255, 107, 43, .08);
}

.university-field-inline .university-input-shell {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}

.university-field-inline .university-input-shell:hover {
  border-color: rgba(255, 107, 43, .28);
}


/* ---------- University color badge theme ---------- */
.university-logo-fallback {
  background: linear-gradient(135deg, var(--uni-primary, #ff6b2b), var(--uni-secondary, #ff9a5f));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--uni-primary, #ff6b2b) 24%, transparent);
  border: 1px solid rgba(255, 255, 255, .38);
}

.university-input-shell:has(.university-logo-fallback) {
  position: relative;
}

.profile-university-card .university-logo-fallback {
  box-shadow: 0 12px 24px color-mix(in srgb, var(--uni-primary, #ff6b2b) 20%, transparent);
}

/* ---------- Competition Apply / Join decision flow ---------- */
.competition-action-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.competition-action-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.9));
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.competition-action-option.recommended {
  border-color: rgba(249, 115, 22, .35);
  background: linear-gradient(135deg, rgba(255, 247, 237, .96), rgba(255,255,255,.94));
}

.competition-action-option.compact {
  background: rgba(248, 250, 252, .78);
}

.competition-action-option h3 {
  margin: 4px 0 4px;
  font-size: 16px;
  letter-spacing: -.01em;
}

.competition-action-option p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.action-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.team-preset-note {
  border-color: rgba(249, 115, 22, .26);
  background: rgba(255, 247, 237, .72);
}

@media (max-width: 720px) {
  .competition-action-option {
    grid-template-columns: 1fr;
  }
  .competition-action-option .button {
    width: 100%;
  }
}

/* ---------- 27. Theme toggle + Dark mode ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 78px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: transform .14s ease, background-color .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--orange-soft-2);
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.theme-toggle[aria-pressed="true"] {
  border-color: rgba(255, 106, 26, .34);
  background: rgba(255, 106, 26, .11);
  color: var(--orange-dark);
}
.theme-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 14px;
}
.theme-toggle-label { line-height: 1; }
.auth-language-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.dashboard-appearance-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 26, .12), transparent 42%),
    linear-gradient(180deg, #fff 0%, #fffaf6 100%);
}
.dashboard-appearance-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -36px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 106, 26, .08);
  pointer-events: none;
}
.dashboard-appearance-card > * { position: relative; z-index: 1; }
.appearance-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 9px;
  border: 1px solid var(--orange-soft-2);
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}
.dashboard-theme-toggle { flex: 0 0 auto; }

html[data-theme="dark"] {
  color-scheme: dark;
  --orange: #FF6A1A;
  --orange-dark: #FFB07A;
  --orange-light: rgba(255, 106, 26, .13);
  --orange-soft: rgba(255, 106, 26, .13);
  --orange-soft-2: rgba(255, 106, 26, .25);
  --ink: #F8FAFC;
  --ink-2: #E2E8F0;
  --body: #CBD5E1;
  --muted: #94A3B8;
  --soft: #1E293B;
  --canvas: #0B1220;
  --card: #111827;
  --border: rgba(148, 163, 184, .26);
  --border-soft: rgba(148, 163, 184, .18);
  --border-orange: rgba(255, 106, 26, .30);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .22);
  --shadow-md: 0 16px 34px rgba(0, 0, 0, .28);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .44);
  --shadow-orange: 0 12px 28px rgba(255, 106, 26, .18);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% -5%, rgba(255, 106, 26, .14), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, .10), transparent 30%),
    linear-gradient(180deg, #07111F 0%, #0B1220 50%, #0F172A 100%);
  color: var(--ink);
}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .simple-header {
  background: rgba(15, 23, 42, .86);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03);
}
html[data-theme="dark"] .brand small,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .hero-copy .lead,
html[data-theme="dark"] .hero-social-proof p,
html[data-theme="dark"] .activity-panel p,
html[data-theme="dark"] .item-meta,
html[data-theme="dark"] .list-row p,
html[data-theme="dark"] .saved-row p,
html[data-theme="dark"] .request-row p,
html[data-theme="dark"] .content-card p,
html[data-theme="dark"] .info-card p,
html[data-theme="dark"] .testimonial-card p,
html[data-theme="dark"] .landing-footer p,
html[data-theme="dark"] .landing-stat small,
html[data-theme="dark"] .team-preview-line small,
html[data-theme="dark"] .competition-action-option p,
html[data-theme="dark"] .discovery-summary-text {
  color: var(--body);
}
html[data-theme="dark"] label span,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .multi-select-field > span {
  color: var(--muted);
}
html[data-theme="dark"] .section-block,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .filters-panel,
html[data-theme="dark"] .table-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .hero-product-preview,
html[data-theme="dark"] .preview-card,
html[data-theme="dark"] .preview-panel,
html[data-theme="dark"] .mini-competition-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .landing-footer,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .how-grid article,
html[data-theme="dark"] .auth-card-redesign,
html[data-theme="dark"] .role-select-box,
html[data-theme="dark"] .onboarding-side,
html[data-theme="dark"] .discovery-shell,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .filter-drawer,
html[data-theme="dark"] .competition-filter-shell,
html[data-theme="dark"] .team-filter-shell,
html[data-theme="dark"] .member-filter-shell,
html[data-theme="dark"] .list-row,
html[data-theme="dark"] .saved-row,
html[data-theme="dark"] .request-row,
html[data-theme="dark"] .task-row,
html[data-theme="dark"] .team-workspace-row,
html[data-theme="dark"] .team-message,
html[data-theme="dark"] .member-line,
html[data-theme="dark"] .competition-action-option,
html[data-theme="dark"] .team-preset-note,
html[data-theme="dark"] .university-field-inline,
html[data-theme="dark"] .university-input-shell,
html[data-theme="dark"] .team-chat-box,
html[data-theme="dark"] .chat-bubble,
html[data-theme="dark"] .profile-university-card {
  border-color: var(--border-soft);
  background: rgba(17, 24, 39, .88);
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .hero-product-preview,
html[data-theme="dark"] .landing-stats-strip,
html[data-theme="dark"] .role-select-box,
html[data-theme="dark"] .onboarding-side,
html[data-theme="dark"] .discovery-shell,
html[data-theme="dark"] .competition-action-option {
  background:
    radial-gradient(circle at top right, rgba(255, 106, 26, .10), transparent 36%),
    linear-gradient(180deg, rgba(17, 24, 39, .94) 0%, rgba(15, 23, 42, .94) 100%);
}
html[data-theme="dark"] .dashboard-appearance-card {
  background:
    radial-gradient(circle at top right, rgba(255, 106, 26, .18), transparent 42%),
    linear-gradient(180deg, rgba(30, 41, 59, .94) 0%, rgba(17, 24, 39, .92) 100%);
}
html[data-theme="dark"] .auth-form-panel {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 106, 26, .10), transparent 30%),
    linear-gradient(180deg, #0B1220 0%, #0F172A 100%);
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .button,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .notification-button,
html[data-theme="dark"] .mobile-menu-button,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .tabs button,
html[data-theme="dark"] .demo-grid button,
html[data-theme="dark"] .role-grid button {
  border-color: var(--border);
  background: rgba(15, 23, 42, .86);
  color: var(--ink-2);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #64748B; }
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  border-color: rgba(255, 106, 26, .7);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, .16);
}
html[data-theme="dark"] .main-nav button {
  background: transparent;
  color: var(--body);
  border-color: transparent;
}
html[data-theme="dark"] .main-nav button:hover,
html[data-theme="dark"] .button.ghost:hover,
html[data-theme="dark"] .icon-button:hover,
html[data-theme="dark"] .notification-button:hover,
html[data-theme="dark"] .mobile-menu-button:hover {
  background: rgba(148, 163, 184, .12);
  color: var(--ink);
  border-color: var(--border-soft);
}
html[data-theme="dark"] .main-nav button.active,
html[data-theme="dark"] .tabs button.active,
html[data-theme="dark"] .role-grid button.active,
html[data-theme="dark"] .theme-toggle[aria-pressed="true"],
html[data-theme="dark"] .language-switch button.active {
  background: rgba(255, 106, 26, .16);
  color: #FFB07A;
  border-color: rgba(255, 106, 26, .28);
}
html[data-theme="dark"] .button.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
html[data-theme="dark"] .button.primary:hover {
  background: #EA580C;
  border-color: #EA580C;
}
html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] .button.outline,
html[data-theme="dark"] .landing-chip,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .appearance-kicker {
  background: rgba(255, 106, 26, .14);
  border-color: rgba(255, 106, 26, .28);
  color: #FFB07A;
}
html[data-theme="dark"] .button.dark {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #F8FAFC;
}
html[data-theme="dark"] .button.danger {
  background: rgba(239, 68, 68, .14);
  border-color: rgba(248, 113, 113, .28);
  color: #FCA5A5;
}
html[data-theme="dark"] .tag.gray,
html[data-theme="dark"] .mini-chip,
html[data-theme="dark"] .status-draft,
html[data-theme="dark"] .action-kicker {
  background: rgba(148, 163, 184, .13);
  border-color: rgba(148, 163, 184, .22);
  color: var(--body);
}
html[data-theme="dark"] .status-pending { background: rgba(245, 158, 11, .16); color: #FCD34D; }
html[data-theme="dark"] .status-approved,
html[data-theme="dark"] .team-preview-line em { background: rgba(16, 185, 129, .16); color: #6EE7B7; }
html[data-theme="dark"] .status-rejected { background: rgba(239, 68, 68, .16); color: #FCA5A5; }
html[data-theme="dark"] .status-open { background: rgba(59, 130, 246, .16); color: #93C5FD; }
html[data-theme="dark"] .content-card h3,
html[data-theme="dark"] .item-title,
html[data-theme="dark"] .feature-card strong,
html[data-theme="dark"] .how-grid strong,
html[data-theme="dark"] .testimonial-card strong,
html[data-theme="dark"] .preview-topline strong,
html[data-theme="dark"] .team-preview-line strong,
html[data-theme="dark"] .activity-panel strong,
html[data-theme="dark"] .landing-stat strong,
html[data-theme="dark"] .landing-footer strong,
html[data-theme="dark"] td {
  color: var(--ink);
}
html[data-theme="dark"] th {
  background: rgba(15, 23, 42, .86);
  color: var(--muted);
}
html[data-theme="dark"] .landing-stat {
  border-right-color: rgba(255, 106, 26, .20);
}
html[data-theme="dark"] .landing-stat:hover {
  background: rgba(255, 106, 26, .08);
}
html[data-theme="dark"] .avatar-stack span {
  border-color: #0B1220;
}
html[data-theme="dark"] .feature-icon {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .14), transparent 24%),
    linear-gradient(135deg, rgba(255, 106, 26, .18), rgba(15, 23, 42, .94));
}
html[data-theme="dark"] .modal-overlay {
  background: rgba(2, 6, 23, .72);
}
html[data-theme="dark"] .toast {
  background: #F8FAFC;
  color: #0F172A;
}
html[data-theme="dark"] .divider::before,
html[data-theme="dark"] .divider::after {
  border-color: var(--border-soft);
}
html[data-theme="dark"] .chat-message-row.mine .chat-bubble {
  background: rgba(255, 106, 26, .16);
  border-color: rgba(255, 106, 26, .26);
}
html[data-theme="dark"] .onboarding-page .form-card.wide .button-row.between {
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.92) 100%);
}

@media (max-width: 720px) {
  .theme-toggle { min-width: 40px; padding: 0 10px; }
  .theme-toggle-label { display: none; }
  .dashboard-appearance-card { align-items: flex-start; flex-direction: column; }
  .dashboard-theme-toggle { width: 100%; }
}
