:root {
  color-scheme: light;
  --ink: #1c2524;
  --muted: #65716e;
  --line: #dbe3df;
  --paper: #fbfbf7;
  --panel: #ffffff;
  --mint: #bde7d4;
  --mint-strong: #1d7a62;
  --coral: #f29f8d;
  --sky: #a9c7ee;
  --gold: #efc863;
  --plum: #7f628d;
  --shadow: 0 18px 50px rgba(28, 37, 36, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(189, 231, 212, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(169, 199, 238, 0.16) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  max-width: 100vw;
  overflow-x: hidden;
}

.main {
  min-width: 0;
  padding: 28px clamp(18px, 4vw, 52px) 48px;
}

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

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

.brand > div:last-child {
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 24px rgba(28, 37, 36, 0.18);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 68ch;
  overflow-wrap: anywhere;
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  font-weight: 800;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 24px;
  align-items: stretch;
  min-height: 330px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.eyebrow {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 6px 10px;
  border: 1px solid rgba(29, 122, 98, 0.24);
  border-radius: 999px;
  color: var(--mint-strong);
  background: rgba(189, 231, 212, 0.35);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.secondary-action,
.icon-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-action {
  padding: 0 18px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.secondary-action {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-weight: 750;
}

.primary-action svg,
.secondary-action svg {
  width: 18px;
  height: 18px;
}

.primary-action:hover,
.secondary-action:hover,
.icon-button:hover,
.category-chip:hover,
.hobby-card:hover {
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #cfd9d4;
  background: #edf4ef;
}

.shelf-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr 42px 1fr 42px 1fr;
  padding: 24px;
}

.shelf {
  align-self: end;
  height: 13px;
  border-radius: 999px;
  background: #8c6b4d;
  box-shadow: 0 7px 0 #70553e;
}

.objects {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 12px;
}

.object {
  min-width: 0;
  border: 2px solid rgba(28, 37, 36, 0.22);
  box-shadow: 0 8px 18px rgba(28, 37, 36, 0.1);
}

.book {
  height: 76px;
  border-radius: 5px 5px 2px 2px;
  background: var(--sky);
}

.pot {
  height: 54px;
  border-radius: 6px 6px 18px 18px;
  background: var(--coral);
}

.cube {
  height: 58px;
  border-radius: 8px;
  background: var(--gold);
}

.jar {
  height: 82px;
  border-radius: 18px 18px 8px 8px;
  background: rgba(127, 98, 141, 0.72);
}

.brush {
  height: 95px;
  width: 16px;
  justify-self: center;
  border-radius: 999px;
  background: #31413e;
}

.plant {
  position: relative;
  height: 70px;
  border-radius: 7px 7px 20px 20px;
  background: var(--mint);
}

.plant::before,
.plant::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 22px;
  border-radius: 100% 0 100% 0;
  background: #55a36d;
  top: -20px;
}

.plant::before {
  left: -8px;
  transform: rotate(-24deg);
}

.plant::after {
  right: -8px;
  transform: rotate(34deg) scaleX(-1);
}

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

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.stat strong {
  display: block;
  font-size: 1.7rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.inventory-places {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inventory-places div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.inventory-places strong,
.inventory-places span {
  display: block;
}

.inventory-places span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(150px, auto));
  gap: 14px;
  align-items: center;
}

.search {
  position: relative;
}

.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  color: var(--muted);
}

.search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: 0;
}

.search input:focus,
.select-wrap select:focus {
  border-color: var(--mint-strong);
  box-shadow: 0 0 0 4px rgba(29, 122, 98, 0.12);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: 0;
  appearance: none;
}

.select-wrap svg {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-chip {
  min-height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 760;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.category-chip svg {
  width: 17px;
  height: 17px;
}

.category-chip.active {
  border-color: rgba(29, 122, 98, 0.35);
  background: var(--mint);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hobby-card {
  display: flex;
  flex-direction: column;
  min-height: 304px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 28px rgba(28, 37, 36, 0.07);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.hobby-card:hover {
  box-shadow: 0 18px 38px rgba(28, 37, 36, 0.12);
}

.card-open {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.card-visual {
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background: var(--visual);
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image + .cost-pill {
  position: relative;
  margin-left: auto;
  box-shadow: 0 8px 22px rgba(28, 37, 36, 0.14);
}

.card-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.card-icon svg {
  width: 36px;
  height: 36px;
}

.cost-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 850;
  font-size: 0.8rem;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  padding: 16px;
  cursor: pointer;
}

.card-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.card-body h4 {
  margin: 0;
  font-size: 1.07rem;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0f4f1;
  color: #3f4d4a;
  font-size: 0.78rem;
  font-weight: 760;
}

.meta svg {
  width: 14px;
  height: 14px;
}

.match-meta {
  background: rgba(189, 231, 212, 0.72);
  color: #185e4c;
}

.color-meta {
  gap: 6px;
}

.color-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1px solid rgba(28, 37, 36, 0.18);
  border-radius: 50%;
  background: var(--dot);
}

.card-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: auto;
}

.tag-row,
.match-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.match-strip span {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #3f4d4a;
  font-size: 0.76rem;
  font-weight: 780;
}

.save-button,
.plan-button {
  min-height: 38px;
  border-radius: 8px;
  font-weight: 800;
}

.save-button svg,
.plan-button svg,
.icon-button svg {
  width: 17px;
  height: 17px;
}

.save-button {
  background: var(--ink);
  color: white;
}

.save-button.saved {
  background: var(--mint-strong);
}

.plan-button {
  width: 42px;
  background: #f1f4f2;
  color: var(--ink);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.panel-header,
.panel-body {
  padding: 16px;
}

.panel-header {
  border-bottom: 1px solid var(--line);
}

.panel-header h3,
.panel-header h4 {
  margin: 0;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.focus-card {
  padding: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.focus-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.focus-card h3 {
  margin: 8px 0 10px;
  font-size: 1.45rem;
}

.focus-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.focus-metrics {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.focus-metrics strong {
  font-size: 1.8rem;
}

.focus-metrics span {
  color: rgba(255, 255, 255, 0.72);
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 58%;
  border-radius: inherit;
  background: var(--gold);
}

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

.trove-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.trove-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
}

.trove-icon svg {
  width: 22px;
  height: 22px;
}

.trove-item strong,
.plan-step strong {
  display: block;
}

.trove-item span,
.plan-step span {
  color: var(--muted);
  font-size: 0.84rem;
}

.icon-button {
  width: 34px;
  height: 34px;
  background: #eef2ef;
  color: var(--ink);
}

.plan {
  display: grid;
  gap: 12px;
}

.practice-body {
  display: grid;
  gap: 14px;
}

.practice-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(29, 122, 98, 0.22);
  border-radius: 8px;
  background: #f5fbf7;
}

.practice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--ink);
}

.practice-icon svg {
  width: 22px;
  height: 22px;
}

.practice-card strong,
.practice-card span,
.practice-controls span {
  display: block;
}

.practice-card span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.88rem;
}

.practice-controls {
  display: grid;
  gap: 10px;
}

.practice-controls label {
  display: grid;
  gap: 6px;
}

.practice-controls label > span {
  color: #3f4d4a;
  font-size: 0.84rem;
  font-weight: 800;
}

.practice-controls select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.toggle-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--mint-strong);
}

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

.practice-actions .secondary-action {
  min-width: 0;
  padding: 0 12px;
}

.plan-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
}

.step-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sky);
  font-weight: 900;
  font-size: 0.82rem;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #bfcbc5;
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(28, 37, 36, 0.34);
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.modal-header .eyebrow {
  margin-bottom: 10px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 18px 0;
}

.mode-tabs button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.mode-tabs button.active {
  border-color: rgba(29, 122, 98, 0.35);
  background: var(--mint);
}

.mode-tabs svg {
  width: 17px;
  height: 17px;
}

.scan-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px 0;
}

.scan-drop {
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 22px;
  border: 1px dashed #b7c5bf;
  border-radius: 8px;
  background: #f6faf7;
  text-align: center;
  cursor: pointer;
}

.scan-drop svg {
  width: 34px;
  height: 34px;
  color: var(--mint-strong);
}

.scan-drop span,
.scan-actions span {
  color: var(--muted);
  line-height: 1.45;
}

.scan-drop input {
  max-width: 100%;
}

.scan-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scan-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.scan-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #eef3f0;
}

.scan-preview figcaption {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.item-form {
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.item-form label {
  display: grid;
  gap: 6px;
}

.item-form label.wide {
  grid-column: 1 / -1;
}

.item-form label span {
  color: #3f4d4a;
  font-size: 0.84rem;
  font-weight: 800;
}

.item-form input,
.item-form select,
.item-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: 0;
}

.item-form input,
.item-form select {
  min-height: 42px;
  padding: 0 12px;
}

.item-form textarea {
  resize: vertical;
  padding: 10px 12px;
}

.item-form input:focus,
.item-form select:focus,
.item-form textarea:focus {
  border-color: var(--mint-strong);
  box-shadow: 0 0 0 4px rgba(29, 122, 98, 0.12);
}

.modal-footer {
  display: flex;
  justify-content: end;
  gap: 10px;
  padding-top: 16px;
}

.split-footer {
  align-items: center;
  justify-content: space-between;
}

.footer-actions {
  display: flex;
  gap: 10px;
}

.danger-action {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(174, 57, 47, 0.28);
  border-radius: 8px;
  background: #fff4f2;
  color: #9b2f27;
  font-weight: 850;
}

.detail-image {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #eef3f0;
}

.detail-image img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.community-intro {
  padding: 16px 18px 0;
}

.community-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.match-strip {
  padding: 14px 18px 0;
}

.community-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.community-person {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.person-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sky);
  font-weight: 900;
}

.community-person strong,
.community-person span {
  display: block;
}

.community-person span {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  max-width: calc(100vw - 28px);
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  transform: translate(-50%, 140%);
  transition: transform 220ms ease;
}

.toast.visible {
  transform: translate(-50%, 0);
}

svg {
  flex: 0 0 auto;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

@media (max-width: 820px) {
  .main {
    padding: 18px 14px 34px;
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-art {
    min-height: 260px;
  }

  .stats,
  .inventory-places,
  .sidebar {
    grid-template-columns: 1fr;
  }

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

  .select-wrap select {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .hobby-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: clamp(2.05rem, 10vw, 2.55rem);
    line-height: 0.98;
  }

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-heading .secondary-action,
  .modal-footer .primary-action,
  .modal-footer .secondary-action {
    width: 100%;
  }

  .form-grid,
  .mode-tabs {
    grid-template-columns: 1fr;
  }

  .community-person {
    grid-template-columns: 44px 1fr;
  }

  .community-person .secondary-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .practice-actions {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .split-footer,
  .footer-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    width: 100%;
  }

  .danger-action {
    width: 100%;
  }

  .shelf-scene {
    padding: 18px;
  }
}
