: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;
}

.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; padding: 16px; border: none; resize: vertical;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; background: transparent; color: var(--text);
}
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; }
