/* Life V336 Lock Tool */
#tools-lock-control{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon title" "icon summary" "status status" "actions actions";column-gap:10px;align-items:center;cursor:pointer}
#tools-lock-control .tool-grid-icon{grid-area:icon}#tools-lock-title{grid-area:title}#tools-lock-summary{grid-area:summary}
.lock-card-status-row{grid-area:status;display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding-top:9px;border-top:1px solid var(--border,#e5e7eb);font-size:11px;color:var(--text-secondary,#667085)}
.lock-card-state{display:inline-flex;align-items:center;gap:5px;min-height:22px;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:#eef2f6;color:#475467;border:1px solid #d0d5dd}
.lock-card-state.locked{background:#eff8ff;color:#175cd3;border-color:#b2ddff}.lock-card-state.unlocked{background:#ecfdf3;color:#027a48;border-color:#abefc6}.lock-card-state.error{background:#fef3f2;color:#b42318;border-color:#fecdca}.lock-card-state.working{background:#fffaeb;color:#b54708;border-color:#fedf89}
.lock-card-actions{grid-area:actions;display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:9px}.lock-card-actions button{min-height:34px;border-radius:10px;border:1px solid #d0d5dd;background:#fff;color:#344054;font:700 11px/1 inherit;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px}.lock-card-actions button:first-child{background:#155eef;color:#fff;border-color:#155eef}.lock-card-actions button:disabled{opacity:.55}
.lock-tool-modal{display:none;align-items:center;justify-content:center;padding:calc(env(safe-area-inset-top,0px) + 14px) 14px calc(env(safe-area-inset-bottom,0px) + 14px);background:rgba(15,23,42,.55);backdrop-filter:blur(12px)}
.lock-tool-shell{width:min(94vw,760px);max-height:min(90vh,860px);display:flex;flex-direction:column;overflow:hidden;background:#f8fafc;border:1px solid #dce3ec;border-radius:22px;box-shadow:0 28px 90px rgba(15,23,42,.28)}
.lock-tool-head{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px;padding:13px 15px;background:#fff;border-bottom:1px solid #e4e7ec;position:sticky;top:0;z-index:3}.lock-tool-head-copy h2{margin:0;font-size:18px}.lock-tool-head-copy p{margin:2px 0 0;color:#667085;font-size:11px}.lock-tool-head .btn-icon-small[hidden]{visibility:hidden;display:block!important}
.lock-tool-body{overflow:auto;padding:14px;min-height:320px}.lock-view[hidden]{display:none!important}.lock-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.lock-toolbar .spacer{flex:1}.lock-btn{min-height:38px;border-radius:11px;border:1px solid #d0d5dd;background:#fff;color:#344054;padding:0 12px;font-weight:800;font-size:12px;display:inline-flex;align-items:center;gap:7px}.lock-btn.primary{background:#155eef;border-color:#155eef;color:#fff}.lock-btn.danger{color:#b42318}.lock-btn .material-symbols-rounded{font-size:18px}
.lock-list{display:grid;gap:10px}.lock-list-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px;border:1px solid #e4e7ec;border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.04)}.lock-list-card.is-default{border-color:#84adff;box-shadow:0 0 0 2px rgba(21,94,239,.06)}.lock-list-icon{width:44px;height:44px;border-radius:13px;background:#eef4ff;color:#155eef;display:grid;place-items:center}.lock-list-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.lock-list-title strong{font-size:14px}.lock-list-main>small{display:block;color:#667085;font-size:11px;margin-top:3px}.lock-default-pill{font-size:9px;font-weight:900;letter-spacing:.08em;color:#175cd3;background:#eff8ff;border:1px solid #b2ddff;border-radius:999px;padding:2px 6px}.lock-list-status{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px}.lock-list-status>span:last-child{color:#667085;font-size:10px;max-width:330px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lock-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.lock-action,.lock-icon-action{border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:9px;min-height:34px;padding:0 9px;font-size:10px;font-weight:800;display:inline-flex;align-items:center;gap:5px}.lock-action.primary{background:#155eef;color:#fff;border-color:#155eef}.lock-icon-action{width:34px;padding:0;justify-content:center}.lock-icon-action.danger{color:#b42318}.lock-action .material-symbols-rounded,.lock-icon-action .material-symbols-rounded{font-size:17px}
.lock-empty{min-height:230px;border:1px dashed #d0d5dd;border-radius:16px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#667085;text-align:center;padding:25px}.lock-empty .material-symbols-rounded{font-size:34px;color:#98a2b3}.lock-empty strong{color:#344054}
.lock-form,.lock-settings-card{background:#fff;border:1px solid #e4e7ec;border-radius:16px;padding:14px}.lock-form-section+.lock-form-section{border-top:1px solid #eaecf0;margin-top:14px;padding-top:14px}.lock-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.lock-section-title strong{font-size:12px}.lock-section-title small{font-size:10px;color:#667085}.lock-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lock-field{display:grid;gap:5px}.lock-field.span-2{grid-column:1/-1}.lock-field label{font-size:10px;font-weight:900;color:#475467;letter-spacing:.04em;text-transform:uppercase}.lock-field input,.lock-field select{width:100%;min-height:42px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;color:#101828;padding:0 11px;font-size:12px;outline:none}.lock-field input:focus,.lock-field select:focus{border-color:#84adff;box-shadow:0 0 0 3px rgba(21,94,239,.08)}.lock-check-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:11px}.lock-check{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:#344054}.lock-check input{width:16px;height:16px}.lock-note{font-size:10px;line-height:1.45;color:#667085;background:#f9fafb;border:1px solid #eaecf0;border-radius:10px;padding:9px 10px;margin-top:10px}.lock-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.lock-settings-grid{display:grid;gap:11px}.lock-settings-card h3{margin:0 0 5px;font-size:13px}.lock-settings-card p{margin:0;color:#667085;font-size:11px;line-height:1.45}.lock-settings-card .lock-field{margin-top:10px}.lock-shortcut-badge{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:6px 9px;border-radius:10px;background:#eef4ff;color:#3538cd;font-size:10px;font-weight:800}
#lock-tool-toast{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);z-index:10;max-width:min(90%,520px);padding:9px 12px;border-radius:10px;background:#101828;color:#fff;font-size:11px;font-weight:700;box-shadow:0 8px 30px rgba(0,0,0,.2)}#lock-tool-toast[data-tone="success"]{background:#067647}#lock-tool-toast[data-tone="error"]{background:#b42318}#lock-tool-toast[data-tone="warning"]{background:#b54708}
html[data-theme="dark"] #tools-lock-control .lock-card-status-row{border-color:#303030;color:#a7a7a7}html[data-theme="dark"] .lock-card-actions button{background:#111;color:#f7f7f7;border-color:#333}html[data-theme="dark"] .lock-card-actions button:first-child{background:#315ee8;border-color:#315ee8}
html[data-theme="dark"] .lock-tool-shell,html[data-theme="dark"] .lock-tool-body{background:#050505;color:#f7f7f7}html[data-theme="dark"] .lock-tool-shell{border-color:#292929}html[data-theme="dark"] .lock-tool-head,html[data-theme="dark"] .lock-list-card,html[data-theme="dark"] .lock-form,html[data-theme="dark"] .lock-settings-card{background:#0b0b0b;border-color:#303030}html[data-theme="dark"] .lock-tool-head{border-color:#292929}html[data-theme="dark"] .lock-tool-head-copy p,html[data-theme="dark"] .lock-list-main>small,html[data-theme="dark"] .lock-list-status>span:last-child,html[data-theme="dark"] .lock-section-title small,html[data-theme="dark"] .lock-settings-card p{color:#a7a7a7}html[data-theme="dark"] .lock-field input,html[data-theme="dark"] .lock-field select{background:#101010;border-color:#363636;color:#f7f7f7}html[data-theme="dark"] .lock-field label,html[data-theme="dark"] .lock-check{color:#d0d0d0}html[data-theme="dark"] .lock-note{background:#101010;border-color:#303030;color:#a7a7a7}html[data-theme="dark"] .lock-btn,html[data-theme="dark"] .lock-action,html[data-theme="dark"] .lock-icon-action{background:#111;border-color:#363636;color:#f7f7f7}html[data-theme="dark"] .lock-btn.primary,html[data-theme="dark"] .lock-action.primary{background:#315ee8;border-color:#315ee8}.lock-tool-modal[style*="display: flex"]{display:flex!important}
@media(max-width:640px){.lock-tool-modal{align-items:stretch;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)}.lock-tool-shell{width:100%;max-height:100%;height:100%;border-radius:0;border:0}.lock-list-card{grid-template-columns:40px minmax(0,1fr)}.lock-list-actions{grid-column:1/-1;justify-content:stretch}.lock-action{flex:1;justify-content:center}.lock-form-grid{grid-template-columns:1fr}.lock-field.span-2{grid-column:auto}.lock-tool-body{padding:12px}}
