/* 安全密码生成器 */
.app-card--password { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.app-icon.pwd-mini {
    border: 0; padding: 0; cursor: pointer; background: transparent; overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px rgba(15,23,42,.16), 0 1px 3px rgba(15,23,42,.12);
    transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease;
}
.app-icon.pwd-mini:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 14px 28px rgba(15,23,42,.22); }
.app-icon.pwd-mini img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }

.pw-panel {
    position: relative; width: min(500px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
    border-radius: 16px; background: #fff; color: #1e293b;
    box-shadow: 0 28px 80px rgba(8,12,22,.34);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
.pw-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 20px; border-bottom: 1px solid rgba(15,23,42,.06); }
.pw-title { margin: 0; font-size: 15px; font-weight: 600; }
.pw-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.pw-out-box {
    display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px;
    background: #f1f5f9; border: 1px solid rgba(15,23,42,.06);
}
.pw-out {
    flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px;
    font-weight: 600; word-break: break-all; letter-spacing: .4px; user-select: all;
}
.pw-icon-btn {
    border: 0; background: #fff; color: #334155; border-radius: 8px; padding: 6px 11px; font: inherit; font-size: 12.5px;
    font-weight: 500; cursor: pointer; box-shadow: 0 1px 3px rgba(15,23,42,.08); white-space: nowrap;
}
.pw-icon-btn.is-primary { background: #10b981; color: #fff; }
.pw-meter { display: flex; flex-direction: column; gap: 6px; }
.pw-bar { height: 6px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.pw-bar i { display: block; height: 100%; border-radius: 99px; transition: width .2s ease, background .2s ease; }
.pw-meter-row { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; }
.pw-range-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.pw-range-row input { flex: 1; accent-color: #10b981; }
.pw-range-row b { min-width: 32px; text-align: right; color: #059669; }
.pw-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pw-checks label {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px;
    background: #f8fafc; font-size: 12.5px; cursor: pointer; border: 1px solid rgba(15,23,42,.05);
}
.pw-checks input { accent-color: #10b981; }
.pw-batch { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(15,23,42,.06); padding-top: 12px; }
.pw-batch-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #64748b; }
.pw-batch-list { display: flex; flex-direction: column; gap: 6px; }
.pw-cand {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px;
    border-radius: 8px; background: #f8fafc; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
    cursor: pointer; border: 1px solid transparent; transition: border-color .15s ease;
}
.pw-cand:hover { border-color: #10b981; }
.pw-cand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-cand small { color: #10b981; font-family: sans-serif; flex-shrink: 0; }
:root[data-theme="dark"] .pw-panel { background: #1b1f26; color: #f1f5f9; }
:root[data-theme="dark"] .pw-head, :root[data-theme="dark"] .pw-batch { border-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .pw-out-box, :root[data-theme="dark"] .pw-checks label, :root[data-theme="dark"] .pw-cand { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.06); }
:root[data-theme="dark"] .pw-bar { background: rgba(255,255,255,.1); }
:root[data-theme="dark"] .pw-icon-btn { background: #2d3440; color: #e2e8f0; }
:root[data-theme="dark"] .pw-icon-btn.is-primary { background: #10b981; color: #fff; }
