:root{
  --bg: #eefaf8; --panel: #ffffff; --panel-2: #e6f6f3; --line: #cdeae5;
  --accent: #0e7490; --accent-soft: #d7edf3; --accent-dim: #eef8fa;
  --text: #122a2e; --muted: #5c7a80; --muted-2: #90aab0; --bad: #b3402f;
}

.section-box{ background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.label{ display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; color: var(--muted); }

.dropzone{ border: 2px dashed var(--line); border-radius: 10px; padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.dropzone:hover, .dropzone.dragover{ border-color: var(--accent); background: var(--accent-dim); }
.dropzone .icon{ font-size: 28px; margin-bottom: 8px; }
.dropzone .main{ font-size: 14px; font-weight: 600; }
.dropzone .sub{ font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=file]{ display: none; }
.file-info{ margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.file-info b{ color: var(--text); }

.pane{ border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.pane-head{ padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.pane-head .title{ font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.view-toggle{ display: flex; gap: 6px; }
.view-btn{ padding: 4px 10px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 10.5px; font-weight: 700; cursor: pointer; }
.view-btn.active{ background: var(--accent); color: #fff; border-color: var(--accent); }

.output{ min-height: 320px; max-height: 480px; padding: 16px; overflow: auto; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.output.placeholder{ color: var(--muted-2); font-family: 'Inter', sans-serif; font-size: 14px; }
.preview{ min-height: 320px; max-height: 480px; padding: 16px; overflow: auto; font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.65; display: none; }
.preview img{ max-width: 100%; }
.preview table{ border-collapse: collapse; }
.preview th, .preview td{ border: 1px solid var(--line); padding: 6px 10px; }

.loading{ text-align: center; padding: 26px 10px; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.warn-list{ font-size: 11.5px; color: var(--bad); margin-top: 8px; }

.btns{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.app{ padding: 11px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13.5px; font-family: 'Inter', sans-serif; color: #fff; background: var(--accent); transition: filter .15s ease; }
.app:hover{ filter: brightness(1.08); }
.app:disabled{ opacity: 0.5; cursor: not-allowed; }
.gray{ background: var(--line); color: var(--text); }

.note{ margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.6; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
