.pte-app { padding: 24px; }
.pte-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #E2E8F0;
}
.pte-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pte-samples-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-right: 4px;
}
.pte-sample-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #99F6E4;
  background: #F0FDFA;
  color: #0F766E;
  font: 600 12.5px var(--sans, sans-serif);
  cursor: pointer;
  transition: background .12s, border-color .12s, transform .08s;
}
.pte-sample-btn:hover { background: #CCFBF1; border-color: #14B8A6; }
.pte-sample-btn.is-active { background: #0F766E; border-color: #0F766E; color: #fff; }
.pte-quota-pill {
  font: 600 12px var(--mono, monospace);
  color: #334155;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 5px 10px;
  border-radius: 999px;
}

.pte-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.pte-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 14px;
  background: #F8FAFC;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pte-dropzone:hover, .pte-dropzone.is-dragover {
  border-color: #0F766E;
  background: #F0FDFA;
}
.pte-dropzone strong { font-size: 15px; color: #0F172A; }
.pte-dropzone span { font-size: 13px; color: #64748B; }
.pte-mode-box {
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pte-mode-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}
.pte-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.pte-mode-option:hover { border-color: #94A3B8; }
.pte-mode-option.is-selected {
  border-color: #0F766E;
  background: #F0FDFA;
}
.pte-mode-option input { margin-top: 3px; accent-color: #0F766E; }
.pte-mode-option b { display: block; font-size: 13.5px; color: #0F172A; }
.pte-mode-option small { display: block; font-size: 12px; color: #475569; margin-top: 2px; line-height: 1.45; }
.pte-pro-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #0F766E;
  color: #fff;
  font: 700 10.5px var(--mono, monospace);
  vertical-align: middle;
}

.pte-banner {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pte-banner.info { background: #F0FDFA; border: 1px solid #99F6E4; color: #115E59; }
.pte-banner.warn { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.pte-banner.error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

.pte-workspace { margin-top: 20px; }
.pte-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pte-meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pte-pill {
  font: 600 12px var(--mono, monospace);
  padding: 4px 10px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
}
.pte-pill.teal { background: #F0FDFA; color: #0F766E; border-color: #99F6E4; }
.pte-export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pte-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.pte-tab {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #fff;
  color: #334155;
  font: 600 12.5px var(--sans, sans-serif);
  cursor: pointer;
}
.pte-tab.is-active {
  background: #0F766E;
  border-color: #0F766E;
  color: #fff;
}

.pte-table-wrap {
  overflow-x: auto;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  background: #fff;
}
.pte-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pte-table th, .pte-table td {
  border-bottom: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  padding: 0;
  min-width: 110px;
}
.pte-table th:last-child, .pte-table td:last-child { border-right: none; }
.pte-table thead th {
  background: #F0FDFA;
  color: #0F766E;
  font-weight: 700;
}
.pte-table .pte-row-num {
  width: 46px;
  min-width: 46px;
  text-align: center;
  background: #F8FAFC;
  color: #64748B;
  font: 600 11.5px var(--mono, monospace);
  padding: 6px;
}
.pte-table .pte-row-act {
  width: 40px;
  min-width: 40px;
  text-align: center;
  background: #F8FAFC;
  padding: 4px;
}
.pte-cell-input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font: inherit;
  color: inherit;
  outline: none;
}
.pte-cell-input:focus {
  background: #ECFDF5;
  box-shadow: inset 0 0 0 2px #14B8A6;
}
.pte-del-row {
  border: none;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
}
.pte-del-row:hover { color: #DC2626; background: #FEF2F2; }

.pte-grid-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pte-md-preview {
  margin-top: 14px;
}

@media (max-width: 820px) {
  .pte-controls { grid-template-columns: 1fr; }
  .pte-app { padding: 16px; }
}
