.shell {
  max-width: 1600px;
  padding: 0 24px 56px;
}

.workspace {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.workspace.library-expanded { grid-template-columns: minmax(0, 342px) minmax(0, 1fr); }

.library, .practice { min-width: 0; }
.library {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}
.library-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: 52px;
  min-height: 152px;
  padding: 14px 8px;
  border: 0;
  border-radius: 16px;
  background: #17304a;
  color: #fff;
  cursor: pointer;
}
.library-toggle:hover, .library-toggle:focus-visible { background: #286d4a; }
.library-toggle-icon { font-size: 20px; line-height: 1; }
.library-toggle-label { writing-mode: vertical-rl; letter-spacing: 2px; font-size: 13px; font-weight: 700; }
.library-toggle-arrow { font-size: 17px; line-height: 1; }
.library-expanded .library-toggle-arrow { transform: rotate(180deg); }
.practice {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.practice > .card { min-width: 0; margin-bottom: 0; }
.practice .section-heading { flex-wrap: wrap; }
.practice .source-tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.practice .controls { flex-wrap: wrap; }
.source-card { min-width: 0; padding: 24px; }
.source-card .section-heading { align-items: center; }
.import-intro { margin: -8px 0 16px; color: #738277; font-size: 12px; line-height: 1.5; }
.source-card .import-grid { grid-template-columns: 1fr; gap: 10px; }
.source-card .import-box { min-height: 88px; padding: 14px 16px; }
.source-card .status { margin: 13px 0 18px; }

@media (max-width: 1050px) {
  .workspace.library-expanded { grid-template-columns: 52px minmax(0, 1fr); }
  .library { position: relative; z-index: 2; }
  .library-expanded .source-card {
    position: absolute;
    top: 0;
    left: 60px;
    width: min(300px, calc(100vw - 90px));
    box-shadow: 0 18px 45px #17304a25;
  }
}

@media (max-width: 700px) {
  .practice { grid-template-columns: minmax(0, 1fr); gap: 13px; }
}

.masthead {
  margin: 24px 0 28px;
  padding: 30px 42px 44px;
  border-radius: 26px;
  background: radial-gradient(circle at 100% 0%, #284a5b 0, transparent 42%), #17304a;
}

.masthead::after {
  right: -170px;
  top: -230px;
}

.hero-top, .hero-body, .feature-top, .feature-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-top { position: relative; z-index: 1; }
.hero-body {
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 46px;
  margin-top: 44px;
}

.hero-copy { min-width: 0; flex: 1; }
.hero-copy .eyebrow { margin: 0 0 20px; }
.hero-copy h1 {
  font-size: clamp(36px, 4.2vw, 55px);
  line-height: 1.27;
  letter-spacing: -1.5px;
  overflow-wrap: normal;
}
.hero-copy .intro { max-width: 510px; margin-top: 20px; }
.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  padding: 14px 19px;
  border-radius: 12px;
  background: #bee3b8;
  color: #17304a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.hero-action:hover, .hero-action:focus-visible { background: #d6efcf; }

.hero-feature {
  width: min(35%, 310px);
  flex: none;
  padding: 22px;
  border: 1px solid #87b49b55;
  border-radius: 19px;
  background: #ffffff10;
  box-shadow: 0 18px 40px #071b2740;
}
.feature-top {
  justify-content: flex-start;
  gap: 8px;
  color: #b9d4c4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}
.feature-dot { width: 6px; height: 6px; border-radius: 50%; background: #bee3b8; }
.feature-index { margin-left: auto; color: #94aebb; }
.feature-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 94px;
  margin: 14px 0 7px;
  border-radius: 12px;
  background: #102c3e;
}
.feature-art span { width: 5px; height: 16px; border-radius: 4px; background: #a6d7ad; }
.feature-art span:nth-child(2), .feature-art span:nth-child(8) { height: 30px; }
.feature-art span:nth-child(3), .feature-art span:nth-child(7) { height: 51px; }
.feature-art span:nth-child(4), .feature-art span:nth-child(6) { height: 37px; }
.feature-art span:nth-child(5) { height: 68px; }
.feature-label { margin: 17px 0 7px; color: #a9c6b5; font-size: 11px; }
.hero-feature h2 { margin: 0; font-size: 24px; letter-spacing: -.5px; }
.feature-source { margin: 9px 0 18px; color: #c4d6d8; font-size: 12px; }
.feature-footer {
  padding-top: 13px;
  border-top: 1px solid #ffffff25;
  color: #bde0bf;
  font-size: 11px;
}

@media (max-width: 760px) {
  .shell { padding: 0 16px 40px; }
  .masthead { margin: 16px 0 22px; padding: 25px 27px 31px; }
  .hero-body { gap: 28px; margin-top: 32px; }
  .hero-copy h1 { font-size: clamp(35px, 5vw, 46px); }
  .hero-feature { width: 34%; min-width: 205px; padding: 16px; }
  .feature-art { height: 72px; }
}

@media (max-width: 620px) {
  .source-card { padding: 18px; }
  .source-card .import-grid { grid-template-columns: minmax(0, 1fr); }
  .shell { padding: 0 13px 35px; }
  .masthead { margin: 12px 0 18px; padding: 22px 20px 25px; border-radius: 20px; }
  .hero-body { display: block; margin-top: 34px; }
  .hero-copy h1 { font-size: clamp(31px, 8.5vw, 44px); }
  .hero-copy .intro { font-size: 14px; }
  .hero-action { margin-top: 22px; }
  .hero-feature { width: 100%; margin-top: 28px; }
  .feature-art { height: 64px; }
}
