:root {
  --bg: #f6f5f1;
  --panel: #ffffff;
  --panel-soft: #eef5f1;
  --ink: #14211d;
  --muted: #61726b;
  --line: #d9e2dd;
  --midnight: #102f42;
  --primary: #1d6b5d;
  --primary-dark: #13483f;
  --lime: #b8f25d;
  --blue: #2d5f9a;
  --gold: #9d6f20;
  --coral: #ad5741;
  --shadow: 0 16px 42px rgba(20, 33, 29, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(29, 107, 93, 0.1), rgba(246, 245, 241, 0) 280px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(720px, calc(100% - 18px));
  margin: 0 auto;
  padding: 14px 0 34px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 17px;
}

.brand span,
.small {
  color: var(--muted);
  font-size: 13px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-width: 0;
}

.sidebar,
.panel,
.card,
.task,
.modal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.sidebar {
  align-self: start;
  padding: 14px;
}

.panel {
  padding: 22px;
  min-width: 0;
}

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

.nav button,
.btn,
.chip,
.sample-btn,
.task-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.nav button {
  min-width: max-content;
  padding: 12px 14px;
  text-align: center;
  font-weight: 750;
}

.nav button.active,
.chip.active,
.sample-btn.active {
  border-color: var(--primary);
  background: #e8f3ef;
  color: var(--primary-dark);
}

.nav button:hover,
.btn:hover,
.chip:hover,
.sample-btn:hover,
.task-action:hover {
  border-color: #aab8b1;
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  font-weight: 800;
}

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  background: transparent;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.12;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 16px;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.lead {
  max-width: 820px;
  margin-top: 10px;
  font-size: 16px;
  color: #3c5048;
}

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

.grid.three {
  grid-template-columns: 1fr;
}

.card {
  padding: 16px;
  box-shadow: none;
}

.card.soft {
  background: var(--panel-soft);
}

.card.blue {
  border-color: rgba(45, 95, 154, 0.25);
  background: #edf4fb;
}

.card.warn {
  border-color: rgba(173, 87, 65, 0.24);
  background: #fff1ed;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label,
.label {
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  padding: 11px 12px;
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 107, 93, 0.14);
}

.chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.chip {
  min-height: 46px;
  padding: 11px 12px;
  font-size: 16px;
  font-weight: 750;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.sample-btn {
  padding: 12px;
  text-align: left;
}

.sample-btn strong {
  display: block;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.stat strong {
  display: block;
  font-size: 24px;
}

.focus-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(29, 107, 93, 0.22);
  border-radius: 8px;
  background: #f3faf7;
  padding: 14px;
  margin: 18px 0;
}

.next-card,
.feedback-panel,
.hint-card,
.guide-card,
.status-panel,
.share-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(29, 107, 93, 0.24);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  margin-top: 18px;
}

.status-panel,
.share-panel {
  background: #ffffff;
}

.status-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.status-choice {
  min-height: 46px;
  border: 1px solid #d7e2dc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  padding: 11px 12px;
}

.status-choice.active {
  border-color: #173f56;
  background: #edf4fb;
  color: #173f56;
}

.share-text {
  min-height: 260px;
  white-space: pre-wrap;
}

.hint-card {
  background: #ffffff;
  border-color: rgba(45, 95, 154, 0.2);
}

.hint-card strong {
  color: #173f56;
  font-size: 17px;
}

.guide-card {
  grid-template-columns: 1fr;
  background: #ffffff;
  margin: 20px 0 4px;
}

.guide-card > div {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #e8eee9;
  padding-bottom: 12px;
}

.guide-card > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.guide-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #173f56;
  color: #fff;
  font-weight: 900;
}

.next-card {
  background: #f3faf7;
}

.next-card h2,
.feedback-panel h2 {
  font-size: 24px;
}

.next-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.next-meta span {
  border-radius: 999px;
  background: #e8f3ef;
  color: var(--primary-dark);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.compact-actions {
  margin-top: 4px;
}

.summary-section {
  margin-top: 22px;
}

.focus-panel h2 {
  margin: 2px 0 6px;
  font-size: 22px;
}

.focus-panel p {
  margin: 0;
}

.focus-grid {
  display: grid;
  gap: 10px;
}

.focus-choice,
.option-card {
  width: 100%;
  border: 1px solid #d7e2dc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.focus-choice {
  min-height: 68px;
  padding: 12px;
}

.focus-choice strong,
.focus-choice span,
.option-card span,
.option-card strong,
.option-card small {
  display: block;
}

.focus-choice span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.focus-choice.active,
.option-card.active {
  border-color: var(--primary);
  background: #e8f3ef;
  box-shadow: 0 0 0 3px rgba(29, 107, 93, 0.12);
}

.option-strip {
  display: grid;
  gap: 10px;
}

.option-card {
  padding: 12px;
}

.option-card span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.option-card strong {
  margin: 4px 0;
}

.option-card small {
  color: var(--muted);
}

.roadmap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.lane {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 12px;
}

.lane h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lane-count {
  border-radius: 999px;
  background: #e8f1ed;
  padding: 3px 8px;
  color: var(--primary-dark);
  font-size: 12px;
}

.task {
  display: grid;
  gap: 9px;
  padding: 12px;
  box-shadow: none;
}

.task header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.task p {
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border-radius: 999px;
  background: #edf3ef;
  color: #345248;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 800;
}

.tag.high {
  background: #fee7df;
  color: #843a27;
}

.tag.medium {
  background: #f7ecd4;
  color: #735016;
}

.tag.low {
  background: #edf4fb;
  color: #2d5f9a;
}

.tag.focus {
  background: #e8f3ef;
  color: var(--primary-dark);
}

.task-action {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.task-action.primary-action {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.version {
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.version.current {
  background: #edf6f2;
}

.insights {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.insight {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.resource-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.resource {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.resource a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 22, 19, 0.52);
  z-index: 20;
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
}

.resource-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(29, 107, 93, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: #edf6f2;
}

.resource-card strong {
  font-size: 16px;
}

.detail-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mobile-detail .actions {
  position: sticky;
  bottom: -22px;
  margin-right: -22px;
  margin-left: -22px;
  padding: 12px 22px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 18px);
}

.progress-small {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8e4dd;
  margin: 12px 0 8px;
}

.progress-small span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1d6b5d;
}

.reflection-mobile h2 {
  font-size: 24px;
}

.reflection-question {
  margin-top: 16px;
}

.choice-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.choice-large {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d7e2dc;
  border-radius: 8px;
  background: #fff;
  color: #1d2f2a;
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 13px 14px;
  cursor: pointer;
}

.choice-large.active {
  border-color: #1d6b5d;
  background: #edf6f2;
  box-shadow: 0 0 0 3px rgba(29, 107, 93, 0.12);
}

.resource-answer {
  width: 100%;
  min-height: 140px;
  border: 1px solid #d7e2dc;
  border-radius: 8px;
  padding: 14px;
  font: inherit;
  resize: vertical;
}

.guide-list {
  padding-left: 18px;
  margin: 8px 0 0;
}

.guide-list li {
  margin: 8px 0;
}

.hidden {
  display: none !important;
}

@media (min-width: 980px) {
  .shell {
    width: min(1100px, calc(100% - 28px));
    padding-top: 24px;
  }

  .layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
  }

  .sidebar {
    position: sticky;
    top: 18px;
  }

  .nav {
    display: grid;
    overflow: visible;
  }

  .nav button {
    text-align: left;
  }

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

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

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

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

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .roadmap {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: 100%;
    padding: 10px 8px 28px;
  }

  .panel {
    padding: 14px;
    box-shadow: none;
  }

  .sidebar {
    padding: 12px;
    box-shadow: none;
  }

  h1 {
    font-size: 25px;
    line-height: 1.16;
  }

  h2 {
    font-size: 21px;
  }

  .lead {
    font-size: 16px;
  }

  .form {
    gap: 18px;
  }

  .grid,
  .grid.three,
  .focus-grid,
  .option-strip,
  .samples,
  .stats {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    margin-right: -4px;
    margin-left: -4px;
    padding: 0 4px 6px;
  }

  .sample-btn,
  .focus-choice,
  .option-card,
  .task,
  .resource,
  .card {
    width: 100%;
    min-width: 0;
  }

  .chip {
    width: 100%;
  }

  .actions .btn,
  .actions .task-action,
  .actions a {
    width: 100%;
  }
}

/* Visual refresh */
body {
  background:
    linear-gradient(180deg, #f1f7f4 0, #f6f5f1 340px, #f8faf7 100%),
    var(--bg);
}

.shell {
  width: min(1060px, calc(100% - 28px));
  padding-top: 14px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: center;
  border: 1px solid rgba(217, 226, 221, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  padding: 10px 12px;
  box-shadow: 0 10px 32px rgba(20, 33, 29, 0.08);
}

.brand {
  min-width: 0;
}

.mark {
  background: #173f56;
}

.home-hero {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--midnight), #174f5d 64%, #1d6b5d);
  color: #fff;
  padding: 22px;
  box-shadow: 0 22px 56px rgba(16, 47, 66, 0.22);
}

.home-hero .eyebrow,
.home-hero p,
.home-hero .lead {
  color: rgba(255, 255, 255, 0.84);
}

.home-hero h1 {
  max-width: 880px;
  color: #fff;
  font-size: 38px;
  line-height: 1.05;
}

.promise {
  color: #eaffca !important;
  font-weight: 850;
}

.progress-snapshot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.progress-snapshot > div {
  border: 1px solid rgba(29, 107, 93, 0.18);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(20, 33, 29, 0.06);
}

.progress-snapshot strong {
  display: block;
  margin-top: 3px;
  color: var(--midnight);
  font-size: 22px;
}

.journey-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(29, 107, 93, 0.2);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  margin-top: 18px;
  box-shadow: 0 14px 36px rgba(20, 33, 29, 0.07);
}

.journey-panel.compact {
  margin-top: 16px;
}

.journey-list {
  display: grid;
  gap: 10px;
}

.journey-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #e2ebe6;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px;
}

.journey-item > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: #edf4fb;
  color: var(--blue);
  font-weight: 950;
}

.journey-item.complete > span {
  background: #e8f3ef;
  color: var(--primary-dark);
}

.journey-item.current {
  border-color: rgba(184, 242, 93, 0.8);
  background: #fbfff4;
}

.journey-item.current > span {
  background: var(--lime);
  color: var(--midnight);
}

.why-mini {
  border-left: 4px solid var(--lime);
  background: #fbfff4;
  padding: 10px 12px;
}

.why-mini strong {
  color: var(--midnight);
}

.profile-strip {
  display: grid;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(29, 107, 93, 0.18);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  margin: 14px 0;
  box-shadow: 0 18px 48px rgba(20, 33, 29, 0.08);
}

.profile-strip h3 {
  margin-top: 4px;
  font-size: 24px;
}

.profile-pills,
.next-meta,
.tag-row {
  min-width: 0;
}

.profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-pills span {
  border: 1px solid #d7e2dc;
  border-radius: 999px;
  background: #f8fbf8;
  color: #27483f;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 850;
}

.nav {
  position: sticky;
  top: 76px;
  z-index: 9;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border: 1px solid rgba(217, 226, 221, 0.78);
  border-radius: 8px;
  background: rgba(246, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  padding: 8px;
  margin: 0 0 18px;
  box-shadow: 0 10px 32px rgba(20, 33, 29, 0.06);
}

.nav button {
  min-height: 42px;
  border-radius: 8px;
  white-space: nowrap;
}

.panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 44px;
}

.panel > .eyebrow:first-child {
  display: inline-flex;
  border-radius: 999px;
  background: #e8f3ef;
  color: var(--primary-dark);
  padding: 6px 10px;
  margin-bottom: 10px;
}

.panel > h1 {
  max-width: 820px;
  font-size: 42px;
  line-height: 1.04;
}

.lead {
  max-width: 760px;
  font-size: 18px;
}

.form,
.focus-panel,
.next-card,
.feedback-panel,
.lane,
.resource,
.insight,
.version,
.stat,
.card {
  box-shadow: 0 14px 36px rgba(20, 33, 29, 0.07);
}

.form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.samples {
  margin: 22px 0 0;
}

.sample-btn,
.focus-choice,
.option-card,
.task-action,
.btn,
.chip {
  box-shadow: 0 6px 16px rgba(20, 33, 29, 0.04);
}

.sample-btn,
.focus-choice,
.option-card {
  min-height: 72px;
}

.sample-btn:hover,
.focus-choice:hover,
.option-card:hover,
.task-action:hover,
.btn:hover,
.chip:hover {
  transform: translateY(-2px);
}

.chip.active,
.focus-choice.active,
.option-card.active {
  border-color: var(--primary);
  background: #e9f5ef;
}

.next-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(29, 107, 93, 0.26);
  background: #ffffff;
  padding: 20px;
}

.next-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--lime);
}

.next-card > * {
  position: relative;
}

.next-card h2 {
  max-width: 780px;
  font-size: 30px;
  line-height: 1.12;
}

.focus-panel {
  background: #ffffff;
  padding: 18px;
}

.focus-choice,
.option-card {
  padding: 14px;
}

.roadmap {
  gap: 16px;
}

.lane {
  background: #ffffff;
  padding: 16px;
}

.lane > h3 {
  border-bottom: 1px solid #e6eee9;
  padding-bottom: 10px;
}

.task {
  border-color: rgba(217, 226, 221, 0.94);
  padding: 16px;
}

.task header h3 {
  font-size: 19px;
  line-height: 1.18;
}

.resource-card {
  border-color: rgba(45, 95, 154, 0.2);
  background: #f1f6fb;
}

.resource-card strong {
  color: #173f56;
}

.task-action.primary-action,
.btn.primary {
  background: #173f56;
  border-color: #173f56;
}

.task-action.primary-action:hover,
.btn.primary:hover {
  background: #102f42;
}

.stats {
  margin-bottom: 20px;
}

.stat {
  background: #fff;
}

.stat strong {
  color: #173f56;
}

.summary-section,
.resource-list,
.insights,
.timeline {
  margin-top: 22px;
}

.overlay {
  backdrop-filter: blur(7px);
}

@media (min-width: 760px) {
  .progress-snapshot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .status-panel {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    align-items: center;
  }

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

  .guide-card > div {
    border-right: 1px solid #e8eee9;
    border-bottom: 0;
    padding-right: 14px;
    padding-bottom: 0;
  }

  .guide-card > div:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .profile-strip {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .samples {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (min-width: 980px) {
  .shell {
    width: min(1120px, calc(100% - 40px));
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .nav {
    display: flex;
  }

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

@media (max-width: 680px) {
  .shell {
    width: 100%;
    padding: 8px 10px 30px;
  }

  .topbar {
    position: relative;
    padding: 10px;
  }

  .profile-strip {
    padding: 14px;
  }

  .profile-strip h3 {
    font-size: 21px;
  }

  .nav {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    margin-bottom: 0;
    box-shadow: 0 14px 38px rgba(20, 33, 29, 0.16);
  }

  .nav button {
    min-height: 46px;
    font-size: 14px;
  }

  .panel > h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .panel {
    padding-bottom: 94px;
  }

  .home-hero {
    padding: 18px;
  }

  .home-hero h1 {
    font-size: 31px;
  }

  .lead {
    font-size: 16px;
  }

  .form,
  .focus-panel,
  .next-card,
  .feedback-panel,
  .hint-card,
  .guide-card,
  .status-panel,
  .share-panel,
  .lane {
    padding: 14px;
  }

  .guide-card {
    gap: 14px;
  }

  .next-card h2 {
    font-size: 24px;
  }

  .resource-card,
  .task,
  .journey-panel {
    padding: 13px;
  }

  .modal {
    max-height: calc(100vh - 20px);
    padding: 16px;
  }
}
