* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
  min-height: 100dvh;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #6e6e73;
  font-size: 15px;
  margin-top: 4px;
}

/* Steps */
.step {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.step.hidden {
  display: none;
}

.step h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Upload area */
.upload-area {
  border: 2px dashed #d2d2d7;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.upload-area.dragover {
  border-color: #0071e3;
  background: #f0f7ff;
}

.upload-area p {
  color: #6e6e73;
  margin-bottom: 16px;
  font-size: 15px;
}

/* File info */
.file-info {
  margin-top: 20px;
  padding: 16px;
  background: #f5f5f7;
  border-radius: 12px;
}

.file-info.hidden {
  display: none;
}

.file-info p {
  font-size: 14px;
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: #0071e3;
  color: #fff;
  margin-top: 12px;
}

.btn-secondary {
  background: #e8e8ed;
  color: #1d1d1f;
  margin-top: 12px;
  margin-left: 8px;
}

.btn-free-trial {
  background: #34c759;
  color: #fff;
  margin-top: 12px;
  width: 100%;
  font-size: 16px;
  padding: 14px 24px;
}

.btn-free-trial.hidden {
  display: none;
}

.btn-small {
  padding: 6px 14px;
  font-size: 13px;
  background: #e8e8ed;
  color: #1d1d1f;
}

/* Pricing table */
.pricing-table {
  margin-top: 24px;
}

.pricing-table h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #6e6e73;
}

.pricing-table table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e8e8ed;
  font-size: 14px;
}

.pricing-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.free-badge {
  display: inline-block;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Processing */
.processing-status {
  text-align: center;
  padding: 20px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8e8ed;
  border-top-color: #0071e3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#status-text {
  font-size: 16px;
  font-weight: 500;
}

#status-detail {
  font-size: 13px;
  color: #6e6e73;
  margin-top: 4px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e8e8ed;
  border-radius: 3px;
  margin-top: 16px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #0071e3;
  border-radius: 3px;
  transition: width 0.3s;
  width: 0%;
}

/* Results */
.result-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: #0071e3;
  color: #fff;
  border-color: #0071e3;
}

.result-content {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 16px;
  min-height: 200px;
  max-height: 60vh;
  overflow-y: auto;
}

.result-content.hidden {
  display: none;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

#result-transcript {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.8;
  font-family: inherit;
}

#result-minutes {
  font-size: 14px;
  line-height: 1.8;
}

#result-minutes h1,
#result-minutes h2,
#result-minutes h3 {
  margin: 16px 0 8px;
}

#result-minutes ul,
#result-minutes ol {
  padding-left: 20px;
  margin: 8px 0;
}

.zdr-notice {
  margin-top: 16px;
  padding: 12px;
  background: #fff3cd;
  border-radius: 8px;
  font-size: 13px;
  color: #664d03;
}

/* Tip box */
.tip-box {
  margin-top: 16px;
  padding: 12px;
  background: #e8f4fd;
  border-radius: 8px;
  font-size: 13px;
  color: #1a4a6e;
  line-height: 1.7;
}

/* Do not close warning */
.do-not-close {
  color: #d70015;
  font-size: 13px;
  font-weight: 500;
  margin-top: 12px;
}

/* Error */
.error-text {
  color: #d70015;
  font-size: 15px;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }

  header h1 {
    font-size: 24px;
  }

  .step {
    padding: 20px 16px;
  }

  .upload-area {
    padding: 30px 16px;
  }
}
