/* =========================================================
   LEARNING REWIRED STUDIO — HOME WORKSPACE PREVIEW V1
   Location: /assets/css/studio-home.css
   Page: /studio/home/index.html
   ========================================================= */

:root {
  --sh-bg: #eef2f7;
  --sh-panel: #ffffff;
  --sh-panel-soft: #f8fafc;
  --sh-ink: #07111f;
  --sh-muted: rgba(7, 17, 31, 0.62);
  --sh-faint: rgba(7, 17, 31, 0.42);
  --sh-line: rgba(15, 23, 42, 0.08);
  --sh-blue: #2563eb;
  --sh-blue-dark: #123f9c;
  --sh-teal: #14b8a6;
  --sh-purple: #7c3aed;
  --sh-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --sh-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(--sh-bg);
  color: var(--sh-ink);
}

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

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

a {
  color: inherit;
}

.studio-home-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(--sh-bg) 100%);
}

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

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

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

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

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

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

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

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

.sh-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;
}

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

.sh-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;
}

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

.sh-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);
}

.sh-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;
}

.sh-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);
}

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

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

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

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

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

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

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

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

.sh-topbar h1 {
  margin: 0;
  color: var(--sh-ink);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.055em;
}

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

.sh-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;
}

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

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

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

/* =========================================================
   COMMAND CENTER
   ========================================================= */

.sh-command-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-bottom: 24px;
}

.sh-command-copy,
.sh-coach-card {
  border: 1px solid var(--sh-line);
  border-radius: 36px;
  background: #ffffff;
  box-shadow: var(--sh-shadow);
}

.sh-command-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  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;
}

.sh-command-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  pointer-events: none;
}

.sh-command-copy > * {
  position: relative;
  z-index: 1;
}

.sh-command-copy h2 {
  max-width: 760px;
  margin: 0;
  color: var(--sh-ink);
  font-size: clamp(42px, 5.7vw, 84px);
  font-weight: 760;
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.sh-command-copy p:not(.sh-eyebrow) {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--sh-muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.68;
}

.sh-command-input {
  max-width: 850px;
  margin-top: 30px;
}

.sh-command-input label {
  display: block;
  margin-bottom: 10px;
  color: var(--sh-ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.sh-command-input div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.sh-command-input input {
  min-height: 50px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--sh-ink);
  outline: none;
  padding: 0 12px;
  font-size: 0.98rem;
}

.sh-command-input input::placeholder {
  color: rgba(7, 17, 31, 0.36);
}

.sh-command-input button {
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #080b12 0%, #123f9c 50%, #2563eb 100%);
  color: #ffffff;
  font-weight: 950;
  cursor: pointer;
}

.sh-coach-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 34%),
    #ffffff;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.sh-coach-top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.sh-coach-top > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--sh-blue);
  font-size: 1.2rem;
}

.sh-coach-top p {
  margin: 0 0 3px;
  color: var(--sh-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sh-coach-top strong {
  color: var(--sh-ink);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.sh-coach-card > p {
  margin: 0;
  color: var(--sh-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.sh-coach-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.sh-coach-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--sh-blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.sh-coach-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  margin-top: 20px;
  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);
}

.sh-coach-card.is-thinking {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.14);
}

.sh-coach-card.has-diagnosis {
  animation: shCoachPulse 0.75s ease;
}

@keyframes shCoachPulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.015);
  }

  100% {
    transform: scale(1);
  }
}

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

.sh-section {
  margin-top: 24px;
}

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

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

.sh-section-heading a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--sh-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--sh-blue-dark);
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

/* =========================================================
   LIBRARY
   ========================================================= */

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

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

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

.sh-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--sh-blue);
  font-size: 1.15rem;
}

.sh-library-card p {
  margin: 0 0 7px;
  color: var(--sh-ink);
  font-size: 0.94rem;
  font-weight: 950;
}

.sh-library-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--sh-blue-dark);
  font-size: 0.88rem;
  font-weight: 950;
}

.sh-library-card em {
  margin-top: auto;
  color: var(--sh-muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.45;
}

/* =========================================================
   WORKFLOW CARDS
   ========================================================= */

.sh-work-grid {
  display: grid;
  gap: 14px;
}

.sh-work-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--sh-line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--sh-shadow-soft);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

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

.sh-work-card.featured {
  background:
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.12), transparent 28%),
    #ffffff;
}

.sh-work-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--sh-blue);
  font-size: 1.12rem;
  font-weight: 950;
}

.sh-work-card p {
  margin: 0 0 5px;
  color: var(--sh-blue);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sh-work-card h3 {
  margin: 0 0 13px;
  color: var(--sh-ink);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.sh-progress {
  overflow: hidden;
  width: min(420px, 100%);
  height: 8px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.sh-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sh-blue), var(--sh-teal));
}

.sh-work-card em {
  color: var(--sh-muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.sh-work-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--sh-blue-dark);
  font-weight: 950;
}

/* =========================================================
   TOOLS
   ========================================================= */

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

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

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

.sh-tool-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;
}

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

.sh-tool-card h3 {
  margin: 0 0 12px;
  color: var(--sh-ink);
  font-size: 26px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sh-tool-card p {
  margin: 0;
  color: var(--sh-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* =========================================================
   MEMBER UNLOCK PANEL
   ========================================================= */

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

.sh-template-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--sh-line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.13), transparent 34%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.10), transparent 36%),
    #ffffff;
  box-shadow: var(--sh-shadow);
}

.sh-template-panel h3 {
  margin: 0;
  color: var(--sh-ink);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.055em;
}

.sh-template-panel p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--sh-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.sh-template-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #080b12 0%, #123f9c 50%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

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

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

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

.sh-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;
}

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

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

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

.sh-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;
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
}

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

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

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

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

.sh-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);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

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

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

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

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

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

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

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

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

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

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

  .sh-command-center {
    grid-template-columns: 1fr;
  }

  .sh-coach-card {
    min-height: auto;
  }

  .sh-coach-chips {
    margin-top: 0;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .sh-work-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .sh-work-arrow {
    display: none;
  }

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

  .sh-template-panel a {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .sh-command-copy,
  .sh-coach-card,
  .sh-member-card,
  .sh-quick-actions,
  .sh-signal-card,
  .sh-template-panel {
    border-radius: 28px;
  }

  .sh-command-copy {
    padding: 26px 22px;
  }

  .sh-command-copy h2 {
    font-size: clamp(38px, 13vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.062em;
  }

  .sh-command-input div {
    grid-template-columns: 1fr;
  }

  .sh-command-input button {
    width: 100%;
  }

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

  .sh-section-heading a {
    width: 100%;
    justify-content: center;
  }

  .sh-library-grid,
  .sh-tool-grid {
    grid-template-columns: 1fr;
  }

  .sh-library-card,
  .sh-tool-card {
    min-height: auto;
  }

  .sh-work-card {
    grid-template-columns: 1fr;
  }

  .sh-work-icon {
    width: 48px;
    height: 48px;
  }

  .sh-topbar-actions {
    display: grid;
  }

  .sh-topbar-btn {
    width: 100%;
  }
}

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

  .sh-sidebar {
    padding: 12px;
  }

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

  .sh-command-copy {
    padding: 24px 20px;
  }

  .sh-library-card,
  .sh-work-card,
  .sh-tool-card {
    padding: 18px;
    border-radius: 24px;
  }

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

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

  .sh-nav a,
  .sh-topbar-btn,
  .sh-work-card,
  .sh-tool-card,
  .sh-quick-actions a,
  .sh-library-card {
    transition: none !important;
  }

  .sh-nav a:hover,
  .sh-topbar-btn:hover,
  .sh-work-card:hover,
  .sh-tool-card:hover,
  .sh-quick-actions a:hover,
  .sh-library-card:hover {
    transform: none !important;
  }

  .sh-coach-card.has-diagnosis {
    animation: none !important;
  }
}
