.stk-app {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #d8e2d5);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.08));
  padding: 24px;
}
.stk-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 24px;
  align-items: start;
}
.stk-stage-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stk-stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid var(--border, #d8e2d5);
  background-color: #eef3ec;
  background-image:
    linear-gradient(45deg, #e1e9de 25%, transparent 25%),
    linear-gradient(-45deg, #e1e9de 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e1e9de 75%),
    linear-gradient(-45deg, transparent 75%, #e1e9de 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  overflow: hidden;
  cursor: pointer;
}
.stk-stage-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.stk-play-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #1d2a1f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(29, 42, 31, 0.25);
}
.stk-play-pill:hover {
  background: #2f7d4f;
}
.stk-play-pill[data-playing="1"] {
  background: #d9a441;
  color: #1d2a1f;
}
.stk-wave-box {
  background: #f3f6f1;
  border: 1px solid var(--border, #d8e2d5);
  border-radius: 12px;
  padding: 12px;
}
.stk-wave-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted, #5d6e60);
  margin-bottom: 8px;
}
.stk-wave-head strong {
  color: var(--text, #1d2a1f);
}
.stk-wave-canvas {
  display: block;
  width: 100%;
  height: 68px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e1e8df;
}
.stk-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stk-panel {
  border: 1px solid var(--border, #d8e2d5);
  border-radius: 12px;
  padding: 16px;
  background: #fbfcf9;
}
.stk-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #1d2a1f);
  margin: 0 0 12px;
}
.stk-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #2f7d4f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}
.stk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.stk-row + .stk-row {
  margin-top: 12px;
}
.stk-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px dashed #2f7d4f;
  background: #ffffff;
  color: #2f7d4f;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.stk-upload-btn:hover {
  background: #edf5ef;
}
.stk-upload-btn input {
  display: none;
}
.stk-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stk-chip {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #d8e2d5);
  background: #ffffff;
  color: var(--text, #1d2a1f);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.stk-chip:hover {
  border-color: #2f7d4f;
}
.stk-chip[aria-pressed="true"] {
  background: #2f7d4f;
  border-color: #2f7d4f;
  color: #ffffff;
}
.stk-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.stk-tab {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #d8e2d5);
  background: #ffffff;
  color: var(--muted, #5d6e60);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.stk-tab[aria-selected="true"] {
  background: #1d2a1f;
  border-color: #1d2a1f;
  color: #ffffff;
}
.stk-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.stk-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}
.stk-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #5d6e60);
}
.stk-input,
.stk-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #d8e2d5);
  background: #ffffff;
  color: var(--text, #1d2a1f);
  font-size: 14px;
  font-family: inherit;
}
.stk-range-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}
.stk-range-wrap label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #5d6e60);
}
.stk-range {
  width: 100%;
  accent-color: #2f7d4f;
}
.stk-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1d2a1f);
  cursor: pointer;
}
.stk-rec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: none;
  background: #c83e2b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.stk-rec-btn[data-recording="1"] {
  background: #1d2a1f;
}
.stk-rec-timer {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #1d2a1f);
  font-variant-numeric: tabular-nums;
}
.stk-mic-inline-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ecd59f;
  background: #fdf4e3;
  color: #5c4108;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stk-mic-inline-banner[hidden] {
  display: none;
}
.stk-mic-link-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d9a441;
  background: #ffffff;
  color: #1d2a1f;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.stk-mic-link-btn:hover {
  background: #f3f6f1;
  border-color: #2f7d4f;
  color: #2f7d4f;
}
.stk-mic-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.stk-mic-modal[hidden] {
  display: none;
}
.stk-mic-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 42, 31, 0.56);
  backdrop-filter: blur(2px);
}
.stk-mic-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border, #d8e2d5);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(29, 42, 31, 0.28);
  padding: 22px;
  color: var(--text, #1d2a1f);
}
.stk-mic-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.stk-mic-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stk-mic-env-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #edf5ef;
  color: #2f7d4f;
  font-size: 12px;
  font-weight: 700;
}
.stk-mic-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: var(--text, #1d2a1f);
}
.stk-mic-close {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border, #d8e2d5);
  background: #f3f6f1;
  color: var(--text, #1d2a1f);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.stk-mic-close:hover {
  background: #e5eee7;
}
.stk-mic-lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted, #5d6e60);
}
.stk-mic-visual {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f3f6f1;
  border: 1px solid var(--border, #d8e2d5);
}
.stk-mic-visual[hidden] {
  display: none;
}
.stk-mic-bar-mock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d8e2d5;
  font-size: 13px;
}
.stk-mic-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #2f7d4f;
  color: #ffffff;
  flex: none;
}
.stk-mic-pulse {
  box-shadow: 0 0 0 0 rgba(47, 125, 79, 0.45);
  animation: stkMicPulse 1.8s infinite;
}
@keyframes stkMicPulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 125, 79, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(47, 125, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 125, 79, 0); }
}
.stk-mic-bar-url {
  color: var(--text, #1d2a1f);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stk-mic-bar-tag {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fdf4e3;
  color: #5c4108;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.stk-mic-visual-hint {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #2f7d4f;
}
.stk-mic-steps {
  margin: 0 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text, #1d2a1f);
}
.stk-mic-steps li::marker {
  color: #2f7d4f;
  font-weight: 700;
}
.stk-mic-extra {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8faf7;
  border: 1px dashed #cbd8c7;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted, #5d6e60);
}
.stk-mic-extra[hidden] {
  display: none;
}
.stk-mic-live {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #edf5ef;
  color: #25643f;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stk-mic-live[hidden] {
  display: none;
}
.stk-mic-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2f7d4f;
  flex: none;
  animation: stkMicPulse 1.6s infinite;
}
.stk-mic-retry-note {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdf4e3;
  color: #5c4108;
  font-size: 13px;
  line-height: 1.45;
}
.stk-mic-retry-note[hidden] {
  display: none;
}
.stk-mic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.stk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stk-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: none;
  background: #2f7d4f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  flex: 1 1 220px;
}
.stk-btn-primary:hover {
  background: #25643f;
}
.stk-btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
.stk-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #d8e2d5);
  background: #ffffff;
  color: var(--text, #1d2a1f);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex: 1 1 140px;
}
.stk-btn-secondary:hover {
  border-color: #2f7d4f;
  color: #2f7d4f;
}
.stk-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #edf5ef;
  color: #1d2a1f;
  font-size: 13px;
  line-height: 1.5;
}
.stk-status[data-tone="warn"] {
  background: #fdf4e3;
  color: #5c4108;
}
.stk-privacy-bar {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #d8e2d5);
  font-size: 13px;
  color: var(--muted, #5d6e60);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
@media (max-width: 820px) {
  .stk-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .stk-app {
    padding: 16px;
  }
  .stk-field-grid {
    grid-template-columns: 1fr;
  }
  .stk-tabs {
    grid-template-columns: 1fr;
  }
  .stk-btn-primary,
  .stk-btn-secondary {
    width: 100%;
    flex: 1 1 100%;
  }
}