@media (min-width: 768px) {
  body.desktop-guided-studio {
    --guided-ink: #18243b;
    --guided-muted: #667085;
    --guided-line: #e4e9f2;
    --guided-soft: #f6f8fc;
    --guided-orange: #f97316;
    --guided-violet: #6d5dfc;
    --guided-green: #13a47b;
  }

  body.desktop-guided-studio .create-workspace {
    background:
      radial-gradient(circle at 85% 8%, rgba(109, 93, 252, 0.08), transparent 28rem),
      radial-gradient(circle at 12% 18%, rgba(249, 115, 22, 0.08), transparent 25rem),
      #f7f8fb;
  }

  body.desktop-guided-studio .studio-feature-showcase {
    display: none !important;
  }

  body.desktop-guided-studio.guided-home-active:not(.studio-tools-open) .studio-right-rail .source-workspace-head,
  body.desktop-guided-studio.guided-home-active:not(.studio-tools-open) .studio-right-rail #sourceToolGrid {
    display: none !important;
  }

  .guided-studio-home {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--guided-line);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 50px rgba(31, 44, 72, 0.08);
    scrollbar-gutter: stable;
  }

  .guided-studio-home[hidden] {
    display: none !important;
  }

  .guided-home-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.35rem 1.5rem 1rem;
    background:
      linear-gradient(120deg, rgba(109, 93, 252, 0.09), rgba(249, 115, 22, 0.07)),
      #fff;
  }

  .guided-home-kicker,
  .guided-context-card > span,
  .guided-growth-card > span,
  .student-manager-kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--guided-violet);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .guided-home-head h3 {
    margin: 0;
    color: var(--guided-ink);
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    line-height: 1.08;
  }

  .guided-home-head p {
    max-width: 48rem;
    margin: 0.55rem 0 0;
    color: var(--guided-muted);
    line-height: 1.55;
  }

  .guided-audience-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 1rem 1.5rem 0;
  }

  .guided-audience-picker > button {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    min-width: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #dfe4ed;
    border-radius: 0.95rem;
    background: #fafbfc;
    color: var(--guided-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  }

  .guided-audience-picker > button > b {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.75rem;
    background: #edf0f5;
    color: #667085;
    font-size: 1rem;
  }

  .guided-audience-picker > button > span {
    display: grid;
    min-width: 0;
    gap: 0.16rem;
  }

  .guided-audience-picker > button strong {
    font-size: 0.9rem;
  }

  .guided-audience-picker > button small {
    overflow: hidden;
    color: var(--guided-muted);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .guided-audience-picker > button.is-selected {
    border-color: #7768ee;
    background: linear-gradient(135deg, #f1efff, #fbfaff);
    box-shadow: 0 0 0 3px rgba(109, 93, 252, 0.1);
  }

  .guided-audience-picker > button.is-selected > b {
    background: linear-gradient(135deg, var(--guided-violet), #8b7cf7);
    color: #fff;
  }

  .guided-studio-home[data-audience="student"] .guided-audience-picker > button.is-selected {
    border-color: #57b99b;
    background: linear-gradient(135deg, #ecfbf5, #fbfffd);
    box-shadow: 0 0 0 3px rgba(19, 164, 123, 0.1);
  }

  .guided-studio-home[data-audience="student"] .guided-audience-picker > button.is-selected > b {
    background: linear-gradient(135deg, #12a47a, #35ba91);
  }

  .guided-student-hub-link {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    padding: 0.15rem 0.2rem;
    color: #0d7c60;
    font-size: 0.8rem;
    font-weight: 850;
    text-decoration: none;
  }

  .guided-student-hub-link[hidden] {
    display: none !important;
  }

  .guided-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(7rem, 1fr));
    gap: 0.4rem;
    min-width: 31rem;
  }

  .guided-progress span {
    display: grid;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
    color: #778198;
    font-size: 0.75rem;
    font-weight: 700;
  }

  .guided-progress b {
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    place-items: center;
    border: 1px solid #d7ddea;
    border-radius: 999px;
    background: #fff;
    color: #7b8497;
  }

  .guided-progress span.is-active {
    color: var(--guided-ink);
  }

  .guided-progress span.is-active b {
    border-color: transparent;
    background: linear-gradient(135deg, var(--guided-violet), #8d7cff);
    color: #fff;
    box-shadow: 0 6px 16px rgba(109, 93, 252, 0.25);
  }

  .guided-context-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 1rem 1.5rem 0;
  }

  .guided-context-card {
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--guided-line);
    border-radius: 1rem;
    background: var(--guided-soft);
  }

  .guided-context-card strong {
    display: block;
    overflow: hidden;
    color: var(--guided-ink);
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .guided-context-card small {
    display: block;
    margin-top: 0.2rem;
    color: var(--guided-muted);
  }

  .guided-context-action {
    align-self: stretch;
    padding: 0 1rem;
    border: 1px solid #ddd8ff;
    border-radius: 1rem;
    background: #f5f2ff;
    color: #5746d9;
    font-weight: 800;
    cursor: pointer;
  }

  .guided-goal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1rem 1.5rem 1.4rem;
  }

  .guided-goal {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.15rem 0.75rem;
    align-content: center;
    min-height: 6.6rem;
    padding: 0.9rem;
    border: 1px solid var(--guided-line);
    border-radius: 1.1rem;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }

  .guided-goal:hover,
  .guided-goal:focus-visible {
    transform: translateY(-3px);
    border-color: #cfc7ff;
    box-shadow: 0 14px 28px rgba(42, 52, 76, 0.11);
    outline: none;
  }

  .guided-goal-icon {
    grid-row: 1 / 3;
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    margin: 0;
    place-items: center;
    border-radius: 0.8rem;
    background: var(--goal-color, #ede9fe);
    color: var(--goal-ink, #5b43d6);
    font-size: 1.15rem;
    font-weight: 900;
  }

  .guided-goal strong {
    align-self: end;
    color: var(--guided-ink);
    font-size: 0.95rem;
  }

  .guided-goal small {
    align-self: start;
    margin: 0;
    color: var(--guided-muted);
    line-height: 1.35;
  }

  .guided-tool-strip {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--guided-line);
    border-radius: 1rem;
    background: linear-gradient(90deg, #faf9ff, #fffaf5);
  }

  .guided-tool-strip .guided-progress {
    min-width: 0;
    flex: 1;
  }

  .guided-back-goals {
    flex: 0 0 auto;
    padding: 0.68rem 0.9rem;
    border: 1px solid #d8ddea;
    border-radius: 0.75rem;
    background: #fff;
    color: var(--guided-ink);
    font-weight: 800;
    cursor: pointer;
  }

  .growth-audience-card {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--guided-line);
    border-radius: 1.05rem;
    background: #fff;
  }

  .growth-audience-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
  }

  .growth-audience-head h3 {
    margin: 0;
    color: var(--guided-ink);
    font-size: 1rem;
  }

  .growth-audience-head p {
    margin: 0.28rem 0 0;
    color: var(--guided-muted);
    font-size: 0.85rem;
  }

  .growth-audience-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(10rem, 1fr));
    gap: 0.7rem;
    margin-top: 0.85rem;
  }

  .growth-audience-option {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.78rem 0.85rem;
    border: 1px solid #dde2ec;
    border-radius: 0.85rem;
    background: #fafbfc;
    color: var(--guided-ink);
    text-align: left;
    cursor: pointer;
  }

  .growth-audience-option b {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.65rem;
    background: #ece9ff;
    color: #5845dc;
  }

  .growth-audience-option span {
    display: grid;
    gap: 0.12rem;
    font-size: 0.82rem;
  }

  .growth-audience-option strong {
    font-size: 0.9rem;
  }

  .growth-audience-option.is-selected {
    border-color: #8c7cf5;
    background: #f3f0ff;
    box-shadow: 0 0 0 2px rgba(109, 93, 252, 0.1);
  }

  .growth-product-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.85rem;
  }

  .growth-product-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid #e4e7ed;
    border-radius: 0.8rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
  }

  .growth-product-card strong {
    color: var(--guided-ink);
    font-size: 0.82rem;
  }

  .growth-product-card small {
    color: var(--guided-muted);
    line-height: 1.35;
  }

  .guided-growth-card {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #dce8df;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f1fbf6, #fff);
  }

  .guided-growth-card h3 {
    margin: 0;
    color: var(--guided-ink);
    font-size: 1.05rem;
  }

  .guided-growth-card p {
    margin: 0.35rem 0 0;
    color: var(--guided-muted);
    line-height: 1.5;
  }

  .guided-growth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
  }

  .guided-growth-actions button,
  .guided-growth-actions a {
    padding: 0.66rem 0.85rem;
    border: 1px solid #d3dae6;
    border-radius: 0.72rem;
    background: #fff;
    color: var(--guided-ink);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
  }

  .guided-growth-actions .is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--guided-violet), #8577f8);
    color: #fff;
  }

  .student-manager-modal {
    position: fixed;
    z-index: 1600;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 2rem;
  }

  .student-manager-modal[hidden] {
    display: none;
  }

  .student-manager-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(13, 20, 37, 0.62);
    backdrop-filter: blur(4px);
  }

  .student-manager-card {
    position: relative;
    width: min(68rem, 94vw);
    max-height: 88vh;
    overflow: auto;
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
  }

  .student-manager-head {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--guided-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
  }

  .student-manager-head h2 {
    margin: 0;
    color: var(--guided-ink);
    font-size: 1.2rem;
  }

  .student-manager-head button {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #dce1e9;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
  }

  .student-manager-body {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 1rem;
    padding: 1.15rem;
  }

  .student-manager-panel {
    padding: 1rem;
    border: 1px solid var(--guided-line);
    border-radius: 1rem;
    background: #fbfcfe;
  }

  .student-manager-panel h3 {
    margin: 0;
    color: var(--guided-ink);
    font-size: 1rem;
  }

  .student-join-code {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.8rem;
    padding: 0.85rem;
    border: 1px dashed #b8b0f3;
    border-radius: 0.85rem;
    background: #f3f1ff;
  }

  .student-join-code strong {
    flex: 1;
    color: #4936c9;
    font-size: 1.25rem;
    letter-spacing: 0.14em;
  }

  .student-manager-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.8rem;
  }

  .student-manager-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.78rem;
    border: 1px solid #e4e7ed;
    border-radius: 0.78rem;
    background: #fff;
  }

  .student-manager-row strong,
  .student-manager-row small {
    display: block;
  }

  .student-manager-row small {
    margin-top: 0.15rem;
    color: var(--guided-muted);
  }

  .student-manager-row-actions {
    display: flex;
    gap: 0.35rem;
  }

  .student-manager-row-actions button,
  .student-manager-form button,
  .student-join-code button {
    padding: 0.55rem 0.7rem;
    border: 1px solid #d7dde7;
    border-radius: 0.65rem;
    background: #fff;
    color: var(--guided-ink);
    font-weight: 800;
    cursor: pointer;
  }

  .student-manager-row-actions button[data-decision="approved"],
  .student-manager-form button {
    border-color: transparent;
    background: var(--guided-violet);
    color: #fff;
  }

  .student-manager-form {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 0.65rem;
    margin-top: 0.8rem;
  }

  .student-manager-form[hidden] {
    display: none;
  }

  .student-manager-form label {
    display: grid;
    gap: 0.3rem;
    color: var(--guided-muted);
    font-size: 0.75rem;
    font-weight: 700;
  }

  .student-manager-form label:first-child {
    grid-column: 1 / -1;
  }

  .student-manager-form input,
  .student-manager-form select,
  .student-manager-form textarea {
    width: 100%;
    padding: 0.65rem 0.72rem;
    border: 1px solid #d9dfe9;
    border-radius: 0.65rem;
    background: #fff;
    color: var(--guided-ink);
    font: inherit;
  }

  .student-manager-status {
    min-height: 1.2rem;
    margin: 0.75rem 0 0;
    color: var(--guided-muted);
    font-size: 0.82rem;
  }

  .student-manager-status.is-error {
    color: #b42318;
  }

  .studio-context-actions .student-hub-manager-button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }

  @media (max-width: 1120px) {
    .guided-home-head {
      grid-template-columns: 1fr;
    }

    .guided-progress {
      min-width: 0;
    }

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

    .student-manager-body {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 1179px) {
    .guided-studio-home {
      grid-column: 1;
      grid-row: 2;
    }
  }

  @media (max-width: 879px) {
    .guided-studio-home {
      grid-column: 1;
      grid-row: auto;
      max-height: none;
    }

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