/* Signature Practice Sheet Generator */
.ystp-practice-wrap .ystp-tool-card {
  overflow: visible;
}

.ystp-practice-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(340px, 1fr);
  gap: 14px;
  align-items: start;
}

.ystp-practice-controls-card,
.ystp-practice-preview-card {
  background: #fff;
  border: 1px solid var(--yst-line);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.ystp-practice-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ystp-practice-quick-controls,
.ystp-practice-advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

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

.ystp-practice-wrap label span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: #475569;
  margin-bottom: 5px;
}

.ystp-practice-wrap input,
.ystp-practice-wrap select {
  width: 100%;
}

.ystp-practice-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ystp-practice-privacy-box {
  margin-top: 12px;
  border-radius: 15px;
  background: #f8fafc;
  border: 1px solid var(--yst-line);
  padding: 12px;
  color: var(--yst-muted);
}

.ystp-practice-privacy-box strong {
  display: block;
  color: var(--yst-ink);
  margin-bottom: 4px;
}

.ystp-practice-canvas-shell {
  max-height: 660px;
  overflow: auto;
  background: #f8fafc;
  border: 1px dashed rgba(100, 116, 139, .28);
  border-radius: 16px;
  padding: 10px;
}

.ystp-practice-canvas-shell canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

#ystp-practice-error {
  min-height: 18px;
}

#ystp-practice-error.is-error {
  color: #b91c1c;
  font-weight: 800;
}

.ystp-practice-mobile-note {
  display: none;
}

@media (max-width: 900px) {
  .ystp-practice-workspace {
    grid-template-columns: 1fr;
  }

  .ystp-practice-quick-controls,
  .ystp-practice-advanced-grid {
    grid-template-columns: 1fr;
  }

  .ystp-practice-input-row {
    grid-template-columns: 1fr;
  }

  .ystp-practice-mobile-note {
    display: block;
    margin: 0 0 10px;
    color: var(--yst-blue);
    font-weight: 900;
    font-size: 13px;
  }

  .ystp-practice-canvas-shell {
    max-height: 520px;
  }
}

@media (max-width: 420px) {
  .ystp-practice-actions {
    grid-template-columns: 1fr;
  }
}
