/* URL encoder / decoder - two-pane input/output with a mode and escaping toggle.
   Reuses base .btn-outline / .seg; colors come from theme tokens only. */

.ue-intro { color: var(--muted); max-width: 60ch; margin: 8px 0 20px; }

.ue-toolbar { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 16px; }
.ue-control { display: flex; align-items: center; gap: 10px; }
.ue-control-label { font-size: 14px; color: var(--muted); font-weight: 600; }

.ue-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .ue-panes { grid-template-columns: 1fr; } }

.ue-pane { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ue-pane-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.ue-pane-label { font-size: 14px; color: var(--muted); font-weight: 600; }

.ue-area {
    width: 100%; box-sizing: border-box; min-height: 220px; resize: vertical;
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 14px; line-height: 1.5; padding: 12px;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px;
    white-space: pre-wrap; word-break: break-all; overflow: auto;
}
.ue-area:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.ue-output { background: var(--bg); }

.ue-copy {
    font: inherit; font-size: 13px; padding: 4px 12px; cursor: pointer;
    border: 1px solid var(--border-strong); border-radius: 8px;
    background: var(--surface); color: var(--text);
    transition: border-color .15s, background .15s, color .15s;
}
.ue-copy:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); }
.ue-copy:disabled { opacity: .5; cursor: not-allowed; }

.ue-error {
    margin: 14px 0 0; padding: 10px 14px; border-radius: 10px;
    color: var(--bad); background: var(--surface); border: 1px solid var(--bad);
    font-size: 14px;
}
.ue-actions { margin: 16px 0 0; }
