/* ── SETTINGS PAGE ──────────────────────────────── */
.settings-page-wrap{
  width:min(760px,100%);
  margin:0 auto;
  padding:0 20px;
}
.shortcuts-page-wrap{
  width:min(620px,100%);
  margin:0 auto;
  padding:0 20px;
}
.shortcuts-panel{
  position:relative;
  width:100%;
  margin:0 auto;
  padding:20px 22px;
  background:var(--panel-bg);
  border:1px solid var(--panel-border);
  border-radius:18px;
  box-shadow:var(--panel-shadow);
}
.settings-panel{
  position:relative;
  inset:auto;
  z-index:auto;
  width:100%;
  max-height:none;
  overflow:visible;
  margin:0 auto;
  padding:20px 22px;
  background:var(--panel-bg);
  border:1px solid var(--panel-border);
  border-radius:18px;
  box-shadow:var(--panel-shadow);
  pointer-events:auto;
  opacity:1;
  visibility:visible;
  transform:none;
  transition:border-color .16s ease,background .16s ease,box-shadow .18s ease;
}
.settings-theme-section{padding:2px 0 16px;margin-bottom:14px;border-bottom:1px solid rgba(255,255,255,.05)}
.settings-theme-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  gap:10px;
  margin-bottom:0;
  padding:0;
  border:none;
  background:none;
  text-align:left;
  cursor:pointer;
}
.settings-theme-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.settings-theme-title{
  font-size:13px;
  color:var(--t2);
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.settings-theme-sub{
  font-size:11px;
  color:var(--t3);
  line-height:1.45;
}
.settings-theme-status{
  flex-shrink:0;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--t3);
}
.settings-theme-chevron{
  flex-shrink:0;
  color:var(--t3);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .16s ease,color .14s ease;
}
.settings-theme-chevron svg{width:14px;height:14px;display:block}
.settings-theme-section.open .settings-theme-chevron{transform:rotate(180deg);color:var(--t2)}
.settings-theme-body{
  max-height:0;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  transition:max-height .22s ease,opacity .18s ease;
}
.settings-theme-section.open .settings-theme-body{
  max-height:760px;
  opacity:1;
  pointer-events:auto;
}
.settings-theme-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:10px;
  margin-top:12px;
  max-height:0;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  transition:max-height .22s ease,opacity .18s ease,margin-top .18s ease;
}
.settings-theme-section.open .settings-theme-grid{
  max-height:640px;
  opacity:1;
  pointer-events:auto;
}
.settings-theme-motion-row{
  margin-top:4px;
  padding-top:12px;
}
.settings-theme-btn{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:var(--t2);
  border-radius:12px;
  padding:8px 10px;
  display:grid;
  grid-template-columns:50px minmax(0,1fr);
  align-items:center;
  gap:10px;
  cursor:pointer;
  transition:border-color .14s ease,background .14s ease,transform .14s ease,color .14s ease;
}
.settings-theme-btn:hover,
.settings-theme-btn:focus-visible{
  background:rgba(255,255,255,.045);
  border-color:rgba(255,255,255,.14);
  color:var(--t1);
  transform:translateY(-1px);
}
.settings-theme-btn.active{
  border-color:rgba(111,151,246,.5);
  background:rgba(111,151,246,.08);
  color:var(--t1);
  box-shadow:inset 0 0 0 1px rgba(111,151,246,.18);
}
.settings-theme-swatch{
  display:block;
  width:50px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
  background-color:var(--theme-preview-bg,#141414);
  background-image:var(--theme-preview);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.settings-theme-name{
  font-size:12px;
  font-weight:600;
  letter-spacing:-.01em;
  text-align:left;
}
.settings-group{padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid rgba(255,255,255,.055)}
.settings-group-head{margin-bottom:9px}
.settings-group-title{font-size:13px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--t2)}
.settings-group-rows{display:flex;flex-direction:column}
.settings-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.04)}
.settings-row:last-child{border-bottom:none}
.settings-info{flex:1;min-width:0}
.settings-label{font-size:12px;color:var(--t2);font-weight:500}
.settings-sub{font-size:11px;color:var(--t3);margin-top:2px;line-height:1.4}
.settings-key-row{
  padding-top:0;
  margin-top:0;
  border-top:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.settings-key-actions{display:flex;gap:8px;flex-wrap:wrap}
.settings-key-btn{
  flex:0 0 auto;
  padding:0 14px;
  min-height:34px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.045);
  color:var(--t2);
  font-family:var(--font);
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:background .12s,border-color .12s,color .12s;
}
.settings-inline-btn{min-width:116px}
.settings-key-btn.clear{color:#b97a7a}
.settings-key-note{font-size:11px;color:var(--t3);line-height:1.45}
.trash-wrap{width:min(860px,100%);margin:0 auto;padding:0 20px;display:flex;flex-direction:column;gap:16px}
.trash-group{
  display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:15px;
  background:rgba(255,255,255,.018);border:1px solid rgba(255,255,255,.055);
}
.trash-title{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--t2);padding:0 2px;
}
.trash-title b{
  display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 7px;
  border-radius:999px;background:rgba(255,255,255,.055);color:var(--t3);font-size:11px;letter-spacing:0;
}
.settings-tog{flex-shrink:0;width:32px;height:18px;border-radius:9px;background:rgba(255,255,255,.1);border:none;cursor:pointer;position:relative;transition:background .15s;padding:0}
.settings-tog.on{background:var(--acc)}
.settings-thumb{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .15s;pointer-events:none;display:block}
.settings-tog.on .settings-thumb{transform:translateX(14px)}
/* opt-lbl: text labels in task action buttons */
.opt-lbl{pointer-events:none}
.hide-opt-labels .opt-lbl{display:none}
/* reduce motion */
.reduce-motion *,.reduce-motion *::before,.reduce-motion *::after{transition:none!important;animation:none!important}

/* ── INSTANT HOVER FEEDBACK ───────────────────── */
.settings-theme-btn,
.settings-key-btn{
  transition:none;
}
.settings-theme-btn:hover,
.settings-theme-btn:focus-visible{
  transform:none;
}
