.l2-tattooist-panel {
  padding: 0.35rem 0.5rem 0.75rem;
  color: #c8b89a;
  font-size: 13px;
  line-height: 1.35;
}

.l2-tattooist-head {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.65rem;
  margin: 0 0 0.45rem;
}

.l2-tattooist-npc {
  flex: 0 0 auto;
  width: 80px;
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

.l2-tattooist-head__text {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 420px) {
  .l2-tattooist-head {
    gap: 0.45rem;
  }

  .l2-tattooist-npc {
    width: 62px;
    max-width: 62px;
  }

  .l2-tattooist-head__text {
    flex: 1 1 0;
    min-width: 0;
  }
}

.l2-tattooist-title {
  margin: 0 0 0.28rem;
  font-size: 16px;
  font-weight: normal;
  color: #e2c88a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.l2-tattooist-helper {
  margin: 0 0 0.35rem;
  color: #9d9386;
}

.l2-tattooist-helper--compact {
  margin: 0 0 0.18rem;
  font-size: 11px;
  line-height: 1.32;
}

.l2-tattooist-k {
  color: #d4af6a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.l2-tattooist-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0.55rem 0 0.35rem;
  padding-bottom: 0.22rem;
  border-bottom: 1px solid rgba(160, 130, 80, 0.28);
}

.l2-tattooist-section-head--slots {
  margin-top: 0.35rem;
}

.l2-tattooist-section-head--dyes {
  margin-top: 0.65rem;
}

.l2-tattooist-slots-summary {
  margin: 0;
}

.l2-tattooist-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: normal;
  color: #d8c29f;
}

.l2-tattooist-status {
  margin: 0.35rem 0 0.15rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(180, 140, 70, 0.35);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.72) 0%, rgba(8, 6, 4, 0.85) 100%);
  color: #c9b896;
  font-size: 12px;
  line-height: 1.35;
}

.l2-tattooist-status__line + .l2-tattooist-status__line {
  margin-top: 0.2rem;
}

.l2-tattooist-pair__sep {
  color: #9d9386;
}

.l2-tattooist-pair__part {
  white-space: nowrap;
}

.l2-tattooist-pair__part--pos {
  color: #6a9e62;
}

.l2-tattooist-pair__part--neg {
  color: #b86a6a;
}

/* ---- action buttons ---- */
.l2-tattooist-btn {
  display: inline-block;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(180, 140, 70, 0.55);
  border-radius: 4px;
  background: linear-gradient(180deg, #2a2218 0%, #15110d 100%);
  color: #e8dcc8;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.06);
  transition: filter 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.l2-tattooist-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  border-color: rgba(212, 175, 90, 0.72);
  color: #fff4dc;
}

.l2-tattooist-btn:active:not(:disabled) {
  filter: brightness(0.96);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.l2-tattooist-btn:disabled {
  background: #12100e;
  color: #6f6860;
  border-color: rgba(90, 80, 68, 0.45);
  cursor: default;
  opacity: 1;
  box-shadow: none;
}

.l2-tattooist-btn--shop {
  padding: 4px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.l2-tattooist-btn--muted {
  color: #b8ad9c;
}

.l2-tattooist-btn--remove {
  border-color: rgba(140, 72, 58, 0.55);
  color: #d4b0a4;
}

.l2-tattooist-btn--remove:hover:not(:disabled) {
  border-color: rgba(160, 88, 72, 0.72);
  color: #f0d4cc;
}

/* ---- active tattoo slots ---- */
.l2-tattooist-slots {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.l2-tattooist-slot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  padding: 0.48rem 0.52rem;
  border: 1px solid rgba(180, 145, 90, 0.38);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(22, 17, 12, 0.62) 0%, rgba(8, 6, 4, 0.78) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.04);
}

.l2-tattooist-slot--empty {
  color: #9d9386;
  border-color: rgba(140, 120, 90, 0.25);
  background: linear-gradient(180deg, rgba(14, 11, 8, 0.45) 0%, rgba(6, 5, 4, 0.6) 100%);
}

.l2-tattooist-slot--locked {
  opacity: 0.82;
  border-style: dashed;
  border-color: rgba(120, 100, 70, 0.35);
}

.l2-tattooist-slot__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.l2-tattooist-slot__label {
  flex: 0 0 auto;
  color: #d4af6a;
  font-size: 12px;
  font-weight: normal;
}

.l2-tattooist-slot__label::before {
  content: '◆ ';
  font-size: 8px;
  vertical-align: middle;
  color: rgba(212, 175, 90, 0.65);
}

.l2-tattooist-slot__name {
  flex: 1 1 100%;
  color: #d8c29f;
  font-size: 12px;
  margin: -0.1rem 0 0;
}

.l2-tattooist-slot__effect {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
}

.l2-tattooist-slot__empty,
.l2-tattooist-slot__locked-text {
  color: #9d9386;
  font-size: 12px;
}

.l2-tattooist-slot__action {
  flex: 0 0 auto;
  margin-left: auto;
  max-width: 100%;
}

.l2-tattooist-slot__confirm-text {
  display: block;
  margin-bottom: 0.25rem;
  color: #d8c29f;
  font-size: 11px;
  line-height: 1.25;
  text-align: right;
}

.l2-tattooist-slot__confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

/* ---- modifiers (2 columns) ---- */
.l2-tattooist-mods {
  margin-top: 0.15rem;
}

.l2-tattooist-mods .l2-tattooist-subtitle {
  margin: 0.45rem 0 0.3rem;
}

.l2-tattooist-mod-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.25rem;
  max-width: 24rem;
  padding: 0.38rem 0.48rem;
  border: 1px solid rgba(160, 130, 80, 0.22);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
}

.l2-tattooist-mod-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.l2-tattooist-mod-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
}

.l2-tattooist-mod-row__stat {
  font-weight: normal;
  font-size: 12px;
}

.l2-tattooist-mod-row__val {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.l2-tattooist-mod-row__val--pos {
  color: #6a9e62;
}

.l2-tattooist-mod-row__val--neg {
  color: #b86a6a;
}

.l2-tattooist-mod-row__val--zero {
  color: #7a7368;
}

/* ---- inventory dyes section ---- */
.l2-tattooist-dyes {
  padding: 0.45rem 0.48rem 0.5rem;
  border: 1px solid rgba(160, 130, 80, 0.28);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(16, 12, 8, 0.42) 0%, rgba(6, 5, 4, 0.58) 100%);
}

.l2-tattooist-dyes .l2-tattooist-section-head {
  margin-top: 0;
  padding-bottom: 0.28rem;
  border-bottom-color: rgba(160, 130, 80, 0.22);
}

.l2-tattooist-dyes-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-top: 0.35rem;
}

.l2-tattooist-dyes-empty {
  margin: 0;
  color: #9d9386;
  font-size: 12px;
}

.l2-tattooist-dye-card {
  padding: 0.42rem 0.48rem;
  border: 1px solid rgba(160, 130, 80, 0.28);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(18, 14, 10, 0.55) 0%, rgba(8, 6, 4, 0.72) 100%);
}

.l2-tattooist-dye-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.l2-tattooist-dye-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.l2-tattooist-dye-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.l2-tattooist-dye-name {
  color: #d8c29f;
  margin-bottom: 0.12rem;
  font-size: 12px;
  word-break: break-word;
}

.l2-tattooist-dye-family {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border: 1px solid rgba(140, 120, 90, 0.35);
  border-radius: 3px;
  color: #a89878;
  font-size: 10px;
  vertical-align: middle;
}

.l2-tattooist-dye-effect {
  line-height: 1.3;
  font-size: 12px;
}

.l2-tattooist-dye-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
  color: #b8ad9c;
  font-size: 11px;
}

.l2-tattooist-dye-qty--low {
  color: #b86a6a;
}

.l2-tattooist-dye-need {
  color: #9d9386;
}

.l2-tattooist-dye-need--low {
  color: #b86a6a;
}

.l2-tattooist-dye-card__action {
  margin-top: 0.05rem;
}

.l2-tattooist-dye-block {
  margin-top: 0.2rem;
  color: #9d9386;
  font-size: 11px;
}

/* ---- confirm dialog ---- */
.l2-tattooist-confirm {
  margin-top: 0.65rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(160, 130, 80, 0.28);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
}

.l2-tattooist-confirm__text {
  margin: 0 0 0.4rem;
  color: #9d9386;
}

.l2-tattooist-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

@media (max-width: 430px) {
  .l2-tattooist-section-head {
    align-items: flex-start;
  }

  .l2-tattooist-btn--shop {
    flex: 0 0 auto;
  }

  .l2-tattooist-pair__part {
    white-space: normal;
  }
}
