/* Unicode & \u escape explorer - a Convert panel (two-pane text <-> \u) and an Inspect panel
   (per-character table). Reuses base .btn-outline / .seg; colors come from theme tokens only. */

.un-modebar { margin-bottom: 18px; }

.un-toolbar { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 16px; }
.un-control { display: flex; align-items: center; gap: 10px; }
.un-control-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.un-check {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--text); font-weight: 600; cursor: pointer;
}
.un-check input { width: 16px; height: 16px; accent-color: var(--accent); }

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

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

.un-area {
    width: 100%; box-sizing: border-box; min-height: 200px; 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-word; overflow: auto;
}
.un-area:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.un-output { background: var(--bg); }
.un-inspect-area { min-height: 120px; margin-bottom: 18px; }

.un-table-wrap { overflow-x: auto; }
.un-table {
    width: 100%; border-collapse: collapse; font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.un-table th, .un-table td {
    text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.un-table th { color: var(--muted); font-weight: 600; }
.un-table td {
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    color: var(--text);
}
.un-glyph {
    font-family: inherit; font-size: 18px; text-align: center;
    background: var(--bg);
}
.un-empty { color: var(--muted); font-size: 14px; margin: 14px 2px; }
