/* ============================================================
   PASSWORD GENERATOR - Complete Stylesheet
   Scoped under .pg-app to avoid host page CSS conflicts
   ============================================================ */

.pg-app {
    /* Theme variables */
    --pg-bg-primary: #0f1117;
    --pg-bg-secondary: #161822;
    --pg-bg-tertiary: #1c1e2e;
    --pg-bg-card: #1e2032;
    --pg-bg-hover: #252840;
    --pg-bg-input: #12141f;
    --pg-border: #2a2d42;
    --pg-border-light: #353856;
    --pg-text-primary: #e8e9f0;
    --pg-text-secondary: #a0a3b8;
    --pg-text-muted: #6b6e85;
    --pg-accent: #6366f1;
    --pg-accent-light: #818cf8;
    --pg-accent-glow: rgba(99, 102, 241, 0.3);
    --pg-success: #22c55e;
    --pg-success-bg: rgba(34, 197, 94, 0.12);
    --pg-success-border: rgba(34, 197, 94, 0.3);
    --pg-danger: #ef4444;
    --pg-danger-bg: rgba(239, 68, 68, 0.12);
    --pg-danger-border: rgba(239, 68, 68, 0.3);
    --pg-warning: #f59e0b;
    --pg-warning-bg: rgba(245, 158, 11, 0.12);
    --pg-warning-border: rgba(245, 158, 11, 0.3);
    --pg-info: #06b6d4;
    --pg-info-bg: rgba(6, 182, 212, 0.12);
    --pg-info-border: rgba(6, 182, 212, 0.3);
    --pg-strength-weak: #ef4444;
    --pg-strength-fair: #f59e0b;
    --pg-strength-good: #06b6d4;
    --pg-strength-strong: #22c55e;
    --pg-strength-very-strong: #a855f7;
    --pg-radius: 10px;
    --pg-radius-sm: 6px;
    --pg-radius-lg: 14px;
    --pg-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --pg-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --pg-font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

    /* Self-contained full-screen layout */
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;

    /* Reset inherited styles */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pg-text-primary);
    background: var(--pg-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: left;
    direction: ltr;
    z-index: 1;
}

.pg-app *,
.pg-app *::before,
.pg-app *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pg-app button {
    font-family: inherit;
    cursor: pointer;
}

.pg-app input,
.pg-app select,
.pg-app textarea {
    font-family: inherit;
}

.pg-app a {
    color: var(--pg-accent-light);
    text-decoration: none;
}

/* ---------- App Layout ---------- */
.pg-app {
    display: flex;
    flex-direction: column;
}

/* ---------- Header ---------- */
.pg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--pg-bg-secondary);
    border-bottom: 1px solid var(--pg-border);
    flex-shrink: 0;
    z-index: 10;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
}

.pg-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pg-logo-icon {
    color: var(--pg-accent-light);
    flex-shrink: 0;
}

.pg-header-left h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--pg-accent-light);
    line-height: 1.2;
}

.pg-header-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pg-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--pg-accent-glow);
    color: var(--pg-accent-light);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}

.pg-badge.pg-badge-outline {
    background: transparent;
    border: 1px solid var(--pg-border-light);
    color: var(--pg-text-secondary);
}

/* ---------- Main ---------- */
.pg-main {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.pg-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 24px;
    gap: 14px;
    background: var(--pg-bg-primary);
    min-width: 0;
}

.pg-right {
    width: 400px;
    min-width: 400px;
    max-width: 400px;
    background: var(--pg-bg-secondary);
    border-left: 1px solid var(--pg-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    flex-shrink: 0;
}

/* ---------- Password Card ---------- */
.pg-password-card {
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

.pg-password-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--pg-bg-tertiary);
    border-bottom: 1px solid var(--pg-border);
    gap: 12px;
    flex-wrap: wrap;
}

.pg-password-header h2 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pg-text-secondary);
    line-height: 1.4;
}

.pg-strength-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    min-width: 200px;
}

.pg-strength-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pg-text-muted);
    line-height: 1.3;
    min-width: 90px;
    text-align: right;
    transition: color var(--pg-transition);
}

.pg-strength-bar {
    width: 120px;
    height: 6px;
    background: var(--pg-bg-input);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid var(--pg-border);
}

.pg-strength-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--pg-text-muted);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.pg-strength-indicator.pg-strength-weak .pg-strength-label { color: var(--pg-strength-weak); }
.pg-strength-indicator.pg-strength-weak .pg-strength-bar-fill { background: var(--pg-strength-weak); width: 20%; }
.pg-strength-indicator.pg-strength-fair .pg-strength-label { color: var(--pg-strength-fair); }
.pg-strength-indicator.pg-strength-fair .pg-strength-bar-fill { background: var(--pg-strength-fair); width: 40%; }
.pg-strength-indicator.pg-strength-good .pg-strength-label { color: var(--pg-strength-good); }
.pg-strength-indicator.pg-strength-good .pg-strength-bar-fill { background: var(--pg-strength-good); width: 60%; }
.pg-strength-indicator.pg-strength-strong .pg-strength-label { color: var(--pg-strength-strong); }
.pg-strength-indicator.pg-strength-strong .pg-strength-bar-fill { background: var(--pg-strength-strong); width: 80%; }
.pg-strength-indicator.pg-strength-very-strong .pg-strength-label { color: var(--pg-strength-very-strong); }
.pg-strength-indicator.pg-strength-very-strong .pg-strength-bar-fill { background: var(--pg-strength-very-strong); width: 100%; }

/* Password display */
.pg-password-display {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 16px 18px;
    background: var(--pg-bg-input);
    border-bottom: 1px solid var(--pg-border);
}

.pg-password-text {
    flex: 1;
    background: var(--pg-bg-tertiary);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 16px 18px;
    font-family: var(--pg-font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--pg-accent-light);
    word-break: break-all;
    min-height: 60px;
    display: flex;
    align-items: center;
    line-height: 1.4;
    letter-spacing: 0.3px;
    user-select: all;
    transition: all var(--pg-transition);
}

.pg-password-text.pg-hidden-text {
    color: var(--pg-text-muted);
    letter-spacing: 4px;
    user-select: none;
}

.pg-password-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.pg-action-icon {
    background: var(--pg-bg-tertiary);
    border: 1px solid var(--pg-border);
    color: var(--pg-text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--pg-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--pg-transition);
    cursor: pointer;
}

.pg-action-icon:hover {
    background: var(--pg-bg-hover);
    border-color: var(--pg-border-light);
    color: var(--pg-text-primary);
}

/* Password stats */
.pg-password-stats {
    display: flex;
    border-top: 1px solid var(--pg-border);
    background: var(--pg-bg-tertiary);
}

.pg-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-right: 1px solid var(--pg-border);
    gap: 2px;
}

.pg-stat:last-child {
    border-right: none;
}

.pg-stat-label {
    font-size: 10px;
    color: var(--pg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1.3;
}

.pg-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--pg-text-primary);
    line-height: 1.3;
    font-family: var(--pg-font-mono);
    text-align: center;
    word-break: break-all;
}

/* Generate row */
.pg-generate-row {
    flex-shrink: 0;
}

.pg-btn-generate {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--pg-accent), #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: var(--pg-radius);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--pg-transition);
    letter-spacing: 0.2px;
    line-height: 1.2;
    cursor: pointer;
}

.pg-btn-generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.pg-btn-generate:active {
    transform: translateY(0);
}

/* ---------- Options Card ---------- */
.pg-options-card {
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

.pg-options-header {
    padding: 12px 18px;
    background: var(--pg-bg-tertiary);
    border-bottom: 1px solid var(--pg-border);
}

.pg-options-header h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pg-text-secondary);
    line-height: 1.4;
}

.pg-option-group {
    padding: 14px 18px;
    border-bottom: 1px solid var(--pg-border);
}

.pg-option-group:last-child {
    border-bottom: none;
}

.pg-option-group.pg-hidden {
    display: none;
}

.pg-option-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pg-text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.pg-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.pg-option-row .pg-option-label {
    margin-bottom: 0;
}

.pg-option-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--pg-accent-light);
    background: var(--pg-accent-glow);
    padding: 2px 12px;
    border-radius: 100px;
    min-width: 36px;
    text-align: center;
    line-height: 1.4;
    font-family: var(--pg-font-mono);
}

.pg-mini-label {
    font-size: 11px;
    color: var(--pg-text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* Mode buttons */
.pg-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.pg-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: var(--pg-bg-tertiary);
    border: 1px solid var(--pg-border);
    color: var(--pg-text-secondary);
    border-radius: var(--pg-radius-sm);
    font-size: 12px;
    font-weight: 500;
    transition: all var(--pg-transition);
    line-height: 1.3;
    cursor: pointer;
}

.pg-mode-btn:hover {
    border-color: var(--pg-border-light);
    color: var(--pg-text-primary);
    background: var(--pg-bg-hover);
}

.pg-mode-btn.pg-mode-active {
    background: var(--pg-accent-glow);
    border-color: var(--pg-accent);
    color: var(--pg-accent-light);
}

.pg-mode-btn svg {
    flex-shrink: 0;
}

/* Slider */
.pg-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--pg-bg-input);
    border-radius: 100px;
    outline: none;
    cursor: pointer;
}

.pg-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--pg-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 4px var(--pg-accent-glow);
    transition: all var(--pg-transition);
}

.pg-slider::-webkit-slider-thumb:hover {
    background: var(--pg-accent-light);
    transform: scale(1.1);
}

.pg-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--pg-accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 4px var(--pg-accent-glow);
}

.pg-number-input {
    width: 64px;
    background: var(--pg-bg-input);
    border: 1px solid var(--pg-border);
    color: var(--pg-text-primary);
    padding: 6px 8px;
    border-radius: var(--pg-radius-sm);
    font-size: 13px;
    text-align: center;
    outline: none;
    transition: border-color var(--pg-transition);
    line-height: 1.3;
    font-family: var(--pg-font-mono);
}

.pg-number-input:focus {
    border-color: var(--pg-accent);
}

.pg-number-input::-webkit-outer-spin-button,
.pg-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Checkbox */
.pg-checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pg-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--pg-text-secondary);
    padding: 6px 0;
    line-height: 1.4;
    user-select: none;
    transition: color var(--pg-transition);
}

.pg-checkbox:hover {
    color: var(--pg-text-primary);
}

.pg-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    accent-color: var(--pg-accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Select */
.pg-select {
    width: 100%;
    background: var(--pg-bg-input);
    border: 1px solid var(--pg-border);
    color: var(--pg-text-primary);
    padding: 8px 12px;
    border-radius: var(--pg-radius-sm);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border-color var(--pg-transition);
    line-height: 1.4;
}

.pg-select:focus {
    border-color: var(--pg-accent);
}

.pg-text-input {
    width: 100%;
    background: var(--pg-bg-input);
    border: 1px solid var(--pg-border);
    color: var(--pg-text-primary);
    padding: 8px 12px;
    border-radius: var(--pg-radius-sm);
    font-size: 13px;
    outline: none;
    margin-top: 6px;
    transition: border-color var(--pg-transition);
    line-height: 1.4;
    font-family: var(--pg-font-mono);
}

.pg-text-input:focus {
    border-color: var(--pg-accent);
}

.pg-text-input.pg-hidden {
    display: none;
}

/* ---------- Right Panel ---------- */
.pg-bulk-card,
.pg-history-card {
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.pg-bulk-card {
    flex: 0 0 auto;
    max-height: 50%;
}

.pg-history-card {
    flex: 1;
    min-height: 200px;
    border-top: 1px solid var(--pg-border);
    margin-top: 0;
}

.pg-bulk-header,
.pg-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--pg-bg-tertiary);
    border-bottom: 1px solid var(--pg-border);
    flex-shrink: 0;
}

.pg-bulk-header h3,
.pg-history-header h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pg-text-secondary);
    line-height: 1.4;
}

.pg-mini-btn {
    background: var(--pg-bg-input);
    border: 1px solid var(--pg-border);
    color: var(--pg-text-secondary);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--pg-transition);
    cursor: pointer;
}

.pg-mini-btn:hover {
    background: var(--pg-bg-hover);
    border-color: var(--pg-border-light);
    color: var(--pg-text-primary);
}

/* Bulk controls */
.pg-bulk-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--pg-bg-tertiary);
    border-bottom: 1px solid var(--pg-border);
    flex-shrink: 0;
}

.pg-bulk-count-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.pg-btn-bulk {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--pg-accent);
    border: none;
    color: #ffffff;
    border-radius: var(--pg-radius-sm);
    font-size: 12px;
    font-weight: 600;
    transition: all var(--pg-transition);
    line-height: 1.3;
    cursor: pointer;
}

.pg-btn-bulk:hover {
    background: var(--pg-accent-light);
}

/* Bulk list */
.pg-bulk-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px;
    min-height: 100px;
    max-height: 300px;
}

.pg-bulk-empty,
.pg-history-empty {
    text-align: center;
    color: var(--pg-text-muted);
    font-size: 12px;
    padding: 24px 16px;
    line-height: 1.4;
}

.pg-bulk-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--pg-bg-input);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-sm);
    margin-bottom: 4px;
    transition: all var(--pg-transition);
    cursor: pointer;
}

.pg-bulk-item:hover {
    background: var(--pg-bg-hover);
    border-color: var(--pg-border-light);
}

.pg-bulk-item-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--pg-accent-glow);
    color: var(--pg-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.pg-bulk-item-text {
    flex: 1;
    font-family: var(--pg-font-mono);
    font-size: 12px;
    color: var(--pg-text-primary);
    word-break: break-all;
    line-height: 1.4;
    user-select: all;
    min-width: 0;
}

.pg-bulk-item-copy {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--pg-text-muted);
    padding: 2px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--pg-transition);
}

.pg-bulk-item-copy:hover {
    color: var(--pg-accent-light);
}

/* Bulk actions */
.pg-bulk-actions {
    display: flex;
    gap: 4px;
    padding: 8px 14px;
    background: var(--pg-bg-tertiary);
    border-top: 1px solid var(--pg-border);
    flex-shrink: 0;
}

/* History */
.pg-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px;
}

.pg-history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--pg-bg-input);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-sm);
    margin-bottom: 4px;
    transition: all var(--pg-transition);
    cursor: pointer;
}

.pg-history-item:hover {
    background: var(--pg-bg-hover);
    border-color: var(--pg-border-light);
}

.pg-history-item-time {
    flex-shrink: 0;
    font-size: 10px;
    color: var(--pg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    line-height: 1.3;
    min-width: 40px;
}

.pg-history-item-text {
    flex: 1;
    font-family: var(--pg-font-mono);
    font-size: 11px;
    color: var(--pg-text-primary);
    word-break: break-all;
    line-height: 1.4;
    user-select: all;
    min-width: 0;
}

.pg-history-item-mode {
    flex-shrink: 0;
    font-size: 9px;
    color: var(--pg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    background: var(--pg-bg-card);
    padding: 2px 6px;
    border-radius: 100px;
    border: 1px solid var(--pg-border);
    line-height: 1.3;
}

/* ---------- Toast ---------- */
.pg-toast-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
    pointer-events: none;
}

.pg-toast {
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 12px 20px;
    font-size: 13px;
    color: var(--pg-text-primary);
    box-shadow: var(--pg-shadow);
    animation: pg-toast-in 0.3s ease, pg-toast-out 0.3s ease 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    line-height: 1.4;
    pointer-events: auto;
}

.pg-toast.pg-success {
    border-color: rgba(34, 197, 94, 0.4);
}

.pg-toast.pg-error {
    border-color: rgba(239, 68, 68, 0.4);
}

.pg-toast.pg-warning {
    border-color: rgba(245, 158, 11, 0.4);
}

.pg-toast.pg-info {
    border-color: rgba(99, 102, 241, 0.4);
}

.pg-toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

@keyframes pg-toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pg-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* ---------- Scrollbar ---------- */
.pg-app ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.pg-app ::-webkit-scrollbar-track {
    background: transparent;
}

.pg-app ::-webkit-scrollbar-thumb {
    background: var(--pg-border-light);
    border-radius: 100px;
}

.pg-app ::-webkit-scrollbar-thumb:hover {
    background: var(--pg-text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .pg-right {
        width: 340px;
        min-width: 340px;
        max-width: 340px;
    }
}

@media (max-width: 900px) {
    .pg-main {
        flex-direction: column;
    }

    .pg-left {
        max-height: 60%;
    }

    .pg-right {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        max-height: 40%;
        border-left: none;
        border-top: 1px solid var(--pg-border);
    }

    .pg-mode-grid {
        grid-template-columns: 1fr 1fr;
    }
}
