#block_68 {
  min-height: calc(100% - 98px);
  box-sizing: border-box;
  padding: 40px;
  background-color: #f0f2f3;
}

:where(.ic-wrap) * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ic-wrap {
  --ic-primary: #2267f1;
  --ic-primary-hover: #1a54cc;
  --ic-primary-light: rgba(34, 103, 241, 0.08);
  --ic-success: #16a34a;
  --ic-error: #dc2626;
  --ic-warning: #d97706;
  --ic-border: #d1d5db;
  --ic-text: #111827;
  --ic-text-muted: #6b7280;
  --ic-text-placeholder: #9ca3af;
  --ic-radius: 12px;
  --ic-radius-sm: 8px;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ic-text);
  background: #e5e7eb;
  border: 1px solid var(--ic-border);
  border-radius: var(--ic-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ic-header {
  padding: 24px 28px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--ic-border);
  position: relative;
}

.ic-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 28px; right: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--ic-primary), #6366f1, var(--ic-success));
  opacity: 0.85;
  border-radius: 2px;
}

.ic-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ic-text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.ic-header p {
  font-size: 0.9rem;
  color: var(--ic-text-muted);
}

.ic-options {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 28px;
  background: #f9fafb;
  border-bottom: 1px solid var(--ic-border);
  flex-wrap: wrap;
}

.ic-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ic-text-muted);
  cursor: pointer;
  user-select: none;
}

.ic-opt input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ic-border);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
  background: #fff;
}

.ic-opt input[type="checkbox"]:checked {
  background: var(--ic-primary);
  border-color: var(--ic-primary);
}

.ic-opt input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ic-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 860px) {
  .ic-workspace { grid-template-columns: 1fr; }
  .ic-panel { border-right: none !important; border-bottom: 1px solid var(--ic-border); }
  .ic-panel:last-child { border-bottom: none; }
}

.ic-panel {
  background: #ffffff;
  border-right: 1px solid var(--ic-border);
  display: flex;
  flex-direction: column;
}

.ic-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-bottom: 1px solid var(--ic-border);
  background: #f9fafb;
}

.ic-panel-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ic-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ic-panel-title .ic-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.ic-area-wrap {
  padding: 18px 22px;
  flex: 1;
  background: #e5e7eb;
  display: flex;
  flex-direction: column;
}

.ic-textarea {
  width: 100%;
  min-height: 200px;
  height: 200px;
  background: #ffffff;
  color: var(--ic-text);
  border: 1px solid var(--ic-border);
  padding: 16px;
  font-family: 'SF Mono', 'Fira Code', Consolas, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  border-radius: var(--ic-radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  tab-size: 2;
  flex: 1;
}

.ic-textarea::placeholder { color: var(--ic-text-placeholder); }
.ic-textarea:focus {
  border-color: var(--ic-primary);
  box-shadow: 0 0 0 3px var(--ic-primary-light);
}

.ic-textarea[readonly] {
  background: #f8f9fb;
  color: var(--ic-text-muted);
  cursor: default;
}

.ic-stats-bar {
  display: none;
  gap: 18px;
  padding: 10px 22px;
  border-top: 1px solid var(--ic-border);
  background: #f9fafb;
  font-size: 0.82rem;
  color: var(--ic-text-muted);
}
.ic-stats-bar.active { display: flex; }
.ic-stats-bar span { display: flex; align-items: center; gap: 4px; }

.ic-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 28px;
  background: #ffffff;
  border-top: 1px solid var(--ic-border);
  border-bottom: 1px solid var(--ic-border);
}

.ic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--ic-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  font-family: inherit;
  white-space: nowrap;
  user-select: none;
}

.ic-btn:active { transform: scale(0.97); }
.ic-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.ic-btn-primary {
  background: linear-gradient(135deg, var(--ic-primary), #3b7af5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(34, 103, 241, 0.25);
}
.ic-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1a54cc, var(--ic-primary));
  box-shadow: 0 6px 20px rgba(34, 103, 241, 0.35);
  transform: translateY(-1px);
}

.ic-btn-secondary {
  background: #ffffff;
  color: var(--ic-text-muted);
  border: 1px solid var(--ic-border);
}
.ic-btn-secondary:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: var(--ic-text);
}

.ic-actions-row { display: flex; gap: 8px; }

.ic-progress {
  padding: 20px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--ic-border);
  display: none;
}
.ic-progress.active { display: block; }

.ic-progress-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ic-progress-hd strong { font-size: 0.92rem; font-weight: 600; }
.ic-pct { color: var(--ic-primary); font-weight: 700; font-size: 0.9rem; }

.ic-bar-bg {
  width: 100%;
  height: 7px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.ic-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ic-primary), #5b8def, var(--ic-primary));
  background-size: 200% 100%;
  animation: ic-shimmer 2.5s infinite linear;
  border-radius: 4px;
  transition: width 0.35s ease;
}

@keyframes ic-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.ic-progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ic-text-muted);
  margin-top: 8px;
}

.ic-log {
  margin-top: 16px;
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ic-log::-webkit-scrollbar { width: 5px; }
.ic-log::-webkit-scrollbar-track { background: transparent; }
.ic-log::-webkit-scrollbar-thumb { background: var(--ic-border); border-radius: 3px; }

.ic-log-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  animation: ic-fade 0.25s ease;
}
@keyframes ic-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.ic-log-entry .ic-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}
.ic-log-entry .ic-url {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ic-text-muted);
}
.ic-log-entry .ic-size { font-size: 0.76rem; color: var(--ic-text-placeholder); white-space: nowrap; }

.ic-log-entry.ic-ok .ic-dot { background: var(--ic-success); color: #fff; }
.ic-log-entry.ic-fail .ic-dot { background: var(--ic-error); color: #fff; }
.ic-log-entry.ic-pend .ic-dot { background: var(--ic-warning); color: #fff; }

.ic-cors-note {
  padding: 14px 28px;
  background: linear-gradient(90deg, rgba(217,119,6,0.12), rgba(217,119,6,0.04));
  border-bottom: 1px solid var(--ic-border);
  font-size: 0.84rem;
  color: #b45309;
  line-height: 1.5;
  display: none;
}
.ic-cors-note.active { display: block; }

.ic-preview-section {
  background: #ffffff;
  border-top: 1px solid var(--ic-border);
  display: none;
}
.ic-preview-section.active { display: block; }

.ic-preview-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-bottom: 1px solid var(--ic-border);
  background: #f9fafb;
}
.ic-preview-bd { padding: 18px 22px; background: #e5e7eb; }
.ic-preview-bd iframe {
  width: 100%;
  height: 440px;
  border: 1px solid var(--ic-border);
  border-radius: var(--ic-radius-sm);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ic-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ic-spin 0.7s linear infinite;
  display: none;
}
@keyframes ic-spin { to { transform: rotate(360deg); } }

.ic-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 12px 22px;
  background: var(--ic-text);
  color: #fff;
  border-radius: var(--ic-radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.ic-toast.show { transform: translateY(0); opacity: 1; }