.tool-note {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.5;
}

.tool-input-grid {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.tool-input-grid label {
  font-size: 0.82rem;
  color: #52627e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.tool-text-input {
  width: 100%;
  border: 1px solid #dce5f7;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.tool-text-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

.choice-chip {
  border: 1px solid #dce5f7;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.choice-chip.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.choice-chip-title {
  display: block;
  font-weight: 700;
  color: #0f172a;
}

.choice-chip-copy {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.info-stack {
  display: grid;
  gap: 10px;
}

.info-card {
  border: 1px solid #dde7fa;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}

.info-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.info-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.download-summary {
  margin-top: 12px;
  border: 1px solid #dde7fa;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}

.download-summary strong {
  color: #0f172a;
}

.tool-upload-wrap {
  display: grid;
}

.tool-upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 24px 22px;
  border: 2px dashed #b9c8e6;
  border-radius: 18px;
  background: #f8fbff;
  cursor: pointer;
  transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.tool-upload-zone:hover {
  border-color: #6b8cff;
  background: #ffffff;
}

.tool-upload-zone:focus-visible {
  outline: none;
  border-color: #4f72ee;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 114, 238, 0.12);
}

.tool-upload-zone.drag,
.tool-upload-zone.drag-over {
  border-color: #4f72ee;
  background: rgba(79, 114, 238, 0.08);
  transform: translateY(-1px);
}

.tool-upload-zone.has-file {
  border-style: solid;
  border-color: #8de7bc;
  background: #ecfdf3;
}

.tool-upload-zone input[type="file"] {
  display: none;
}

.tool-upload-icon {
  width: 56px;
  height: 56px;
  color: #98a2b3;
  flex-shrink: 0;
}

.tool-upload-zone.has-file .tool-upload-icon {
  color: #18723e;
}

.tool-upload-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-upload-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #25344e;
}

.tool-upload-helper {
  font-size: 0.87rem;
  color: #5f6f88;
  line-height: 1.5;
}

.tool-upload-subtitle {
  font-size: 0.86rem;
  color: #5f6f88;
}

.tool-upload-formats {
  font-size: 0.82rem;
  color: #5f6f88;
}

.tool-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #d9e3f5;
  border-radius: 16px;
  background: #ffffff;
}

.tool-file-details {
  flex: 1;
  min-width: 0;
}

.tool-file-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #25344e;
  word-break: break-word;
}

.tool-file-name svg {
  width: 18px;
  height: 18px;
  color: #18723e;
  flex-shrink: 0;
}

.tool-file-size {
  margin-left: 28px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #64748b;
}

.tool-file-remove {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  border: none;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.tool-file-remove:hover {
  background: #ef4444;
  color: #ffffff;
}

.tool-file-remove svg {
  width: 16px;
  height: 16px;
}

.tool-language-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.tool-language-label {
  font-size: 0.82rem;
  color: #52627e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.tool-language-note {
  margin: 0;
}

.app-select {
  position: relative;
}

.app-select-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d3dce8;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 0.95rem;
  color: #162138;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.app-select-button:hover {
  border-color: #5a7cff;
}

.app-select-button.open {
  border-color: #5a7cff;
  box-shadow: 0 0 0 3px rgba(90, 124, 255, 0.12);
}

.app-select-button svg {
  width: 16px;
  height: 16px;
  color: #667792;
  transition: transform 0.2s ease;
}

.app-select-button.open svg {
  transform: rotate(180deg);
}

.app-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  z-index: 30;
  max-height: 320px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.app-select-menu.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.app-select-item {
  width: 100%;
  border: none;
  border-bottom: 1px solid #edf1f7;
  background: #ffffff;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #2f3b52;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.app-select-item:last-child {
  border-bottom: none;
}

.app-select-item:hover {
  background: #f8fbff;
}

.app-select-item.active {
  background: #ecf3ff;
  color: #2549b6;
  font-weight: 700;
}

.language-custom-input {
  width: 100%;
  border: 1px solid #d3dce8;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #162138;
  background: #ffffff;
}

.language-custom-input:focus {
  outline: none;
  border-color: #5a7cff;
  box-shadow: 0 0 0 3px rgba(90, 124, 255, 0.12);
}

@media (max-width: 720px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .tool-upload-zone {
    padding: 20px 18px;
  }
}
