/* ============================================================
   强密码生成器 —— 页面私有样式（/devtools/password-generator）
   通用结构复用 devtools.css，颜色只用 --c-* 变量或 rgba，自动适配黑夜模式
   ============================================================ */

[hidden] { display: none; }

/* 参数栅格 */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

/* 长度滑杆铺满所在列 */
.pg-range {
    width: 100%;
    accent-color: var(--c-primary);
}

/* 字符集勾选行 */
.pg-set {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.pg-note {
    display: block;
    margin: 8px 0 12px;
}

.pg-head {
    margin-top: 18px;
}

/* 强度条 */
.pg-meter {
    height: 10px;
    border-radius: 6px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    overflow: hidden;
}

.pg-fill {
    height: 100%;
    width: 0;
    border-radius: 6px;
    transition: width .25s ease, background .25s ease;
}

.pg-fill.lv-1 { width: 20%;  background: rgba(255, 77, 121, .95); }
.pg-fill.lv-2 { width: 40%;  background: rgba(255, 77, 121, .7); }
.pg-fill.lv-3 { width: 60%;  background: rgba(245, 158, 11, .9); }
.pg-fill.lv-4 { width: 80%;  background: rgba(16, 185, 129, .8); }
.pg-fill.lv-5 { width: 100%; background: rgba(16, 185, 129, .95); }

.pg-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 13px;
    color: var(--c-text-muted);
}

/* 结果列表 */
.pg-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: var(--c-bg-soft);
}

.pg-pwd {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    color: var(--c-text);
}

@media (max-width: 640px) {
    .pg-grid {
        grid-template-columns: 1fr;
    }
}
