/* URL parser - single input plus a decoded components list and a query-parameter table.
   Reuses base .field; colors come from theme tokens only. */

.up-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.up-label { font-size: 14px; color: var(--muted); font-weight: 600; }

.up-input {
    width: 100%; box-sizing: border-box;
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 14px; line-height: 1.5;
}

.up-error { margin: 0 0 16px; color: var(--bad); font-weight: 600; }

.up-section { margin-top: 24px; }
.up-heading { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 12px; }

/* Components: label / value rows in a two-column definition grid. */
.up-parts {
    display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px;
    margin: 0; align-items: start;
}
@media (max-width: 480px) { .up-parts { grid-template-columns: 1fr; gap: 2px 0; } }
@media (max-width: 480px) { .up-parts .up-value { margin-bottom: 10px; } }

.up-key { color: var(--muted); font-weight: 600; font-size: 14px; }
.up-value {
    margin: 0; color: var(--text);
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 14px; word-break: break-all; user-select: all;
}

.up-note { margin: 0; color: var(--muted); }

/* Query parameters: a clean bordered table. */
.up-table {
    width: 100%; border-collapse: collapse;
    border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.up-table th, .up-table td {
    text-align: left; padding: 10px 12px;
    border-bottom: 1px solid var(--border); vertical-align: top;
}
.up-table thead th {
    color: var(--muted); font-weight: 600; font-size: 13px;
    background: var(--bg);
}
.up-table tbody tr:last-child td { border-bottom: 0; }
.up-cell-name {
    color: var(--accent); font-weight: 600;
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 14px; word-break: break-all;
}
.up-cell-value {
    color: var(--text);
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 14px; word-break: break-all; user-select: all;
}
