.wk-restwolle {
  max-width: 1100px;
  margin: 0 auto 3rem;
  color: #242424;
}

.wk-restwolle__lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #555;
  margin: 0 0 1rem;
}

.wk-restwolle__tips,
.wk-restwolle__hints ul {
  margin: 0 0 1.5rem;
  padding-left: 1.2em;
  color: #555;
}

.wk-restwolle__form,
.wk-restwolle__results section,
.wk-restwolle__guide {
  margin-bottom: 2rem;
}

.wk-restwolle__drop {
  display: block;
  border: 2px dashed #c9c9c9;
  background: #f7f7f7;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
}

.wk-restwolle__drop:hover,
.wk-restwolle__drop.is-active {
  border-color: #7ab38b;
  background: #f3f8f5;
}

.wk-restwolle__drop input {
  display: block;
  margin: 0 auto 0.75rem;
}

.wk-restwolle__fileName {
  margin: 0.75rem 0 0;
  color: #777;
  font-size: 0.92rem;
}

.wk-restwolle__example {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.9rem;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  background: #f7f7f7;
  color: #333;
  border: 0;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
}

.wk-restwolle__example img {
  width: 44px;
  height: 58px;
  object-fit: cover;
  background: #eee;
}

.wk-restwolle__example:hover,
.wk-restwolle__example:focus-visible {
  background: #e8f4ec;
  color: #242424;
}

.wk-restwolle__project {
  border: 0;
  padding: 0;
  margin: 1.5rem 0 0;
}

.wk-restwolle__project legend {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.wk-restwolle__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem 1rem;
}

.wk-restwolle__fields label span {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.25rem;
}

.wk-restwolle__fields select {
  width: 100%;
  min-height: 42px;
}

.wk-restwolle__hint {
  color: #777;
  font-size: 0.92rem;
  margin: 0.75rem 0 0;
}

.wk-restwolle__actions {
  margin-top: 1.25rem;
}

.wk-restwolle__submit {
  background: #7ab38b !important;
  color: #fff !important;
  border: 0;
  border-radius: 0;
  font-weight: 600;
}

.wk-restwolle__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

.wk-restwolle__status.is-error {
  color: #b42318;
}

.wk-restwolle__llm {
  margin: 0.75rem 0 0;
  padding: 0.45rem 0.65rem;
  background: #f7f7f7;
  color: #555;
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.4;
}

.wk-restwolle__llm[hidden] {
  display: none !important;
}

.wk-restwolle__spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid #d8e8dd;
  border-top-color: #7ab38b;
  border-radius: 50%;
  animation: wk-rw-spin 0.7s linear infinite;
}

.wk-restwolle__spinner--lg {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-width: 3px;
  margin: 0;
}

@keyframes wk-rw-spin {
  to { transform: rotate(360deg); }
}

.wk-restwolle__upload {
  position: relative;
}

.wk-restwolle__busy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1.25rem 1rem;
  background: #f3f8f5;
  color: #555;
  text-align: center;
}

.wk-restwolle__busy[hidden] {
  display: none !important;
}

.wk-restwolle__busy p {
  margin: 0;
  font-weight: 600;
  color: #242424;
}

.wk-restwolle.is-busy .wk-restwolle__drop,
.wk-restwolle.is-busy .wk-restwolle__example,
.wk-restwolle.is-busy .wk-restwolle__submit {
  opacity: 0.55;
  pointer-events: none;
}

.wk-restwolle__limits {
  background: #fff8e6;
  border-left: 4px solid #fbbc34;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
}

.wk-restwolle__limits ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1em;
}

.wk-restwolle__detect {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.2fr);
  gap: 1.5rem;
  align-items: start;
}

.wk-restwolle__map h2,
.wk-restwolle__skeins h2,
.wk-restwolle__map h3,
.wk-restwolle__skeins h3 {
  margin-top: 0;
}

.wk-restwolle__mapFrame {
  position: relative;
  display: block;
  max-width: 100%;
  margin-top: 0.75rem;
  background: #f7f7f7;
  overflow: hidden;
  isolation: isolate;
}

.wk-restwolle__mapStage {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}

.wk-restwolle__mapFrame img,
.wk-restwolle__mapStage img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  pointer-events: none;
}

.wk-restwolle__mapOverlay {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}

.wk-restwolle__mapHighlight {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid currentColor;
  box-shadow: 0 0 0 2px #fff;
  background: color-mix(in srgb, currentColor 22%, transparent);
  pointer-events: none;
}

.wk-restwolle__mapHighlight[hidden] {
  display: none !important;
}

.wk-restwolle__mapTip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: calc(100% - 16px);
  padding: 0.35rem 0.55rem;
  background: #fff;
  color: #242424;
  border: 1px solid #ececec;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  font-size: 0.85rem;
  line-height: 1.3;
  pointer-events: none;
}

.wk-restwolle__mapTip[hidden] {
  display: none !important;
}

.wk-restwolle__mapTip i {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.wk-restwolle__skeinGrid,
.wk-restwolle__comboList,
.wk-restwolle__shopList,
.wk-restwolle__projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.wk-restwolle__shopList[hidden] {
  display: none !important;
}

.wk-restwolle__shopEmpty {
  grid-column: 1 / -1;
  margin: 0;
}

.wk-restwolle__skein,
.wk-restwolle__combo,
.wk-restwolle__shopCard {
  border: 1px solid #ececec;
  background: #fff;
  padding: 0.85rem;
}

.wk-restwolle__skein,
.wk-restwolle__combo {
  cursor: pointer;
}

.wk-restwolle__skein.is-hot,
.wk-restwolle__combo.is-active,
.wk-restwolle__skein.is-highlighted {
  outline: 2px solid #7ab38b;
}

.wk-restwolle__skein.is-dimmed,
.wk-restwolle__tile.is-dimmed,
.wk-restwolle__combo.is-dimmed {
  filter: blur(2.5px) saturate(0.4);
  opacity: 0.4;
  outline: none;
}

.wk-restwolle.is-combo-focus .wk-restwolle__mapStage img {
  filter: saturate(0.75);
}

.wk-restwolle__swatch {
  height: 56px;
  margin-bottom: 0.6rem;
}

.wk-restwolle__chip {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  background: #f7f7f7;
  margin-right: 0.35rem;
}

.wk-restwolle__chip.is-low {
  background: #fde8e8;
  color: #8a1f1f;
}

.wk-restwolle__chip.is-ok {
  background: #e8f4ec;
}

.wk-restwolle__comboSwatches {
  display: flex;
  gap: 4px;
  margin: 0.5rem 0;
}

.wk-restwolle__comboSwatches span {
  flex: 1;
  height: 28px;
}

.wk-restwolle__combo button,
.wk-restwolle__shopToggle,
.wk-restwolle__tool {
  background: #f7f7f7;
  color: #333;
  border: 0;
  border-radius: 0;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.wk-restwolle__tableTools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0.75rem;
}

.wk-restwolle__tool:hover,
.wk-restwolle__tool:focus-visible {
  background: #e8f4ec;
}

.wk-restwolle__amountCard {
  border: 1px solid #ececec;
  padding: 1rem;
}

.wk-restwolle__amountCard.is-likely {
  border-color: #7ab38b;
}

.wk-restwolle__shopCard img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.5rem;
  background: #f7f7f7;
}

.wk-restwolle .wollke-cct__slots.wollke-cct__slots--table {
  height: auto;
  min-height: 220px;
  max-height: none;
  overflow: hidden;
}

.wk-restwolle__tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 132px;
  height: 168px;
  margin: 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.wk-restwolle__tile.is-dragging {
  cursor: grabbing;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.wk-restwolle__tile.is-highlighted,
.wk-restwolle__tile.is-hot {
  box-shadow: 0 0 0 3px #7ab38b;
}

.wk-restwolle__tileFace {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.wk-restwolle__tilePhoto {
  display: none;
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
}

.wk-restwolle__tile.is-photo .wk-restwolle__tilePhoto,
.wk-restwolle__tile.is-split .wk-restwolle__tilePhoto {
  display: block;
}

.wk-restwolle__tile.is-split .wk-restwolle__tilePhoto {
  bottom: 50%;
}

.wk-restwolle__tileName {
  flex: 0 0 40px;
  padding: 6px 8px;
  color: #242424;
  background: #fff;
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
}

@media (max-width: 800px) {
  .wk-restwolle__detect {
    grid-template-columns: 1fr;
  }

  .wk-restwolle__fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .wk-restwolle .wollke-cct__slots.wollke-cct__slots--table {
    height: auto;
    min-height: 200px;
    max-height: none;
  }

  .wk-restwolle__tile {
    width: 110px;
    height: 142px;
  }
}

.wk-restwolle__section {
  margin: 0 0 2.5rem;
  padding: 0 0 2.25rem;
  border-bottom: 1px solid #ececec;
}

.wk-restwolle__section[data-rw-section="4"] {
  border-bottom: 0;
  padding-bottom: 0;
}

.wk-restwolle__section[hidden] {
  display: none !important;
}

.wk-restwolle__stepLabel {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7ab38b;
}

.wk-restwolle__stepTitle {
  margin: 0 0 0.65rem;
  color: #242424;
  font-size: 1.45rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wk-restwolle__next .wk-restwolle__submit {
  white-space: normal;
  line-height: 1.25;
  max-width: 100%;
}

.wk-restwolle__next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.75rem 0 0;
}

.wk-restwolle__amount .wk-restwolle__project {
  margin: 0 0 1rem;
}

.wk-restwolle.is-busy [data-rw-status] {
  display: none !important;
}

.wk-restwolle__mapSelected {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wk-restwolle__mapHighlight.is-selected {
  border-width: 3px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor;
}

.wk-restwolle.is-combo-focus .wk-restwolle__mapStage img {
  filter: saturate(0.7);
}

.wk-restwolle__projects {
  margin: 1.15rem 0 0;
}

.wk-restwolle__projectCard {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid #ececec;
  background: #fff;
  overflow: hidden;
}

.wk-restwolle__projectCard.is-likely {
  border-color: #7ab38b;
}

.wk-restwolle__projectMedia {
  display: block;
  background: #f7f7f7;
}

.wk-restwolle__projectMedia img,
.wk-restwolle__projectMedia .wk-restwolle__patternFallback {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wk-restwolle__projectBody {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem 0.95rem 1rem;
  flex: 1 1 auto;
}

.wk-restwolle__projectHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.wk-restwolle__projectHead strong {
  display: block;
  margin: 0;
  color: #242424;
  font-size: 1.12rem;
  line-height: 1.25;
}

.wk-restwolle__projectHead .wk-restwolle__chip {
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
}

.wk-restwolle__projectBody > p {
  margin: 0;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1 1 auto;
}

.wk-restwolle__projectSwatches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wk-restwolle__projectSwatches span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.wk-restwolle__chip.is-maybe {
  background: #fff6d8;
  color: #6a5300;
}

.wk-restwolle__projectActions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.wk-restwolle__projectCta,
.wk-restwolle__projectActions .wk-restwolle__submit {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
}

.wk-restwolle__projectCalc {
  display: block;
  padding: 0.15rem 0;
  color: #777;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wk-restwolle__projectCalc:hover,
.wk-restwolle__projectCalc:focus-visible {
  color: #333;
}

.wk-restwolle__projects {
  align-items: stretch;
}

.wk-restwolle__projectShop {
  margin-top: 0.15rem;
}

.wk-restwolle__projectShop p {
  margin: 0 0 0.4rem;
  color: #777;
  font-size: 0.82rem;
}

.wk-restwolle__projectShopList {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wk-restwolle__projectShopLink {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #333;
  text-decoration: none;
}

.wk-restwolle__projectShopLink i {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: #ddd;
}

.wk-restwolle__section[data-rw-section="4"] .wk-restwolle__project {
  margin: 0 0 0.35rem;
}


.wk-restwolle__patterns {
  margin: 1.5rem 0 0;
}

.wk-restwolle__patterns[hidden] {
  display: none !important;
}

.wk-restwolle__patternsTitle {
  margin: 0 0 0.85rem;
  color: #242424;
  font-size: 1.2rem;
}

.wk-restwolle__patternList {
  display: grid;
  grid-template-columns: minmax(220px, 280px);
  gap: 1rem;
}

.wk-restwolle__patternCard--cat {
  max-width: 280px;
}

.wk-restwolle__patternCard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  border: 1px solid #ececec;
  background: #fff;
  padding: 0.75rem;
}

.wk-restwolle__patternMedia {
  display: block;
  background: #f7f7f7;
}

.wk-restwolle__patternMedia img,
.wk-restwolle__patternFallback {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.wk-restwolle__patternCard strong {
  color: #242424;
  font-size: 0.95rem;
  line-height: 1.3;
}

.wk-restwolle__patternPrice {
  color: #555;
  font-size: 0.9rem;
}

.wk-restwolle__patternCard .wk-restwolle__submit {
  display: inline-block;
  width: auto;
  margin-top: auto;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  text-align: center;
}

