/* Zone stylo — calque sur la carte, vignettes et panneau du studio.
   Couleurs d’interface : variables du thème uniquement. Le blanc est celui de la réserve imprimée. */

/* Calque sur le canevas : contour et pictogramme non exportés */
.studio__penzone-box {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  container-type: size;
  background: white;
  color: var(--a);
  outline: 1.5px dashed var(--a);
  outline-offset: -1.5px;
}

.studio__penzone-box.is-tinted {
  background: color-mix(in srgb, white 55%, transparent);
}

.studio__penzone-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.72;
  pointer-events: none;
}

.studio__penzone-mark svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
}

@container (max-width: 96px) {
  .studio__penzone-mark b { display: none; }
}

@container (max-height: 15px) {
  .studio__penzone-mark { display: none; }
}

/* Vignettes de face */
.studio__thumb-penzone {
  background: white;
  box-shadow: inset 0 0 0 1px var(--a);
}

.studio__thumb-penzone.is-tinted {
  background: color-mix(in srgb, white 55%, transparent);
}

/* Panneau */
.studio__dash--penzone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.studio__dash--penzone svg {
  width: 18px;
  height: 18px;
  display: block;
}

.studio__penzone-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.studio__penzone-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--b);
  border-radius: var(--r-md, 8px);
  background: var(--card);
  color: var(--t);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.studio__penzone-row:hover {
  border-color: color-mix(in srgb, var(--a) 45%, var(--b));
  background: var(--bg);
}

.studio__penzone-row-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--a) 10%, var(--bg));
  color: var(--a);
}

.studio__penzone-row-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.studio__penzone-row strong {
  display: block;
  font-size: 0.8rem;
}

.studio__penzone-row em {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.7rem;
  font-style: normal;
  color: color-mix(in srgb, var(--t) 58%, white);
}

.studio__penzone-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.2rem 0 0.2rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--b);
  border-radius: var(--r-md, 8px);
  background: var(--card);
  cursor: pointer;
}

.studio__penzone-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0.1rem 0 0;
  accent-color: var(--a);
  cursor: pointer;
}

.studio__penzone-toggle strong {
  display: block;
  font-size: 0.82rem;
}

.studio__penzone-toggle em {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.35;
  color: color-mix(in srgb, var(--t) 58%, white);
}

.studio__penzone-size {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.studio__penzone-size .studio__field {
  margin-bottom: 0;
  font-size: 0.72rem;
  font-weight: 650;
}

.studio__penzone-size input {
  width: 100%;
  min-height: 38px;
  padding: 0 0.6rem;
  border: 1px solid color-mix(in srgb, var(--a) 12%, var(--b));
  border-radius: 10px;
  background: color-mix(in srgb, var(--a) 6%, var(--bg));
  color: var(--t);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
}

.studio__penzone-note {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--a) 8%, var(--bg));
  color: var(--t);
  font-size: 0.75rem;
  line-height: 1.4;
}

.studio__penzone-note.is-on {
  color: var(--a);
  font-weight: 700;
}

.studio__penzone-note.is-warn {
  background: color-mix(in srgb, var(--cta) 10%, var(--bg));
}
