:root{
  --bg: #f3f7f9; --panel: #ffffff; --panel-2: #e7f0f3; --line: #cddee5;
  --accent: #257d9d; --accent-soft: #cee1e9; --accent-dim: #f1f5f6;
  --text: #182930; --muted: #50707c; --muted-2: #95aab1;
}

.settings-row{ display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.checkbox-label{ display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.checkbox-label input{ accent-color: var(--accent); width: 15px; height: 15px; }
.checkbox-label select{ font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; padding: 4px 7px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }

.warn-box{ margin-bottom: 14px; background: #fdf3e0; border: 1px solid #f0d9a3; color: #8a5b13; border-radius: 8px; padding: 12px 16px; font-size: 12.5px; line-height: 1.6; }
.warn-title{ font-weight: 700; margin-bottom: 6px; }
.warn-list{ margin: 0; padding-left: 18px; }
.warn-list li{ margin-bottom: 3px; }

.grid{ display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 820px){ .grid{ grid-template-columns: 1fr; } .bridge{ transform: rotate(90deg); margin: 4px auto; } }

.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; }
.pane-head .tag{ font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 2px 8px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); }

textarea, .output{
  flex: 1; width: 100%; min-height: 380px; max-height: 600px; padding: 16px; border: none; resize: vertical;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; background: transparent; color: var(--text); tab-size: 4; overflow: auto;
}
textarea:focus{ outline: none; }
.output{ white-space: pre-wrap; word-break: break-word; overflow: auto; }
.output.placeholder{ color: var(--muted-2); font-family: 'Inter', sans-serif; font-size: 14px; }
.output.error{ color: #b3402f; }

.bridge{ display: flex; align-items: center; justify-content: center; padding: 8px; }
.bridge svg{ width: 34px; height: 34px; }
.bridge .arrow-line{ stroke: var(--accent); stroke-width: 2; }
.bridge .arrow-head{ fill: var(--accent); }

.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); }
.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; }
