.ss-shell {
  min-height: 100vh;
  box-sizing: border-box;

  padding: 28px 18px 70px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, 0.055),
      transparent 30%
    ),
    #000;

  color: #fff;
}


/* HEADER */

.ss-header {
  width: min(94vw, 1100px);
  margin: 0 auto;
  text-align: center;
}

.ss-logo {
  display: block;

  width: min(22vw, 190px);
  height: auto;

  margin: 0 auto;
}

.ss-eyebrow {
  margin-top: 22px;

  color: #777;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 3px;
}

.ss-header h1 {
  margin: 8px 0 0;

  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;

  letter-spacing: -1px;
}

.ss-tagline {
  margin: 12px 0 0;

  font-size: clamp(17px, 2.2vw, 23px);
  font-weight: 700;
}

.ss-intro {
  max-width: 740px;

  margin: 16px auto 0;

  color: #aaa;

  font-size: 15px;
  line-height: 1.6;
}


/* WORKSPACE */

.ss-workspace {
  width: min(94vw, 1100px);

  margin: 48px auto 0;

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 18px;
}

.ss-panel {
  overflow: hidden;

  border: 1px solid #343434;
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      #111,
      #080808
    );
}

.ss-panel-title {
  padding: 18px 22px;

  border-bottom: 1px solid #2a2a2a;

  color: #ddd;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 1.5px;
  text-transform: uppercase;
}


/* DIAGRAM */

.ss-diagram-wrap {
  min-height: 420px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  box-sizing: border-box;
}

.ss-diagram {
  width: 100%;
  height: auto;
}

.ss-diagram circle,
.ss-diagram line {
  fill: none;

  stroke: #ddd;
  stroke-width: 2.2;

  vector-effect: non-scaling-stroke;
}

.ss-diagram .ss-center-point {
  fill: #ddd;
}

.ss-diagram text {
  fill: #aaa;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.ss-diagram-note {
  padding: 0 22px 20px;

  color: #666;

  font-size: 12px;
  text-align: center;
}


/* INPUT */

.ss-input-panel {
  padding-bottom: 22px;
}

.ss-help {
  margin: 20px 22px 0;

  color: #888;

  font-size: 13px;
  line-height: 1.5;
}

.ss-input-grid {
  padding: 20px 22px 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 15px;
}

.ss-field > span {
  display: block;

  margin-bottom: 7px;

  color: #aaa;

  font-size: 12px;
  font-weight: 700;
}

.ss-field input {
  width: 100%;

  box-sizing: border-box;

  padding: 12px 13px;

  border: 1px solid #3c3c3c;
  border-radius: 8px;

  outline: none;

  background: #050505;
  color: #fff;

  font-size: 18px;
}


/* CENTRAL ANGLE DEGREE SYMBOL */

.ss-input-with-unit {
  position: relative;
  width: 100%;
}

.ss-input-with-unit input {
  width: 100%;
  box-sizing: border-box;

  /* Extra room for degree symbol */
  padding-right: 42px;
}

.ss-input-with-unit span {
  position: absolute;

  right: 14px;
  top: 50%;

  transform: translateY(-50%);

  color: #aaa;
  font-size: 16px;

  pointer-events: none;
}

.ss-field input:focus {
  border-color: #888;
  background: #0a0a0a;
}


/* ACTIONS */

.ss-actions {
  padding: 22px 22px 0;

  display: flex;
  gap: 10px;
}

.ss-primary-button,
.ss-secondary-button {
  min-height: 45px;

  padding: 11px 18px;

  border-radius: 8px;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
}

.ss-primary-button {
  flex: 1;

  border: 1px solid #fff;

  background: #fff;
  color: #000;
}

.ss-secondary-button {
  border: 1px solid #555;

  background: transparent;
  color: #fff;
}

.ss-status {
  min-height: 20px;

  margin: 14px 22px 0;

  color: #aaa;

  font-size: 13px;
}


/* COMMON SECTIONS */

.ss-results-section,
.ss-solution,
.ss-learning {
  width: min(94vw, 1100px);

  margin: 52px auto 0;
}

.ss-section-heading {
  display: flex;

  gap: 14px;
  align-items: flex-start;
}

.ss-section-number {
  min-width: 30px;

  color: #555;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 2px;
}

.ss-section-heading h2 {
  margin: 0;

  font-size: 27px;
}

.ss-section-heading p {
  margin: 7px 0 0;

  color: #888;

  font-size: 14px;
}


/* RESULTS */

.ss-results-grid {
  margin-top: 22px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 12px;
}

.ss-result-card {
  min-height: 95px;

  box-sizing: border-box;

  padding: 16px;

  border: 1px solid #303030;
  border-radius: 12px;

  background: #0b0b0b;
}

.ss-result-card span {
  display: block;

  color: #777;

  font-size: 11px;
  font-weight: 700;
}

.ss-result-card strong {
  display: block;

  margin-top: 9px;

  color: #fff;

  font-size: 21px;
  font-weight: 700;
}


/* SOLUTION */

.ss-solution-card {
  margin-top: 22px;
  padding: 24px;

  border: 1px solid #303030;
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      #101010,
      #080808
    );
}

.ss-solution-placeholder {
  margin: 0;

  color: #777;

  font-size: 14px;
}

.ss-step {
  margin-top: 20px;
}

.ss-step:first-child {
  margin-top: 0;
}

.ss-step-number {
  color: #666;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 1.5px;
}

.ss-step-title {
  margin-top: 5px;

  color: #fff;

  font-size: 16px;
  font-weight: 700;
}

.ss-step-formula {
  margin-top: 8px;

  color: #ccc;

  font-family: Consolas, monospace;
  font-size: 15px;
  line-height: 1.6;
}

.ss-step-note {
  margin-top: 6px;

  color: #777;

  font-size: 13px;
  line-height: 1.55;
}


/* LEARNING */

.ss-learning-grid {
  margin-top: 22px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 14px;
}

.ss-learning-card {
  padding: 22px;

  border: 1px solid #303030;
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      #101010,
      #080808
    );
}

.ss-formula {
  display: inline-block;

  margin-bottom: 16px;
  padding: 8px 10px;

  border: 1px solid #3b3b3b;
  border-radius: 7px;

  background: #050505;

  color: #ddd;

  font-family: Consolas, monospace;
  font-size: 16px;
}

.ss-learning-card h3 {
  margin: 0;

  font-size: 18px;
}

.ss-learning-card p {
  margin: 10px 0 0;

  color: #888;

  font-size: 14px;
  line-height: 1.55;
}


/* BACK */

.ss-bottom-nav {
  margin-top: 42px;
  text-align: center;
}

.ss-back-button {
  display: inline-block;

  padding: 11px 17px;

  border: 1px solid #555;
  border-radius: 8px;

  color: #fff;

  font-size: 14px;
  text-decoration: none;
}


/* RESPONSIVE */

@media (max-width: 850px) {

  .ss-workspace {
    grid-template-columns: 1fr;
  }

  .ss-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 600px) {

  .ss-input-grid,
  .ss-learning-grid {
    grid-template-columns: 1fr;
  }

  .ss-actions {
    flex-direction: column;
  }

}

@media (max-width: 420px) {

  .ss-results-grid {
    grid-template-columns: 1fr;
  }

}