/* semester — «Семестр позади»: a calm scene. Solid content only (no glass), the shell's tokens, scoped under .sm / .sm-*;
 * 16 px gutters come from the screen; nothing wider than 320 px. */

.sm-head { margin-bottom: 20px; padding: 8px 4px 0; }
.sm-title { margin: 0; overflow-wrap: anywhere; }
.sm-sub { margin: 4px 0 0; font-size: 15px; color: var(--hint); }

/* the numbers: one per row, the digit large and the words under it */
.sm-nums { display: grid; gap: 10px; margin: 0 0 12px; }
.sm-num {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--bg2); color: var(--text);
}
.sm-big { font-size: 34px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.sm-approx { color: var(--hint); font-weight: 600; }
.sm-label { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 1.35; color: var(--text); }
.sm-note { font-size: 13px; line-height: 1.35; color: var(--hint); }
.sm-gpa .sm-label { color: var(--hint); }
.sm-lock .ico { width: 14px; height: 14px; }
.sm-line { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.sm-check {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgb(var(--accent-rgb) / 0.14); color: var(--accent);
}
.sm-check .ico { width: 18px; height: 18px; }
.sm-calm { margin: 4px 2px 20px; font-size: 13px; line-height: 1.35; color: var(--hint); }

/* the share sheet: the card as it will look, then the two switches */
.sm-share-body { display: grid; gap: 12px; }
.sm-card {
  display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px 16px 16px 6px; background: var(--bg2);
  color: var(--text); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere;
}
.sm-card-title { font-weight: 600; }
.sm-card-parts { margin: 0; }
.sm-card-door {
  justify-self: start; padding: 4px 12px; border-radius: 10px; font-size: 14px;
  background: rgb(var(--accent-rgb) / 0.12); color: var(--accent);
}
.sm-hint { margin: 0 2px; font-size: 13px; line-height: 1.35; color: var(--hint); }
.sm-switch-row { padding-right: 16px; }
.sm-switch {
  position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; margin-left: 12px;
  background: rgb(var(--text-rgb) / 0.16); transition: background .2s ease;
}
.sm-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / .2); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.sm-switch-row[aria-checked="true"] .sm-switch { background: var(--accent); }
.sm-switch-row[aria-checked="true"] .sm-switch::after { transform: translateX(20px); }
.sm-copy-hidden { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.sm-copy-area { width: 100%; min-height: 120px; font: inherit; color: var(--text); background: var(--bg2); border: 0;
                border-radius: 12px; padding: 12px; }

@media (prefers-reduced-motion: reduce) {
  .sm-switch, .sm-switch::after { transition: none; }
}
@media (prefers-contrast: more) {
  .sm-num, .sm-card { box-shadow: inset 0 0 0 1px var(--sep); }
  .sm-switch { box-shadow: inset 0 0 0 1px var(--text); }
  .sm-calm, .sm-sub, .sm-note, .sm-hint { color: var(--text); }
}
