.grandworks-page {
  --grandworks-gold: #e9c66f;
  --grandworks-gold-soft: rgba(233, 198, 111, 0.16);
  --grandworks-violet: #a78bfa;
  --grandworks-violet-soft: rgba(112, 73, 188, 0.18);
  width: 100%;
  min-height: 100%;
  padding: clamp(18px, 2.2vw, 34px);
  color: #edf5ff;
  background:
    radial-gradient(circle at 78% 8%, rgba(108, 70, 172, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(7, 18, 34, 0.96), rgba(5, 14, 27, 0.98));
}

.grandworks-page button {
  font: inherit;
}

.grandworks-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(233, 198, 111, 0.38);
  border-radius: 14px;
  background:
    linear-gradient(105deg, rgba(19, 31, 51, 0.98), rgba(21, 18, 43, 0.94)),
    url("./items/reskin/gathering/nodes/towerforged_alloy_seam.webp") center/cover;
  box-shadow:
    inset 0 1px rgba(255, 241, 195, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.grandworks-hero::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(233, 198, 111, 0.14), transparent 58%);
}

.grandworks-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--grandworks-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.grandworks-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff4d6;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
}

.grandworks-hero > p {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 12px 0 22px;
  color: #c6d5e7;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
}

.grandworks-rules {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.grandworks-rules > div {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(148, 173, 207, 0.22);
  border-radius: 9px;
  background: rgba(4, 14, 29, 0.68);
  color: #dce8f5;
  font-size: 14px;
  line-height: 1.4;
}

.grandworks-rules b {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border: 1px solid rgba(233, 198, 111, 0.55);
  border-radius: 50%;
  color: var(--grandworks-gold);
}

.grandworks-compensation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 15px 17px;
  border: 1px solid rgba(88, 205, 149, 0.42);
  border-radius: 11px;
  background: rgba(13, 55, 44, 0.5);
}

.grandworks-compensation strong {
  color: #8bf0bb;
  font-size: 16px;
}

.grandworks-compensation p {
  max-width: 820px;
  margin: 4px 0 0;
  color: #bdd8cd;
  font-size: 14px;
  line-height: 1.5;
}

.grandworks-compensation-materials,
.grandworks-needs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.grandworks-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  padding: 6px;
  border: 1px solid rgba(124, 151, 190, 0.24);
  border-radius: 11px;
  background: rgba(8, 20, 38, 0.82);
}

.grandworks-tabs button {
  min-width: 150px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9eb1c8;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.grandworks-tabs button.is-active {
  border-color: rgba(233, 198, 111, 0.48);
  color: #fff3d0;
  background: linear-gradient(180deg, rgba(118, 82, 23, 0.74), rgba(72, 44, 7, 0.8));
  box-shadow: inset 0 1px rgba(255, 244, 204, 0.12);
}

.grandworks-honing-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(480px, 1.5fr);
  gap: 16px;
  align-items: start;
}

.grandworks-panel,
.grandworks-plan-card {
  border: 1px solid rgba(118, 149, 188, 0.3);
  border-radius: 12px;
  background: rgba(9, 24, 44, 0.9);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.grandworks-panel {
  padding: 17px;
}

.grandworks-panel h2,
.grandworks-plan-card h2 {
  margin: 0;
  color: #eef6ff;
  font-size: 19px;
}

.grandworks-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.grandworks-item-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 68px;
  padding: 9px;
  border: 1px solid rgba(108, 139, 179, 0.26);
  border-radius: 8px;
  color: #dbe9f6;
  background: rgba(4, 15, 30, 0.72);
  text-align: left;
  cursor: pointer;
}

.grandworks-item-card:hover {
  border-color: rgba(233, 198, 111, 0.52);
  background: rgba(22, 30, 46, 0.9);
}

.grandworks-item-card.is-selected {
  border-color: var(--grandworks-gold);
  background: linear-gradient(100deg, rgba(91, 62, 15, 0.52), rgba(31, 29, 49, 0.85));
  box-shadow: 0 0 0 1px rgba(233, 198, 111, 0.12);
}

.grandworks-item-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(233, 198, 111, 0.3);
  border-radius: 7px;
  background: rgba(2, 9, 19, 0.9);
  color: var(--grandworks-gold);
}

.grandworks-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.grandworks-item-card-copy {
  min-width: 0;
}

.grandworks-item-card-copy strong,
.grandworks-item-card-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grandworks-item-card-copy strong {
  font-size: 14px;
}

.grandworks-item-card-copy small {
  margin-top: 3px;
  color: #8096af;
  font-size: 12px;
}

.grandworks-rank-badge {
  padding: 4px 7px;
  border: 1px solid rgba(167, 139, 250, 0.32);
  border-radius: 20px;
  color: #c8b8ff;
  background: rgba(83, 58, 146, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.grandworks-empty {
  margin-top: 13px;
  padding: 28px 18px;
  border: 1px dashed rgba(125, 151, 184, 0.32);
  border-radius: 9px;
  color: #93a8be;
  text-align: center;
}

.grandworks-selected-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.grandworks-selected-heading > span:nth-child(2) {
  min-width: 0;
}

.grandworks-selected-heading small {
  color: var(--grandworks-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.grandworks-selected-heading h2 {
  margin-top: 3px;
}

.grandworks-rank-large {
  display: grid;
  margin-left: auto;
  text-align: right;
}

.grandworks-rank-large strong {
  margin-top: 2px;
  color: #fff2ca;
  font-size: 22px;
}

.grandworks-progress-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
  margin: 15px 0 20px;
}

.grandworks-progress-track span {
  height: 7px;
  border-radius: 10px;
  background: #192b41;
}

.grandworks-progress-track span.is-filled {
  background: linear-gradient(90deg, #9f782e, #f2d47d);
  box-shadow: 0 0 8px rgba(232, 194, 94, 0.28);
}

.grandworks-honing-workbench h3,
.grandworks-plan-section h3 {
  margin: 0 0 10px;
  color: #c8d8e8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

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

.grandworks-stat-choice {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(109, 141, 180, 0.26);
  border-radius: 8px;
  color: #cbd9e7;
  background: rgba(4, 16, 31, 0.68);
  text-align: left;
  cursor: pointer;
}

.grandworks-stat-choice strong {
  font-size: 13px;
}

.grandworks-stat-choice > span {
  color: #8ee6b6;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.grandworks-stat-choice small {
  display: block;
  color: #7690a8;
  font-size: 10px;
  font-weight: 600;
}

.grandworks-stat-choice.is-selected {
  border-color: var(--grandworks-gold);
  color: #fff1c7;
  background: rgba(88, 60, 14, 0.46);
}

.grandworks-stat-choice.is-bound {
  box-shadow: inset 3px 0 var(--grandworks-violet);
}

.grandworks-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid rgba(233, 198, 111, 0.3);
  border-radius: 9px;
  background: linear-gradient(100deg, rgba(39, 29, 13, 0.62), rgba(17, 25, 43, 0.76));
}

.grandworks-preview > div {
  display: grid;
  gap: 4px;
}

.grandworks-preview > div:last-child {
  text-align: right;
}

.grandworks-preview small {
  color: #8fa4b9;
  font-size: 12px;
}

.grandworks-preview strong {
  color: #fff2c8;
  font-size: 22px;
}

.grandworks-preview > span {
  color: var(--grandworks-gold);
  font-size: 22px;
}

.grandworks-inline-rule,
.grandworks-automation-rule {
  margin: 11px 0 0;
  color: #91a7bd;
  font-size: 13px;
  line-height: 1.5;
}

.grandworks-action-row {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(220px, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.grandworks-material-pill {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(132, 158, 190, 0.25);
  border-radius: 8px;
  color: #d7e4f1;
  background: rgba(4, 14, 28, 0.72);
}

.grandworks-material-pill:hover,
.grandworks-material-pill:focus-visible {
  border-color: rgba(233, 198, 111, 0.58);
  outline: none;
  background: rgba(17, 28, 46, 0.94);
  box-shadow: 0 0 14px rgba(233, 198, 111, 0.1);
}

.grandworks-material-pill .grandworks-item-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.grandworks-material-pill strong,
.grandworks-material-pill small {
  display: block;
}

.grandworks-material-pill strong {
  overflow: hidden;
  max-width: 190px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grandworks-material-pill small {
  margin-top: 2px;
  color: var(--grandworks-gold);
  font-size: 12px;
  font-weight: 800;
}

.grandworks-mouseover {
  position: fixed;
  z-index: 2147483647;
  box-sizing: border-box;
  width: min(480px, calc((100vw / var(--vespera-ui-scale, 1)) - 16px));
  max-height: calc((100dvh / var(--vespera-ui-scale, 1)) - 16px);
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(233, 198, 111, 0.58);
  border-radius: 9px;
  color: #eaf3fd;
  background:
    radial-gradient(circle at 100% 0%, rgba(119, 80, 184, 0.2), transparent 38%),
    linear-gradient(160deg, rgba(10, 25, 45, 0.99), rgba(3, 10, 20, 0.995));
  box-shadow:
    inset 0 1px rgba(255, 248, 218, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(4, 8, 15, 0.88);
  pointer-events: none;
}

.grandworks-mouseover.is-divine,
.grandworks-mouseover.is-mythic {
  border-color: rgba(178, 139, 255, 0.72);
  box-shadow:
    inset 0 0 25px rgba(119, 76, 190, 0.09),
    0 18px 48px rgba(0, 0, 0, 0.68),
    0 0 18px rgba(139, 92, 246, 0.2);
}

.grandworks-mouseover > header {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(128, 156, 191, 0.2);
}

.grandworks-mouseover > header > span:last-child {
  min-width: 0;
}

.grandworks-mouseover > header small,
.grandworks-mouseover > header h3,
.grandworks-mouseover > header b {
  display: block;
}

.grandworks-mouseover > header small {
  color: #e7c86f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grandworks-mouseover > header h3 {
  margin: 3px 0;
  color: #fff2ce;
  font-size: 16px;
  line-height: 1.2;
}

.grandworks-mouseover > header b {
  color: #8da7c1;
  font-size: 11px;
  font-weight: 700;
}

.grandworks-mouseover__description,
.grandworks-mouseover__rule,
.grandworks-mouseover__source p {
  margin: 0;
  color: #b7c9da;
  font-size: 12px;
  line-height: 1.5;
}

.grandworks-mouseover__description {
  padding: 10px 0;
  border-bottom: 1px solid rgba(128, 156, 191, 0.16);
}

.grandworks-mouseover__honing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 0;
}

.grandworks-mouseover__honing > div {
  padding: 8px;
  border: 1px solid rgba(131, 158, 192, 0.2);
  border-radius: 6px;
  background: rgba(2, 11, 23, 0.7);
}

.grandworks-mouseover__honing span,
.grandworks-mouseover__honing strong {
  display: block;
}

.grandworks-mouseover__honing span {
  color: #8099b2;
  font-size: 10px;
}

.grandworks-mouseover__honing strong {
  margin-top: 3px;
  color: #f6dc92;
  font-size: 12px;
}

.grandworks-mouseover__stats {
  padding: 9px 0;
  border-top: 1px solid rgba(128, 156, 191, 0.16);
}

.grandworks-mouseover__stats > strong,
.grandworks-mouseover__source > strong {
  display: block;
  margin-bottom: 7px;
  color: #e9c66f;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.grandworks-mouseover__stats > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
}

.grandworks-mouseover__stats span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
}

.grandworks-mouseover__stats small {
  overflow: hidden;
  color: #91a8be;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grandworks-mouseover__stats b {
  color: #e6f2ff;
  font-size: 11px;
}

.grandworks-mouseover__rule {
  padding: 9px;
  border-left: 2px solid rgba(167, 139, 250, 0.7);
  border-radius: 3px;
  background: rgba(80, 58, 135, 0.14);
}

.grandworks-mouseover__source {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(233, 198, 111, 0.28);
  border-radius: 6px;
  background: rgba(72, 48, 10, 0.22);
}

.grandworks-mouseover__source p {
  color: #d7c9a5;
}

.grandworks-recipe-chain {
  display: grid;
  gap: 7px;
}

.grandworks-mouseover-recipe-step {
  display: grid;
  grid-template-columns: minmax(118px, 0.76fr) minmax(0, 1.7fr);
  gap: 8px;
  align-items: stretch;
  padding: 7px;
  border: 1px solid rgba(226, 191, 103, 0.16);
  border-radius: 6px;
  background: rgba(3, 12, 24, 0.72);
}

.grandworks-mouseover-recipe-step > header {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding-right: 7px;
  border-right: 1px solid rgba(128, 156, 191, 0.16);
}

.grandworks-mouseover-recipe-step > header > span:last-child {
  min-width: 0;
}

.grandworks-mouseover-recipe-step > header strong,
.grandworks-mouseover-recipe-step > header small {
  display: block;
}

.grandworks-mouseover-recipe-step > header strong {
  color: #fff0c1;
  font-size: 11px;
  line-height: 1.15;
}

.grandworks-mouseover-recipe-step > header small {
  margin-top: 3px;
  color: #84a1bc;
  font-size: 9px;
  font-weight: 800;
}

.grandworks-mouseover-recipe-step__inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.grandworks-recipe-material {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid rgba(120, 150, 185, 0.15);
  border-radius: 5px;
  background: rgba(12, 27, 46, 0.76);
}

.grandworks-recipe-material .grandworks-item-icon,
.grandworks-mouseover-recipe-step > header .grandworks-item-icon,
.grandworks-recipe-source .grandworks-item-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.grandworks-recipe-material > span:last-child {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.grandworks-recipe-material strong {
  color: #c7d8e8;
  font-size: 10px;
  line-height: 1.1;
}

.grandworks-recipe-material b {
  flex: 0 0 auto;
  color: #f4d374;
  font-size: 10px;
}

.grandworks-recipe-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 6px 7px;
  border: 1px solid rgba(151, 112, 231, 0.22);
  border-radius: 6px;
  background: rgba(62, 38, 108, 0.15);
}

.grandworks-recipe-source.is-only-source {
  margin-top: 0;
}

.grandworks-recipe-source p {
  min-width: 0;
  color: #c9b9e6;
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .grandworks-mouseover-recipe-step {
    grid-template-columns: 1fr;
  }

  .grandworks-mouseover-recipe-step > header {
    padding-right: 0;
    padding-bottom: 6px;
    border-right: 0;
    border-bottom: 1px solid rgba(128, 156, 191, 0.16);
  }
}

.grandworks-primary-action,
.grandworks-plan-actions button {
  min-height: 50px;
  border: 1px solid rgba(233, 198, 111, 0.65);
  border-radius: 8px;
  color: #fff3d0;
  background: linear-gradient(180deg, #8a631c, #5d3b08);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255, 244, 204, 0.18);
}

.grandworks-primary-action:hover,
.grandworks-plan-actions button.is-primary:hover {
  filter: brightness(1.12);
}

.grandworks-primary-action:disabled,
.grandworks-plan-actions button:disabled {
  border-color: rgba(99, 118, 143, 0.24);
  color: #65788f;
  background: #182638;
  box-shadow: none;
  cursor: not-allowed;
}

.grandworks-section-lead {
  max-width: 940px;
  margin: 0 0 15px;
  color: #b8cada;
  font-size: 15px;
  line-height: 1.6;
}

.grandworks-automation-active {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(72, 213, 139, 0.36);
  border-radius: 9px;
  color: #87ebb6;
  background: rgba(12, 64, 43, 0.44);
}

.grandworks-stoneworks-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.grandworks-stoneworks-guide > span {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(111, 141, 178, 0.24);
  border-radius: 8px;
  color: #c9d9e8;
  background: rgba(5, 18, 35, 0.72);
}

.grandworks-stoneworks-guide b {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  color: #07111f;
  background: var(--grandworks-gold);
  font-size: 11px;
}

.grandworks-stoneworks-guide strong {
  font-size: 12px;
}

.grandworks-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4add8f;
  box-shadow: 0 0 12px rgba(74, 221, 143, 0.8);
}

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

.grandworks-plan-card {
  overflow: hidden;
  padding: 18px;
}

.grandworks-plan-card--divine {
  border-color: rgba(167, 139, 250, 0.38);
  background:
    radial-gradient(circle at 92% 8%, rgba(117, 76, 190, 0.18), transparent 31%),
    rgba(9, 22, 43, 0.94);
}

.grandworks-plan-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.grandworks-plan-heading p {
  margin: 5px 0 0;
  color: #91a7bd;
  font-size: 13px;
  line-height: 1.5;
}

.grandworks-quantity {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0;
  padding: 9px 10px;
  border: 1px solid rgba(111, 141, 178, 0.22);
  border-radius: 8px;
  background: rgba(3, 13, 27, 0.58);
}

.grandworks-quantity > span {
  margin-right: auto;
  color: #b8c8d8;
  font-size: 13px;
  font-weight: 800;
}

.grandworks-quantity button {
  min-width: 40px;
  height: 32px;
  border: 1px solid rgba(121, 149, 184, 0.28);
  border-radius: 6px;
  color: #9fb2c6;
  background: #102238;
  cursor: pointer;
}

.grandworks-quantity button.is-selected {
  border-color: var(--grandworks-gold);
  color: #fff2cb;
  background: #64440d;
}

.grandworks-plan-section {
  margin-top: 15px;
}

.grandworks-recipe-flow {
  display: grid;
  gap: 7px;
}

.grandworks-recipe-step {
  display: grid;
  grid-template-columns: 38px 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid rgba(112, 142, 180, 0.2);
  border-radius: 7px;
  background: rgba(3, 14, 29, 0.66);
}

.grandworks-recipe-step > .grandworks-item-icon {
  width: 36px;
  height: 36px;
}

.grandworks-recipe-step > b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #07111f;
  background: var(--grandworks-gold);
  font-size: 12px;
}

.grandworks-recipe-step strong,
.grandworks-recipe-step small {
  display: block;
}

.grandworks-recipe-step strong {
  color: #dbe7f2;
  font-size: 13px;
}

.grandworks-recipe-step small {
  margin-top: 2px;
  color: #7f96ad;
  font-size: 11px;
}

.grandworks-needs-grid {
  justify-content: flex-start;
}

.grandworks-ready,
.grandworks-blocker-note,
.grandworks-plan-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
}

.grandworks-ready {
  border: 1px solid rgba(76, 215, 143, 0.24);
  color: #8ce6b5;
  background: rgba(20, 73, 50, 0.42);
  font-weight: 900;
}

.grandworks-blocker-note {
  margin-top: 8px;
  color: #e8c680;
  background: rgba(75, 53, 18, 0.45);
}

.grandworks-plan-error {
  margin-top: 12px;
  color: #ff9b9b;
  background: rgba(94, 25, 32, 0.48);
}

.grandworks-plan-actions {
  display: block;
  margin-top: 16px;
}

.grandworks-plan-actions button {
  width: 100%;
  border-color: rgba(120, 151, 190, 0.38);
  color: #c5d5e5;
  background: linear-gradient(180deg, #1a3048, #102237);
}

.grandworks-plan-actions button.is-primary {
  border-color: rgba(233, 198, 111, 0.65);
  color: #fff3d0;
  background: linear-gradient(180deg, #8a631c, #5d3b08);
}

@media (max-width: 1180px) {
  .grandworks-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grandworks-honing-layout,
  .grandworks-plan-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .grandworks-page {
    padding: 12px;
  }

  .grandworks-rules,
  .grandworks-item-grid,
  .grandworks-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .grandworks-compensation-materials {
    justify-content: flex-start;
  }

  .grandworks-action-row {
    grid-template-columns: 1fr;
  }

  .grandworks-stoneworks-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .grandworks-rules,
  .grandworks-item-grid,
  .grandworks-stat-grid,
  .grandworks-plan-actions {
    grid-template-columns: 1fr;
  }

  .grandworks-tabs button {
    min-width: 0;
    flex: 1;
  }

  .grandworks-selected-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .grandworks-rank-large {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}
