:root {
  color-scheme: dark;
  --page-bg: #100d0d;
  --bg: #1a1c1d;
  --surface: #1a1c1d;
  --surface-2: #2f2929;
  --surface-3: #100e0d;
  --line: #70675f;
  --text: #f4f1f0;
  --muted: #ccc3bf;
  --muted-2: #9a877e;
  --gold: #fac459;
  --gold-2: #ffce6d;
  --gold-3: #ffbf40;
  --brown: #3c342f;
  --green: #21af69;
  --red: #ea6944;
  --input: #100e0d;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Onest", Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, #1a1c1d 0 54px, transparent 54px),
    var(--page-bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

button:disabled:hover {
  transform: none;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.app {
  position: relative;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.language-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-color: var(--line);
  background: var(--surface);
  font-size: 20px;
  line-height: 1;
}

.lang-button.active {
  border-color: var(--gold);
  background: var(--surface-2);
  box-shadow: 0 0 0 2px rgba(250, 196, 89, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.identity-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.item-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-3);
  padding: 10px;
}

h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
}

.site-brand {
  width: fit-content;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

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

.hero-description {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.source {
  color: var(--gold-2);
  text-decoration: none;
}

.source:hover {
  text-decoration: underline;
}

.controls {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  align-items: end;
  min-width: 360px;
}

.server-field,
.item-search {
  grid-column: 1 / -1;
}

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

.server-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border-color: var(--line);
  background: var(--surface-3);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.server-button.active {
  border-color: var(--gold);
  background: var(--surface-2);
  color: var(--gold-2);
  box-shadow: 0 0 0 2px rgba(250, 196, 89, 0.12);
}

.search-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

input[type="number"],
input[type="text"],
input[type="search"] {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
}

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

.add-craft {
  grid-column: 1 / -1;
}

.craft-cart {
  display: grid;
  grid-column: 1;
  gap: 8px;
  min-width: 0;
}

.craft-cart-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.craft-cart-list {
  display: grid;
  gap: 8px;
  max-height: 238px;
  overflow: auto;
}

.craft-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 42px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.craft-cart-row.ready-before-overall {
  border-color: rgba(255, 206, 109, 0.78);
  background: linear-gradient(90deg, rgba(255, 206, 109, 0.18), var(--surface-3));
  box-shadow: inset 4px 0 0 var(--gold-2), 0 0 0 1px rgba(255, 206, 109, 0.08);
}

.craft-cart-row.ready-before-overall .item-ref > span {
  color: var(--gold-2);
  font-weight: 900;
}

.craft-cart-row.ready-before-overall .exchange-rate {
  color: var(--gold-2);
}

.craft-cart-row input {
  min-height: 38px;
  padding: 8px 10px;
}

.craft-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.craft-remove:hover {
  border-color: var(--red);
  background: rgba(234, 105, 68, 0.12);
  color: var(--text);
}

.craft-cart-empty {
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.craft-sessions {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.craft-sessions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.craft-sessions-header h2 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.craft-sessions-eyebrow {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.new-craft-session {
  flex: 0 0 auto;
  padding-inline: 18px;
}

.craft-session-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--line) transparent;
}

.craft-session-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 0 0 min(300px, 82vw);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-3);
  scroll-snap-align: start;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.craft-session-card.has-remove {
  grid-template-columns: minmax(190px, 1fr) 44px;
}

.craft-session-card.active {
  border-color: var(--gold);
  background: linear-gradient(100deg, rgba(250, 196, 89, 0.14), var(--surface-3));
  box-shadow: inset 4px 0 0 var(--gold-2), 0 0 0 2px rgba(250, 196, 89, 0.1);
}

.craft-session-tab {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.craft-session-tab:focus-visible,
.craft-session-remove:focus-visible {
  outline-offset: -3px;
}

.craft-session-tab img {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 4px;
}

.craft-session-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.craft-session-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.craft-session-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.craft-session-card.active .craft-session-copy strong {
  color: var(--gold-2);
}

.craft-session-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 68px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
}

.craft-session-remove:hover {
  background: rgba(234, 105, 68, 0.12);
  color: var(--red);
}

.craft-session-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.primary {
  background: var(--gold);
  color: var(--surface);
  font-weight: 700;
}

.primary:hover {
  background: var(--gold-2);
}

.secondary {
  background: transparent;
  border-color: var(--muted);
  color: var(--text);
  font-weight: 600;
}

.secondary:hover {
  border-color: var(--brown);
  background: var(--brown);
  color: var(--gold-2);
}

.secondary.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--surface);
}

.craft-progress {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.craft-progress-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: var(--text);
  font-weight: 800;
}

.craft-progress-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.craft-progress .progress {
  height: 13px;
}

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

.stat {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.stat > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.stat .accent {
  color: var(--gold-2);
}

.stat > .adena-card-label {
  display: flex;
  gap: 7px;
  align-items: center;
}

.adena-card-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  image-rendering: pixelated;
}

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

.main-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.materials {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.empty-materials {
  padding: 22px 16px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.item-ref {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
}

.item-ref img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  image-rendering: pixelated;
  border-radius: 6px;
  background: var(--surface-3);
  padding: 4px;
}

.item-ref span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-qty {
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

.number {
  color: var(--text);
  font-weight: 800;
}

.missing {
  color: var(--red);
  font-weight: 900;
}

.ready {
  color: var(--gold);
  font-weight: 900;
}

.progress {
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: var(--surface-3);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width 160ms ease;
}

.fireworks-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 40;
}

.fireworks-canvas.active {
  opacity: 1;
}

[data-progress-value] {
  color: var(--text);
}

.side-panel {
  display: grid;
  gap: 12px;
}

.actions,
.output {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  width: 100%;
}

.actions {
  display: grid;
  gap: 10px;
  width: 100%;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sync-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(204, 195, 191, 0.1);
}

.sync-status.online .sync-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(33, 175, 105, 0.14);
}

.sync-status.saving .sync-dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(250, 196, 89, 0.14);
}

.sync-status.connecting .sync-dot {
  background: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(255, 206, 109, 0.14);
}

.sync-status.error .sync-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(234, 105, 68, 0.14);
}

.output-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 800;
}

.output-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.4;
}

.output-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.output-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.exchange-rate {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.exchange-cost {
  display: grid;
  gap: 2px;
  text-align: right;
  white-space: nowrap;
}

.exchange-cost small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.adena-calculator {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.adena-calculator-title {
  display: flex;
  justify-content: center;
  padding: 14px;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  background: var(--surface);
}

.adena-shared-hint {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 196, 89, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.adena-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(142px, 0.52fr) minmax(138px, 0.5fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.adena-row.header {
  min-height: 46px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--surface-2);
}

.adena-row.craftable {
  box-shadow: inset 3px 0 0 rgba(255, 206, 109, 0.72);
}

.adena-name {
  min-width: 0;
  padding-left: calc(var(--depth, 0) * 18px);
}

.adena-row.subitem-row {
  background: linear-gradient(90deg, rgba(255, 206, 109, 0.16), var(--surface));
  box-shadow: inset 4px 0 0 var(--gold);
}

.adena-row.subitem-row .adena-name {
  position: relative;
  padding-left: calc((var(--depth, 0) * 18px) + 16px);
}

.adena-row.subitem-row .adena-name::before {
  content: "";
  position: absolute;
  left: calc(var(--depth, 0) * 18px);
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateY(-50%);
}

.adena-row.is-covered .adena-total {
  color: var(--muted);
}

.adena-row.is-covered .item-ref {
  opacity: 0.7;
}

.adena-price-input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
  text-align: right;
}

.adena-price-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
  align-items: center;
}

.adena-clear-price {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(234, 105, 68, 0.5);
  border-radius: 10px;
  background: rgba(234, 105, 68, 0.1);
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.adena-clear-price:hover,
.adena-clear-price:focus-visible {
  border-color: var(--red);
  background: rgba(234, 105, 68, 0.2);
}

[data-material] {
  text-align: right;
}

.adena-total {
  color: var(--text);
  font-weight: 900;
  text-align: right;
}

.adena-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 15px 14px;
  background: var(--surface-3);
}

.adena-summary-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.adena-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.adena-summary small {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
}

.adena-summary strong {
  color: var(--gold-2);
  font-size: 24px;
  line-height: 1.1;
  text-align: right;
  overflow-wrap: anywhere;
}

.plan-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) minmax(104px, 0.46fr) minmax(96px, 0.46fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.plan-row:last-child {
  border-bottom: 0;
}

.plan-row.header {
  min-height: 46px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--surface-2);
}

.plan-name {
  min-width: 0;
  padding-left: calc(var(--depth, 0) * 18px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.plan-row.subitem-row {
  background: linear-gradient(90deg, rgba(255, 206, 109, 0.16), var(--surface));
  box-shadow: inset 4px 0 0 var(--gold);
}

.plan-row.subitem-row .plan-name {
  position: relative;
  padding-left: calc((var(--depth, 0) * 18px) + 16px);
}

.plan-row.subitem-row .plan-name::before {
  content: "";
  position: absolute;
  left: calc(var(--depth, 0) * 18px);
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateY(-50%);
}

.plan-name.has-subitems,
.adena-name.has-subitems {
  cursor: pointer;
}

.plan-name.has-subitems .item-ref span,
.adena-name.has-subitems .item-ref span {
  color: var(--gold-2);
}

.plan-name.has-subitems:hover .item-ref span,
.plan-name.has-subitems:focus-visible .item-ref span,
.adena-name.has-subitems:hover .item-ref span,
.adena-name.has-subitems:focus-visible .item-ref span {
  color: var(--gold-3);
}

.plan-name.has-subitems:focus-visible,
.adena-name.has-subitems:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--gold-2);
  outline-offset: 4px;
}

.plan-row.has-multiple-subitems,
.adena-row.has-multiple-subitems {
  box-shadow: inset 4px 0 0 var(--gold-3);
}

.plan-name.has-multiple-subitems .item-ref > span,
.adena-name.has-multiple-subitems .item-ref > span {
  color: var(--gold-3);
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 191, 64, 0.42);
}

.toast {
  min-height: 22px;
  margin-top: 12px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 600;
}

.seo-overview {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.7fr);
  gap: 28px;
  align-items: start;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--surface), rgba(79, 58, 27, 0.34));
  box-shadow: var(--shadow);
}

.seo-overview-copy {
  display: grid;
  gap: 10px;
}

.seo-overview h2,
.seo-overview p {
  margin: 0;
}

.seo-overview h2 {
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.seo-overview p,
.seo-features span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.seo-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-features li {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 23, 24, 0.62);
}

.seo-features strong {
  color: var(--gold-2);
  font-size: 14px;
}

footer {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {

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

  .seo-overview {
    grid-template-columns: 1fr;
  }

  .controls {
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
  }

  .craft-cart {
    grid-column: auto;
  }

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

@media (max-width: 720px) {
  .app {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero {
    padding: 18px;
  }

  .craft-sessions {
    padding: 14px;
  }

  .craft-sessions-header {
    align-items: stretch;
    flex-direction: column;
  }

  .new-craft-session {
    width: 100%;
  }

  .identity {
    align-items: flex-start;
  }

  .identity-content {
    width: 100%;
  }

  .item-icon {
    width: 58px;
    height: 58px;
    padding: 8px;
  }

  h1 {
    font-size: 25px;
  }

  .seo-overview {
    gap: 18px;
    padding: 18px;
  }

  .seo-features {
    grid-template-columns: 1fr;
  }

  .craft-progress-header {
    display: grid;
    gap: 4px;
  }

  .craft-progress-meta {
    text-align: left;
  }

  .adena-total-summary {
    grid-column: 1 / -1;
  }

  .workspace {
    display: flex;
    flex-direction: column;
  }

  .side-panel {
    display: contents;
  }

  .actions {
    order: -1;
  }

  .plan-row,
  .adena-row,
  .plan-row.header {
    grid-template-columns: 1fr 1fr;
  }

  .plan-row.header,
  .adena-row.header {
    display: none;
  }

  .plan-name,
  .adena-name {
    grid-column: 1 / -1;
  }

  .adena-summary {
    display: grid;
  }

  .adena-summary strong {
    text-align: left;
  }

  .adena-total {
    text-align: left;
  }

  .plan-name,
  .adena-name {
    padding-left: calc(var(--depth, 0) * 14px);
  }

  .plan-row.subitem-row .plan-name,
  .adena-row.subitem-row .adena-name {
    padding-left: calc((var(--depth, 0) * 14px) + 16px);
  }

  .plan-row.subitem-row .plan-name::before,
  .adena-row.subitem-row .adena-name::before {
    left: calc(var(--depth, 0) * 14px);
  }

  .cell {
    display: grid;
    gap: 4px;
  }

  .cell::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }
}
