:root {
    --ug-accent: #10b981;
    --ug-navy: #1e2a4a;
    --ug-border: #d1d5db;
}

/* .ic-wrap box model (max-width/padding/margin) is owned centrally by
   dev-tool.css's ".dev-tool-widget .ic-wrap" rule — not redefined here
   to avoid the two paddings stacking and misaligning tool content. */

.ic-note {
    font-size: 13px;
    color: #6b7280;
    margin-top: 16px;
    line-height: 1.6;
}

/* ==== ACTION BAR ==== */
.ic-actionbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.ic-btn {
    background: var(--ug-navy);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.ic-btn:hover {
    background: #16213e;
}

.ic-btn-outline {
    background: #fff;
    color: var(--ug-navy);
    border: 1px solid var(--ug-border);
}

.ic-btn-outline:hover {
    border-color: var(--ug-navy);
    background: #f9fafb;
}

.ug-select-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ug-navy);
    background: #fff;
    border: 1px solid var(--ug-border);
    border-radius: 7px;
    padding: 9px 12px;
    white-space: nowrap;
}

.ug-select {
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--ug-navy);
    cursor: pointer;
}

.ug-select:focus {
    outline: none;
}

/* ==== Output panel ==== */
.ug-panel {
    background: #fff;
    border: 1px solid var(--ug-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ug-panel-header {
    padding: 10px 14px;
    background: #f9fafb;
    border-bottom: 1px solid var(--ug-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--ug-navy);
}

.ug-textarea {
    min-height: 380px;
    border: none;
    resize: vertical;
    padding: 14px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--ug-navy);
    background: #f9fafb;
}

.ug-textarea:focus {
    outline: none;
}

@media (max-width: 720px) {
    .ug-textarea {
        min-height: 260px;
    }

    .ic-actionbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ic-actionbar .ic-btn,
    .ic-actionbar .ug-select-label {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
