.support-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 24px auto;
    max-width: 1200px;
    padding: 0 24px;
}

.widget-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.widget-card h3 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    color: #435364;
    font-weight: 600;
}

.widget-card .widget-desc {
    font-size: 0.85rem;
    color: #6b7a8d;
    margin: 0;
}

.widget-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-form .form-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.widget-form input[type="text"],
.widget-form input[type="number"],
.widget-form select {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d0d7de;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fafafa;
}

.widget-form input:focus,
.widget-form select:focus {
    outline: none;
    border-color: #435364;
    background: #fff;
}

.widget-btn {
    padding: 8px 18px;
    background: #435364;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.widget-btn:hover {
    background: #344252;
}

.widget-btn:disabled {
    background: #8a9bac;
    cursor: not-allowed;
}

.widget-results {
    min-height: 32px;
    font-size: 0.9rem;
}

.result-ok {
    color: #1a7340;
    font-weight: 600;
}

.result-error {
    color: #b91c1c;
}

.result-pre {
    background: #f3f4f6;
    border-radius: 5px;
    padding: 12px;
    font-family: monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
}

/* Ping widget gauges */
.ping-readout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ping-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ping-stat .value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #435364;
    line-height: 1;
}

.ping-stat .label {
    font-size: 0.75rem;
    color: #6b7a8d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* LibreSpeed widget */
.librespeed-container {
    width: 100%;
}

#speedtest-status {
    font-size: 0.85rem;
    color: #6b7a8d;
    min-height: 20px;
}

.speed-readout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.speed-stat .value {
    font-size: 2rem;
    font-weight: 700;
    color: #435364;
    line-height: 1;
}

.speed-stat .unit {
    font-size: 0.8rem;
    color: #6b7a8d;
    margin-left: 2px;
}

.speed-stat .label {
    font-size: 0.75rem;
    color: #6b7a8d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Ticket widget */
.ticket-details {
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ticket-details .ticket-row {
    display: flex;
    gap: 8px;
}

.ticket-details .ticket-label {
    font-weight: 600;
    color: #435364;
    min-width: 90px;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline;
}
