/* =========================================================
   LEARNING REWIRED STUDIO — PROJECTS PREVIEW V2
   Location: /assets/css/studio-projects.css
   Page: /studio/projects/index.html

   Purpose:
   Public preview of the future Studio saved-work layer.
   ========================================================= */

:root {
  --sp-bg: var(--studio-bg, #eef2f7);
  --sp-panel: var(--studio-panel, #ffffff);
  --sp-panel-soft: var(--studio-panel-soft, #f8fafc);
  --sp-ink: var(--studio-ink, #07111f);
  --sp-muted: var(--studio-muted, rgba(7, 17, 31, 0.62));
  --sp-faint: var(--studio-faint, rgba(7, 17, 31, 0.42));
  --sp-line: var(--studio-line, rgba(15, 23, 42, 0.08));
  --sp-blue: var(--studio-blue, #2563eb);
  --sp-blue-dark: var(--studio-blue-dark, #123f9c);
  --sp-teal: var(--studio-teal, #14b8a6);
  --sp-shadow: var(--studio-shadow, 0 24px 70px rgba(15, 23, 42, 0.10));
  --sp-shadow-soft: var(--studio-shadow-soft, 0 14px 40px rgba(15, 23, 42, 0.07));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-ink);
}

.studio-projects-app,
.studio-projects-app button,
.studio-projects-app input {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.studio-projects-app h1,
.studio-projects-app h2,
.studio-projects-app h3,
.studio-projects-app p {
  margin-top: 0;
}

.studio-projects-app a {
  color: inherit;
}

.studio-projects-app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.13), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.10), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, var(--sp-bg) 100%);
}

/* =========================================================
   APP SHELL
   ========================================================= */

.sp-v1 {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 310px;
  min-height: 100vh;
}

/* =========================================================
   LEFT SIDEBAR
   ========================================================= */

.sp-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 18px;
  border-right: 1px solid var(--sp-line);
  background:
    radial-gradient(circle at 18% 4%, rgba(37, 99, 235, 0.12), transparent 32%),
    #07111f;
  color: #ffffff;
}

.sp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px;
  border-radius: 20px;
  color: #ffffff;
  text-decoration: none;
}

.sp-brand-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(20, 184, 166, 0.18));
}

.sp-brand span {
  display: grid;
  gap: 2px;
}

.sp-brand strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.sp-brand em {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-nav {
  display: grid;
  gap: 8px;
}

.sp-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.sp-nav a:hover {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.sp-nav a.is-active {
  border-color: rgba(147, 197, 253, 0.20);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(20, 184, 166, 0.42));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.sp-nav a span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

.sp-sidebar-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.20);
}

.sp-sidebar-card p {
  margin: 0 0 8px;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sp-sidebar-card strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 920;
  letter-spacing: -0.04em;
}

.sp-sidebar-card span {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  line-height: 1.48;
}

.sp-sidebar-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 100%;
  border-radius: 999px;
  background: #ffffff;
  color: #07111f !important;
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
}

/* =========================================================
   MAIN WORKSPACE
   ========================================================= */

.sp-main {
  min-width: 0;
  padding: 26px;
}

.sp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.sp-topbar-kicker,
.sp-eyebrow {
  margin: 0 0 8px;
  color: var(--sp-blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.sp-topbar h1 {
  margin: 0;
  color: var(--sp-ink);
  font-size: clamp(28px, 2.7vw, 42px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.052em;
}

.sp-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sp-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.sp-topbar-btn:hover {
  transform: translateY(-2px);
}

.sp-topbar-btn.primary {
  background: linear-gradient(135deg, #080b12 0%, #123f9c 50%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.sp-topbar-btn.secondary {
  border: 1px solid var(--sp-line);
  background: #ffffff;
  color: var(--sp-ink) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

/* =========================================================
   HERO
   ========================================================= */

.sp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
}

.sp-hero-copy,
.sp-hero-panel {
  border: 1px solid var(--sp-line);
  border-radius: 36px;
  background: #ffffff;
  box-shadow: var(--sp-shadow);
}

.sp-hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle at 90% 14%, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at 12% 90%, rgba(20, 184, 166, 0.10), transparent 34%),
    #ffffff;
}

.sp-hero-copy h2 {
  max-width: 900px;
  margin: 0;
  color: var(--sp-ink);
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: -0.064em;
  text-wrap: balance;
}

.sp-hero-copy p:not(.sp-eyebrow) {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--sp-muted);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.66;
}

.sp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.sp-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.sp-hero-btn:hover {
  transform: translateY(-2px);
}

.sp-hero-btn.primary {
  background: linear-gradient(135deg, #080b12 0%, #123f9c 50%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.sp-hero-btn.secondary {
  border: 1px solid var(--sp-line);
  background: #ffffff;
  color: var(--sp-ink) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.sp-hero-panel {
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.10), transparent 32%),
    #ffffff;
}

.sp-hero-panel > p {
  margin: 0 0 16px;
  color: var(--sp-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sp-status-list {
  display: grid;
  gap: 10px;
}

.sp-status-list div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sp-line);
}

.sp-status-list span {
  color: var(--sp-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sp-status-list strong {
  color: var(--sp-ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.sp-section {
  margin-top: 26px;
}

.sp-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.sp-section-heading h2 {
  margin: 0;
  color: var(--sp-ink);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.055em;
}

/* =========================================================
   PROJECT BOARD
   ========================================================= */

.sp-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sp-board-column {
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--sp-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.06), transparent 30%),
    #ffffff;
  box-shadow: var(--sp-shadow-soft);
}

.sp-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.sp-board-heading p {
  margin: 0;
  color: var(--sp-ink);
  font-size: 0.98rem;
  font-weight: 950;
}

.sp-board-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--sp-blue-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-project-card {
  display: flex;
  flex-direction: column;
  min-height: 225px;
  padding: 18px;
  border: 1px solid var(--sp-line);
  border-radius: 24px;
  background: #ffffff;
  color: inherit;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.sp-project-card + .sp-project-card {
  margin-top: 12px;
}

.sp-project-card.active {
  background:
    radial-gradient(circle at 82% 14%, rgba(37, 99, 235, 0.14), transparent 30%),
    radial-gradient(circle at 16% 86%, rgba(20, 184, 166, 0.10), transparent 30%),
    #ffffff;
  border-color: rgba(37, 99, 235, 0.14);
}

.sp-project-card.muted {
  opacity: 0.94;
}

.sp-project-card span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  margin-bottom: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--sp-blue-dark);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sp-project-card h3 {
  margin: 0 0 10px;
  color: var(--sp-ink);
  font-size: 1.35rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.045em;
}

.sp-project-card p {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sp-project-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 100%;
  margin-top: auto;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--sp-blue-dark) !important;
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
}

/* =========================================================
   VALUE PANEL
   ========================================================= */

.sp-value-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--sp-line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 14% 10%, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at 96% 86%, rgba(20, 184, 166, 0.10), transparent 34%),
    #ffffff;
  box-shadow: var(--sp-shadow);
}

.sp-value-panel h2 {
  margin: 0;
  color: var(--sp-ink);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.sp-value-panel > div > p:not(.sp-eyebrow) {
  margin: 20px 0 0;
  color: var(--sp-muted);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.66;
}

.sp-value-list {
  display: grid;
  gap: 12px;
}

.sp-value-list article {
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.sp-value-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--sp-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sp-value-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sp-ink);
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.sp-value-list p {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.93rem;
  line-height: 1.52;
}

/* =========================================================
   PROJECT TYPES
   ========================================================= */

.sp-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sp-type-card {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 22px;
  border: 1px solid var(--sp-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.08), transparent 28%),
    #ffffff;
  box-shadow: var(--sp-shadow-soft);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.sp-type-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: var(--sp-shadow);
}

.sp-type-card.active {
  background:
    radial-gradient(circle at 82% 14%, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at 16% 86%, rgba(20, 184, 166, 0.12), transparent 30%),
    #ffffff;
}

.sp-type-card span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--sp-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sp-type-card h3 {
  margin: 0 0 12px;
  color: var(--sp-ink);
  font-size: 1.5rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sp-type-card p {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.sp-final-section {
  padding-bottom: 40px;
}

.sp-empty-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--sp-line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(20, 184, 166, 0.10), transparent 34%),
    #ffffff;
  box-shadow: var(--sp-shadow);
}

.sp-empty-state h2 {
  margin: 0;
  color: var(--sp-ink);
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.sp-empty-state p:not(.sp-eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--sp-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.sp-empty-actions {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.sp-empty-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #080b12 0%, #123f9c 50%, #2563eb 100%);
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.sp-empty-actions a + a {
  border: 1px solid var(--sp-line);
  background: #ffffff;
  color: var(--sp-ink) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

/* =========================================================
   RIGHT RAIL
   ========================================================= */

.sp-right-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 26px 18px 26px 0;
  overflow-y: auto;
}

.sp-member-card,
.sp-quick-actions,
.sp-signal-card {
  border: 1px solid var(--sp-line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--sp-shadow-soft);
}

.sp-member-card {
  padding: 24px;
  background:
    radial-gradient(circle at 86% 16%, rgba(37, 99, 235, 0.20), transparent 34%),
    radial-gradient(circle at 10% 90%, rgba(20, 184, 166, 0.14), transparent 34%),
    #07111f;
  color: #ffffff;
}

.sp-member-card p {
  margin: 0 0 12px;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sp-member-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.06em;
}

.sp-member-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.sp-member-card a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #07111f !important;
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
}

.sp-quick-actions {
  padding: 20px;
}

.sp-rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sp-rail-heading p {
  margin: 0;
  color: var(--sp-ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.sp-rail-heading span {
  color: var(--sp-blue);
}

.sp-quick-actions a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 16px;
  color: rgba(7, 17, 31, 0.72) !important;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.sp-quick-actions a:hover {
  transform: translateX(2px);
  background: #f8fafc;
  color: var(--sp-blue-dark) !important;
}

.sp-quick-actions a span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--sp-blue);
}

.sp-signal-card {
  padding: 22px;
  background:
    radial-gradient(circle at 86% 16%, rgba(37, 99, 235, 0.10), transparent 34%),
    #ffffff;
}

.sp-signal-card p {
  margin: 0 0 16px;
  color: var(--sp-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sp-signal-card h3 {
  margin: 0 0 12px;
  color: var(--sp-ink);
  font-size: 1.42rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.045em;
}

.sp-signal-card span {
  color: var(--sp-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1280px) {
  .sp-v1 {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .sp-right-rail {
    position: static;
    height: auto;
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 26px 34px;
  }

  .sp-member-card,
  .sp-quick-actions,
  .sp-signal-card {
    min-height: 100%;
  }

  .sp-hero {
    grid-template-columns: 1fr;
  }

  .sp-board-grid {
    grid-template-columns: 1fr;
  }

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

  .sp-value-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .sp-v1 {
    display: block;
  }

  .sp-sidebar {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--sp-line);
  }

  .sp-brand {
    min-height: 46px;
  }

  .sp-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sp-nav a {
    flex: 0 0 auto;
  }

  .sp-sidebar-card {
    display: none;
  }

  .sp-main {
    padding: 22px 16px;
  }

  .sp-right-rail {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 16px 28px;
  }

  .sp-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sp-topbar-actions {
    width: 100%;
  }

  .sp-topbar-btn {
    flex: 1;
  }

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

  .sp-empty-actions {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .sp-hero-copy,
  .sp-hero-panel,
  .sp-value-panel,
  .sp-empty-state,
  .sp-member-card,
  .sp-quick-actions,
  .sp-signal-card {
    border-radius: 28px;
  }

  .sp-hero-copy,
  .sp-value-panel,
  .sp-empty-state {
    padding: 26px 22px;
  }

  .sp-hero-copy h2 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 1;
  }

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

  .sp-type-grid {
    grid-template-columns: 1fr;
  }

  .sp-topbar-actions,
  .sp-hero-actions {
    display: grid;
    width: 100%;
  }

  .sp-topbar-btn,
  .sp-hero-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .sp-main {
    padding: 18px 12px;
  }

  .sp-sidebar {
    padding: 12px;
  }

  .sp-right-rail {
    padding: 0 12px 24px;
  }

  .sp-hero-copy,
  .sp-value-panel,
  .sp-empty-state {
    padding: 24px 20px;
  }

  .sp-board-column,
  .sp-project-card,
  .sp-type-card {
    padding: 18px;
    border-radius: 24px;
  }

  .sp-member-card,
  .sp-quick-actions,
  .sp-signal-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sp-nav a,
  .sp-topbar-btn,
  .sp-hero-btn,
  .sp-type-card,
  .sp-quick-actions a {
    transition: none !important;
  }

  .sp-nav a:hover,
  .sp-topbar-btn:hover,
  .sp-hero-btn:hover,
  .sp-type-card:hover,
  .sp-quick-actions a:hover {
    transform: none !important;
  }
}
