#toolDetailView.md-mode {
  gap: 10px;
}

.md-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  transition: all 0.2s;
}

.md-back-link:hover {
  background: #f1f5f9;
  color: #334155;
}

.md-back-link:active {
  background: #e2e8f0;
}

.md-back-link svg {
  width: 18px;
  height: 18px;
  color: #6366f1;
}

#toolDetailView.md-mode #multiDownloaderIntro.tool-form,
#toolDetailView.md-mode #multiDownloaderIntro.panel-card,
#toolDetailView.md-mode #multiDownloaderIntro.tool-form-card {
  padding: 0 12px 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

.multi-downloader-root {
  display: block;
}

.md-page,
.md-form-card,
.md-result,
.md-result-card,
.md-meta-grid,
.md-result-actions {
  display: grid;
  gap: 14px;
}

.md-form-card,
.md-result-card,
.md-hint-card,
.md-meta-card,
.md-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.md-form-card,
.md-result-card,
.md-hint-card,
.md-block {
  padding: 16px;
}

.md-form-header,
.md-hint-head,
.md-result-header,
.md-tool-row,
.md-result-title-wrap,
.md-result-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.md-form-header,
.md-result-header {
  align-items: flex-start;
  justify-content: space-between;
}

.md-form-icon,
.md-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.md-form-icon {
  background: #eef2ff;
  color: #6366f1;
}

.md-result-icon {
  background: #e0f2fe;
  color: #0284c7;
}

.md-form-icon svg,
.md-result-icon svg {
  width: 20px;
  height: 20px;
}

.md-form-copy,
.md-result-title-wrap,
.md-block-head,
.md-meta-card {
  display: grid;
  gap: 6px;
}

.md-form-copy h3,
.md-result-header h3,
.md-block-head strong,
.md-meta-card strong {
  margin: 0;
  color: #1e293b;
}

.md-form-copy p,
.md-block-head span,
.md-meta-card span,
.md-result-summary,
.md-expire-hint,
.md-block-text,
.md-section-label {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.md-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.md-field {
  display: grid;
  gap: 8px;
}

.md-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.md-textarea-wrap {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s;
}

.md-textarea-wrap:focus-within {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.md-textarea-wrap textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: none;
  outline: none;
  resize: vertical;
  background: transparent;
  color: #1e293b;
  font-size: 0.88rem;
  line-height: 1.7;
  font-family: inherit;
  box-sizing: border-box;
}

.md-textarea-wrap textarea::placeholder {
  color: #94a3b8;
}

.md-tool-row {
  flex-wrap: wrap;
}

.md-btn-secondary,
.md-submit-btn,
.md-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.2s;
}

.md-btn-secondary {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.md-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.md-submit-btn,
.md-download-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
}

.md-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.md-hint-head {
  justify-content: space-between;
}

.md-hint-head strong {
  color: #1e293b;
  font-size: 0.82rem;
}

.md-hint-tag,
.md-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.md-hint-tag {
  background: #eef2ff;
  color: #4f46e5;
}

#mdPlatformHint[data-tone="success"] {
  color: #15803d;
}

#mdPlatformHint[data-tone="error"] {
  color: #b91c1c;
}

#mdPlatformHint[data-tone="muted"] {
  color: #64748b;
}

.md-result-status {
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.md-result-status strong {
  font-size: inherit;
}

.md-result-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.md-result-status.is-pending {
  background: #fef3c7;
  color: #b45309;
}

.md-result-status.is-failed {
  background: #fee2e2;
  color: #b91c1c;
}

.md-result-badge.is-success {
  background: #dcfce7;
  color: #15803d;
}

.md-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.md-meta-card {
  padding: 12px;
  background: #f8fafc;
}

.md-block {
  display: grid;
  gap: 12px;
}

.md-video-shell {
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.md-video-shell video {
  width: 100%;
  display: block;
  max-height: 62vh;
  object-fit: contain;
  background: #000000;
}

.md-block-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.md-result-actions {
  grid-template-columns: 1fr;
}

.md-result .message {
  margin: 0;
}

.md-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  max-width: 88vw;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(10px);
}

.multi-downloader-disclaimer-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
}

.multi-downloader-disclaimer-shell {
  width: min(92vw, 560px);
  max-height: min(88vh, 720px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.18);
}

.multi-downloader-disclaimer-head,
.multi-downloader-disclaimer-tip-wrap,
.multi-downloader-disclaimer-copy,
.multi-downloader-disclaimer-foot {
  display: grid;
  gap: 10px;
}

.multi-downloader-disclaimer-head {
  text-align: center;
}

.multi-downloader-disclaimer-title-wrap {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  justify-self: center;
}

.multi-downloader-disclaimer-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 1.2rem;
  font-weight: 800;
}

.multi-downloader-disclaimer-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #b91c1c;
}

.multi-downloader-disclaimer-head h4,
.multi-downloader-disclaimer-tip,
.multi-downloader-disclaimer-status {
  margin: 0;
  color: #1e293b;
}

.multi-downloader-disclaimer-tip {
  font-size: 0.82rem;
  font-weight: 700;
  color: #dc2626;
}

.multi-downloader-disclaimer-tip.is-complete {
  color: #15803d;
}

.multi-downloader-disclaimer-tip-sub,
.multi-downloader-disclaimer-copy p,
.multi-downloader-disclaimer-status {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.multi-downloader-disclaimer-scroll {
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.multi-downloader-disclaimer-scroll::-webkit-scrollbar {
  width: 6px;
}

.multi-downloader-disclaimer-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.54);
}

.multi-downloader-disclaimer-copy strong {
  color: #1e293b;
}

.multi-downloader-disclaimer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 420px) {
  .md-form-header,
  .md-result-header,
  .md-hint-head,
  .md-tool-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .multi-downloader-disclaimer-shell {
    width: min(94vw, 560px);
    padding: 16px;
  }

  .multi-downloader-disclaimer-actions {
    grid-template-columns: 1fr;
  }

  .md-btn-secondary {
    width: 100%;
  }
}
