#center-settings{--sc-bg:#10192c;--sc-side:#0b1323;--sc-card:#17223a;--sc-input:#0b1323;--sc-surface:#1d293c;--sc-line:#2c3b55;--sc-text:#edf2ff;--sc-muted:#9aaac2;--sc-accent:#6452fa;--sc-on-accent:#fff;--sc-active:#222748;--sc-cyan:#51d8e9;color-scheme:dark}
#center-settings[data-preview-theme="midnight"]{--sc-bg:#0a1325;--sc-side:#081020;--sc-card:#11213a;--sc-input:#091528;--sc-surface:#172b49;--sc-line:#29425f;--sc-text:#eaf3ff;--sc-muted:#a0b4d0;--sc-accent:#3876dd;--sc-active:#193455;--sc-cyan:#78c3ff}
#center-settings[data-preview-theme="light"]{--sc-bg:#f3f5fa;--sc-side:#fafbff;--sc-card:#fff;--sc-input:#f7f8fc;--sc-surface:#edf0f7;--sc-line:#d5dcea;--sc-text:#202941;--sc-muted:#52627b;--sc-accent:#5942d4;--sc-active:#eeecff;--sc-cyan:#087e9b;color-scheme:light}
.dp{color:var(--sc-text);font-size:14px}
.dp *{box-sizing:border-box}
.dp :is(button,input,select){font:inherit}
.dp button{cursor:pointer}
.dp button:disabled{cursor:not-allowed;opacity:.7}
.dp :is(button,input,select):focus-visible{outline:2px solid var(--sc-cyan);outline-offset:3px}
.dp svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dp-head{margin:0 0 27px}
.dp-head h1{font-size:26px;line-height:1.32;letter-spacing:-.02em;margin:0 0 8px;color:var(--sc-text);font-weight:720}
.dp-head p,.dp-prefrow p,.dp-identity p,.dp-dbody p{color:var(--sc-muted);font-size:13px;line-height:1.55;margin:0}
.dp-card{background:var(--sc-card);border:1px solid var(--sc-line);border-radius:12px;overflow:hidden}
.dp-card+.dp-card{margin-top:22px}
.dp-bar{display:flex;align-items:center;gap:8px;min-height:52px;padding:14px 20px;margin:0;border-bottom:1px solid var(--sc-line);font-size:14px;font-weight:650;color:var(--sc-muted)}
.dp-bar::before{content:"";width:6px;height:6px;flex:none;border-radius:100%;background:var(--sc-cyan)}
.dp-identity{display:flex;align-items:center;gap:18px;padding:22px}
.dp-avatar{display:grid;flex:none;place-items:center;width:76px;height:76px;background:linear-gradient(140deg,#6153ee,#825cef);color:white;border:2px solid var(--sc-line);border-radius:50%;font-size:32px;font-weight:650}
.dp-avatar svg{width:36px;height:36px}
.dp-account{min-width:0;flex:1}
.dp-account h2{font-size:18px;line-height:1.4;font-weight:700;overflow-wrap:anywhere;margin:0 0 4px}
.dp-btn{background:var(--sc-surface);color:var(--sc-text);border:1px solid var(--sc-line);border-radius:8px;padding:7px 13px;min-height:33px;font-weight:550;line-height:1.35}
.dp-btn:not(:disabled):hover,.dp-theme:hover{border-color:var(--sc-muted)}
.dp-edit{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.dp-edit svg{width:15px;height:15px}
.dp-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
.dp-fields>div{border-top:1px solid var(--sc-line);padding:15px 22px}
.dp-fields dt{font-size:12px;color:var(--sc-muted);margin-bottom:6px}
.dp-fields dd,.dp-facts dd{margin:0;overflow-wrap:anywhere}
.dp-themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:20px}
.dp-theme{display:grid;gap:9px;min-width:0;padding:11px;border:1.5px solid var(--sc-line);border-radius:10px;color:var(--sc-text);background:var(--sc-surface);text-align:left}
.dp-theme[aria-pressed="true"]{border-color:var(--sc-accent);box-shadow:inset 0 0 0 1px var(--sc-accent);background:var(--sc-active)}
.dp-swatch{display:flex;align-items:flex-end;gap:4px;padding:8px;border-radius:6px;width:100%;height:57px;background:#10192c}
.dp-swatch i,.dp-swatch b{display:block;border-radius:3px}
.dp-swatch i{width:34px;height:22px;background:#5949da}
.dp-swatch b{width:54px;height:14px;background:#3a4150}
.sw-midnight{background:#0b1323}.sw-midnight i{background:#3371d8}
.sw-light{background:#eff3f7}.sw-light i{background:#7867ff}.sw-light b{background:#f7f9fb}
.dp-tname{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:22px;font-size:12px;font-weight:650}
.dp-current,.dp-status{display:inline-flex;align-items:center;padding:3px 8px;border-radius:99px;font-size:11px;line-height:1.25;background:color-mix(in srgb,var(--sc-cyan) 13%,transparent);color:var(--sc-cyan)}
.dp-theme:not([aria-pressed="true"]) .dp-current{visibility:hidden}
.dp-prefrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;min-height:71px}
.dp-prefrow+.dp-prefrow{border-top:1px solid var(--sc-line)}
.dp-prefrow label,.dp-form h3{font-weight:650}
.dp-prefrow p{font-size:12px;margin-top:3px}
.dp-prefrow select,.dp-form input,.dp-dbody input{border:1px solid var(--sc-line);border-radius:8px;background:var(--sc-input);color:var(--sc-text);min-height:40px;padding:8px 12px}
.dp-prefrow select{min-width:148px}
.dp-switch{flex:none;display:flex;align-items:center;width:42px;height:24px;border:0;border-radius:30px;background:var(--sc-line);padding:3px}
.dp-switch span{height:18px;width:18px;border-radius:50%;background:white;transition:transform .15s ease}
.dp-switch[aria-checked="true"]{background:var(--sc-accent)}
.dp-switch[aria-checked="true"] span{transform:translateX(18px)}
.dp-form,.dp-facts{padding:20px}
.dp-form h3{display:flex;align-items:center;gap:8px;font-size:16px;margin:0 0 16px}
.dp-status{background:var(--sc-surface);color:var(--sc-muted)}
.dp-form label,.dp-dbody label{display:block;margin:15px 0 7px;font-size:13px;color:var(--sc-muted)}
.dp-form input,.dp-dbody input{width:100%;font-size:15px}
.dp-form input::placeholder,.dp-dbody input::placeholder{color:var(--sc-muted)}
.dp-keywrap{position:relative}.dp-keywrap input{padding-right:40px}.dp-keywrap svg{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--sc-muted);pointer-events:none}
.dp-form>p{font-size:12px;color:var(--sc-muted);line-height:1.55;margin:7px 0 0}
.dp-actions{display:flex;gap:9px;align-items:center;margin-top:20px}
.dp-primary{color:var(--sc-on-accent);background:var(--sc-accent);border-color:transparent}
.dp-facts{margin:0}
.dp-facts>div{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:44px;padding:8px 0}
.dp-facts>div+div{border-top:1px solid var(--sc-line)}
.dp-facts dt{color:var(--sc-muted)}.dp-facts dd{text-align:right}
.dp-textbtn{border:0;padding:4px 0;color:var(--sc-cyan);font:inherit;background:none}
.dp-textbtn:hover{text-decoration:underline}
.dp-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 48px);border-radius:14px;background:var(--sc-card);color:var(--sc-text);border:1px solid var(--sc-line);padding:0;box-shadow:0 20px 60px #05081263}
#dp-editor[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  overflow: auto;
}
.dp-dialog::backdrop{background:#05091498}
.dp-dbody{padding:24px}
.dp-dbody h2{font-size:20px;margin:0 0 8px}
.dp-dbody .dp-actions{justify-content:flex-end}
.dp-guide{padding-inline-start:22px;line-height:1.5}
.dp-guide li{padding-inline-start:4px;margin:13px 0}
.dp-guide p{margin-top:3px}
[data-preview-motion="off"] *,[data-preview-motion="off"] *::before,[data-preview-motion="off"] *::after{animation-duration:0s!important;transition-duration:0s!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){.dp-switch span{transition:none}}
@media(max-width:650px){.dp-themes{gap:8px;padding:12px}.dp-theme{padding:8px}.dp-tname{align-items:flex-start;flex-direction:column}.dp-identity{padding:16px;gap:11px}.dp-avatar{width:52px;height:52px;font-size:24px}.dp-account h2{font-size:16px}.dp-fields>div{padding:13px 16px}.dp-prefrow{padding:14px}.dp-facts,.dp-form{padding:15px}.dp-head h1{font-size:24px}.dp-bar{padding-left:15px}.dp-prefrow select{min-width:108px}}
@media(max-width:380px){.dp-identity{flex-wrap:wrap}.dp-edit{margin-left:auto}.dp-themes{grid-template-columns:1fr}.dp-tname{flex-direction:row}.dp-swatch{height:32px}.dp-prefrow select{min-width:90px}}

#pane-security{color:var(--sc-text,#ebf1ff);min-width:0}
#pane-security .sec-head{margin:0 0 26px}
#pane-security .sec-head h1{color:var(--sc-text,#ebf1ff);font:inherit;font-size:clamp(24px,2vw,30px);font-weight:720;letter-spacing:-.035em;line-height:1.25;margin:0}
#pane-security .sec-head p{font-size:14px;line-height:1.65;color:var(--sc-muted,#9aadc7);margin:8px 0 0}
#pane-security #accountSettings{margin:0;padding:0;background:none;border:0;display:block;box-shadow:none}
#pane-security .sec-mount[hidden],#pane-security #accountSettings:has(#ljgs-settings) .sec-local{display:none!important}
#pane-security .sec-group,#pane-security #ljgs-settings>.ljgs-list{background:var(--sc-card,#17223a);border:1px solid var(--sc-line,#2c3b55);border-radius:13px;overflow:hidden}
#pane-security .sec-group+.sec-group{margin-top:22px}
#pane-security .sec-group-title,#pane-security #ljgs-settings>h3{display:flex;align-items:center;gap:9px;margin:0;padding:15px 20px;color:var(--sc-muted,#9aadc7);font:inherit;font-size:14px;font-weight:650}
#pane-security .sec-group-title::before,#pane-security #ljgs-settings>h3::before{content:"";width:6px;height:6px;background:var(--sc-cyan,#27cbe1);border-radius:50%}
#pane-security .sec-actions .sec-group-title::before,#pane-security #ljgs-settings>h3:nth-of-type(2)::before{background:#f4a923}
#pane-security .sec-preview-row,#pane-security #ljgs-settings button.ljgs-row{box-sizing:border-box;display:flex;align-items:center;gap:16px;min-height:80px;padding:13px 20px;border:0;border-top:1px solid var(--sc-line,#2c3b55);background:transparent;text-align:left;color:var(--sc-text,#ebf1ff);font-family:inherit}
#pane-security .sec-tile,#pane-security #ljgs-settings .ljgs-tile{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:11px;background:var(--sc-surface,#1f2b40);border:1px solid var(--sc-line,#2c3b55);color:var(--sc-muted,#a5b8d2)}
#pane-security .sec-tile svg,#pane-security #ljgs-settings .ljgs-tile svg{width:20px;height:20px}
#pane-security .sec-label{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
#pane-security .sec-label strong,#pane-security #ljgs-settings .ljgs-row strong{font-size:15px;font-weight:670;line-height:1.45}
#pane-security .sec-status{color:var(--sc-muted,#9aadc7);font-size:11px;line-height:1.6;background:var(--sc-surface,#1f2b40);border-radius:100px;padding:1px 7px}
#pane-security .sec-copy{min-width:0}
#pane-security .sec-copy p{font-size:13px;line-height:1.55;color:var(--sc-muted,#9aadc7);margin:4px 0 0}
#pane-security .sec-controls{display:flex;gap:7px;justify-content:flex-end;margin-left:auto;flex-shrink:0;flex-wrap:wrap}
#pane-security .sec-control,#pane-security #ljgs-settings .ljgs-action{font:inherit;font-size:12px;line-height:1.4;padding:6px 11px;color:var(--sc-text,#ebf1ff);background:var(--sc-surface,#1f2b40);border:1px solid var(--sc-line,#2c3b55);border-radius:8px}
#pane-security .sec-control:disabled{opacity:.7;cursor:not-allowed}
#pane-security .sec-delete .sec-label strong,#pane-security .sec-delete .sec-control,#pane-security .sec-delete .sec-tile,#pane-security #ljgs-settings .ljgs-risk strong,#pane-security #ljgs-settings .ljgs-risk .ljgs-tile{color:#ff8f99}
#pane-security .sec-delete .sec-control,#pane-security .sec-delete .sec-tile{border-color:color-mix(in srgb,#eb6572 40%,var(--sc-line,#2c3b55))}
[data-preview-theme="light"] #pane-security .sec-delete :is(strong,.sec-control,.sec-tile){color:#b5283e}
#pane-security #ljgs-settings{margin:0;color:var(--sc-text,#ebf1ff)}
#pane-security #ljgs-settings>h2{position:absolute;height:1px;width:1px;clip-path:inset(50%);overflow:hidden;margin:0}
#pane-security #ljgs-settings>h3{background:var(--sc-card,#17223a);border:1px solid var(--sc-line,#2c3b55);border-bottom:none;border-radius:13px 13px 0 0;margin-top:22px}
#pane-security #ljgs-settings>h3:first-of-type{margin-top:0}
#pane-security #ljgs-settings>.ljgs-list{border-top:none;border-radius:0 0 13px 13px}
#pane-security #ljgs-settings .ljgs-row:focus-visible,#pane-security #ljgs-settings .ljgs-row:hover{background:var(--sc-surface,#1f2b40)}
#pane-security #ljgs-settings .ljgs-value{color:var(--sc-muted,#9aadc7)}
@media (max-width:620px){
 #pane-security .sec-head{margin-bottom:20px}
 #pane-security .sec-group-title,#pane-security #ljgs-settings>h3{padding:13px 14px}
 #pane-security .sec-preview-row,#pane-security #ljgs-settings button.ljgs-row{flex-wrap:wrap;padding:13px 14px;gap:10px;min-height:74px}
 #pane-security .sec-tile,#pane-security #ljgs-settings .ljgs-tile{width:35px;height:35px;flex-basis:35px;border-radius:9px}
 #pane-security .sec-controls{gap:4px}
 #pane-security .sec-control{padding:5px 8px}
 #pane-security .sec-copy{flex:1 1 150px}
}
@media (max-width:420px){
 #pane-security .sec-controls{justify-content:flex-start;margin-left:45px}
 #pane-security .sec-preview-row .sec-copy{flex-basis:calc(100% - 46px)}
}

#center-settings{max-width:1156px;width:100%;margin:0 auto;padding:32px clamp(16px,3vw,32px) 42px;background:var(--sc-bg);min-height:100%;box-sizing:border-box}
#content:has(>#center-settings){padding:0!important;overflow-y:auto;background:#10192c}
#content:has(>#center-settings[data-preview-theme=light]){background:#f3f5fa}
#content:has(>#center-settings[data-preview-theme=midnight]){background:#0a1325}
#center-settings>.pane[hidden],#center-links[hidden]{display:none!important}
#center-settings>.pane:not([hidden]){animation:center-show .15s ease-out}
@keyframes center-show{from{opacity:.65}to{opacity:1}}
#center-settings .dp-bar{display:flex}
#center-settings #accountSettings{max-width:none;width:100%}
#center-settings #accountSettings>.data-row,#center-settings #accountSettings>.page-title{display:none!important}
#center-settings #ljgs-settings{margin:0;padding:0;color:var(--sc-text)}
#center-settings #ljgs-settings>h2{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;margin:0}
#center-settings #ljgs-settings>h3{background:var(--sc-card);border:1px solid var(--sc-line);border-radius:13px 13px 0 0;color:var(--sc-muted)}
#center-settings #ljgs-settings>.ljgs-list{border-radius:0 0 13px 13px;border-top:0}
#center-settings #ljgs-settings>.ljgs-list+h3{margin-top:22px}
#center-settings #ljgs-settings button.ljgs-row {
  display: grid;
  grid-template-columns: auto max-content minmax(0, 1fr) auto;
  column-gap: clamp(6px, 1.25vw, 14px);
  align-items: center;
  align-content: center;
  width: 100%;
  cursor: pointer;
}
#center-settings .ljgs-row strong { color: var(--sc-text); }
#center-settings .ljgs-value {
  min-width: 0;
  max-width: 100%;
  margin-left: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
#center-settings .ljgs-action,
#center-settings .ljgs-chevron { grid-column: 4; }
#center-settings .ljgs-risk strong{color:#ff8f99}
#center-settings form.dp-actions button,#center-settings .dp-btn,#center-settings .dp-switch{font-family:inherit}
/* Settings disclosure: match the current workbench's small section heading. */
#sbNav #center-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  padding: 8px 12px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fg-2);
  box-shadow: none;
  font-size: 11px;
  font-weight: 400;
}
#sbNav #center-toggle > svg {
  display: none;
}
#sbNav #center-toggle::after {
  content: '⌄';
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  font-size: 12px;
  transform: none;
  transition: transform .2s;
}
#sbNav #center-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}
/* When the desktop sidebar is reduced to an icon rail, keep the chevron operable. */
#appView.sidebar-collapsed #sbNav #center-toggle {
  justify-content: center;
  padding-inline: 0;
}
#sbNav #center-links {
  display: flow-root;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#sbNav #center-links[hidden],
#appView.sidebar-collapsed #sbNav #center-links {
  display: none;
}
#sbNav #center-links > button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 39px;
  margin: 2px 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  background: transparent;
  color: var(--fg-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 450;
  letter-spacing: inherit;
  word-spacing: inherit;
  line-height: inherit;
  transition: background .12s;
}
#sbNav #center-links > button:hover {
  background: var(--bg-2);
  color: var(--fg);
}
#sbNav #center-links > button[aria-current="page"] {
  background: rgba(148, 163, 184, .12);
  color: var(--fg);
  font-weight: 450;
}
#sbNav #center-links > button::before {
  content: none;
}
#sbNav #center-links > button > svg.s-icon {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: .85;
}
#sbNav #center-links > button{cursor:pointer;text-align:left}
#sbNav #center-links > button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.ljgs-menu[data-settings-center]{min-width:165px}
@media(max-width:760px){#center-settings{padding:20px 14px 38px}#center-settings #ljgs-settings button.ljgs-row{padding:11px}}

/* Account menu in the top bar. The security module owns its anchors and actions. */
.ljgs-menu[data-settings-center] {
  box-sizing: border-box;
  width: min(190px, calc(100vw - 16px));
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #304159;
  border-radius: 12px;
  background: #1d293b;
  box-shadow: 0 10px 24px rgb(2 8 20 / 24%);
}
.ljgs-menu[data-settings-center]:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.ljgs-menu[data-settings-center] > button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  padding: 7px 10px;
  color: #acbbd0;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  white-space: nowrap;
  border-radius: 6px;
}
.ljgs-menu[data-settings-center] > button:hover,
.ljgs-menu[data-settings-center] > button:focus-visible {
  color: #e6eaff;
  background: #2b3750;
}
.ljgs-menu[data-settings-center] > button::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background: currentColor;
  -webkit-mask: var(--account-menu-icon) center / contain no-repeat;
  mask: var(--account-menu-icon) center / contain no-repeat;
}
.ljgs-menu[data-settings-center] > button:nth-of-type(1) {
  --account-menu-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%202.5%2020%206v5.7c0%204.9-3.4%208.1-8%2010.2-4.6-2.1-8-5.3-8-10.2V6Z%22%2F%3E%3C%2Fsvg%3E");
}
.ljgs-menu[data-settings-center] > button:nth-of-type(2) {
  --account-menu-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M3.8%2021v-1.6c0-3.7%203.7-6%208.2-6s8.2%202.3%208.2%206V21%22%2F%3E%3C%2Fsvg%3E");
}
.ljgs-menu[data-settings-center] > button:nth-of-type(3) {
  --account-menu-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%204H5a1%201%200%200%200-1%201v14a1%201%200%200%200%201%201h5m5-13%205%205-5%205m-7-5h12%22%2F%3E%3C%2Fsvg%3E");
}
#tbAvatar[aria-expanded="true"] {
  background: #7056f6;
  color: #fff;
  box-shadow: 0 0 0 2px #22d3ee;
}
