/* Ponte Proxy admin UI — static styles (works without Tailwind CDN processing) */

.hidden {
    display: none !important;
}

:root {
    --brand-50: #eef2ff;
    --brand-100: #e0e7ff;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;
}

.app-logo {
    display: block;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

a.btn-primary,
button.btn-primary,
input.btn-primary[type='submit'] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: var(--brand-600);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    transition: background-color 0.15s, color 0.15s;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active,
button.btn-primary:hover,
button.btn-primary:focus,
input.btn-primary[type='submit']:hover,
input.btn-primary[type='submit']:focus {
    color: #fff;
    text-decoration: none;
}
a.btn-primary:hover,
button.btn-primary:hover,
input.btn-primary[type='submit']:hover {
    background-color: var(--brand-700);
}

a.btn-secondary,
button.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: #334155;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    transition: background-color 0.15s, color 0.15s;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}
a.btn-secondary:visited,
a.btn-secondary:hover,
a.btn-secondary:focus,
a.btn-secondary:active,
button.btn-secondary:hover,
button.btn-secondary:focus {
    color: #334155;
    text-decoration: none;
}
a.btn-secondary:hover,
button.btn-secondary:hover {
    background-color: #f8fafc;
}

.btn-danger {
    font-size: 0.875rem;
    font-weight: 500;
    color: #dc2626;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.btn-danger:hover {
    color: #991b1b;
}

.card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.card-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}
.card-body {
    padding: 1.5rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.dashboard-coverage-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.dashboard-coverage-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.dashboard-coverage-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}
.dashboard-coverage-toggle input {
    border-radius: 0.25rem;
    accent-color: var(--brand-600);
}

.dashboard-coverage-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid #e2e8f0;
}
@media (min-width: 1024px) {
    .dashboard-coverage-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 22rem);
    }
}

.dashboard-map-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-bottom: 1px solid #e2e8f0;
}
@media (min-width: 1024px) {
    .dashboard-map-column {
        border-bottom: none;
        border-right: 1px solid #e2e8f0;
    }
}

.dashboard-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.dashboard-map-hint {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}

.dashboard-map-wrap {
    position: relative;
    background: linear-gradient(165deg, #ecfeff 0%, #e0f2fe 45%, #eef2ff 100%);
}
.dashboard-map {
    height: 20rem;
    width: 100%;
    z-index: 0;
}
.dashboard-map .leaflet-container {
    height: 100%;
    width: 100%;
    font-family: inherit;
}
@media (min-width: 640px) {
    .dashboard-map {
        height: 26rem;
    }
}
@media (min-width: 1024px) {
    .dashboard-map {
        height: min(32rem, 52vh);
    }
}

.dashboard-map-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.dashboard-map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.dashboard-map-legend-swatch {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 0.2rem;
    border: 1px solid;
}

.dashboard-map-error {
    margin: 0;
    padding: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

.dashboard-map-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.12);
}
.dashboard-map-popup {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #334155;
}

.dashboard-country-detail {
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
.dashboard-country-detail-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    position: relative;
}
.dashboard-country-detail-flag {
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
    flex-shrink: 0;
}
.dashboard-country-detail-body {
    flex: 1;
    min-width: 0;
}
.dashboard-country-detail-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
}
.dashboard-country-detail-stats {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
}
.dashboard-country-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.dashboard-country-detail-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
}
.dashboard-country-detail-close:hover {
    color: #475569;
}

.dashboard-coverage-panel {
    display: flex;
    flex-direction: column;
    max-height: 28rem;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .dashboard-coverage-panel {
        max-height: min(36rem, 58vh);
    }
}

.dashboard-panel-filters {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #fff;
}

.dashboard-coverage-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    overflow-y: auto;
    flex: 1;
}

.dashboard-coverage-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background-color 0.12s, border-color 0.12s;
}
.dashboard-coverage-row:hover,
.dashboard-coverage-row:focus {
    background: #f8fafc;
    outline: none;
}
.dashboard-coverage-row--selected {
    background: #eef2ff;
    border-left-color: var(--brand-600);
}
.dashboard-coverage-row--idle {
    opacity: 0.72;
}
.dashboard-coverage-flag {
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: cover;
}
.dashboard-coverage-row-main {
    flex: 1;
    min-width: 0;
}
.dashboard-coverage-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dashboard-coverage-meta {
    display: block;
}
.dashboard-coverage-counts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    flex-shrink: 0;
}

.dashboard-panel-empty,
.dashboard-panel-footer {
    padding: 1rem;
    font-size: 0.8125rem;
    color: #64748b;
}
.dashboard-panel-footer {
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #f8fafc;
}

.input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #0f172a;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.2);
}

.label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #0f172a;
}
.page-subtitle {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #64748b;
}
.page-header-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
@media (min-width: 640px) {
    .page-header-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.page-header-main {
    min-width: 0;
}
.page-header-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
@media (max-width: 639px) {
    .page-header-actions {
        width: 100%;
    }
}

.table-wrap {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    overflow: hidden;
}
.table-scroll {
    overflow-x: auto;
}
.data-table {
    min-width: 640px;
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}
.data-table thead {
    border-bottom: 1px solid #e2e8f0;
    background-color: rgb(248 250 252 / 0.8);
}
.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.data-table td {
    border-bottom: 1px solid #f1f5f9;
    padding: 0.75rem 1rem;
    color: #334155;
}
.data-table tbody tr:hover {
    background-color: rgb(248 250 252 / 0.5);
}

.badge {
    display: inline-flex;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-success {
    background-color: #ecfdf5;
    color: #047857;
}
.badge-muted {
    background-color: #f1f5f9;
    color: #475569;
}

.code-block {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid #1e293b;
    background-color: #0f172a;
    padding: 1rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    line-height: 1.625;
    color: #f1f5f9;
}

.flash-success {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #a7f3d0;
    background-color: #ecfdf5;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #065f46;
}
.flash-error {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
    background-color: #fef2f2;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #991b1b;
}

.nav-section-label {
    margin-bottom: 0.5rem;
    padding: 0 0.75rem;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}
.nav-link:hover {
    background-color: rgb(30 41 59 / 0.7);
    color: #fff;
}
.nav-link-active {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(to right, rgb(79 70 229 / 0.25), rgb(79 70 229 / 0.05));
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.2);
}

.nav-icon-wrap {
    display: flex;
    height: 2.25rem;
    width: 2.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgb(30 41 59 / 0.9);
    color: #94a3b8;
    transition: background-color 0.15s, color 0.15s;
}
.nav-icon-svg {
    height: 1.125rem;
    width: 1.125rem;
}
.nav-link:hover .nav-icon-wrap {
    background-color: #334155;
    color: #e2e8f0;
}
.nav-link-active .nav-icon-wrap {
    background-color: var(--brand-600);
    color: #fff;
    box-shadow: 0 4px 6px rgb(79 70 229 / 0.35);
}
.nav-external {
    margin-left: auto;
    height: 1rem;
    width: 1rem;
    flex-shrink: 0;
    color: #64748b;
}
.nav-link-active .nav-external {
    color: #c7d2fe;
}

.stat-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    padding: 1.25rem;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.stat-value {
    margin-top: 0.25rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
}

/* Country picker */
.country-picker {
    position: relative;
}
.country-picker-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.25rem;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #475569;
}
.country-picker-display:empty {
    display: none;
}
.country-picker-display img,
.country-flag {
    width: 1.75rem;
    height: 1.25rem;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}
.country-picker-dropdown {
    position: absolute;
    z-index: 50;
    margin-top: 0.25rem;
    width: 100%;
    max-height: 16rem;
    overflow-y: auto;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 10px 25px rgb(0 0 0 / 0.12);
    list-style: none;
    padding: 0.25rem;
}
.country-picker-dropdown.hidden {
    display: none;
}
.country-picker-dropdown li.hidden {
    display: none;
}
.country-picker-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    border-radius: 0.375rem;
    padding: 0.5rem 0.625rem;
    text-align: left;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #0f172a;
}
.country-picker-option:hover,
.country-picker-option:focus {
    background: #f1f5f9;
    outline: none;
}
.country-picker-option.hidden {
    display: none;
}
.country-picker-option-meta {
    margin-left: auto;
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}
.country-picker-multi-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.5rem;
    max-height: 14rem;
    overflow-y: auto;
}
@media (min-width: 640px) {
    .country-picker-multi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .country-picker-multi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.country-picker-multi-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    cursor: pointer;
}
.country-picker-multi-item:hover {
    background: #f8fafc;
}
.country-picker-multi-item.hidden {
    display: none;
}
.table-country-search {
    margin-bottom: 1rem;
    max-width: 20rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.proxy-browser {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: calc(100vh - 12rem);
}

.proxy-browser-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.proxy-browser-select {
    flex: 0 1 16rem;
    min-width: 12rem;
    max-width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: #fff;
}

.proxy-browser-url {
    flex: 1 1 12rem;
    min-width: 10rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.proxy-browser-go {
    flex-shrink: 0;
}

.proxy-browser-status {
    font-size: 0.8125rem;
    color: #64748b;
}

.proxy-browser-viewport {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 28rem;
}

.proxy-browser-frame {
    flex: 1 1 auto;
    width: 100%;
    min-height: 28rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
}

.proxy-browser-frame--loading {
    pointer-events: none;
}

.proxy-browser-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.75rem;
    background: linear-gradient(165deg, #f8fafc 0%, #fff 45%, var(--brand-50) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.proxy-browser-loading.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.proxy-browser-loading-spinner {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 5.75rem;
    height: 5.75rem;
    aspect-ratio: 1 / 1;
    margin-bottom: 0.5rem;
}

.proxy-browser-loading-ring {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 3px solid var(--brand-100);
    border-top-color: var(--brand-600);
    animation: proxy-browser-spin 0.9s linear infinite;
}

.proxy-browser-loading-ring::after {
    content: '';
    position: absolute;
    inset: 0.45rem;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--brand-500);
    opacity: 0.55;
    animation: proxy-browser-spin 1.4s linear infinite reverse;
}

.proxy-browser-loading-logo {
    position: relative;
    z-index: 1;
    width: 3.5rem;
    height: 3.5rem;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 0.875rem;
    box-shadow: 0 10px 25px -8px rgba(79, 70, 229, 0.45);
    animation: proxy-browser-logo-pulse 2s ease-in-out infinite;
}

.proxy-browser-loading-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.01em;
}

.proxy-browser-loading-dots {
    display: flex;
    gap: 0.35rem;
    margin: 0.15rem 0 0;
    padding: 0;
}

.proxy-browser-loading-dots span {
    display: block;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--brand-500);
    animation: proxy-browser-dot 1.2s ease-in-out infinite;
}

.proxy-browser-loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.proxy-browser-loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes proxy-browser-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes proxy-browser-logo-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.92;
    }
}

@keyframes proxy-browser-dot {
    0%,
    80%,
    100% {
        transform: scale(0.65);
        opacity: 0.45;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .proxy-browser-loading-ring,
    .proxy-browser-loading-ring::after,
    .proxy-browser-loading-logo,
    .proxy-browser-loading-dots span {
        animation: none;
    }

    .proxy-browser-loading-ring {
        border-color: var(--brand-100);
        border-top-color: var(--brand-600);
    }

    .proxy-browser-loading-ring::after {
        display: none;
    }
}

.proxy-browser-status--error {
    color: #b91c1c;
    font-weight: 500;
}

.proxy-browser-error-page {
    margin: 0;
    min-height: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.proxy-browser-error {
    box-sizing: border-box;
    max-width: 36rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #334155;
}

.proxy-browser-error-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    color: #dc2626;
}

.proxy-browser-error-icon svg {
    width: 3rem;
    height: 3rem;
}

.proxy-browser-error-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.proxy-browser-error-message {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #475569;
}

.proxy-browser-error-code,
.proxy-browser-error-meta-line {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.proxy-browser-error-label {
    display: inline-block;
    margin-right: 0.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.6875rem;
    color: #94a3b8;
}

.proxy-browser-error-meta {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8125rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.proxy-browser-error-meta div + div {
    margin-top: 0.5rem;
}

.proxy-browser-error-meta dt {
    margin: 0;
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.proxy-browser-error-meta dd {
    margin: 0.15rem 0 0;
    word-break: break-all;
    color: #334155;
}

.proxy-browser-error-hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #94a3b8;
}

.proxy-browser-error-hint code {
    font-size: 0.75rem;
    color: #64748b;
}

.proxy-browser-error-summary {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.proxy-browser-error-details {
    margin: 0 0 1rem;
    max-width: 28rem;
    text-align: left;
    font-size: 0.8125rem;
}

.proxy-browser-error-details summary {
    cursor: pointer;
    color: #64748b;
    font-weight: 500;
}

.proxy-browser-error-details summary:hover {
    color: var(--brand-600);
}

.proxy-browser-error-technical {
    margin: 0.5rem 0 0;
    padding: 0.65rem 0.75rem;
    overflow-x: auto;
    font-size: 0.6875rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
}
