/* Shared checkbox and switch treatment across account, consent, and studio forms. */
input[type="checkbox"]:not(.toggle){
  appearance:none;
  -webkit-appearance:none;
  display:inline-grid;
  place-content:center;
  width:22px;
  height:22px;
  min-width:22px;
  padding:0;
  margin:0;
  flex:0 0 22px;
  vertical-align:middle;
  border:1px solid rgba(172,164,221,.32);
  border-radius:6px;
  background:linear-gradient(145deg,rgba(182,175,230,.11),rgba(159,151,208,.035));
  box-shadow:inset 0 1px 0 rgba(225,221,251,.06),0 2px 7px rgba(0,0,0,.12);
  cursor:pointer;
  transition:background .16s,border-color .16s,box-shadow .16s;
}
input[type="checkbox"]:not(.toggle)::before{
  content:"";
  display:block;
  width:10px;
  height:6px;
  border-left:2px solid #d0cbed;
  border-bottom:2px solid #d0cbed;
  transform:translateY(-1px) rotate(-45deg) scale(0);
  transition:transform .13s;
}
input[type="checkbox"]:not(.toggle):checked{
  background:linear-gradient(145deg,rgba(164,155,224,.3),rgba(131,121,193,.17));
  border-color:rgba(172,164,226,.68);
  box-shadow:inset 0 1px 0 rgba(225,221,251,.12),0 0 12px rgba(143,133,209,.055);
}
input[type="checkbox"]:not(.toggle):checked::before{transform:translateY(-1px) rotate(-45deg) scale(1)}
input[type="checkbox"]:not(.toggle):indeterminate::before{width:10px;height:0;border-left:0;transform:scale(1)}
input[type="checkbox"]:hover:not(:disabled){border-color:rgba(182,174,231,.8)}
input[type="checkbox"]:focus-visible{outline:2px solid rgba(182,174,231,.85);outline-offset:4px}
input[type="checkbox"]:disabled{opacity:.4;cursor:not-allowed}
input[type="checkbox"].toggle{
  width:46px!important;
  height:27px;
  min-width:46px;
  padding:3px;
  margin:0;
  flex-shrink:0;
  border:1px solid rgba(169,162,213,.29);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(177,171,219,.12),rgba(129,121,181,.06));
  box-shadow:inset 0 1px 3px rgba(0,0,0,.14);
  transition:background .16s,border-color .16s;
}
input[type="checkbox"].toggle::before{
  content:"";
  width:19px;
  height:19px;
  border-radius:50%;
  background:rgba(180,175,210,.64);
  border:1px solid rgba(220,216,246,.13);
  box-shadow:0 1px 4px rgba(0,0,0,.2);
  transform:translateX(0);
  transition:transform .17s,background .17s;
}
input[type="checkbox"].toggle:checked{background:linear-gradient(145deg,rgba(158,148,222,.32),rgba(129,119,192,.19));border-color:rgba(165,156,224,.56)}
input[type="checkbox"].toggle:checked::before{background:#bbb4e5;transform:translateX(19px)}
.checkbox,.collab-toggle{min-height:32px;gap:12px;cursor:pointer;line-height:1.8}
.setting-row:has(input[type="checkbox"]){cursor:pointer;min-height:64px}
@media(max-width:650px){.collab-toggle small{margin-left:34px}.checkbox{align-items:flex-start}.checkbox input[type="checkbox"]{margin-top:1px}}
@media(prefers-reduced-motion:reduce){input[type="checkbox"],input[type="checkbox"]::before{transition:none}}
.workflow-picker{border:0;padding:0;margin:27px 0 0;min-width:0}
.workflow-picker legend{font-size:13px;font-weight:600;margin-bottom:10px}
.workflow-picker>p{font-size:12px;color:var(--muted);margin-bottom:16px}
.workflow-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.workflow-card{position:relative;cursor:pointer;min-width:0}
.workflow-card input{position:absolute;opacity:0;width:1px;height:1px}
.workflow-card-body{display:flex;flex-direction:column;gap:10px;height:100%;padding:20px;border:1px solid var(--line);border-radius:10px;background:#101016}
.workflow-card-top{display:flex;justify-content:space-between;align-items:center;color:var(--accent)}
.workflow-check{display:grid;place-items:center;width:21px;height:21px;border:1px solid #ffffff30;border-radius:50%}
.workflow-check .app-icon{visibility:hidden}
.workflow-card-body>strong{font-size:14px}
.workflow-card-body>span:not(.workflow-card-top){font-size:12px;line-height:1.65;color:var(--muted)}
.workflow-card-body>small{font-size:11px;line-height:1.6;color:var(--muted)}
.workflow-card-body>b{margin-top:auto;padding-top:5px;font-size:11px;font-weight:500;color:var(--accent)}
.workflow-card input:checked+.workflow-card-body{border-color:var(--accent);background:#b9b0f40c}
.workflow-card input:checked+.workflow-card-body .workflow-check{background:var(--accent);color:#17161f;border-color:var(--accent)}
.workflow-card input:checked+.workflow-card-body .workflow-check .app-icon{visibility:visible}
.workflow-card input:focus-visible+.workflow-card-body{outline:2px solid var(--accent);outline-offset:4px}
.workflow-card:has(input:disabled){cursor:default}
.workflow-card input:disabled+.workflow-card-body{opacity:.45}
#workflow-format-note{margin:14px 0 0}
@media(max-width:450px){.workflow-cards{grid-template-columns:1fr}}
